Question: Please help I keep getting an error for my output Q- Search ln Cambria (Body) 10A-AA Subtle Ems Lab Z parts to complete Part 1:

Please help I keep getting an error for my output  Please help I keep getting an error for my output Q-
Search ln Cambria (Body) 10A-AA Subtle Ems Lab Z parts to complete
Part 1: Create a new Java applikation called XY21234Lab2Partl. In this example
we are golng to use functions that are already written. They are

Q- Search ln Cambria (Body) 10A-AA Subtle Ems Lab Z parts to complete Part 1: Create a new Java applikation called XY21234Lab2Partl. In this example we are golng to use functions that are already written. They are stored In Java hraries and ie oeder to use them, we have to tell Java to mpert the definitions frem their libraries Note that the import statements seed to be before the class header publie class but her a package header Cof there is one) NetBeans will help you fgure out what import statements you need. [Yay, NetBeans ls the mais routine of the project you jast made, type the cede below. Go te your XYZ1234Lab1 Part3d cede that you completed and copy the BODY of the main method from XYZ1234Lab1Partld into the body of the main method for your new program X21234Lab2Part1 We're going to modify this code so that the user can enter valses for h and w to have the progran fiad SA Before the line inth&add the following ine Scanner mysannenew ScannercSysteminl; After the line int w4 add the following lines stem.eut.arie Please enter anothet number tem.out.Rn Prease enter a thied sumber All the lines from System.out.print "Dimemsions..to the end of the program should stay the same After you have typed these new lines in, you will see an error notation an the left side. Click on the red circle to see the message and then click ore drag your mouse to see NetBeans's suggestions of how to fix this. Now run the program 1.a) Test your program with the following combinations of numbers. Copy the output that is ava 1001152340 art2 Navigate Source Refactor Run Debug Profile Team Tools Window Help Mwei) 60% C) Mon 7:33 PM a E KDA2340Lab2Part1 NetBeans IDE 8.2 cdefault conf... Q Search (+1) start Pag 0Output. KDH2340Lab2Partl (run) ESKOA2 340ab2Part 1-Javac E) myscannne,java run: please enter a number(h) /users/den i se/Library/Caches/NetBeans/82/executor-snippe t s/run. xml:53: BException in thread "main" java. tang.UnsupportedoperationException: Not supported yet at kda2348Lab2part1.myscannner.nextInt (ayscannner.java:15 at kda23481ab2part1.KDA2348Lab2Part1.nain (KDA2348L ab2Parti.java:34 Java returned: 1 BUILD FAILED (total time: 8 seconds) part2 Lab1Part2 java cempty Area0: int gs) 0 1.a) Test your program with the following combinations of nambers. Copy the output that is produced for each set of values given below into your answers fille AND include a screenshot of each output (12 pts) a 2, b 2,c 2 produces output of a 6, b-2, c-3 produces output of 1.b) Give an example of a set of values that will make the program fail (crash). Show the output (5 pts) (4 pts) 1.c) What does the Scanner let you do? 1.d) Why is the lise below BEFORE the first call to the Scanner? System.out.printr Please enter a number " Put the answers for 1a- 1d in your answers file

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!