Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started