In: Computer Science
A student had just collected three quiz results from his lecturer. Find and display the highest quiz score.
Indicate the algorithm (variable declaration / input / process / output) then draw the flowchart.
Algorithm which will find the maximum quiz score among the three quiz scores.
Algorithm :-
Step 1: START
Step 2: [ Declare variables ]
Declare three integers for quiz1, quiz2, quiz3, max
Step 3: Define values of quiz1, quiz2, quiz3
Step 4: [ Check conditiones for three numbers]
if quiz1 > quiz2
true then, check quiz1 with quiz3
if quiz1 > quiz3 then
true then, store max = quiz1
otherwise
store max = quiz3
otherwise
if quiz2 > quiz3 then
true then, store max = quiz2
otherwise
store max = quiz3
Step 5: Display max value
Step 6: STOP
Flowchart:-
I hope you will understand the above flowchart and algorithm.
Do you feel neddful and useful then please upvote me.
Thank you.