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 minorExam
Declare variable majorExam
Declare variable grade
Read minorExam
Read majorExam
Set grade=1/3 *minorExam+2/3*majorExam
Display the grade of a student in the exam
Stop
Comments
Leave a comment