Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C programming please Program #1 Write a program to calculate the amount a customer should pay in a checkout counter for the purchases in
In C programming please
Program \#1 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 chardes are: \$ 23.930000 What to deliver? Your ce file including: 1. Five sampleruns with the following five input: ( 25 points) (1) 633 (2) 205 (3) 053 (4) 888 (5) 900 Note that you need to run your program 5 times. Each time you run it, copy and paste the program output to the bottom of your program and comment it. 2. Your pseudocode (should be written on top of the code), code with other appropriate comments. (Code: 50 points, pseudocode: 15 Comments: 10 points) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started