Answer to Question #244719 in Algorithms for Smiley

Question #244719

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.


1
Expert's answer
2021-09-30T04:45:59-0400


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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS