Assignment
Assignment
Class 11
Assignment
1. Write a pseudocode to print a multiple of 5 between 1 and 100 (including both 1 and
100).
2. Write a pseudocode to input three different numbers, and then output the largest number.
3. Write an algorithm to input 1000 numbers.
Count how many numbers are positive and how many numbers are zero. Then
output the results. Use either pseudocode or a flowchart.
4. Explain the difference between the programming concepts of counting and totaling.
Include an example of a programming statement for each concept in your
explanation.
5. A school is doing a check on the heights and weights of the students. The school has
1000 students. Draw a flowchart, which:
Input height and weight of all 1000 students
Output the average height and weight
Include any necessary error traps for the input
6. Show three ways to use a loop to add up five numbers and print out the total can be set up
using Pseudocode. Explain which loop is the most efficient to use.
7. “REPEAT ... UNTIL” and “WHILE ... DO ... ENDWHILE” are two different loop
structures you can use when writing pseudocode. Explain, using examples, why you
would choose to use each type of loop.