Question: Modify the program to use only two output statements, one for each output sentence. In 2 0 1 4 , the driving age is 1

Modify the program to use only two output statements, one for each output sentence. In 2014, the driving age is 18.10 states have exceptions. Do not type numbers directly in the output statements; use the variables. ADVICE: Make incremental changes-Change one code line, run and check, change another code line, run and check, repeat. Don't try to change everything at once. Run Load default template... public class DrivingAge { public static void main (String [] args){ int drivingYear; int drivingAge; int numStates; In 2014, the driving age is 18.10 states have exceptions. drivingYear =2014; drivingAge =18; numStates =10; System.out.print("In"); System.out.print(drivingYear); System.out.print(", the driving age is "); System.out.print(drivingAge); System.out.println("."); System.out.print(numStates); System.out.println(" states have exceptions."); Feedback?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!