0% found this document useful (0 votes)
16 views1 page

Assignment

Uploaded by

Areeba Jawad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

Assignment

Uploaded by

Areeba Jawad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Pseudocodes

Class 11
Assignment

Name: _________________________________ Due Date: 24 October 2023

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.

You might also like