if ( answer == 1 ) if ( answer == 1 )
(There are other ways to correctly complete 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
Show the dialog for a user that wants pin stripes but does not want anti-lock brakes.