go to previous page   go to home page   go to next page hear noise

Answer:

if (  answer == 1 )
if (  answer == 1 )

(There are other ways to correctly complete the program.)


A Run of the Program

This program uses two if statements. Say that the user does not want pin stripes but does want anti-lock brakes:

Do you want pin stripes (0 or 1)? 0
Do you want anti-lock brakes (0 or 1)? 1
Total cost is: $20800

QUESTION 11:

Show the dialog for a user that wants pin stripes but does not want anti-lock brakes.


go to previous page   go to home page   go to next page