Question: Assignment #7 Description Write the necessary program in C++ that does the following: 1. Declares a whole number type constant value space called MAX_ITEMS and
Assignment #7 Description Write the necessary program in C++ that does the following: 1. Declares a whole number type constant value space called MAX_ITEMS and Stores the value of 6 2. Declares a string type of variable firstName to store the first name of a student 3. Declares a Decimal number type of variable spaces called test score, total (initialize to zero), average 4. Declares a string type of variable called letter grade Assignment #7 Description (continued) 1. Asks (prompts) the user to input a persons name by using the prompt Enter a name: on the screen, 2. after the user entered the input, for example, Carson: 3. Reads the users inputted name from the keyboard and stores it in the array variable created for user first name Assignment #7 Description (continued) 4. Using a for repetition structure that runs MAX_ITEMS number of times, a) Asks (prompts) the user to input that persons test score by name using the prompt Enters test score: on the screen, for example: b) Reads the inputted score and stores it in the test score variable space c) Adds the test score to the total d) Repeats getting all the MAX_ITEMS number of scores Assignment #7 Description (continued) 5. After finding the total in the loop, calculate the average and store it in the average space 6. using an if..else structure: a) Uses the average and finds the letter grade for the student and stores it in the letter grade variable space b) Use this grading scale: 7. Displays the name of the student then the total, average, and a letter grade of that student:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
