How electricity usage file the amount of electricity

Assignment Help Computer Engineering
Reference no: EM1334876

An electricity supply authority records on an electricity usage file the amount of electricity that each customer uses. This file consists of:

- a header record (first record), which provides the total kilowatt hours used during the month by all customers
- a number of detail records, each containing the customer number, customer name and electricity usage (in kilowatt hours) for the month.

Design a solution algorithm that will read the electricity usage file and produce an electricity usage report showing the customer number, customer name, electricity usage and the amount owing. The amount owing is calculated at 11 cents for each kilowatt hour used, up to 200 hours, and 8 cents for each kilowatt hour used over 200 hours. The total electricity usage in kilowatt hours is also to be accumulated.

At the end of the program, compare the total electricity usage accumulated in the program with the value provided in the header record, and print an appropriate message if the totals are not equal.

Reference no: EM1334876

Questions Cloud

Ethical issue regarding bp : Do you feel it was ethical that BP had to put aside a 20 billion dollar fund for gulf victims of the oil rig disaster? Why or why not? What models did you use to reach your conclusion?
Explain identifying place and promotional strategy : Explain Identifying Place and Promotional Strategy and How can you identify the appropriate place and promotional strategy that should be used in the development of the strategic marketing plan
Describe the economic implications for the united states : Describe the economic implications for the United States of the rise of China and India as significant economic powers.
Workforce assessment and including diversity : Support the organization's goal to attract key technical and leadership human capital for long-term competitive advantage and What are some initial perspectives on the following topics: Workforce assessment, including diversity, recruitment, and re..
How electricity usage file the amount of electricity : make an electricity usage report showing the customer number.
Illustrate what does and what does not the solow model : Illustrate what does, and what doesn't, the Solow model tell us about the sources of economic growth and the best policies for attaining high per capita incomes.
Explain economic factors in marketing plans and contingency : Explain Economic Factors in Marketing Plans and Contingency Plans and What would be the best way to Implementation for the agency
Consideration of the pros and cons of contract employees : Provide three reasons why you would recommend that they use contract employees and give 3 reasons why you would recommend against using contract employees.
Suppose that all items are priced per-pound : Let us say you are a farmer and you participate in Farmers Market every Sunday. You bring 5 favorite vegetables or fruits for sale. You are going to use a program for checking out customers. You could choose your favorite 5 vegetables/fruits as yo..

Reviews

Write a Review

Computer Engineering Questions & Answers

  How can ajax influence a web developer

What is the relationship between Web 2.0, SOAP, and XML.How can AJAX influence a Web Developer.

  Contain reference slide with citations in apa format

build a 5- to 7-slide Microsoft?PowerPoint?presentation detailing the evolution of programming languages. Organize your slide presentation in the form of a timeline, and discuss the various generations of programming language.

  Preparing the list of tables

In the last board meeting, your supervisor has asked someone to build a list of tables for the Fernandos Skate Shop customer orders.

  Implementing the soubly linked list adt

Develop, implement, and test the soubly linked list ADT, utilizing the DLLNode objects as the nodes. Additionally to our standard list operations, your class must offer for backward iteration through the list.

  A function to see if one list is a shallow copy of other

A function to see if one list is a shallow copy of other

  Object data within a relational database management system

I am finding it difficult to understand the following: Contrasting performance within a relational database management system with/without indexes, use numeric/non-numeric key fields, maintaining/generating calculated fields.

  Find the number of errors that (e,d) will correct

find the number of errors that (e,d) will correct.

  What are dissimilar types of errors

What are dissimilar types of errors.

  Developing countermeasures against dos attacks

Explain whether the administrators of server systems still have to be concerned about, and take the further countermeasures against DoS attacks, if so, what kinds of attacks may still happen, and what measures can be taken in order to decrease the..

  Program that computes the total cost of four years

Write down another Java program that computes the total cost of four years worth of tuition starting ten years from now.

  Describe the behaviour of the delete operation

What changes will you make to the above axioms in order to carry out the other two types of deletion discussed in class.

  Write down program for a bank account

Write down program for a bank account

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd