Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# The output shall look like this: ~~~~~~~~~~~~~~~Check Your Electricity Bill~~~~~~~~~~~~~~~ Enter the name of the customer: ABCD Customer Number: XXXXX Monthly Bill Meter Replacement

image text in transcribed#

The output shall look like this:

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

Enter the name of the customer:

ABCD

Customer Number:

XXXXX

  1. Monthly Bill

  2. Meter Replacement

  3. Main Menu

  4. Exit

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

MS. ABCD

XXXX

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

Thank you

Please Enter your choice:

  1. Monthly Bill

  2. Meter Replacement

  3. Main Menu

  4. Exit

4

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

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

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

define EFFECTIVE PARTICIPATION

Answered: 1 week ago

Question

Write an elaborate note on marketing environment.

Answered: 1 week ago

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago