The document describes a process that takes 3 subject marks as input, calculates the average mark by adding the subjects together and dividing by 3, and then outputs either "You have passed" if the average is 70 or above or "You need to work harder" if the average is below 70.
The document describes a process that takes 3 subject marks as input, calculates the average mark by adding the subjects together and dividing by 3, and then outputs either "You have passed" if the average is 70 or above or "You need to work harder" if the average is below 70.
The document describes a process that takes 3 subject marks as input, calculates the average mark by adding the subjects together and dividing by 3, and then outputs either "You have passed" if the average is 70 or above or "You need to work harder" if the average is below 70.
Sub2 Average mark (Avg mark) = You have passed / Sub3 Sub1+ Sub2 + Sub3 / 3 You need to work harder Print Avg mark If Avg mark >= 70 Print “You have passed” else Print “You need to work harder”