Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

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

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

3. Evaluate your listeners and tailor your speech to them

Answered: 1 week ago