Question: C code please Write a program to calculate the amount a customer should pay in a checkout counter for the purchases in a bagel shop.

C code please Write a program to calculate the amount a customerC code please

Write a program to calculate the amount a customer should pay in a checkout counter for the purchases in a bagel shop. The products sold are bagels, cream cheese, and coffee. Declare prices of bagel, cream cheese, and coffee as constant float values. Take the following values for the items BAGEL_COST =1.99; CREAM_CHEESE_COST =2.99; COFFEE_COST = 3.99; Make your output look as much like the sample output provided below as possible. Here 2 samples are shown Here's how the output should look: How many bagels did you buy? 6 How many cream cheeses did you buy? 3 How many coffees did you buy? 3 Total charges are: $32.880001 How many bagels did you buy? 2 How many cream cheeses did you buy? 0 How many coffees did you buy? 5 Total charaes are: \$ 23.930000

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!