Page 19 - أساسيات الحاسب الالي2
P. 19

‫مقدمة فى البرمجة‬                                    ‫الفصل اﻷول‬

        Discount =20% of purchase amount

      End-if

End-if

Pucchaseamount = purchase amount-discount

Tax =10% of purchase amount

If purchase amount <150 then

      Shippint charge = 10

Else

      Shipping charge=15

End-if

TotaL due = purchase amount +tax + shipping charge

Display customer number, name, purchase amount,Tax, shipping

charge, total due

Display end of program message

End

                                                    ١٩
   14   15   16   17   18   19   20   21   22   23   24