Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been hired to write a program to for the CSC 1 6 1 Sandwich shop. Your customer will select a sandwich and options

You have been hired to write a program to for the CSC161 Sandwich shop. Your customer will select a sandwich and options based upon the menu above. You will ask how many sandwiches the customer would like. All of the sandwiches in an order will be the same. The program will ask the user about each option (1- yes or 2-no). You will to calculate tax of 7% and a 10% discount on Club members. In addition if the customer orders a quantity of more than 10 sandwiches they get a 5% discount before the club member discount. After you print the receipt print the message "Thank you, please come again".
Requirements:
Proper use of a selection (20pts)
Proper use of the Scanner Class (25pts)
Proper Input (15 pts)
Proper Output (15pts)
Correct Calculations/Process (25pts)
Your receipt will look like this (this is a sample) CSC161 Sandwiches
Quantity: 5
Sandwich Type: Turkey $24.75
Bread: Rye $0.0
Options:
Lettuce $0.0
Tomato $3.75
Cheese $7.50
Delivery $2.50
Sub Total ,$38.70
Tax. ,$2.70
Total Due $4140
image text in transcribed

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

Question What are the requirements for a SIMPLE 401(k) plan?

Answered: 1 week ago