Home Work
Task 1: Write an algorithm-flowchart to find the largest number among three
numbers.
Task 2: Write an algorithm-flowchart to find the smallest number among three
numbers.
Task 3: Write an algorithm-flowchart that takes a password as input and prints “Access
Granted” if the password matches admin123, otherwise prints “Access Denied”.
Task 4: Write an algorithm-flowchart that takes salary as input and prints “Bonus Given” if
salary is greater than 30,000, otherwise prints “No Bonus”.
Task 5: Write an algorithm-flowchart based on the given conditions. Water State
Identification:
∙ Prints Solid if temperature ≤ 0°C
∙ Prints Liquid if temperature is between 1°C and 99°C
∙ Prints Gas if temperature ≥ 100°C
Task 6: Write an algorithm-flowchart for Loan Eligibility Check based on conditions
∙ If age < 21 →
o If income ≥ 50,000 → Eligible
o Else → Not Eligible
∙ Else
o If income ≥ 30,000 →
▪ If job == ‘Yes’ → Eligible
▪ Else → Not Eligible
o Else → Not Eligible