Lab 4d: Grade Checker
Write a function that returns a boolean true or false based on whether or not an integer is in the range 89 < x <=100.
The function prototype will look like this:
bool checkForA(int x);
- In the main, tell the user what the app does.
- Get the grade value of x from the user.
- Pass the users integer to the function. Use logic to determine if the grade is an A or not. Return true or false.
- In the main, use the function result to display the results to the user as follows:
You have earned an A. or
You have not earned an A.
This app was created for College of the Sequoias' (COS, Tulare, CA) CSCI 001.