1.The council would like to know how many students in a certain class is qualified to vote this coming campus election. Only student (denoted by S) of BIT firs year students , and the age of each student in that class . Your flowchart should accept the value of age students who are qualified to vote. If the class size is 5 then , your flowchart should accept the age of 5 students (one at a time) if students above (20 & 21).
Note: The numbers are sample data only.
2. Write the equivalent pseudocode of the flowchart created in number 1.
Start
Set numberStudents=0
For s=1 to 5 do
Read age of the student
if age>=20 then
numberStudents=numberStudents+1
end if
End For
Display numberStudents
Stop
Comments
Leave a comment