Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by +

Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or . Their numeric values are 4, 3, 2, 1, and 0. There is no F+ or F. A + increases the numeric value by 0.3, a decreases it by 0.3. However, an A+ has value 4.0.

Compile your program. Be sure to handle any entry that is an invalid grade with an appropriate error message.

Run your program with inputs: A+, B+, C, C-, F+, F-, PASS

Example: Enter a letter grade: C-, The numeric value is 1.7

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions