Question: C++ only please! Part 4: Student Generated Code Assignments In these assignments you are asked to develop functions that have dynamic arrays as parameters. Remember
C++ only please!



Part 4: Student Generated Code Assignments In these assignments you are asked to develop functions that have dynamic arrays as parameters. Remember that dynamic arrays are accessed by a pointer variable and thus the parameters that serve as dynamic arrays are, in fact, pointer variables void sort(float score, int num scores):a prototype whose function has a // dynamic array as its first // parameter. It is a pointer variable int main() float score: a pointer variable score new float(num _scores); / allocation of the array sort(score,scoreSize); I/ call to the function Write a program that will read scores into an array. The size of the array should be input by the user (dynamic array). The program will find and print out the average of the scores. It will also call a function that will sort (using a bubble sort) the scores in ascending order. The values are then printed in this sorted order Write a program that will read scores into an array. The size of the array should be input by the user (dynamic array). The program will find and print out the average of the scores. It will also call a function that will sort (using a bubble sort) the scores in ascending order. The values are then printed in this sorted order Sample Run: Please input the number of scores Please enter a score 100 Please enter a score 90 Please enter a score 95 Please enter a score 100 Please enter a score 90 The average of the scores is 95 Here are the scores in ascending order 90 90 95 100 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
