Answers

2015-02-15T13:37:37+05:30

This Is a Certified Answer

×
Certified answers contain reliable, trustworthy information vouched for by a hand-picked team of experts. Brainly has millions of high quality answers, all of them carefully moderated by our most trusted community members, but certified answers are the finest of the finest.
This is for a lot of data given.

DATA  12.5, 2540, 12, 25, 30, 25, 1.8, 4.5, 9.1, 8.2, 0, 0
TOP:
READ P, Q
IF P = 0 THEN GOTO ENDED
PRINT  "PRICE",  "qUANTITY", "TOTAL COST"
LET TOTALCOST = P * Q
IF TOTALCOST > 1000 THEN TOTALCOST = TOTALCOST - TOTALCOST * 2/100

PRINT P, Q, TOTALCOST
GOTO TOP

ENDED:
END

==============================
SIMPLE PROGRAM

LET PRICE = 12.5

LET QUANTITY = 2540

LET TOTALCOST = PRICE * QUANTITY

IF TOTALCOST > 1000 THEN TOTALCOST = TOTALCOST - TOTALCOST * 2/100
  
PRINT TOTALCOST


1 5 1