Write a program to read the ID of users, customer category, phase, number of units consumed, and other necessary inputs. Finally, print out the monthly bill.

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

Don't reject to say it complex. 

provide STEP BY STEP CORRECT EXPLANATION 

Problem 2. 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
Write a program to read the ID of users, customer category, phase, number of units
consumed, and other necessary inputs. Finally, print out the monthly bill.
Tariff Rate
SL
1
2
3
4
Flat rate, peak time, and off-peak time
Meter Charge
5
Customer Category and Slab
Category A: Residential
Life Line: 1-50 Units
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
Category B: Agricultural pumping
Category C: Small Industries
a Flat Rate
b Off-Peak Time
c Peak Time
Category D: Non-Residential (Light & Power)
Category E: Commercial & Office
a Flat Rate
b Off-Peak Time
c Peak Time
New Tariff
Per Unit Rate (Tk.)
Effective from Bill month
September, 2015
3.33
3.80
5.14
5.36
5.63
8.70
9.98
3.82
7.66
6.90
9.24
5.22
9.80
8.45
11.98
Service Charge
(Tk./Month)
1-Phase: 10.00
3-Phase: 30.00
30.00
70.00
1-Phase: 10.00
3-Phase: 30.00
1-Phase: 10.00
3-Phase: 30.00
1/2
2/2
Transcribed Image Text:Problem 2. 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 Write a program to read the ID of users, customer category, phase, number of units consumed, and other necessary inputs. Finally, print out the monthly bill. Tariff Rate SL 1 2 3 4 Flat rate, peak time, and off-peak time Meter Charge 5 Customer Category and Slab Category A: Residential Life Line: 1-50 Units 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 Category B: Agricultural pumping Category C: Small Industries a Flat Rate b Off-Peak Time c Peak Time Category D: Non-Residential (Light & Power) Category E: Commercial & Office a Flat Rate b Off-Peak Time c Peak Time New Tariff Per Unit Rate (Tk.) Effective from Bill month September, 2015 3.33 3.80 5.14 5.36 5.63 8.70 9.98 3.82 7.66 6.90 9.24 5.22 9.80 8.45 11.98 Service Charge (Tk./Month) 1-Phase: 10.00 3-Phase: 30.00 30.00 70.00 1-Phase: 10.00 3-Phase: 30.00 1-Phase: 10.00 3-Phase: 30.00 1/2 2/2
Expert Solution
steps

Step by step

Solved in 2 steps

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