Answered step by step
Verified Expert Solution
Link Copied!

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++

image text in transcribed

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 GPA

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

Question Who can establish a Keogh retirement plan?

Answered: 1 week ago