Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

Views: 1570

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?
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=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):

 

Show menu (with price and names of ice cream         

bill=0 // this variable for bill

top: // re enter your choice label

enter flavor

if flavor is not in menu then show invalid choice

Again ask for input

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

Click on the below link to download the file

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

RSS

Looking For Something? Search Below

Latest Activity

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service