Can anyone help me with my homworks please?

Sigchi4life
Category:
Programming
Price: $25 USD

Question description

1.  Write the program in C++ for calculating the power of a given number. For calculating the power create the function Power where the base and exponent of number to be read through keyboards.During calculation lets considerate also conditions the following:

x^0=1

x^-n=1/(x^n)

     0      for n>0

0^n=  

     infinit for n<0

     

     

2. On the table below it is expressed the consum of electrical energy for the year 2012 by districts. Write the program on c++ who calculate the consume of electrical energy  for each distric and each category of consum. 

Districst             homemaking                industry        Commercial

 New york                  626                        94               269    

 Washington              189                        19                46

 Florida                       231                        24                63

 LA                              205                        18                55

 New Jersey               305                        53                82

 Chicago                     287                        20                94


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: UC Berkeley
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1829 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors