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

  Performing calculations through class

Build a class known as Rational for carrying out the arithmetic with fractions. Write down a driver program in order to test your class. Addition of the two Rational numbers. Result of addition must be stored in reduced form.

  Distinguish between open and closed applications.

explain  HTML, XML and Java programming. What is the difference between the three.

  Developing erd on basis of crows foot model

Develop an ERD based on Crow’s Foot model, utilizing the following requirements. An INVOICE is written by a SALESREP. Each sales representative may write several invoices, however each invoice is written by the single sales representative.

  What condition is it appropriate to buy commercial

Under what condition is it appropriate to develop software in house and Why? Under what circumstances is it appropriate to commission development of custom software? Why? Under what circumstance is it appropriate to buy commercial or COTS software..

  Image smoothing with gaussian masks and c++

Implement the image smoothing utilizing the convolution with Gaussian masks with C++. You must utilize 2 input images which are pgm files. First, implement 2D Gaussian convolution utilizing the 1D Gaussian masks.

  Why some companies may avoid beta releases

Cross (2007) discusses the benefits for a software company to release beta versions instead of final versions of products. What is Cross's reasoning? Do you agree with it? Explain why some companies may avoid beta releases from software companies.

  How the estimated budget is as close to reality as possible

How important is it to be accurate with respect to the estimated budget and actual budget of a project.

  What is redundant data and why should it be avoided

What are the advantages of using relational databases in the development of interactive web applications.

  How to illustrate decision table to represent treatment

How to illustrate decision table to represent treatment? Create a structured English version based on the following dialogue obtained by the Systems Analyst from the client interview below.

  Plan sequence using d flip flops

plan a circuit that would count in the following sequence using D Flip Flops

  Get the cylinder class from the base circle class

Get the cylinder class from the base circle class

  How many address lines are needed to access memory

How many address lines are needed to access memory.

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