Write a program that calculates average of a number

Assignment Help Programming Languages
Reference no: EM131299096

Repetition Statements In this assignment, you will design a program to perform the following task: Write a program to calculate and display the average of an unknown number of positive floating point values entered by a user. The input is terminated by entry of any negative number.

1. Provide your analysis for the following problem statement: You need to write a program that calculates the average of a number of positive floating point values entered by a user. The number of values entered by the user will be different each time, and the user will indicate they have entered all values by inputting a negative number. Do not include the negative number in the average. Your analysis should be clearly written and demonstrate your thought process and steps used to analyze the problem. Be sure to include what is the required output. What is the necessary input and how you will obtain the required output from the given input. Also, include your variable names and definitions. Be sure to describe all necessary formulas and show sample calculations that show how the process works.

2. Provide your program design for the program you analyzed for calculating the average of an unknown number of floating point values. Be sure to describe the fundamental tasks (i.e., things your program must do) needed to solve the problem so you can use a modular design. Provide pseudocode of your overall design that includes the Main module and the order of the module calls, and a flow chart. You can use Word, Powerpoint, Visio or any software you have available that will allow to draw shapes and connectors. You may also download and use Raptor. Include header and step comments in your pseudocode.

3. Prepare input data (Test data) along with expected output for testing your program Your test data should be presented in the form of a table as was shown. Remember that you will be testing that a negative number ends the input, so your test data needs to include the negative number that marks the end of the input. Your test data should not show internal calculations or variables.

Reference no: EM131299096

Questions Cloud

Agent for an injured plaintiff : A lawyer works as an agent for an injured plaintiff. By working harder, the lawyer can increasethe payoff to her plaintiff. Assume there is no randomness;
Determine the am noise resulting from in : Determine the AM noise resulting from In.- Determine how the average value of the varactor capacitance varies with In.
Describe the nature of reform in the united states : Explain policymaking and legal process that underpin the individual health care and public health systems. Describe the nature of reform in the United States and the goals of healthcare reform
Describe the difference between the nyse and nasdaq : Describe the difference between the NYSE and NASDAQ. Define capitalization (or market capitalization). Describe the importance of the DOW JONES Index, What this index represents
Write a program that calculates average of a number : Provide your analysis for the following problem statement: You need to write a program that calculates the average of a number of positive floating point values entered by a user.
Is the graph still a correct display of the data : The artist has tried to make the graph attractive by using the wheel of a car for the "pie." Is the graph still a correct display of the data? Explain your answer.
Calculate the hazard quotient for drinking water : Using the equation for calculating dose from ingestion of groundwater on page 442 of the text, calculate the Hazard Quotient for drinking water containing allyl alcohol at a concentration of 50 µg/L.
Comparison between caulometry and electrogravimetry : Ask comparison between caulometry and electrogravimetry question #Minimum 100 words
Why is it important that a sample be random : Why is it important that a sample be random? What can you do if you cannot use a probability sampling technique

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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