Answer:

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

(It is OK to use ANSWER$ a second time here. The INPUT statement will replace what was in it with the new answer.)

Second Decision

With this addition, the program looks like:

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
  PRINT "Do you want tea? (Answer YES or NO)"
  INPUT ANSWER$
  IF customer wants tea THEN
    charge customer for tea
  ELSE
    charge customer for milk
  END IF

END IF

PRINT "Your beverage costs:", PRICE
END

The program is nearly complete. Recall the price list:

QUESTION 8:

Finish the program by writing QBasic for:

  IF customer wants tea THEN
    charge customer for tea
  ELSE
    charge customer for milk
  END IF