Computer Science, asked by THANOS888, 9 months ago

plz make algorithm of the following codes of qbasic


CLS
hi:
COLOR 2
PRINT "======================="
PRINT "WELCOME TO  MERCEDES BENZ"
PRINT "========================"
COLOR 3
PRINT "13% will be included"
PRINT "3% discount for this month"
PRINT "PRICES OF THE AVAILABLE CARS:"
PRINT "cla : Rs.3500000"
PRINT "amg gt : Rs.23200000"
PRINT "e class : Rs.7500000"
PRINT "g class : Rs.21900000"
PRINT "c class : Rs.7600000"
PRINT "s class : Rs.27300000"
PRINT "a class : Rs.3500000"
PRINT "glb : Rs.4000000"
COLOR 4
PRINT "========================"
INPUT "enter your name"; a$
INPUT "enter your adress"; b$
INPUT "what do you want to buy"; c$
INPUT "quantity"; e


IF c$ = "cla" THEN
   p = 3500000
ELSEIF c$ = "amg gt" THEN
   p = 23200000
ELSEIF c$ = "e class" THEN
   p = 7500000
ELSEIF c$ = "g class" THEN
   p = 21900000
ELSEIF c$ = "c class" THEN
   p = 7600000
ELSEIF c$ = "s class" THEN
   p = 27300000
ELSEIF c$ = "a class" THEN
   p = 3500000
ELSEIF c$ = "GLB" THEN
   p = 4000000

END IF
t = p * e
s = t - (0.03 * t)
k = s + (0.13 * s)
IF c$ = "cla" OR c$ = "amg gt" OR c$ = "e class" OR c$ = "g class" OR c$ = "c class" OR c$ = "s class" OR c$ = "a class" OR c$ = "glb" THEN

   PRINT "your name = "; a$
   PRINT "your adress = "; b$
   PRINT "you have to pay only Rs."; k
   COLOR 20
   PRINT "ENJOY YOUR RIDE"
ELSE
   COLOR 30
   PRINT "THE CAR IS NOT AVAILABLE AT THE MOMENT"
END IF
d$ = " thanks for visiting"
FOR i = 1 TO hi
NEXT i
PRINT d$
GOTO hi
END​

Answers

Answered by geniusno0001
1

Answer:

the question is too big please explain in short Or for a very lot points

Similar questions