Question: Write a program that reads a collections of values (decimal numbers) from the input file and - finds the smallest value, - find the greatest

Write a program that reads a collections of values (decimal numbers) from the input file and - finds the smallest value, - find the greatest value, - finds the average of all values, - finds the average of all positive values, - finds the average of all negatice values, - reports how many zeros, - reports how many positive values are in the file, - reports how many negative values are in the file, - sorts them and stores the sorted collection of values in an output file. All the information (except for the sorted collection) should be displayed on the screen. Each item above (finding smallest value,etc.) should be defined as a function. (C++)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!