vetyea prram for current electrical billing system based on the given requirements using the lee Ar statement shown in Table 1. Draw flowchart and write a complete C prram based on the problem Table 1: Electrical Charge Rate Charge Rate Unit Consumed (/watt) 0-300 No charge 0-1300 No charge for first 300 units, and RM 0.35 per unit for the following units No charge for first 300 units, and RM 0.35 per unit for the following 1000 units, and RM 0.25 Above 1300 per unit for the remaining units

MIS
9th Edition
ISBN:9781337681919
Author:BIDGOLI
Publisher:BIDGOLI
Chapter10: Building Successful Information Systems
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
100%

C program 

Ovetr prram for current electrical billing system based on the given requirements using
the elee Ar statement shown in Table 1. Draw flowchart and write a complete C
pgram based on the problem.
Table 1: Electrical Charge Rate
Charge Rate
No charge for first 300 units, and RM 0.35 per
unit for the following units
No charge for first 300 units, and RM 0.35 per
unit for the following 1000 units, and RM 0.25
per unit for the remaining units
Unit Consumed (k/watt)
No charge
0-300
0-1300
Above 1300
The output sample for the program should be as follows:
Program to Calculate Electrical Bill
Enter amount of kW have been used: 1800
Electrical Consumption Summary:
300kW x RMO.00 - RM0.00
1000KW x RMO.35 = RM350.00
800KW x RMO,25 = RM125.00
Total amount to pay: RM475.00
ogram to Calculate Electrical Bill
er amount of kW have been used: 1280
trical Consumption Summary:
300kW x RMO.00 = RMO.00
980KW x RMO.35 = RM343
amount of
Transcribed Image Text:Ovetr prram for current electrical billing system based on the given requirements using the elee Ar statement shown in Table 1. Draw flowchart and write a complete C pgram based on the problem. Table 1: Electrical Charge Rate Charge Rate No charge for first 300 units, and RM 0.35 per unit for the following units No charge for first 300 units, and RM 0.35 per unit for the following 1000 units, and RM 0.25 per unit for the remaining units Unit Consumed (k/watt) No charge 0-300 0-1300 Above 1300 The output sample for the program should be as follows: Program to Calculate Electrical Bill Enter amount of kW have been used: 1800 Electrical Consumption Summary: 300kW x RMO.00 - RM0.00 1000KW x RMO.35 = RM350.00 800KW x RMO,25 = RM125.00 Total amount to pay: RM475.00 ogram to Calculate Electrical Bill er amount of kW have been used: 1280 trical Consumption Summary: 300kW x RMO.00 = RMO.00 980KW x RMO.35 = RM343 amount of
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Payback period
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
MIS
MIS
Computer Science
ISBN:
9781337681919
Author:
BIDGOLI
Publisher:
Cengage
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage