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 fast - food restaurant, Flyers .This is a command

You are to build an app to be used in a mobile application for an imaginary fast

- food restaurant, Flyers

.This is a command line 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 threefollowing messages: DeliveryAvailable, 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

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books