Write a C++ program that will allow the user to input the First Name, Last name, Middle Initial, and grade of a student. The following conditions must be observed: a. If the grade input is 96-100, the remark is “ you performed an excellent job! Keep it up !” b. If the grade input is 91-95, the remark is “ you performed a very satisfactory Job! Keep it up !” c. If the grade input is 86-90, the remark is “ you have satisfactory performance, you can improve some more. ” d. If the grade input is 80-85, the remark is “ your performance is fair, try harder” e. If the grade input is 75-79, the remark is “ your performance needs Improvement, you can do it” f. If the grade input is below 75, the remark is “ we’re sorry but you failed, we know you can do better next time” SPECIFICATIONS that you need to follow: - You may only use the codes that we studied under our lectures. - All lines of codes should have a comment. - Save and Submit your cpp file as Surname - PE (Example: Pangaliman - PE.cpp) Test your program using the following TEST CASES: CASE 1: Input first name: Juan Input last name: Cruz Input middle Initial: D Input grade: 97 Result: Juan D Cruz, you performed an excellent job! Keep it up! CASE 2: Input first name: Maria Input last name: Garcia Input middle Initial: A Input grade: 49 Result: Maria A Garcia, we’re sorry but you failed, we know you can do better next time. CASE 3: Input first name: Ana Input last name: Aquino Input middle Initial: B Input grade: 85 Result: Ana B Aquino, your performance is fair, try harder.
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
PROBLEM:
Write a C++ program that will allow the user to input the First Name, Last name, Middle Initial, and grade of a student.
The following conditions must be observed:
a. If the grade input is 96-100, the remark is “ you performed an excellent job! Keep it up !”
b. If the grade input is 91-95, the remark is “ you performed a very satisfactory Job! Keep it up !”
c. If the grade input is 86-90, the remark is “ you have satisfactory performance, you can improve some more. ”
d. If the grade input is 80-85, the remark is “ your performance is fair, try harder”
e. If the grade input is 75-79, the remark is “ your performance needs Improvement, you can do it”
f. If the grade input is below 75, the remark is “ we’re sorry but you failed, we know you can do better next time”
SPECIFICATIONS that you need to follow:
- You may only use the codes that we studied under our lectures.
- All lines of codes should have a comment.
- Save and Submit your cpp file as Surname - PE (Example: Pangaliman - PE.cpp)
Test your program using the following TEST CASES:
CASE 1:
Input first name: Juan
Input last name: Cruz
Input middle Initial: D
Input grade: 97
Result: Juan D Cruz, you performed an excellent job! Keep it up!
CASE 2:
Input first name: Maria
Input last name: Garcia
Input middle Initial: A
Input grade: 49
Result: Maria A Garcia, we’re sorry but you failed, we know you can do better next time.
CASE 3:
Input first name: Ana
Input last name: Aquino
Input middle Initial: B
Input grade: 85
Result: Ana B Aquino, your performance is fair, try harder.
Step by step
Solved in 6 steps with 4 images