Objectives:
• Programming constructs
• Logical operators
• Control Structures
• Operators
Suppose you are working as a programmer in an IT firm. Your firm got a project to develop an application for an Ice Cream Parlor. The application must be developed considering the following scenario.
• The application will display a menu showing the flavors that have been offered by the Ice Cream Parlor.
• The Parlor offers Tutti-Frutti, Chocolate, Pineapple, Kulfa, Strawberry, Mango, Orange, and Pistachio flavors.
• The price of each flavor per scoop has been listed in the table below, for multiple scoops, the price will variate as per the scenario stated in the table.
Flavor
Tutti-Frutti
Prices per scoop
one scoop 150
Two scoops 120
Three scoops or above 100
Flavour
Chocolate
Prices per scoop
One scoop 150
two scoops 120
Three scoops or above 100
Flavour
Pine Apple
Prices per scoop
One scoop 150
Two scoops 120
Three scoops or above 100
Flavour
Kulfa
Prices per scoop
One scoop 150
Two scoops 120
Three scoops or above 100
Flavour
Strawberry
Prices per scoop
One scoop 150
Two scoops 120
Three scoops or above 100
Flavour
Mango
Prices per scoop
One scoop 175
Two scoops 150
Three scoops or above 130
Flavour
Orange
Prices per scoop
One scoop 200
Two scoops 170
Three scoops or above 150
Flavour
Pistachio
Prices per scoop
One scoop 150
Two scoops 120
Three scoops or above 100
• The developed application will ask the customer to select the flavors and no. of scoops for each selected flavor. The program will perform calculations and display the bill.
You are required to write the pseudo-code for the above-given scenario.
Comments
Leave a comment