Algo

You might also like

You are on page 1of 1

PEREZ, JOHN ABERNARD T.

BSEE 2A

Page 100 exercise 13

Start

Input the amount purchase

If (D>=1)

Then The Customer Recieves Free raffle Ticket

Compute D=D=int(AP/300)

Compute NT=D*5

Display NT

Else

Then sorry no tickets for now, purchase more

End

Page 104 exercise 14

Start

Input the amount purchase

If (P>=500php)

Then 20% off APPLIED!

Compute TP=P*0.20

Compute TPP=P-TP

Display TPP

Else

Then 5% off APPLIED!

Compute FP=P*0.05

Compute FPP=P-FP

Display FPP

End

You might also like