Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Class Electricity_bill

  Asked By: Da7om21    Date: Feb 27    Category: Java    Views: 1025
  

Write a java program that will calculate the charge for electricity for customers. The
program should use a class called Electricity_bill containing the following attributes:
customer account number (integer) and kilowatt-hours used (float).
Electric charges are 59 cents per kilowatt. The program should read the data from keyboard and display the following information for the customer on the screen.
customer account number cost of electricity (float)



Electricity_bill

+ account: int
+ KWH : float
+ cost: float


Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Class Electricity_bill Or get search suggestion and latest updates.




Tagged: