Question
Congratulations! You have just opened a business with your own food truck. To keep things simple, you are planning on selling just 5 items. You
Congratulations! You have just opened a business with your own food truck. To keep things simple, you are planning on selling just 5 items. You are going to design the java program to display a customer receipt, showing each item ordered, the quantity, the price per item, the amount owed for each item, with a total at the end. Food ordered from a food truck is taxable, so you should also then calculate the 6% sales tax, display it and then calculate and display the total including tax. Also, since your business is quite new, you are not going to accept credit cards, but accept cash only. Your receipt should also show the amount tendered by the customer and the amount of change due.
When the java program is run, it creates a customer receipt based on the information about items ordered and the amount of money tendered. Here is an example of what your program, when run, might look like:
Welcome to Simply Pizza!
Address/phone of the business
Here there will be a series of input statements where you get the quantities of items ordered
Your Order Was
2 Small pizzas @ 8.9900 each: $17.9800
2 Small pizza toppings @ 1.5000 each: $3
2 Large pizzas @ 12.9900 each: $25.9800
2 Large Pizza Toppings @ 2.5000 each: $5
2 Soft Drinks @ 1.5000 each: $3
Amount due for pizzas and drinks is: $54.9600
Sales tax amount is: $3.2976
Total amount due, including tax is: $58.2576
Amount tendered:$60.000
Change:$1.7424
Do not worry at this point about making all numbers have the same number of decimal places. We will work on that later.
You will submit your working Java file for this assignment.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started