Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ Write a program using branching logic to convert grades from the 0.0 - 4.0 grading scale to the 0 - 100 grading scale. a)
c++
Write a program using branching logic to convert grades from the 0.0 - 4.0 grading scale to the 0 - 100 grading scale. a) Accept a float grade value from 0 to 100. If the input is not within the proper range, inform the user and end the program. b) Set the console output precision to display 0.0 to 4.0 grades in the correct format (using two decimal places). c) Use branching logic to output the converted GPA value and the associated letter grade based upon the provided conversion table. Conversion Table A A- B+ B B- C+ Audem 4.00 3.70 3.30 3.00 2.70 2.30 2.00 1.70 1.30 1.00 0.70 0.00 96-100 90-95 87-89 84-86 80-83 77-79 74-76 70-73 67-69 64-66 60-63 0-59 C- D+ D D- Example output 1 (invalid input): GPA Conversion Enter your grade: -10 You have not entered a grade between 0 and 100. EXIT PROGRAM! Example output 2 (valid input): GPA Conversion Enter your grade: 83.5 Your will receive a letter grade of B- with a 2.70 GPAStep 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