It Loop Statement Worksheet By Mr. Thompson - Evolutronic Web Services

ADVERTISEMENT

Name: ____________________________________
Date:
____________________________________
INFORMATION TECHNOLOGY
Loop Statement Quiz
ALGORITHM DESIGN - Questions
1. Write a pseudocode algorithm which prompts the user to enter the name of each student in a class
terminated by “End”. Output the message “Good day!” together with their name on the same line of
output.
2. Write a structured algorithm to ask the user to input a series of numbers terminated by 0. if the number
is greater than 100 print “Number is higher than 100”. If it is less than or equal to 100, print the number.
3. Write a structured algorithm which prompts the user to enter a series of numbers. It should continue to
prompt the user to input a number until a zero is entered. Print each number entered.
4. Write a structured algorithm which prompts the user to enter a number. If the number is less than 100, it
should add 15 to the number and print the number until the number is greater than or equal to 100.
5. Write a structured algorithm to read a positive integer, which is stored in N, then read N names. Print the
names together with the message “Good night!” on the same line of output.
6. Write a structured algorithm to read a positive integer, which is stored in P, then read P student mark. If
the mark is greater than 60, output the word “Pass”, otherwise output the word “Fail” for each student
mark.
7. Print a tax table that runs from a salary of $250.00 to $600.00 in steps of $10.00. Tax is 5% of the salary
if the salary is less than $400.00 and 6% of the salary if the salary is greater than or equal to $400.00.
8. Print a conversion table from US currency to Jamaican currency. The table ranges from $20 US to $200
US in steps of $5 US. ($1 US = $90 JAM).
Do an IPO Chart and the Algorithm for ALL questions.
Prepared by: Mr. Thompson

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go