Flowcharts and Pseudocode
Flowcharts and Pseudocode
Question 1:
Write a program that asks the user to input two numbers, then add them and
display the sum.
Pseudocode
START Flowchart
num1 = "Enter the first number:"
num2 = "Enter the second number:"
sum = num1 + num2
Display sum
END
Pseudocode END
START
num = "Enter a number:"
IF number MOD 2 == 0
THEN DISPLAY "The number is
even."
ELSE
DISPLAY "The number is odd." Flowchart
ENDIF
Question 3
Design an algorithm for a program
that prints numbers from 0 to N
Pseudocode
START
Flowchart
Question 4
Design an algorithm for a program that asks user to input 3 numbers “a, b, c” and
displays which is the largest number (assume that none of the numbers are equal)