Provide your analysis for the following problem statement


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.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Provide your analysis for the following problem statement
Reference No:- TGS01701796

Now Priced at $40 (50% Discount)

Recommended (94%)

Rated (4.6/5)