Solve these Questions by drawing Flowcharts
Q1. Even or Odd Check (5 marks)
Draw a flowchart that:
-
Inputs an integer number
-
Checks whether the number is even or odd
-
Displays an appropriate message
Q2. Average of Three Numbers (6 marks)
Draw a flowchart that:
-
Inputs three numbers
-
Calculates their average
-
Displays the average
Q3. Largest of Two Numbers (5 marks)
Draw a flowchart that:
-
Inputs two numbers
-
Compares them
-
Displays the larger number
-
If both are equal, display “Numbers are equal”
Q4. Sum of Numbers Using a Loop (7 marks)
Draw a flowchart that:
-
Inputs a number N
-
Uses a loop to calculate the sum of numbers from 1 to N
-
Displays the final sum
Q5. Password Validation (7 marks)
Draw a flowchart that:
-
Repeatedly asks the user to enter a password
-
Continues until the correct password “CS2210” is entered
-
Displays “Access Granted” when the correct password is entered
