Code Monkey home page Code Monkey logo

electricity-assignmentii-'s Introduction

Electricity-AssignmentII-

Calculate the amount of money to be paid based on certain scenarios.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.