Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ . . . Assignment #7 Steps to submit Complete the assignment #7 and place your work in Dropbox folder, W7- Dropbox Assignment. Make sure

C++ image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
. . . Assignment #7 Steps to submit Complete the assignment #7 and place your work in Dropbox folder, "W7- Dropbox Assignment". Make sure you turn in your work in the following format: {Last Name}, {First Name}_A07.cpp e.g. - "Doe, John_A07.cpp" Make sure to place your name in the program before compiling. "This program was written by, John Doe." NOTE Your program must have a multiline commented Banner with your name, course number title, assignment number, Semester/year Program (all the statements) must be well-commented Program must be properly indented . . 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 testScore, total (initialize to zero), average 4. Declares a string type of variable called letterGrade Assignment #7 Description (continued...) 1. Asks (prompts) the user to input a person's name by using the prompt "Enter a name: "on the screen, for example: Enter a name: 2. after user entered the input, for example, Carson: Enter a name: Carson 3. Reads the user's 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 person's test score by name using the prompt "Enter 's test score " on the screen, for example: Enter Carson's score for test # 1: b) Reads the inputted score and stores it in the testscore variable space c) Adds the testScore 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 letterGrade variable space b) Use this grading scale: >90 A >-60D >-80 B -70 C 7. Displays the name of the student then the total, average and letter grade of that student: For example: Name Total Average Letter Grade Carson 477 79.5 C

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions