Question: Program Description: *The objective of this programming assignment is to practice with pointer parameters. This assignment is very similar to programming assignment #2, but you




Program Description: *The objective of this programming assignment is to practice with pointer parameters. This assignment is very similar to programming assignment #2, but you have to use functions You are trying to calculate your final grades based on 10 quizzes, and this program will help you to do so. You need the following variables in main function. const int SIZE =10; int quizzes[SIZE]; int * ptr = quizzes; 1. You are required to use the pointer ptr as pointer syntax to manipulate the array (not quizzes[i]). 2. You are also required to use at least 3 different ways of pointer manipulations to the array. (review class notes) 3. Your program should ask user to enter all data, calculate and display an average, display all values with the same format as sample output and sort all values from smallest to biggest using bubble sort (all functionalities must be implemented with pointer syntax only-i.e. not grades[i]) 4. The following functions are needed: *Use the function header provided below, you may not change the function headers 1. Use fixed setprecision(2) to display two decimal values for average 2. Grades should be between 0 and 100 (inclusive, both 0 and 100 are acceptable) 3. Follow program style guideline very carefully. a. Points will be taken off for all violations. b. Listed below are some common mistakes, please verify. i. There should be no global constant variables at all. ii. All functions must have prototypes. iii. Store all values as variables, do not hardcode any values. 1. const int MIN_GRADE =0; 2. const int MAX_GRADE =100; iv. Use a line separator to separate blocks of programs. (//****101stars******), line separator comes with a blank line before and after. 1. Use it between each function definition. 2. Separate function prototypes and main function definitions 3. Between "using namespace std;" and function prototypes/main 4. All assignments must be submitted and run as specified to pass the course (see syllabus) 5. Copy and paste your output at the end of your program. Comment out the output lines. 6. Your output format has to match with my output format, including the blank lines. 7. Submit your assignment (.cpp only) on Canvas before the due date. Please enter your quiz grades: Quiz 1: 90 Quiz 2: -9 !!!Grades cannot be less than or more than 100 Quiz 2: 91 Quiz 3: 89 Quiz 4: 105 !l!Grades cannot be less than or more than 100 Quiz 4: 85 Quiz 5: 78 Quiz 6: 65 Quiz 7: 64 Quiz 8: 92 Quiz 9: 75 Quiz 10: 49 average is: 77.80 after sort, display all values: Program ended with exit code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
