For this C++ hw
Create a function called time2Greeting.
It takes a time (in military time) and returns a string with the right greeting.
Good Morning 4AM to before noon.
Good Afternoon Noon to before 5PM
Good Evening from 5PM to 11PM
What are you doing up at this hour? between 11 and 4AM
For illegal values, say:
That is not a valid time.
Example:
What is your name? John
What time is it? 1315
Good afternoon, John.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here