Suppose there is an ice-cream parlour named Enchanted and having a branch in Islamabad and other in Rawalpindi. Both the

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Suppose there is an ice-cream parlour named Enchanted and having a branch in Islamabad and other in Rawalpindi. Both the

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply