Question: Code using C language Should I have a cup of coffee? If it is a weekday and I am at work and the time is

Code using C language
Should I have a cup of coffee?
If it is a weekday and I am at work and the time is between 7am and 11am or if I am not at work or its the weekend and its between 9am and 12pm and I have not already had a cup then have a cup of coffee. Otherwise dont have a cup of coffee.
Along with your code show screenshot of it working with the scenario chosen.
 Code using C language Should I have a cup of coffee?

In your code, you must use: at least two integral types (int, long, etc.) at least one real number (double or float) at least one character array (char and char* as used for text like "cat hungry"). Prompt the user for each variable, read the variable from the console, and print the resulting decision

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!