Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IT 168 Spring 2020 Program 3 (100 points) Due Date February 18 Problem You operate a restaurant and have a menu of items to offer

image text in transcribed
image text in transcribed
image text in transcribed
IT 168 Spring 2020 Program 3 (100 points) Due Date February 18 Problem You operate a restaurant and have a menu of items to offer your customer. A program is needed to take online orders for your food orders. You offer four entrees and two different side items. A customer first orders the total number of each entre that they want, and then they can choose side items. Entrees Salmon Chicken Steak Lamb Price $18.00 $12.25 $19.89 $15.59 Sides Fries Salad Price $ 2.99 $4.99 The program that is needed for the online ordering system will allow the customer to order as many of each entree as they wish. They are then asked how many of each side they wish It should ask for each side item at a time. When completing an order, an itemized bill is to be displayed This bill should include a 7% sales tax and 10.0% service fee that applies to the subtotal, before taxes. The Order Class (Order.java): Instance variables integer variables to store the counts for each of the menu items. Include double constant variables for the cost of each entre and each side. Also, include double constants for the tax rate and service charge rate. This class has the following methods: Methods Getters and setters for all instance variables. Constructor the constructor should pass the counts for each of the menu items collected calculateSubTotall: This method should calculate what the cost of the entrees are. It should return the subtotal calculate Tax0: This method should calculate tax given the subtotal. calculateServiceCharge: This method should return service charge given the subtotal calculateTotalCharge: This method should receive the subtotal, tax and service charge and return the final total The Driver Class (Restaurant java): The driver class takes care of the following Input Your program will start by asking the user how many of each entre item they want. It will then proceed to ask the user to choose how many of each side item they want. Once all the items have been selected, instantiate an object and pass in these values. Output Print the title, a line with each food item and the number of each item purchased, a subtotal of the cost of the items ordered, tax, delivery charge, and the total Sample Run Welcome to the online order system. Choose the number of each entree you wish to order. How many Salmon orders do you want : 1 How many Chicken orders do you want : 2 How many Steak orders do you want: 2 How many Lamb orders do you want: 1 Choose the number of each side you wish to order. How many Fries orders do you want : 0 How many Salad orders do you want: 2 You have ordered the following: Salmon Chicken Steak Lamb Fries Salad Subtotal: Tax: Service Fee: Total: $68.07 $4.76 $6.81 $79.64 Design Your program should have two classes order class and driver class with a main method Requirements: An algorithm that will be followed to write the code. Thorough test data with expected results calculated. Program Submission Submit your zipped java files for your program with your initials and Program 3. Do not rename the java files. Only rename the zipped folder O Example format CJH-Program3.zip Upload the following to ReggieNet Your program files with your code Algorithm o Test 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

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions