Computer Science, asked by arfingian1, 11 months ago

a shopkeeper gives discount on purchase of items from his shop according to the following criteria
purchase amount discount
<=1000. 5
>1000and<=2000. 10
>2000. 15
wap to enter the purchase amount and display amount to be paid after getting the discount​

this is basic sum

Answers

Answered by AareshMishra
1

Answer:

2000.15-----2000.20

Answered by deyrohitaswa
0

Answer:

10 CLS : T=0

20 INPUT “ENTER NUMBER OF CUSTOMERS”;N

30 FOR I=1 TO N

40 INPUT “ENTER PURCHASE AMOUNT”;P

50 IF P<=1000 THEN DP=5

60 IF P>1000 AND P<=2000 THEN DP=10

70 IF P>2000 THEN DP=15

80 D=P*DP/100

90 AMT=P-D

100 PRINT “AMOUNT TO BE PAID=”;AMT

110 T=T+AMT

120 NEXT I

130 PRINT “TOTAL AMOUNT EARNED BY THE SHOPKEEPER=”;T

140 END

Explanation:

Because it has asked for discoumt and value of shopkeeper's materials so this basic program shall be done and you can run it also in both Q-BASIC AND GW-BASIC

Similar questions