Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. Write a function Get_grade that takes a student's mark to determine the grade based on the table below, and returns the grade as

6. Write a function Get_grade that takes a student's mark to determine the grade based on the table below, and returns the grade as a letter character. Write a function to validate the user's input to verify that it is within 0 to 100 marks. 80-100 65-79 50-64 A B C 40-49 0-39 D F Write a function Get_grade_point that takes the student's letter grade (i.e. A,B,C,D,F) as a char and returns the corresponding numerical grade point (4.0,3.0,2.0,1.0,0.0). Use a switch statement. Write the main program that includes the statements as follows. int mark; char grade; cout < > mark; cout

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Give the numerical coefficient and the degree of each term. 2

Answered: 1 week ago