subject
Computers and Technology, 28.06.2020 02:01 fzzyy

The energy company in Program 1 now uses different rates for residential and business customers. Residential customers pay $0.12 per kWh for the first 500 kWh. After the first 500 kWh, the rate is $0.15 per kWh. Business customers pay $0.16 per kWh for the first 800 kWh. After the first 800 kWh, the rate is $0.20 per kWh. Write a program to calculate energy charge. You must write and use the following two functions. (a)A main function: Ask the user to enter number of kWh used and customer type (enter R for residential or B for business). Call the bill calculator function and pass number of kWh used and customer type to it as arguments. You must use positional arguments to pass kWh used and customer type. (b)A bill calculator function: This function has two parameters to receive number of kWh used and customer type. Calculate and display the energy charge. The following is an example. Enter kilowatt hours used: 810 Enter R for residential customer, B for business customer: R Please pay this amount: 106.50 The following is another example. Enter kilowatt hours used: 810 Enter R for residential customer, B for business customer: b Please pay this amount: 130.00 Save your Python program in a file named Lab07P2.py. Submit the file to Blackboard for credit.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
What is added to the < meta > tag to describe the encoding type?
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
How are we able to create photographs differently than 100 years ago? explain your answer in relation to your photograph you selected.
Answers: 1
You know the right answer?
The energy company in Program 1 now uses different rates for residential and business customers. Res...
Questions
question
Mathematics, 03.07.2021 01:20
question
Mathematics, 03.07.2021 01:20
question
Business, 03.07.2021 01:20
question
Mathematics, 03.07.2021 01:20
question
Mathematics, 03.07.2021 01:20
question
Mathematics, 03.07.2021 01:20
question
Mathematics, 03.07.2021 01:20
Questions on the website: 13722362