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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started