Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 1 : The Corner Store You have been asked to write a program to calculate sales totals for a corner store. Your program will

Project 1: The Corner Store
You have been asked to write a program to calculate sales totals for a corner store. Your program will not know how many products each customer will buy, so your program will have to repeat the process until the last product has been entered (use -1 for Product ID to end each sale). After each sale your program must ask if you want to do another sale ('y'-continue, 'n'- end program).
At the beginning of the day, the cash drawer has $100 in it. At the end of the program you must display how much money is in the drawer after handling all your sales transactions.
Input
Your program must take the following input:
Product ID Number (int)
Quantity for each item purchased (int)
Use the following dataset to determine the price and taxability for each item.
First Sale:
Product ID Price Quantity Taxable
\table[[101,$3.951,No],[102,$1.852,Yes],[103,$2.491,Yes],[104,$5.194,Yes],[105,$4.995,No]]
Second Sale:
Product ID Price Quantity Taxable
102,$1.851, Yes
103,$2.493 Yes
105,$4.992 No
Third Sale:
Product ID Price Quantity Taxable
\table[[101,$3.951,No],[103,$2.492,Yes],[104,$5.192,Yes]]
Calculating Tax
For those items that are taxable, assume a 7.5% sales tax. Be sure to keep a running total of tax for the each sale.
Getting Started
You must use the starter file provided with this assignment. What to turn in:
A copy of your source code
A printout of your program's output
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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

Coaching and motivational behavior

Answered: 1 week ago