Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello I'm sorry but I'm having trouble doing this assignment: SCORES practicing control structures PREPARATION -Finish reading through chapter 3. -Review up through Week5 of

Hello I'm sorry but I'm having trouble doing this assignment:

SCORES practicing control structures PREPARATION

-Finish reading through chapter 3.

-Review up through Week5 of Class Notes (pay attention to C++ switch, for loop, and multi-way if-else

GOALS

-Practice translating pseudocode to C++ code

-Practice testing skills using file redirection & output display tools

-Create, implement, test, and submit a C++ program that performs the TASK specified in the ACTIVITY below

-NEW: The C++ FLOW CONTROL constructs: switch, for, multi-way if-else

ACTIVITY

PSEUDOCODE TRANSLATION:

You will start with the provided myswitch.cpp pseudocode, based on the authors 0306.cpp program file. You will modify it so that it asks the user for input of 5 scores (between 0-20). Your program will calculate the total score (0-100). Based on the total score, your program will assign a letter grade {A, B, C, D, F}. Based on the letter grade, your program will print an appropriate statement.

TASK:

You must translate the myswitch pseudocode (file provided) to appropriate C++ statements, adhering to the requested control structures for each main task. Your program should include the prompts and output as indicated below. Note: the spacing is minimal in this output (1 blank after the colon, and no unecessary blank lines).

rrenner@o251-01:~/csci111/practice/week5 524>lab6

Enter score between 0-20: 18

Enter score between 0-20: 17

Enter score between 0-20: 20

Enter score between 0-20: 12

Enter score between 0-20: 16

83 pts: Good Job!

rrenner@o251-01:~/csci111/practice/week5 525>

MAPPING:

SCORE GRADE OUTPUT (## is the total score)

90-100 A ## pts: Excellent!

80-89 B ## pts: Good Job!

70-79 C ## pts: Passing!

60-69 D ## pts: Hang in there!

less than 60 F ## pts: Work harder!

non-value other Program Error!

Thank You for your help

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