1. Declare/define the variable/constant as indicated:
a. a variable to store the grade for a student (as whole number)
b. a variable to store a letter grade for a course, like A, B, or C
c. a variable to store an average for a student (may have decimal places)
d. a variable to represent if a student passed the course or not, with a value of TRUE or FALSE e. a constant to represent the passing grade of 65
a. a variable to store the grade for a student (as whole number) int grade; b. a variable to store a letter grade for a course, like A, B, or C char letterGrade; c. a variable to store an average for a student (may have decimal places) double average; d. a variable to represent if a student passed the course or not, with a value of TRUE or FALSE In C/C++: bool passed; In Java: boolean passed; e. a constant to represent the passing grade of 65 In C/C++: const int GRADE = 65; In Java: final int GRADE = 65;
Get Answers For Free
Most questions answered within 1 hours.