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

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter1: Getting Started With Excel
Section: Chapter Questions
Problem 3.8CP
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
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning