1. Write a program in Java to calculate and print the Electricity Generator Bill, the user should enter the The number of consumed KW and the Rate/KW and the month as a String value. Bill=number of KW* Rate Then you have to add the amount of 90,000 LB as a fixed fee to the Bill. Using java Sample Run: Please enter the number of Kw: 100 Enter the rate/Kw: 9500 Enter the Month please: April You Bill for April is : 1040000

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
1. Write a program in Java to calculate and print the Electricity Generator Bill, the user should enter the
The number of consumed KW and the Rate/KW and the month as a String value.
Bill=number of KW Rate
Then you have to add the amount of 90,000 LB as a fixed fee to the Bill.
Using java
Sample Run:
Please enter the number of Kw: 100
Enter the rate/Kw: 9500
Enter the Month please: April
You Bill for April is : 1040000
Transcribed Image Text:1. Write a program in Java to calculate and print the Electricity Generator Bill, the user should enter the The number of consumed KW and the Rate/KW and the month as a String value. Bill=number of KW Rate Then you have to add the amount of 90,000 LB as a fixed fee to the Bill. Using java Sample Run: Please enter the number of Kw: 100 Enter the rate/Kw: 9500 Enter the Month please: April You Bill for April is : 1040000
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning