Question: Coding a simple decision scenario in C. ( Not C++) 1) Need at least three variables 2) Need at least two ANDs and one OR,

Coding a simple decision scenario in C. ( Not C++)

1) Need at least three variables

2) Need at least two ANDs and one OR, or two ORs and one AND.

3) 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*)

Prompt the user for each variable, read the variable from the console, and print the resulting decision.

Make sure your program compiles, runs and gets the right answer, at least using your interpretation of the scenario.

Scenario: If someone goes to a local coffee shop to order their favorite coffee and their order is wrong and they have driven half way home they can go back and get a new coffee or get a refund or they can call and get a refund back on their card.

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!