Thursday, October 30, 2014

Practice Algorithms

Here are a few problems for you to work out in preparation for your test.  Remember that Test 3 is on conditional constructs, focusing on While Loops.
  1. Calculate and output the lowest test grade entered of a series of grades.
  2. From a group of students, output the number of students who would like to participate in Crazy Day.
  3. From a group of teachers, determine which teacher has the most classes.  Output the teachers' name.
  4. A survey is being done to see who wins the next student council elections.  So far, three students are the candidates for Student Council President.  (John, Jason, Jacob)  Write an algorithm that will ask a group of students who they vote for, and that will determine and state who got the most votes and who got the least votes of the three candidates. 
Of the algorithms, question 4 is the most challenging.

No comments:

Post a Comment