Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Provide detailed explanations in your code as comments. C program Please Do it FAST Problem 5. An Electricity board charges the following rates mentioned in

image text in transcribed Provide detailed explanations in your code as comments. C program Please Do it FAST

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

    The output shall look like this:

    ~~~~~~~~~~~~~~~Check Your Electricity Bill~~~~~~~~~~~~~~~

    Enter the name of the customer:

    ABCD

    Customer Number:

    XXXXX

  • Monthly Bill

  • Meter Replacement

  • Main Menu

  • Exit

  • MS. ABCD

    XXXX

    Monthly Electricity Bill is --------- Taka

    Thank you

    Please Enter your choice:

  • Monthly Bill

  • Meter Replacement

  • Main Menu

  • Exit

  • 4

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    1

    1. Residential

    2. Agricultural Pumping

    3. Small Industries

    4. Non-Residential

    5. Commercial and Office

    1

    Units Consumed: b

    a. 1 Phase

    b. 3 Phase

    a

Tariff Rate SL Customer Category and slab New Tariff Per Unit Rate (Tk.) Effective from Bill month September, 2015 Service Charge (Tk./Month) 3.33 3.80 5.14 1 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 5.36 1-Phase: 10.00 3-Phase: 30.00 5.63 8.70 9.98 2 Category B: Agricultural pumping 3.82 30.00 Category C: Small Industries a Flat Rate 7.66 3 3 b Off-Peak Time 6.90 70.00 c Peak Time 9.24 4 5.22 1-Phase: 10.00 3-Phase: 30.00 Category D: Non-Residential (Light & Power) Category E: Commercial & Office a Flat Rate b Off-Peak Time c Peak Time 9.80 5 8.45 1-Phase: 10.00 3-Phase: 30.00 11.98

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

Students also viewed these Databases questions

Question

Use Householder's Method to solve Exercises 5.3.27 and 5.3.29.

Answered: 1 week ago

Question

Describe the bases for segmenting business markets AppendixLO1

Answered: 1 week ago