I need solve this problem in c++ program:

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

I need solve this problem in c++ program:

Post by answerhappygod »

I need solve this problem in c++ program:
I Need Solve This Problem In C Program 1
I Need Solve This Problem In C Program 1 (93.32 KiB) Viewed 36 times
1. Problem Definition The Electricity Distribution Company has recently adopted new tariffs for residential electricity accounts. Table 1 describes the various tariffs for three types of residential electricity accounts (Government Subsidy account, Basic account, and Additional account). Customers are charged for electricity by the Electricity Distribution Company according to the account type and the electricity units consumed in kilowatt-hours (KWH) as described in Table 1. . Account Type Government Subsidy Basic . Additional Units Consumed in KWH 0-4000 4001 - 6000 >6000 0-4000 4001 - 6000 > 6000 0-4000 . 4001 - 6000 >6000 Rate Amount (Baiza) 10 13 20 14 17 30 Develop an interactive Python program that calculates the payable amount of the electricity bill according to the tariffs outlined in Table 1, and prints a summary report. Your program should 20 25 • Include comments documenting the two parts of your solution outlined above. • Define appropriate constants for the rate amounts listed in Table 1. • Use meaningful names for variables and constants. Read the account type, the account number, and the units consumed in KWH from the keyboard • Input letters 'S' or 's' for 'Government Subsidy' accounts, letters 'B' or 'b' for 'Basic' accounts and letters 'A' or 'a' for 'Additional accounts, when entering the account type. 30 Table 1: Electricity Distribution Company Tariffs 2. Deliverables Engage first in problem solving and thinking to set up the approach that you will later implement in the computer program. Reject invalid data with proper messages (see the sample runs). This includes entering no data, entering invalid account type, and entering non-numeric or negative values for account number and units consumed. Display the company name at the start of the screen output. Display the bill report on the screen as illustrated in the sample runs. Use tabular format for displaying the bill information and format the payable amount in three decimal places. • Start by defining the purpose of the program, then identify the input and output variables and then sketch the algorithm in pseudo-code. Finally, write the corresponding Python program. Thoroughly, test your solution. Provide at least four different test plans that cover different scenarios of execution in your program. Include your test plans as comments at the start of the program (see part (i))
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply