After the announcement by the government of its intension to pay 50% of the electricity bill of all categories of consumer, the board of Electricity Company of Ghana (ECG) were in a dilemma as to whether to adjust the old billing software or design a new one. It was decided that a new software should be designed because the old one was designed using FORTRAN and there are no FORTRAN programmers around. Each time they require to make changes to the software, they had to invite the designers from US, this is quite expensive than building a new one locally. You have won a contract to design the software using c++. On a trial basis you are to design a console application that will a) request for i. customer name ii quantity of electricity used iii categorize customers into 1. domestic when at most 150 KW units is used within 2. industrial when more than 150 kw but less than or equal to 350 KW is used 3. commercial when more than 350 KW is used (8 marks)CR b) if the cost per KW for domestic, industrial and commercial are respectively GHs 1.2, 2.3 and 3.5 respectively. Your program should 1. compute the monthly bill based on category. 2. Add 1% of the monthly bill for rural electrification to get the total bill 3. reduce the total bill by 50% (8 marks) EV c) Display the following results 1. customer’s name 2. quantity of water consumed and category 3. 1% rural electrification charge and total amount for the month 4. 50% government subsidy 5. balance to be paid (4 marks) CR NB: use the appropriate data type for all the variables
After the announcement by the government of its intension to pay 50% of the electricity bill of all categories of consumer, the board of Electricity Company of Ghana (ECG) were in a dilemma as to whether to adjust the old billing software or design a new one. It was decided that a new software should be designed because the old one was designed using FORTRAN and there are no FORTRAN programmers around. Each time they require to make changes to the software, they had to invite the designers from US, this is quite expensive than building a new one locally. You have won a contract to design the software using c++. On a trial basis you are to design a console application that will a) request for i. customer name ii quantity of electricity used iii categorize customers into 1. domestic when at most 150 KW units is used within 2. industrial when more than 150 kw but less than or equal to 350 KW is used 3. commercial when more than 350 KW is used (8 marks)CR b) if the cost per KW for domestic, industrial and commercial are respectively GHs 1.2, 2.3 and 3.5 respectively. Your program should 1. compute the monthly bill based on category. 2. Add 1% of the monthly bill for rural electrification to get the total bill 3. reduce the total bill by 50% (8 marks) EV c) Display the following results 1. customer’s name 2. quantity of water consumed and category 3. 1% rural electrification charge and total amount for the month 4. 50% government subsidy 5. balance to be paid (4 marks) CR NB: use the appropriate data type for all the variables
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
After the announcement by the government of its intension to pay 50% of the electricity bill of all categories of consumer, the board of Electricity Company of Ghana (ECG) were in a dilemma as to whether to adjust the old billing software or design a new one. It was decided that a new software should be designed because the old one was designed using FORTRAN and there are no FORTRAN programmers around. Each time they require to make changes to the software, they had to invite the designers from US, this is quite expensive than building a new one locally. You have won a contract to design the software using c++. On a trial basis you are to design a console application that will
a) request for
i. customer name
ii quantity of electricity used
iii categorize customers into
1. domestic when at most 150 KW units is used within
2. industrial when more than 150 kw but less than or equal to 350 KW is used
3. commercial when more than 350 KW is used (8 marks)CR
b) if the cost per KW for domestic, industrial and commercial are respectively GHs 1.2, 2.3 and 3.5 respectively. Your program should
1. compute the monthly bill based on category.
2. Add 1% of the monthly bill for rural electrification to get the total bill
3. reduce the total bill by 50% (8 marks) EV
c) Display the following results
1. customer’s name
2. quantity of water consumed and category
3. 1% rural electrification charge and total amount for the month
4. 50% government subsidy
5. balance to be paid (4 marks) CR
NB: use the appropriate data type for all the variables
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
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 2 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY