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...


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.



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here