Fixed the problem :) Program is complete now!
Type: Posts; User: BaldEagle7878
Fixed the problem :) Program is complete now!
Ok. Now I'd like to create a boolean IsVIP that discounts the ticketPrice which is 20 by 20%. I created these lines of code
System.out.println("Are you a VIP?");
Boolean isVIP =...
Yes I did. It was missing the curly brackets in a few places. It works now thanks
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package...
Yes it would. My code gives an error for some reason though
Selection as in using a switch statement but I'm unsure how it would answer the question as it uses three conditions not one. It's just an example it can be done anyway I would like my teacher says.
Hello everyone,
I'm a beginner at Java and have a question. I have an optional exercise I can do for uni to create a program and am stuck as to what to use to get the program to work. The question...