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
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
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
Related questions
Question
Solve it by C
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning