In Task 2, you are going to modify your program so that it is Able to deal with
ID: 3655432 • Letter: I
Question
In Task 2, you are going to modify your program so that it is Able to deal with all three types of uses: residential (R), commercial (C), and industrial (I). The rate for the commercial and industrial are as shown below: C: RM200.00 for the first 500 kWh or less, and RM0.045 for each additional kWh I: Rate varies depending on time of usage: Peak hours: RM76.00 for first 1000 kwh and RM0.065 for each additional kwh Off peak hours: RM40.00 for first 1000 kwh and RM0.028 for each additional kwh. ~ 3 ~ After prompting user for account number, you should prompt user for the use code (char). Note that if the use code is I, an additional input to determine whether it is peak or off peak is required. You should compute the number of uses, and sub-total, for each use code, as well as the total amount collected. You should incorporate data validation in Task 2. Use a loop to validate: i) the use code, if user does not enterExplanation / Answer
im sure they looked at this problem and were like EFFFF this
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.