Friday
May 24, 2013

Homework Help: c++

Posted by jermaine on Friday, May 18, 2012 at 10:53am.

Write a program that asks the user to input a grade that he or she received on an exam. The grade is an integer from 0 to 100 inclusive. The program should convert the numeric grade into the equivalent letter grade. Do the conversion by using a function Letter_Grade () that converts a numeric grade in the range 0-100 to the equivalent letter grade. The function should have one parameter, the integer grade. The return value of the function should be A if the grade is 90 to 100; B if the grade is 80 to 89; C if the grade is 70-79; D if the grade is 65 to 69; and F if the grade is 64 or lower. After converting the grade, the program should display the numeric grade and the equivalent letter grade.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Programming in c++ - Write a program in c++ that inputs a number [1-12] from the...
l;k - Write a program that asks the user to enter the student’s name (first...
programming - user to enter the student’s marks on four exams (use double ...
computer science - Class scores: Write a program that calculates the total grade...
programming logic - The program will accept user input to store the student'...
Programming - Write a pseudocode program that asks the user for an integer ...
programming - Using Raptor, create a condition loop that will ask the user for ...
computer science - write a program that prompts the user to input three numbers...
computer science - Write a program that prompts the user to input three numbers...
computer science - Write an Assembly program to determine the price of a car ...

For Further Reading

Search
Members
Community