Design a solution algorithm to read the electricity usage

Assignment Help Software Engineering
Reference no: EM1379990

Question: An electricity supply authority records on an electricity usage document the value of electricity that each consumer uses. This document 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: EM1379990

Questions Cloud

Identify key questions learned from our course to date : Identify key questions learned from our course to date that will test merit of your idea. Respond to at least two of your fellow students' postings.
The bonds have a current market value : A bond that has a 1000.00 par value as well as a contract interest rate of 11.7%. The bonds have a current market value of 1,125 as well as will mature in 10 years
What is reorder point if annual holding cost given : K-Pro Automotive Shop purchases 120,000 oil filters annually which are sold at an average of 400 per day over course of a year at its national retail outlets. If annual holding cost is fifty cents per filter also ordering cost is $75 per order, wh..
Explain about just-in-time inventory systems : Find a paper article online about just-in-time inventory systems. In the subject line of your post include the title of the article that you read.
Design a solution algorithm to read the electricity usage : An electricity supply authority records on an electricity usage document the value of electricity that each consumer uses.
What should standards be also how should they be enforced : Based on se implications, should enforceable labour standards (a social clause) be added to free trade agreements? If so, what should standards be also how should they be enforced.
What problems is this firm probable to encounter : What problems is this firm probable to encounter when it uses team selling? Hint- Utilize an Internet search to learn more about these kinds of firms.
Material cost to produce the devices is : Material cost to produce the devices is 40% of their prices. The company utilized ten workers who can produce an average of 30 and 50 devices of 1st and 2nd types per day.
Who wins tropical novelties demands : She calls Tropical Novelties, speaks with a sales representative, notifies seller that she is cancelling contract due to its non-performance

Reviews

Write a Review

Software Engineering Questions & Answers

  Challenges and difficulties of applying software metrics

How to execute software measurement? Write dwon challenges and difficulties of applying software metrics?

  Create a diagram for many-to-many relationship of entity

One-to-many or many-to-many relationship. Then, using short-hand notation introduced in text, create a diagram for each of the relationships.

  Determine the output of the code sequenc

Determine the output of this code sequence? The user successively enters 3, 5, and -1.

  Importance of udp and the relationship to tcp

Discuss and explain what the UDP does and its relationship to TCP in what ways is it similar and different, and why would we use UDP, and why can not a user program access IP directly?

  Design pseudocode and flowchart for swallowing a pill

Write a solution in pseudocode for swallowing a pill. Translate solution into flowchart. Write about which tool they like best and why? Which tool do they think would be easiest to learn?

  Create a solution in java file

Assume you have been asked through a tax return preparer to create a program which will help him calculate taxes. This preparer will at most have one hundred customers.

  Create flowchart to accept length of base of triangle

Create a flowchart that will accept the length of the base and height of a triangle and print the area. Area of a triangle is : area = 1/2b*h ; where b = base and h = height.

  Explain how firm testing for each development method

Research, write, and provide a 4-6 page proposal of the alternative methods the firm might consider for completing the Frequent Shopper Program. Explain how the firm would conduct testing for each development method.

  Indirect port addressing capability

Determine how many ports can the Z8000 address in each I/O addressing mode?

  Determine order that breadth first search will expand nodes

Determine the order that breadth first search will expand the nodes? S,A,B,D,C,E,G. What is the order that depth first search will expand nodes? S,B,E,F,D,G

  Draw e-r diagram for doctors prescribe drugs for patients

Draw an E/R diagram for the following situation: Doctors prescribe drugs for patients. A given doctor can prescribe many drugs for a certain patient.

  Tentative list of requirements for proposed system

Create a tentative list of requirements for the proposed system. possible solution that could meet the business requirements and provide a short description and indicate participating actors and role Context diagram, DFD.

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