alpindi. Both these branches offer same flavour of ice-cream (vanilla, strawberry, and mango) but Rawalpindi branch does not offer dine-in facility (only take-away). The Islamabad branch has recently established its franchise in COMSATS university Islamabad. For marketing purpose, the COMSATS’ branch is offering its all-unique Enchanted flavours with a mix of chocolate in it. The owner of the ice-cream parlour wants a computerized system of order placing and keeping record of daily total orders in all the branches. You have to develop a menu-driven application in which a person can order a maximum of 3 cups at a time. Write a test code for Islamabad main branch for single person, Rawalpindi branch for two persons, and COMSATS university Islamabad branch for three persons and return a total number of ice-cream cups sold in a day. Hint: Each ice-cream cup contains a single scoop of only one flavour. Date, time, branch name and ice-cream flavour should be a common variant of all scenarios. Set dine-in/takeaway to be true or false for every order. For placing the order, number of scoops/flavour

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write code in java

Suppose there is an ice-cream parlour named Enchanted and having a branch in Islamabad and other in Rawalpindi. Both these branches offer same flavour of ice-cream (vanilla, strawberry, and mango) but Rawalpindi branch does not offer dine-in facility (only take-away). The Islamabad branch has recently established its franchise in COMSATS university Islamabad. For marketing purpose, the COMSATS’ branch is offering its all-unique Enchanted flavours with a mix of chocolate in it.

The owner of the ice-cream parlour wants a computerized system of order placing and keeping record of daily total orders in all the branches. You have to develop a menu-driven application in which a person can order a maximum of 3 cups at a time. Write a test code for Islamabad main branch for single person, Rawalpindi branch for two persons, and COMSATS university Islamabad branch for three persons and return a total number of ice-cream cups sold in a day.

Hint: Each ice-cream cup contains a single scoop of only one flavour. Date, time, branch name and ice-cream flavour should be a common variant of all scenarios. Set dine-in/takeaway to be true or false for every order. For placing the order, number of scoops/flavours depicts number of cups ordered. The orders placed in COMSATS university Islamabad must have chocolate mix without customer’s request.

Example: Placeorder (Mango, Strawberry) should print “Order placed for mango and strawberry flavour”

Note: Please use the runner class name as OOPLabMid. Few sample outputs are attached as well.

