subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
question
Computers and Technology, 24.06.2019 14:30
Alison is having a hard time at work because hee inbox is flooded with emails every day. some of these emails are unsolicited. some of other she don’t need. which action should she take to better manager her emails?
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, 08.11.2019 03:31
Questions on the website: 13722360