Compute and display the grade of a student in the exam. Grade is equal to 1/3 of the minor exam and 2/3 of the major exam.
Start
Declare variable double minorExam
Declare variable double majorExam
Declare variable double grade
Read minorExam from the user
Read majorExam from the user
Set grade=1/3 *minorExam+2/3*majorExam
Display the grade of a student
Stop
Comments
Leave a comment