Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6. The electric company charges according to the following rate schedule: 9 cents per kilowatt-hour (kw) for the first 300 kwh 8 cents per kwh
6. The electric company charges according to the following rate schedule: 9 cents per kilowatt-hour (kw) for the first 300 kwh 8 cents per kwh for the next 300 kwh (up to 60 kwh) 6 cents per kwh for the next 400 kwh (up to 1,000 kwh/ 5 cents per kwh for all electricity used over 1,000 kwh Write a function to compute the total charge for each customer. Write a main function to call the charge calculation function using the following data: Customer Number Kilowatt hours Used 123 725 205 115 464 600 596 327 The program should print a three column chart listing the customer number, the kilowatt hours used, and the charge for each customer. The prograin should also compute and print the number of customers, the total lowatt hours used, and the total charges
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started