I’m studying for my Computer Science class and need an explanation.
Intro to programming c++ (Tony Gaddis) version 9
Chapter 7 Homework 1
Homework 7-1:
Programming Challenge: CHAPTER 6 PC 12 – Star Search, now with arrays!
Modify this program and its functions to use arrays instead of individual variables to contain the scores. This means that the functions that once received five scores will now receive as their parameters the name of the array and the size of that array. For example, one of the prototypes will be:
double getSmallest(double theArray [], int theSize);
The only place in your code where the number 5 will appear is when you declare the size of the arrays in the main. Change that lone 5 to say a 10, and your program should request and process 10 scores.
Also note that the getJudgeData() function and the accompanying validation function are reused exactly as they were in the previous assignment. Do not change these functions at all!
Deliverables: The .cpp file and a screen shot of this Programming Challenge in action.
Chapter 7 Homework 2
Homework 7-2:
Programming Challenge: 11 – Exam Grader (parallel arrays)
Use functions as appropriate to perform the various tasks required.
Use the sample input files provided on Moodle for your screen shot.
Deliverables: The .cpp file and screen shot for this Programming Challenge.