0% found this document useful (0 votes)
57 views3 pages

CS101 Assignment No.3 Solution 2021

The document provides requirements for developing an application for an ice cream parlor. It lists 8 ice cream flavors and their prices per scoop. It also specifies that multiple scoop prices will vary as shown in a table. Pseudo code is then provided to: 1) Display the flavor menu and prices, 2) Allow the customer to select flavors and number of scoops, 3) Calculate the item and total bill, 4) Apply a discount and GST, and 5) Display the net bill.

Uploaded by

Hamza Niaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views3 pages

CS101 Assignment No.3 Solution 2021

The document provides requirements for developing an application for an ice cream parlor. It lists 8 ice cream flavors and their prices per scoop. It also specifies that multiple scoop prices will vary as shown in a table. Pseudo code is then provided to: 1) Display the flavor menu and prices, 2) Allow the customer to select flavors and number of scoops, 3) Calculate the item and total bill, 4) Apply a discount and GST, and 5) Display the net bill.

Uploaded by

Hamza Niaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

https://vustudents.ning.

com/
CS101 Assignment No.3 2021
Code Available in description
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.
The developed application will ask the customer to select the flavors and no. of scoops for each
selected flavor. The program will perform the calculation and calculate bill.
Write Pseudo Code for above question..

Flavour One Scoop Two Scoop Three Scoop


Tutti-Frutti 150 120 100
Chocolate 150 120 100
Pineapple 150 120 100
Kulfa 150 120 100
Strawberry 175 150 100
Mango 200 170 130
Orange 150 120 150

https://vustudents.ning.com/
https://vustudents.ning.com/

Pseudo Code
BEGIN
1 BEGIN
GET n
2 Show Menu INITIALIZE i=0
3 SHOW FLAVOR while i<n
4 SHOW SCOOP PRICES = pr PRINT i
5 SHOW " Which Flavor do you want?' i=i+l
6 INPUT FALVOUR = Fl END
7 PRINT F
8 SHOW "How many scoop want'
9 INPUT scoop = sc
10 PRINT S
11 SHOW "How much quantity you want sir!"
12 INPUT Quantity = Qty
13CALCULATE ItemBill = pr • Sc • Qty
14 PRINT ItemBill
15 Total Bill=0
16 CALCULATE TotalBill = ItemBill + TotalBill
17 SHOW •Do you want anymore"
18 If (yes) THEN
19 GOTO 5
20 ELSE
21 SHOW "Here is your Bill"
22 SHOW TotalBill
23 CALCULATE Discount= TOtalBill *5/100
24 CALCULATE GST 17% =TOtalBill *17/100
25 CALCULATE NetBill = (TOtalBill + GST)- Discount
26 SHOW NetBill
27 Exit

https://vustudents.ning.com/

You might also like