if ( answer == 1 ) if ( answer == 1 )
(There are other ways to correctly complete the program.)
Notice that this program has two if
statements in it.
Say that the user wants pin stripes but not anti-lock brakes.
Here is a run of the program:
Do you want pin stripes (0 or 1)? 0 Do you want anti-lock brakes (0 or 1)? 1 Total cost is: $20800.0
Show the dialog for a user that wants pin stripes but does not want anti-lock brakes.