A domestic electricity usage will charge with basic rate (kWh) RM0.22. Calculate the bill by giving the power consumed (kWh). Print the total amount bill and if it is less than or equal to RM20, print "Your bill is free". a) Draw a complete flowchart for the problem. b) Write and run the program. A domestic electricity usage will charge with basic tariff rate (kWh) as: First 200 kWh (1-200 kWh) Next 100 kWh (201-300 kWh) Next 301 kWh (301-onward kWh) : RM0.22 : RM0.33 :RM0.51 Calculate the bill by giving the power consumed (kWh) that based on the tariff rate above. If the total bill calculated is less than or equal to RM20, print "Your bill is free". Otherwise, print the total bill. Write and run the program.
A domestic electricity usage will charge with basic rate (kWh) RM0.22. Calculate the bill by giving the power consumed (kWh). Print the total amount bill and if it is less than or equal to RM20, print "Your bill is free". a) Draw a complete flowchart for the problem. b) Write and run the program. A domestic electricity usage will charge with basic tariff rate (kWh) as: First 200 kWh (1-200 kWh) Next 100 kWh (201-300 kWh) Next 301 kWh (301-onward kWh) : RM0.22 : RM0.33 :RM0.51 Calculate the bill by giving the power consumed (kWh) that based on the tariff rate above. If the total bill calculated is less than or equal to RM20, print "Your bill is free". Otherwise, print the total bill. Write and run the program.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.2: While Loops
Problem 6E: (Practice) An automobile travels at an average speed of 55 mph for 4 hours. Write a C++ program that...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 5 images
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT