Write an algorithm to calculate the percentage of a student.
14 answers
I don't know much about programming, but I don't believe that "calculate the percentage of a student" is the full question.
Write an algorithm to calculate the percentage of a student
For knowledge
step 1: start
step 2: read marks m1, m2, m3
step 3: calculate sum = m1+m2+m3
step 4: calculate per=(sum/3)*100
step 5: display sum, per
step 6: stop
step 2: read marks m1, m2, m3
step 3: calculate sum = m1+m2+m3
step 4: calculate per=(sum/3)*100
step 5: display sum, per
step 6: stop
Step 1 : start
Step 2 : Input a , b , c ,d
Step 3 : Find the sum as e = a + b + c + d
Step 4 : Find the quotient as f = e / 200 ( total Mark's)
Step 5 : Find the product as g = f * 100
Step 6 : Print g
Step 7 : Stop
Step 2 : Input a , b , c ,d
Step 3 : Find the sum as e = a + b + c + d
Step 4 : Find the quotient as f = e / 200 ( total Mark's)
Step 5 : Find the product as g = f * 100
Step 6 : Print g
Step 7 : Stop
To know how to calculate algorithm
Give the flowchart
write an algorithm to calculate the total
Student mark pseudocode
Efyi
I gave 👍 to everyone except Fuyree 👎
Read five subject marks and store them into variables.
Calculate sum of all subjects and store in total = eng + phy + chem + math + comp.
Divide sum of all subjects by total number of subject to find average i.e. average = total / 5.
Calculate percentage using percentage = (total / 500) * 100.
Finally, print resultant values total, average and percentage.
Calculate sum of all subjects and store in total = eng + phy + chem + math + comp.
Divide sum of all subjects by total number of subject to find average i.e. average = total / 5.
Calculate percentage using percentage = (total / 500) * 100.
Finally, print resultant values total, average and percentage.
Step 1:Start
Step 2:Read m1,m2, m3
Step 3:Sum =m1+m2+m3
Step 4:Percantage =(sum/3)*100
Step 5:Write percantage
Step 6:Stop
Step 2:Read m1,m2, m3
Step 3:Sum =m1+m2+m3
Step 4:Percantage =(sum/3)*100
Step 5:Write percantage
Step 6:Stop
STEP1: START
STEP2: OUTPUT "READ ALL INTEGERS"
STEP3: OUTPUT "PERCENTAGE OF INTEGERS I1,I2,I3,I4,I5,I6"
STEP4: SUM = I1+I2+I3+I4+I5+I6
STEP5: PERCENTAGE = (SUM/600)*100
STEP6:PRINT PERCENTAGE
STEP7:STOP
NOTE:IN STEP 4 WE WILL GET THE SUM OF ALL VALUES OR NUMBERS GETTEN IN EXAMS,,,AND STEP 5 WE WILL GET THE SUM OF NUMBERS AND WILL DIVIDE WITH TOTAL NUMBER.
THANKS
STEP2: OUTPUT "READ ALL INTEGERS"
STEP3: OUTPUT "PERCENTAGE OF INTEGERS I1,I2,I3,I4,I5,I6"
STEP4: SUM = I1+I2+I3+I4+I5+I6
STEP5: PERCENTAGE = (SUM/600)*100
STEP6:PRINT PERCENTAGE
STEP7:STOP
NOTE:IN STEP 4 WE WILL GET THE SUM OF ALL VALUES OR NUMBERS GETTEN IN EXAMS,,,AND STEP 5 WE WILL GET THE SUM OF NUMBERS AND WILL DIVIDE WITH TOTAL NUMBER.
THANKS