Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are to build an app to be used in a mobile application for an imaginary fastfood restaurant, Flyers. This is a command-line interface (CLI)

You are to build an app to be used in a mobile application for an imaginary fastfood restaurant, Flyers. This is a command-line interface (CLI) version, but you are free to make a GUI version as well. In this app, you are to ask a customer to choose various options for their meals.

1. First, ask the customer if he/she wants the order to be a Pick-Up or Delivery.

2. Second, ask the customer to enter a zip code if it is a Delivery. Based on the entered zip code, there should three following messages: Delivery Available, Delivery Not Available, and Delivery with extra cost. Say the customer has entered 60446, which is the zip code for this restaurant. The exact zip code and area distribution we do not know, so we presume that the zip code that is different from 60446 less than the degree of 5 (either above or below), that is Delivery Available. Also, the zip code that is 60451 or 60441 is Delivery with extra cost. Any other zip codes are Delivery Not Available.

3. Third, ask the customer about the order. Below are suggested items but are not limited. You should have an option to order more than one item. The tax rate is multiplied with the items only. Then, add the delivery fee. If Delivery Available is chosen based on the entered zip code, add $5.00 after the tax. If Delivery with Extra Cost is chosen, add $7.00 after the tax. The output should be the total bill including the tax and the delivery fee. Build necessary methods for the items to be ordered.

(a) Flyers' Burger: $4.50 per an order

(b) Flyers' Drink: $1.50 per a container

(c) Flyers' Fries: $ 2.50 per an order

(d) Flyers' Dessert: $ 3.00 per an order

(e) Tax: 5%

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions