Question: In C, Thanks! User scanf to read in an integer input between 0 and 24, where the input is the hour of the day in

 In C, Thanks! User scanf to read in an integer input

In C, Thanks!

User scanf to read in an integer input between 0 and 24, where the input is the hour of the day in military time. Print the following for each case: if input is between 6 and 11 (inclusive), then print morning. if input is between 12 and 17 (inclusive), then print afternoon. . ifinput is between 18 and 24 (inclusive), then print evening. Otherwise, if input is between 1 and 5 (inclusive), then print small hours. Example Output: Enter time between 0 and 24: 7 morning Enter time between 0 and 24: 24 evening Rubrics 2 point(s) - Correct implementation of scanf(). 3 point(s) - Correct implementation of if statement. 2 point(s) - Correct output. 3 point(s) - No syntax errors

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!