Question: FOR CHOICE 2: Grade Elimination- dynamic arrays and exception handling 1. Use function int getSize() to enter the desired size for grades (see output below)

FOR CHOICE 2: Grade Elimination- dynamic arrays and exception handling 1. Use function int getSize() to enter the desired size for grades (see output below) pption2 : Grade Elimination Enter your desired number of grades [5 to 10 only]: Option2 : Grade Elimination enter your desired number of grades [5 to 10 only]:3 3 invalid... please re-enter Press any key to continue . . ***NOTE: Validate input using exception handling (try throw catch) if the user attempts to enter an invalid input ask the user to re-enter the value 2. Use function void getInput(double *ptr, int xsize) to populate and input the n number of grades (see below example) enter 5 grades grade[1]:34 grade[2]:56 grade [3]:78 grade[4]:90 grade[5]:78 3. Use function double getElim(double *ptr, int xsize) to process, eliminate and display to value to be eliminated. Then, output the average in the main program and display the average value in 2 decimal places. (see the output below) 34 is eliminated average is 75.50 FOR CHOICE 2: Grade Elimination- dynamic arrays and exception handling 1. Use function int getSize() to enter the desired size for grades (see output below) pption2 : Grade Elimination Enter your desired number of grades [5 to 10 only]: Option2 : Grade Elimination enter your desired number of grades [5 to 10 only]:3 3 invalid... please re-enter Press any key to continue . . ***NOTE: Validate input using exception handling (try throw catch) if the user attempts to enter an invalid input ask the user to re-enter the value 2. Use function void getInput(double *ptr, int xsize) to populate and input the n number of grades (see below example) enter 5 grades grade[1]:34 grade[2]:56 grade [3]:78 grade[4]:90 grade[5]:78 3. Use function double getElim(double *ptr, int xsize) to process, eliminate and display to value to be eliminated. Then, output the average in the main program and display the average value in 2 decimal places. (see the output below) 34 is eliminated average is 75.50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
