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

  What is an interface

What is an interface

  Security devices for protection against different attack

Describe two or more attacks for which the routers (layer 3 devices) are vulnerable. Explain how these attacks are detected and prevented by the security devices.

  Translate following c++ program to pep/8 assembly language

Translate following C++ program to Pep/8 assembly language

  Make a view called v_no_cost

Using the ITD410_P1 database you created for the Independent Project in Unit 1, write scripts in a file known  ITD410_P3.SQL to create the following views. Remember to include a uses clause at the top of your script file to use the ITD410_P1 datab..

  Transmition of the packet

An Ethernet MAC sub layer receives the 1510 bytes of the data from LLC layer. Explain whether the data encapsulation can be within one frame?

  An expression for number of 2 x 2 switching elements needed

A stage of n x n banyan network consists of (n/2) 2 x 2 switching elements. The first stage directs packets to the right half of the network, the next stage to the correct quarter, and so on, until the packet is routed to the right output.

  Find sql statements and screenshots of the result

Any other information you would like to retrieve from the database.

  Exemplify the predisposition towards web development

PHP and ASP are both well suited for web development. What are some of the features and capabilities that exemplify this predisposition towards web development? Are there any implementations for running client-side PHP.

  What would be the output from each program

The following two programs differ in that one uses parseFloat and the other does not. What would be the output from each program if the user inputs 4 followed by 2.

  Determining the vulnerability in product

Specify the ethical considerations included when the security professional contacts the vendor regarding vulnerability in their product.

  How are css, dhtml and xml associated

Find out an article or a resource about CSS, DHTML or XML. Include the URL of the original article or resource and summarize it.

  Describe a project that increase an intranet

Describe a project that increase an Intranet.

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