Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just a flow chart HINT: You will not use the do-while loop for this assignment. Problem 1: 20> Draw a flowchart for a program that

Just a flow chart image text in transcribed
HINT: You will not use the do-while loop for this assignment. Problem 1: 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 $8.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 4 Current = 1500 3. Month-9 Current- 1200 4. Month 10 Current-1200 Previous 1000 Bl $8.50 Previous 1100 Bil $8.50 Previous 500 Previous 500 Bill = $31.07 Bill- $28.23

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions