Question: (C++) Create a program that converts number grades to letter grades. Console (valid data) Letter Grade Converter Enter numerical grade (1-100): 90 Letter grade: A

(C++)

Create a program that converts number grades to letter grades.

Console (valid data)

Letter Grade Converter

Enter numerical grade (1-100): 90

Letter grade: A

Bye!

Console (invalid data 1)

Letter Grade Converter

Enter numerical grade (1-100): -1

Numerical grade can't be negative.

Bye!

Console (invalid data 2)

Letter Grade Converter

Enter numerical grade (1-100): 110

Numerical grade is too large.

Bye!

Specifications

  • The grading criteria is as follows:

A 90-100 B 80-89 C 70-79 D 60-69 F 0-59

  • For grades less than 0, display a message that indicates that the numerical grade cant be negative.
  • For grades greater than 100, display a message that indicates that the numerical grade is too large.
  • Use the following Control Structures to make decisions on the flow of you program. These should be nested as decided below.
  • To validate the entry, use an If.ThenElse to validate the number entered is valid.
  • If valid (Else), use a Switch.Case.BreakDefault to return valid letter grade.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!