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: 1624

### Replies to This Discussion

I can't solve it

CS101 Assignment 3 Fall 2020 solution idea:

`1).BEGIN // welcome to ice cream parlor2) Show Flavor // would you like Tutti Frutti,,kulfa,Mango Pistachio, Orange, strawberry or chocolate?3) Show Menu <T>utti frutti=150<M>an go=175<K>ulfa =150<S>trawberry=150<O>range = 200<P>istachio=150<C>hocolate=150<P>ine apple=1504) Show scoop price =p5) How many scoops of chocolate would you like?//= 26) INPUT FLAVOR. // <F>7) ADD PRINT // display on screen8) INPUT SCOP. //<sc>9) How much quantity you want sir? //choice to customer any thing more10) INPUT QUANTATY //<Qua>11) CALCULATE item Bill // F* Sc*Qua12) PRINT item Bill // show on screen13) Sir you want anything more ?14) If (No). //Make Bill list15) Then 'show total Bill. // <0>16) Calculate item Bill // item bill *Total bill+10%(GST) -5%discount)17) Here is your bill // show detailShow net bill // show net bill to customer18) Sir give any description about our parlor 19)Thanks for coming here20)welcome for again`

(Pseudo Code Expression):

`Show menu (with price and names of ice cream         bill=0 // this variable for billtop: // re enter your choice labelenter flavorif flavor is not in menu then show invalid choiceAgain ask for inputenter scoopIf scoop is not between 1 and 3 then show invalid choice and again ask for inputIf (flavor== “tutti frutti”or flavor  == “chocolate” or flavor == “pine apple” or flavor == “kulfa” or flavor == “strawberry” or flavor == “pistachio”)If (scoop == 1):bill = bill + 150else if (scoop>= 2):bill = bill + 120else if(scoop ==3):bill = bill + 100end ifelse if (flavor == “mango”):if (scoop  == 1):bill = bill + 175else if (scoop == 2):bill= bill + 150else if (scoop == 3):bill = bill + 130end ifelse if (flavor == “ orange”):if (scoop = 1)bill = bill + 200else if (scoop == 2):bill = bill + 170else if (scoop == 3):bill= bill + 150end ifprint do you want to take another ice cream press yIf (input =y)go to top labelprint bill`

CS101-Assignment-3-Solution-Fall-2020

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

1

2

3

4

5

## Latest Activity

6 minutes ago
1 hour ago
1 hour ago
moon ashknaz, sc210400013 and Maryum joined Virtual University of Pakistan
1 hour ago
+ ! ! ! ! QueeN ! ! ! ! + and Mr Siren Head are now friends
2 hours ago
Mr Siren Head joined + M.Tariq Malik's group

### CS508 Modern Programming Languages

3 hours ago
Mr Siren Head joined + M.Tariq Malik's group

### CS506 Web Design and Development

3 hours ago
M r . H a a D i . . . ! ! ! updated their profile
4 hours ago