Answer:

IF ANSWER$ = "YES" THEN

Second Question

The program is supposed to print out the cost of the user's beverage. Here is the program with a few additions:

PRINT "Do you want coffee? (Answer YES or NO)"
INPUT ANSWER$

IF ANSWER$ = "YES" THEN
  LET PRICE = 1.05

ELSE
  ' decide between tea and milk
  ask if customer wants tea
  IF customer wants tea THEN
    charge customer for tea
  ELSE
    charge customer for milk
  END IF

END IF

PRINT "Your beverage costs:", PRICE
END

QUESTION 7:

Now write two QBasic statements for:

  ask if customer wants tea