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 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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Solve it by C programming and detailed explained the code below after solving the code.

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
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
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Hiring Problem
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education