Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We need to translate these letter grades into number to calclulate a grade point average (GPA). Write a C++ program that converts a letter grade

We need to translate these letter grades into number to calclulate a grade point average (GPA). Write a C++ program that converts a letter grade into it's numerical value using the following conversion table.

Letter Grade GPA

A 4.00 A- 3.67

B+ 3.33

B 3.00

B- 2.67

C+ 2.33

C 2.00

C- 1.67

D+ 1.33

D 1.00

D- 0.67

F 0.00

Convert the letter grade into the numerical equivalent shown above using a series of if statements.Display the output using the default formatting and precision for the numbers do NOT add any numerical formatting statements to the code.

How the program should look like at the end.

Enter a letter grade: B-

The numeric value is 2.67

or

Enter a letter grade: A+

The numeric value is 4.0

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

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

Find LCM and GCF of each pair 16, 36

Answered: 1 week ago