Professional Documents
Culture Documents
I.T PseudoCode
I.T PseudoCode
Write a pseudocode that prompts the user to enter their age and output “you are old” if the age is
greater than or equal to 50. Otherwise “You are young”
Start
Read age
Else
Endif
Stop
Start
Read age
YES NO
Is age >= 50
Question 5
Prompt the user to enter three grades and find their average if the average is less than 60 then output
“Fail” otherwise “Pass”
Start
Read grades
Print “Fail”
Else
Print “Pass”
Endif
Stop
Start
YES NO
Is avg < 60
Stop
Question 1
Write a pseudocode that prompts a user to enter a number. If the number is greater than 1 then
calculate and output the square of the number
Start
Read num
Endif
Stop
Question 2
Write an algorithm that prompts the user or two numbers and find the larger of the two. (i.e) if the first
number is greater than the second number output “first number is greater”, otherwise output “second
number is greater.”
Start
Else
Endif
Stop