Text: Part 2 - Write simple Algorithms in pseudo-code [20 points, 4 pts each]
Write Pseudo-codes for the following problems:
a) Ask a user to enter a positive number. If the number is between 1 and 10, write the word blue. If the number is between 10 and 20, write the word red. If the number is between 20 and 30, write the word green. If it is any other number, write that it is not a correct color option.
b) Write pseudo code that will perform the following:
i) Read in 3 separate numbers
ii) Calculate the summation of the three numbers
iii) Find the largest (maximum) of the three entered numbers.
c) Ask the user to input an integer and decide if it is positive, negative, or zero.
d) Compare two people's ages and decide who is older and who is younger, or if they are of the same age.
e) Ask the user to input the time of the day (just the hour as an integer between 0 and 23) and decide whether it's morning (between 0 and 12 inclusive), afternoon (between 13 and 17 inclusive), evening (between 18 and 19 inclusive), or night (between 20 and 23 inclusive).