Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

6 What is the selection phase?

Answered: 1 week ago

Question

3. What may be the goal of the team?

Answered: 1 week ago

Question

Is how things are said consistent with what is said?

Answered: 1 week ago

Question

Has the priority order been provided by someone else?

Answered: 1 week ago