www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS101 Introduction to Computing Assignment No 03 Fall 2020 Solution & Discussion

CS101 Introduction to Computing Assignment No 03 Fall 2020 Solution & Discussion

Views: 1562

### Replies to This Discussion

I can't solve it

CS101 Assignment 3 Fall 2020 solution idea:

1).BEGIN // welcome to ice cream parlor
2) Show Flavor // would you like Tutti Frutti,,kulfa,Mango Pistachio, Orange, strawberry or chocolate?
<M>an go=175
<K>ulfa =150
<S>trawberry=150
<O>range = 200
<P>istachio=150
<C>hocolate=150
<P>ine apple=150

4) Show scoop price =p

5) How many scoops of chocolate would you like?//= 2
6) INPUT FLAVOR. // <F>
7) ADD PRINT // display on screen
8) INPUT SCOP. //<sc>
9) How much quantity you want sir? //choice to customer any thing more
10) INPUT QUANTATY //<Qua>
11) CALCULATE item Bill // F* Sc*Qua

12) PRINT item Bill // show on screen
13) Sir you want anything more ?
14) If (No). //Make Bill list
15) Then 'show total Bill. // <0>
16) Calculate item Bill // item bill *Total bill+10%(GST) -5%discount)
17) Here is your bill // show detail
Show net bill // show net bill to customer
18) Sir give any description about our parlor 19)Thanks for coming here
20)welcome for again

(Pseudo Code Expression):

bill=0 // this variable for bill

top: // re enter your choice label

enter flavor

if flavor is not in menu then show invalid choice

enter scoop

If scoop is not between 1 and 3 then show invalid choice and again ask for input

If (flavor== “tutti frutti”or flavor == “chocolate” or flavor == “pine apple” or flavor == “kulfa” or flavor == “strawberry” or flavor == “pistachio”)

If (scoop == 1):

bill = bill + 150

else if (scoop>= 2):

bill = bill + 120

else if(scoop ==3):

bill = bill + 100

end if

else if (flavor == “mango”):

if (scoop == 1):

bill = bill + 175

else if (scoop == 2):

bill= bill + 150

else if (scoop == 3):

bill = bill + 130

end if

else if (flavor == “ orange”):

if (scoop = 1)

bill = bill + 200

else if (scoop == 2):

bill = bill + 170

else if (scoop == 3):

bill= bill + 150

end if

print do you want to take another ice cream press y

If (input =y)

go to top label

print bill

CS101-Assignment-3-Solution-Fall-2020

CS101-Assignment-3-Solution-Fall-2020.docx

1

2

3

4

5

## Latest Activity

Naseer ullah posted discussions
1 minute ago
Naseer ullah added a discussion to the group ECO401 Economics

### Eco401 Midterm 2021 GrandQuiz (100% Correct Solution)

38 minutes ago
Naseer ullah joined + M.Tariq Malik's group

### ECO401 Economics

43 minutes ago
Naseer ullah updated their profile
46 minutes ago
1 hour ago
1 hour ago
sidra noor joined + M.Tariq Malik's group

### CS610 Computer Network

1 hour ago
иαвєєℓ αнмє∂ posted discussions
3 hours ago