Wednesday
April 23, 2014

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...
Programming - Write a pseudocode program that asks the user for an integer ...
Programming in c++ - Draw a flow-chart and Write a program that asks the user ...
computer sicence C++ - Americans spell differently from Canadians. Americans ...
programming logic - The program will accept user input to store the student's ...
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 ...
java - Write a java application that finds the smallest of several integers. ...

Search
Members