9:16 O
0.80
ll ull
92
Suppose there is an ice-cream parlour named Enchanted and having a branch in
Islamabad and other in Rawalpindi. Both these branches offer same flavour of ice-cream
(vanilla, strawberry, and mango) but Rawalpindi branch does not offer dine-in facility
(only take-away). The Islamabad branch has recently established its franchise in
COMSATS university Islamabad. For marketing purpose, the COMSATS' branch is
offering its all-unique Enchanted flavours with a mix of chocolate in it.
The owner of the ice-cream parlour wants a computerized system of order placing and
keeping record of daily total orders in all the branches. You have to develop a menu-
driven application in which a person can order a maximum of 3 cups at a time. Write a
test code for Islamabad main branch for single person, Rawalpindi branch for two
persons, and COMSATS university Islamabad branch for three persons and return a total
number of ice-cream cups sold in a day.
Hint: Each ice-cream cup contains a single scoop of only one flavour. Date, time, branch
name and ice-cream flavour should be a common variant of all scenarios. Set dine-
in/takeaway to be true or false for every order. For placing the order, number of
scoops/flavours depicts number of cups ordered. The orders placed in COMSATS
university Islamabad must have chocolate mix without customer's request.
Example: Placeorder (Mango, Strawberry) should print "Order placed for mango and
strawberry flavour"
Note: Please use the runner class name as QOPLabMid. Few sample outputs are attached
well.
as
.Welcome to Enchated..
Please select your branch
Press 1 for Islamabad branch
Press 2 for Rawalpinidi branch
Press 3 for COMSATS University branch *new
Or press 0 to Exit
2
***********
Welcome to Rawalpindi Branch
We are sorry, dine-in is closed!
Your Order ID is: 1
Number of cups sold today till now: 0
Date/Time: 2021/11/20 19:24:04
Enter Number of persons (1-3) or press 0 to change your branch name
2
Enter Flavors
mango
vanilla
Order placed for mango and vanilla
------
Your Order ID is: 2
Number of cups sold today till now: 2
Date/Time: 2021/11/20 19:24:25
Enter Number of persons (1-3) or press 0 to change your branch name
Your Order ID is: 2
Number of cups sold today till now: 2
Date/Time: 2021/11/20 19:24:25
Enter Number of persons (1-3) or press 0 to change your branch name
Welcome to Enchated.
Please select your branch
Press 1 for Islamabad branch
Press 2 for Rawalpinidi branch
Press 3 for COMSATS University branch *new
Or press 0 to Exit
1
*********
******k*
Welcome to Islamabad Branch
You can dine-in or place order for takeaway
Your Order ID is: 2
Number of cups sold today till now: 2
Date/Time : 2021/11/20 19:25:48
Enter Number of persons (1-3) or press 0 to change your branch name
1
Enter Flavor
mango
Order placed for mango
Transcribed Image Text:9:16 O 0.80 ll ull 92 Suppose there is an ice-cream parlour named Enchanted and having a branch in Islamabad and other in Rawalpindi. Both these branches offer same flavour of ice-cream (vanilla, strawberry, and mango) but Rawalpindi branch does not offer dine-in facility (only take-away). The Islamabad branch has recently established its franchise in COMSATS university Islamabad. For marketing purpose, the COMSATS' branch is offering its all-unique Enchanted flavours with a mix of chocolate in it. The owner of the ice-cream parlour wants a computerized system of order placing and keeping record of daily total orders in all the branches. You have to develop a menu- driven application in which a person can order a maximum of 3 cups at a time. Write a test code for Islamabad main branch for single person, Rawalpindi branch for two persons, and COMSATS university Islamabad branch for three persons and return a total number of ice-cream cups sold in a day. Hint: Each ice-cream cup contains a single scoop of only one flavour. Date, time, branch name and ice-cream flavour should be a common variant of all scenarios. Set dine- in/takeaway to be true or false for every order. For placing the order, number of scoops/flavours depicts number of cups ordered. The orders placed in COMSATS university Islamabad must have chocolate mix without customer's request. Example: Placeorder (Mango, Strawberry) should print "Order placed for mango and strawberry flavour" Note: Please use the runner class name as QOPLabMid. Few sample outputs are attached well. as .Welcome to Enchated.. Please select your branch Press 1 for Islamabad branch Press 2 for Rawalpinidi branch Press 3 for COMSATS University branch *new Or press 0 to Exit 2 *********** Welcome to Rawalpindi Branch We are sorry, dine-in is closed! Your Order ID is: 1 Number of cups sold today till now: 0 Date/Time: 2021/11/20 19:24:04 Enter Number of persons (1-3) or press 0 to change your branch name 2 Enter Flavors mango vanilla Order placed for mango and vanilla ------ Your Order ID is: 2 Number of cups sold today till now: 2 Date/Time: 2021/11/20 19:24:25 Enter Number of persons (1-3) or press 0 to change your branch name Your Order ID is: 2 Number of cups sold today till now: 2 Date/Time: 2021/11/20 19:24:25 Enter Number of persons (1-3) or press 0 to change your branch name Welcome to Enchated. Please select your branch Press 1 for Islamabad branch Press 2 for Rawalpinidi branch Press 3 for COMSATS University branch *new Or press 0 to Exit 1 ********* ******k* Welcome to Islamabad Branch You can dine-in or place order for takeaway Your Order ID is: 2 Number of cups sold today till now: 2 Date/Time : 2021/11/20 19:25:48 Enter Number of persons (1-3) or press 0 to change your branch name 1 Enter Flavor mango Order placed for mango
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Network Transmission Cabling
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education