Page 1 of 1

Write a Java code for the following program Suppose there is an ice-cream parlor named Icethunder and having a branch in

Posted: Sat Nov 27, 2021 2:30 pm
by answerhappygod
Write a Java code for the following program
Suppose there is an ice-cream parlor named Icethunder and having
a branch in new york and another in Texas. Both these branches
offer the same flavor of ice cream (vanilla, strawberry, and mango)
but the new york branch does not offer a dine-in facility (only
take-away). The Texas branch has recently established its franchise
in Mason University texas. For marketing purposes, the Mason
university branch is offering its all-unique Enchanted flavors with
a mix of chocolate in it.
The owner of the ice-cream parlor wants a computerized system of
order placing and keeping a 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 texas main branch for a single person, new york branch for two
persons, and mason university texas branch for three persons and
return the total number of ice-cream cups sold in a day.
Hint: Each ice cream cup contains a single scoop of only one
flavor. Date, time, branch name, and ice-cream flavor should be a
common variant of all scenarios. Set dine-in/takeaway to be true or
false for every order. For placing the order, a number of
scoops/flavors depicts the number of cups ordered. The orders
placed in mason University texas must have a chocolate mix without
the customer’s request.
Example: Placeorder(Mango, Strawberry) should print “Order placed
for mango and strawberry flavor”