Question
The objective of this programming assignment is to practice with pointer syntax. *you do no have to use functions You are trying to calculate your
The objective of this programming assignment is to practice with pointer syntax. *you do no 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. Use a loop to access the array. 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 lectures. I showed 5 different ways in a sample program) 3. Your program should ask user to enter all data, calculate and display the average, and display all values with the same format as sample output (all functionalities must be implemented with pointer syntax onlyi.e. not grades[i]) Other Specifications: 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.
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