Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this Assignment, you will write a small Java program about Waffle & Pancake Shop system. It will allow The users to buy special kind

In this Assignment, you will write a small Java program about Waffle & Pancake Shop system. It will allow The users to buy special kind of sweets (Waffle& Pancake ). It also allows the users to add extra souses(such as chocolate souse , caramel souse) and toppings(such as strawberry , banana) . The users /customers have to Enter the number of pieces they want. Of course, the cost of the order is based on the type of sweet(pancake or waffle) and the extra souses or toppings. Your job is to write a Java program that allows the user to prepare his order by choose from menu of options, enter the required information such as the number of pieces and the type of extra souse or toppings and the system will show the recite in the end of order. You should study the sample runs (output) of the program to identify for yourself what is required. Input validation: The user has to enter 1 for Waffle, 2 for pancake, or 3 for exiting from the program. You have to check the Input validation for all Entries. 1) If the user enter wrong input in the main menu then the program will display Sorry! wrong input , Try Arain (Y / N)?) , and allow the user to re-enter the input. 2) If the user inputs is not recognized , in the Souses and Toppings menu , then the program will display Sorry ! Wrong Input , Exiting the program . 3) You have to check the entered information with the corresponding requirements according to the data mentioned in the tables below: The following table shows the cakes information: sweet Type Price for 1 piece tax discount Waffle 10 SR 15% 10% from the total if pieces>5 Pancake 5 SR 15% 10% from the total if pieces>10 3 The following table shows the souses and toppings Information: Adding Type Price Souses Pistachio 2 SR Caramel Honey chocolate Toppings strawberry 5 SR banana 5 SR nuts 3 SR Important notes: The discount and tax will apply on the total price (i.e. after adding the Souses and toppings price ). Your program output must be exactly same as given sample output. Your display should be in a readable form. Document your code with comments. Use meaningful variables . 4 Suggestions: Read AND fully understand this document BEFORE starting the program! Once the solution is 100% clear to you, then begin making your code

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

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions

Question

What did Joseph Schumpeter mean by the term creative destruction?

Answered: 1 week ago