IT211- Programming Exercise 2

1. Write a program that determines a student’s grade. The program will read three types of scores (Prelim, mid-term, and final scores) and determine the grade based on the following rules:

  • If the average score =100% will display Grade is A +
  • If the average score greater than 90 and less than 95% will display Grade is A -
  • If the average score greater than or equal 85% and less than 90 will display Grade is B +
  • If the average score greater than or equal 75% and less than 85 will display Grade is B -
  • If the average score greater than or equal 70% and less than 75 will display Grade is C
  • If the average score greater than or equal 50% and less than 70 will display Grade is D
  • If the average score is less than 50 will display Grade is F


2. Write a C++ program that prompts the user to input five integer values and find the greatest value of the five values. Do not use AND (&&) logical operator.


Post a Comment

0 Comments