Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Forum » x-Forum » Question


Can someone please help... I am new to programming, i kind of puzzled on what to do. Thank you so much 😊


Write a program that will calculate and show the bills of an Electric Company. The rates vary depending on whether the use is residential (R), commercial( C), or industrial (I). Any other code should be treated as an error.
The program should accept the subscriber ID, Subscriber Name, his total electrical consumption in a month, and the code of the consumer type.

The rates are computed as follows:

R: 50 plus .50 per kWh used

C: 100 for the first 1000 kWh and 0.45 for each additional kWh

I: 180 for the first 1000 kWh and 0.75 for each additional kWh

Posted by Sky_Walker7 2020-12-13 03:49:14

No Ans Posted

Please login to comment

Log In

Ask New Question