An Electricity board charges the following rates mentioned in the table for the use of electricity. All users are charged Taka 50 as a meter charge for every month. If any user wants to change/replace his meter, he will be charged taka 2000. The monthly bill will be generated based on ● Customer Category ● Consumed Units ● Phase ● For Category 3 and 5 along with other parameters, you need to also consider flat rate, peak time, and off-peak time. Take input from the user, how many units were consumed during flat rate, peak, or off-peak time. ● Meter Charge Write a program to read the name of the user, Customer Category, Phase, number of units consumed and print out the monthly bill. Note that ● Phase, flat rate, peak time and off-peak time will be appeared based on

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Problem 5. An Electricity board charges the following rates mentioned in the table for the use of electricity. All users are charged Taka 50 as a meter charge for every month. If any user wants to change/replace his meter, he will be charged taka 2000. The monthly bill will be generated based on ● Customer Category ● Consumed Units ● Phase ● For Category 3 and 5 along with other parameters, you need to also consider flat rate, peak time, and off-peak time. Take input from the user, how many units were consumed during flat rate, peak, or off-peak time. ● Meter Charge Write a program to read the name of the user, Customer Category, Phase, number of units consumed and print out the monthly bill. Note that ● Phase, flat rate, peak time and off-peak time will be appeared based on the customer category. ● The monthly bill will be calculated following the number of Days in a month
Tariff Rate
New Tariff
Per Unit Rate (Tk.)
Effective from Bill month
Service Charge
(Tk/Month)
SL
Customer Category and Slab
September, 2015
Category A: Residential
Life Line: 1-50 Units
3.33
a First Step: From 00 to 75 units
b Second Step: From 76 to 200 units
c Third Step: From 201 to 300 units
d Fourth Step: From 301 to 400 units
3.80
5.14
1-Phase: 10.00
5.36
3-Phase: 30.00
5.63
e Fifth Step: From 401 to 600 units
f Sixth Step: From 601 to above
8.70
9.98
2 Category B: Agricultural pumping
3.82
30.00
Category C: Small Industries
a Flat Rate
7.66
3
b off-Peak Time
6.90
70.00
c Peak Time
9.24
1-Phase: 10.00
4
Category D: Non-Residential (Light & Power)
5.22
3-Phase: 30.00
Category E Commercial & Office
a Flat Rate
9.80
1-Phase: 10.00
b off-Peak Time
8.45
3-Phase: 30.00
c Peak Time
11.98
6/8
The output shall look like this:
-Check Your Electricity Bill--
Enter the name of the customer:
АВCD
Customer Number:
XXXXX
1.
Monthly Bill
Meter Replacement
2.
3.
Main Menu
4.
Exit
1
1.
Residential
2.
Agricultural Pumping
Small Industries
3.
4.
Non-Residential
5.
Commercial and Office
1
a First Step: From 00 to 75 units
b Second Step: From 76 to 200 units
c Third Step: From 201 to 300 units
d Fourth Step: From 301 to 400 units
e Fifth Step: From 401 to 600 units
f Sixth Step: From 601 to above
Units Consumed: b
Transcribed Image Text:Tariff Rate New Tariff Per Unit Rate (Tk.) Effective from Bill month Service Charge (Tk/Month) SL Customer Category and Slab September, 2015 Category A: Residential Life Line: 1-50 Units 3.33 a First Step: From 00 to 75 units b Second Step: From 76 to 200 units c Third Step: From 201 to 300 units d Fourth Step: From 301 to 400 units 3.80 5.14 1-Phase: 10.00 5.36 3-Phase: 30.00 5.63 e Fifth Step: From 401 to 600 units f Sixth Step: From 601 to above 8.70 9.98 2 Category B: Agricultural pumping 3.82 30.00 Category C: Small Industries a Flat Rate 7.66 3 b off-Peak Time 6.90 70.00 c Peak Time 9.24 1-Phase: 10.00 4 Category D: Non-Residential (Light & Power) 5.22 3-Phase: 30.00 Category E Commercial & Office a Flat Rate 9.80 1-Phase: 10.00 b off-Peak Time 8.45 3-Phase: 30.00 c Peak Time 11.98 6/8 The output shall look like this: -Check Your Electricity Bill-- Enter the name of the customer: АВCD Customer Number: XXXXX 1. Monthly Bill Meter Replacement 2. 3. Main Menu 4. Exit 1 1. Residential 2. Agricultural Pumping Small Industries 3. 4. Non-Residential 5. Commercial and Office 1 a First Step: From 00 to 75 units b Second Step: From 76 to 200 units c Third Step: From 201 to 300 units d Fourth Step: From 301 to 400 units e Fifth Step: From 401 to 600 units f Sixth Step: From 601 to above Units Consumed: b
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY