I think you should try using println statements to see what's wrong. Try printing out your variables (i.e. discount, insurance). Try and see what happens to discount and insurance when you enter 'f',...
Type: Posts; User: Actinistia
I think you should try using println statements to see what's wrong. Try printing out your variables (i.e. discount, insurance). Try and see what happens to discount and insurance when you enter 'f',...
Hey! If you want to use the switch or if/else if statements, I'd recommend reading The if-then and if-then-else Statements (The Java™ Tutorials > Learning the Java Language > Language Basics) and The...