Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSC1610 Spring 2019 Programming Project #2 Directions: This complete assignment is due on Tuesday, February 12,2019 Copied code, if discovered, will result in a 0

image text in transcribed
CSC1610 Spring 2019 Programming Project #2 Directions: This complete assignment is due on Tuesday, February 12,2019 Copied code, if discovered, will result in a 0 grade for all students involved. Please make sure the solutions follow proper indenting and spacing guidelines. Use the Computer Science Dept comment guidelines described on Blackboard. 1. The Problem Dunks placed. The customer name and order is to be input at the terminal after appropriate p use your name for the string prompt The customer can order coffee, bagels and muffins. Only one size and type of coffee is available. A coffee costs $2.49, bagels cost $.99 each and a muffin costs $1.69 The item prices are to be declared as constants in your program. would like for you to write a program to calculate and output a customer's bill once the order is Please Once the user has input the order, a billis to be ourput in the following format shown below where the XxX's will be filled in with the appropriate data ram will then ask the customer for the amount the customer gives the clerk Your program should then calculate the correct change the customer will receive. The change will consist of one dollar bills, quarters, nickels, dimes and in the highest amount possible for each. For example, if a customer bought 1 coffee, 1 bagel and 1 muffin the bill would come to $5.17. The clerk would then be instructed to retum 4 dollars, 3 quarters, 1 nickel and 3 pennies if the customer gave the clerk $10.00. Your output should look like this. Name, WELCOME TO DUNKS XX COFFEES SXXX.xx XX BAGELS XX MUFFINS After the above output, prompt the user for the amount the customer gives the clerk Your program will then calculate and print the change in the highest denominations. as follows. A message is then to be output Amount Tendered $XXX.xx Change: XX Dollar Bills XX Quarters XX Dimes XX Nickels XX Pennies Run your program three times with the following data

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_2

Step: 3

blur-text-image_3

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

Multidimensional Array Data Management In Databases

Authors: Florin Rusu

1st Edition

1638281483, 978-1638281481

More Books

Students also viewed these Databases questions

Question

What are the jobs responsibilities and duties?

Answered: 1 week ago

Question

gpt 5 2 9 . .

Answered: 1 week ago

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago

Question

What are Electrophoresis?

Answered: 1 week ago