Calculate statistical information on list of integer number

Assignment Help Computer Engineering
Reference no: EM132208507

Question :

Write a program that will calculate statistical information on a list of integer numbers.

1. Your main program must call three functions: readData, calculateStats, and saveResults.

2. Function readData will prompt the user for a file that contains the data, one number per line. Reads the data into the array and return the actual number of numbers read. Do not read more than the maximum number that your program can handle. Output "Too many values, max. = #"

3. Function calculateStats will return the double average and standard deviation via call by reference parameters. The function itself does not return anything.

4. Function saveResults will prompt the user for a file name to send the output to. The required output format:

Data: filename

### ### ### ### ### ###

...

### ###

Number of inputs: ###

Average: #.##

Standard deviation: #.##

The data are to be printed 6 values per line.

5. Your program must be able to process up to 100 numbers. Must use partially-filled array. Only process up to this maximum numbers and ignore the rest.

6. Call calculateStats only if there are data read from the file (actualSize > 0).

7. The result output file will contain all the numbers 10 per line follows by the average and standard deviation.

8. All data must be passed between the functions. NO global variables or arrays.

Reference no: EM132208507

Questions Cloud

Convert these two strings to doubles : Write a program called CompareStrings, Convert these two strings to doubles.
Find the number of students having greater score : Find the average marks if the class and also find the number of students having greater score then average score of class.
Print the initial database of accounts : The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, balance inquiries, close accounts, etc..
Write a program that finds the area of a circle : Write a program called cirearea() that finds the area of a circle. It should take an argument of type float and return an argument of the same type.
Calculate statistical information on list of integer number : Return the double average and standard deviation via call by reference parameters. The function itself does not return anything.
Write a program that calculates the occupancy rate : Write a program that calculates the occupancy rate for a hotel. The program should start by asking the user how many floors the hotel has.
Calculate the balance of a savings account at the end : Write a program that calculates the balance of a savings account at the end of a period of time.
Simulate a coin toss and determines if it is realistic : Prompt the user to enter the number of times the coins should be tossed. The coin should be tossed at least 10 times.
Calculate and print the sum of the first 100 even numbers : Write a program to calculate and print the sum of the first 100 even numbers. Hint: You need a running sum.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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