Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Baruch College CUNY You are writing a mini-cashier's checkout program. You should fulfill the specifications below in any way possible, according to what you have

image text in transcribed
Baruch College CUNY You are writing a mini-cashier's checkout program. You should fulfill the specifications below in any way possible, according to what you have learnt thus far. Part A Your program should obtain the following information from the user upon startup: .Name of the cashier. State that store is located in (Arizona, New York, etc) Date (separated into day, month and year) 10 points. Part B The program should display a welcome message to the user in the following format: Hello [cashier name] Welcome to Cashier App. You are currently cashing for a store located in [state] Today's date is [date]. The program should allow the user to enter, for an unlimited number of products, the name of the product, the price and the quantity being purchased. The program must calculate the amount of tax to add to the price, depending on which of the following three states the program is being used in: New York-9.75% New Jersey-8.25% Connecticut-7.5% Tennessee-4.5% All Others-10% After calculating the total amount owed for a single product, the program should display the name of the product and the total and then ask the user whether or not they would like to enter another product ie. Eggs-$10.74 Would you like to enter another product? After the user has entered all of their products, you should display a summary of the purchases that tells the user how many items were entered and the total amount due ie. You have entered 14 products. Your total amount owed is $845.89 50 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_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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

In what ways is quality, or lack of quality, visible?

Answered: 1 week ago

Question

The amount of work I am asked to do is reasonable.

Answered: 1 week ago

Question

The company encourages a balance between work and personal life.

Answered: 1 week ago