Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please give answer for python Write a program that will calculate and print bills for the city power company. The rate depending on whether the

please give answer for python image text in transcribed
Write a program that will calculate and print bills for the city power company. The rate depending on whether the use is residential or commercial. A code of R means residential use and a code of means commercial use. Any other code should be treated as an error and the program repeats until a valid code is entered The rates are computed as follows R RM600 plus RMO 052 per kwh used CRMGO00 for the first 1000 kwh and RMO 045 for each additional kwt Your program should prompt the user to enter an integer account number, the use code and the necessary consumption figures in whole numbers of kilovat. hours You program should display the amount due from the user Input validation Do not accept negative number for consumption figure. The program ww ask the user to reenter new input

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

Step: 3

blur-text-image

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

1. Does the survey prompt discussions with your direct reports?

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago

Question

What is digital literacy? Why is it necessary?

Answered: 1 week ago