Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

**IN PYTHON**

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.

Enter a Letter grade: B-

The numeric value is 2.7

Test Cases:

B- (should print 2.7)

A+ (should print 4.0)

B+ (should print 3.3)

C (should print 2.0)

F+ (should print 0.0)

G (should print no such 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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago