Answered step by step
Verified Expert Solution
Question
1 Approved Answer
int main ( ) { do { system ( cls ) ; cout < < tCMPR 1 2 1 : Chapter
int main
do
systemcls;
cout
tCMPR: Chapter Pointer assignments by Prof Q ;
cout
t string char;
cout
t Drop the Lowest Score";
cout
t Case Study Modification #;
cout
t Case Study Modification #;
cout
t Median Function";
cout
t Reverse Array";
cout
t Array Expander";
cout
t Element Shifter";
cout
t string char;
cout
t Exit";
cout
t string char;
cout
;
switch inputIntegertOption:
case : exit;
case : challenge; break;
case : challenge; break;
case : challenge; break;
case : challenge; break;
case : challenge; break;
case : challenge; break;
case : challenge; break;
default: cout
tERROR: Invalid option.
;
systempause;
while true;
return ;
void challenge
int size inputInteger
Enter the size of the dynamic array: true;
double scores new doublesize;
srandtime;
int sum ;
for int i ; i size; i
scoresi rand;
cout scores i
;
sum scores i;
no ascending order sort
not eliminate the lowest score from the array
cout
Average: staticcastsumsize
;
delete scores;
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