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
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe5f710bd-897d-4099-9fc2-f265fcd89fd3%2Ff676c2e1-5a9f-46d0-9bbf-1e122b3afce3%2Fr9l28l6_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Fundamentals of Information Systems](https://www.bartleby.com/isbn_cover_images/9781305082168/9781305082168_smallCoverImage.gif)
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
![Fundamentals of Information Systems](https://www.bartleby.com/isbn_cover_images/9781305082168/9781305082168_smallCoverImage.gif)
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
![LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.](https://www.bartleby.com/isbn_cover_images/9781337569798/9781337569798_smallCoverImage.gif)