Write a C program and use if else condition .You will implement a coffee shop example. In this coffee shop, everything must
progress as if it does in real life. It means that the program should ask a person for body
temperature in Celsius, and grant or reject access to a coffee shop. When a customer orders a
coffee, they have to choose a size such as Small, Medium, and Large then, depending on the
order, the price has to change. The price also has to change depending on the type of coffee.
For example, for coffees that are similar to espresso, you also need to take every shot of
espresso into account. The actual prices of the coffees depend on your imagination however,
they should be realistic.
Some hints:
● Focus on dividing your program into multiple functions.
● You can also return double or integer types of values from your functions, so use them if
you can.
● Don’t just code a function every possible type of, and try to make it generic as much as
possible.
● Be creative. Fill the gaps using your imagination. This is an open ended lab work.
Expectations:
1. You will have milk, steamed milk, milk foam, and hot chocolate that can be ordered for a
specific type of coffee.
2. You will have two basic types of coffee, filter coffee, and espresso(Hint: Don’t forget
about shots, that could be a measure for the price).
3. We are expecting your program to be able to order; Cappuccino, Latte, Mocha, Flat
White, or Filter Coffee. All of these are base types of orders, however, you can always
have extra milk or hot chocolate, so make sure you take that into account.
4. Customers are not allowed to enter if their body temperature is higher than 36.5 Celsius.
5. The user will enter integer values to select their options for everything in the program.
6. Add an exit option for the user so he/she can cancel the order.
7. The program should terminate if the customers try to order his/her 4th coffee.
Answers
Answered by
1
Answer:
thanks for free points .......
Answered by
0
Answer:
C means 'COMPUTER' this the correct answer for you
Similar questions
Political Science,
3 months ago
Accountancy,
3 months ago
India Languages,
6 months ago
Biology,
11 months ago
Social Sciences,
11 months ago