Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please solve it as possible as soon Home Question One: Your teacher asked you to create a header file that calculates and returns the statistics
please solve it as possible as soon
Home Question One: Your teacher asked you to create a header file that calculates and returns the statistics on the matrix of grades for ten students, and they can be of any type of numerical data (Template). Test these functions by creating a main program that allows the user to enter a series of numbers (throw an exception if the number is negative), and then prepare statistics for these numbers, which are as follows: Calculating average of the numbers. . Find the largest number. Find the smallest number. Calculate the median. Order numbers in ascending and descending. Remember to calculate the median, sort the list and return the mean value. If the list size is an even number of items, return the average of the two median values. . Time AM Question Two: which of the following is the correct syntax to create a file input stream in C++? a) ifstream INPUT ("average.txt"); b) FILE* INPUT = fopen("average", ios::in || ios:out); c) INFILE INPUT.open("average ", ios::in ); d) FILE* INPUT = fopen("average ", ios::in); Time : AM Question Three: Write a function called printPrime that takes as parameters an input file stream called Numbers.txt" and print prime numbers to an output file stream called Prime.txt. Note that file contain numbers up to 777. Time AMStep 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