Question: Please make sure for the tests the outcome is equal to what the bill says HINT: You will not use the do-while loop for this

Please make sure for the tests the outcome is equal to what the bill says  Please make sure for the tests the outcome is equal to

HINT: You will not use the do-while loop for this assignment. Problem : 20 Draw a flowchart for a program that will calculate an electric bill The user will enter: the month (he will enter 1 for January, 12 for December, etc) the current meter reading the previous meter reading Calculate an electric bill based on the following rate &consumption table: Kilowatt 0-400 KWH over 400 KWH Consumption Cost a flat rate of $8.50 S8.50 (base rate) + 7.525 cents for each KWH over 400 (May Sept.) or 6.575 cents for each KWH over 400 (all other months) Test your flowchart using the following 6 test cases 1. Month 5 Current 1200 2. Month Current-1500 3. Month9 Current 1200 Month 10 Current 1200 Previous-1000 Bil- $8.50 Previous-1100 -$8.50 Previous- 500 Previous-500 Bill-S31.07 Bill-$28.23

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!