Semester Fall 2020 Introduction To Computing (CS101) Assignment 3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

SEMESTER FALL 2020

Introduction to computing (CS101)


Assignment 3
NAME
Student ID: _______________

Problem's Solution using Pseudo-code:


• BEGIN
• SHOW Menu
• SHOW Flavor
• SHOW Scoop price= P
• SHOW “Which flavor do you want?”
• INPUT Flavor= F
• PRINT F
• SHOW “How many scoops do you want?”
• INPUT Scoop=S
• PRINT S
• SHOW “How much quantity you want?”
• INPUT Quantity=Q
• CALCULATE Item Bill= P*S*Q
• INPUT Item bill
• TOTAL Bill= 0
• CALCULATE Total Bill= Item Bill + Total Bill
• SHOW “Do you want more?”
• IF (YES) THEN
• GOTO STEP 5
• ELSE
• SHOW “Here is your bill sir”
• SHOW Total Bill
• CALCULATE Discount 5% = Total Bill*5/100
• CALCULATE GST 17%= Total Bill*17/100
• CALCULATE Net Bill= Total Bill + GST - Discount
• SHOW Net Bill
• SHOW “THANKS FOR COMING”
• EXIT

You might also like