Monday, May 24, 2010

Pleas hlep me sloving this assignment in c languuage?

Write a program that will calculate and print bills for the city power company. The rates vary depending on whether the use is residential, commercial, or industrial. A code of R means residential use, a code of C means commercial use, and a code of I means industrial use. Any other code should be treated as an error.


The rates are computed as follows:


R: $6.00 plus $0.052 per kwh used


C: $60.00 for the first 1000 kwh and $0.045 for each additional kwh


I: Rate varies depending on time of usage: (peak time is between 7:00 AM and 9:00 PM)


Peak hours: $76.00 for first 1000 kwh


and $0.065 for each additional kwh


Off-peak hours: $40.00 for first 1000 kwh


and $0.028 for each additional kwh.


Your program should prompt the user to enter an integer account number, the use code (type char), and the necessary consumption figures in whole numbers of kilowatt-hours. Your program should display the amount due from the user.





You have to write the algorithm for your program first. The algorithm has 1/3 of the assignment mark.

Pleas hlep me sloving this assignment in c languuage?
If you are still stuck with your project assignment , you may contact a programming expert live at website like http://askexpert.info/ .
Reply:this is basic math....i dunno what to tell ya except that if this is causing you problems, perhaps you should change your course of study... sorry to be state the obvious.

flower beds

No comments:

Post a Comment