Question: For this assignment, you will write a C++ program that will compare two students grades. Each student will have a set of 5 grades. Ask

- More practice looping - More practice with functions The Assignment For this assignment, you will write a C++ program that will compare two students grades. Each student will have a set of 5 grades. Ask the user to enter 5 grades twice. Store each set in an array. Compare the arrays to determine if they are the same or different and output the appropriate message according to the sample runs. Program Requirements 1. Follow the style guide. 2. Use two arrays of doubles for the grades. 3. Use a global constant for the max size of the arrays 4. Use a void function called GetGrades that accepts a single argument (one array) and prompts the user for grades to enter. 5. Use a boolean function called GradesAreSame that accepts two arguments (both arrays) as constant parameters. It should return true if both arrays are the same and false if the arrays are different. Getting Student One Enter grade: 5 Enter grade: 5 Enter grade: 6 Enter grade: 6 Enter grade: 7 Getting Student Two Enter grade: 5 Enter grade: 5 Enter grade: 6 Enter grade: 6 Enter grade: 7 Both students have the SAME grades! 2. Sample Run 2 Getting Student one Enter grade: 100.00 Enter grade: 98.87 Enter grade: 87.00 Enter grade: 77.98 Enter grade: 33.23 Getting Student Two Enter grade: 100.00 Enter grade: 97.87 Enter grade: 33.23 Enter grade: 87.00 Enter grade: 77.98 Both students have DIFFERENT grades
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
