Question: CS 170 Java Lab # 001 Activities: Chs. 8 20 Arrays Write a Class: Spring 2025 Lab Date: 2-11-2025 In this Lab, you will (?)

CS 170 Java Lab # 001 Activities: Chs. 8 20 Arrays Write a Class: Spring 2025 Lab Date: 2-11-2025 In this Lab, you will (?) write a class that models processing of 2D arrays Return Softcopy / E-copy [Upload in Blackboard] on the Due Date: 2-21-2025, by midnight A. Write the class TestTwoDArray that contains NOTICE: All that is called below a hardcopy (Le, on paper) to return, now must be treated as an e-copy; that is, upload it in BB instead. a squareArray METHOD THAT TAKES a 20 array of double numbers AND RETURNS another array with THE square OF each of these NUMBERS (from the input array). [Note: the type of the numbers in the 2 arrays, input and output (taken and returned) ones, needs to be the same (double and double)] Name: (print) Grade: SUBMIT: a main method that calls the squareArray method with a 20 array of 6 double numbers (the array is to be 3x 2 [3 rows and 2 columns]), read from the keyboard and prints both this array of double numbers out with the ANSWERS to the Pre-Lab Questions and the V. Short Answer for [input array) and the returned one (output array) with the squared numbers. 's of this LAB (in term SUBMIT an E-COPY of the Source lass TestTwoDArray.java Use the portable wave ?DE Integrated Development Enviroun For A: of ExSquat. Use Eve Julie in the ug the source code (these source codes are shown in the uppedpane ate ia BB un - Choose what the names of the input and output arrays you want to be it the output of the pr ex you run it ie, return the copy with sample run and output-use - Use the import directive as the very first line(s) of the java files to import the Java library chases, which you need to use, here DO IDE C ems (run and output) (these both are shown in the bottom pane of import the classes Math and Scanner (you need to use their Java libraries, if you don't know them, search for them on Internet) s on BB, go to moments Labs in Blackboard Click the Lab 001 link and IIL. Test your class TestTwoDArray with the respect entered from the keyboard he items listed in that order. The grade for this Lab will be lowered if you do not upload the CORRECT source code files by the due date Notes 1 For reading input from the keyboard (in items A II above), recall, you need to use the object Pre-Lab Questions: data from the keyboard) created in the following way: Scanner myScan = Dew Scanner (System.in) : is an index variable in 2D away? Iv. Compile and run the class TestTwoDArray. UseDeJava. (or NetBeans or others] Use the e an example of a 20 array index variable. portable DeJava IDE (as referred to in class); DEJava IDE is uploaded on Blackboard-just download it) to write, compile, run, and debug the 2 Java files and to submit both (1) the source code for each of them and (2) the printout of the but is a row index in a 20 array? rum session and the output of the program. is a column index in a 20 anay? DJava IDE has a print command-just go in the source code pone (the upper pane) and run the print cocomand and then go to the interactions/console pane (the bottom pane), do the right mouse click and choose and run the "Prints e an example of a column index in a 20 array- Interactions _." command 6, Which index changes the fastest in a 20 away? V. (8 points) Write down short answer to the following: Main point of this LAB in terms of Java: Answers" From this LAB, in terms of Java I learned: DUANG IDE e you can find the link to the Web site, where you can download " at for you: For exangle, Matenang or the online wacalla. Page 1 of 4 Page 2 of 4

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 Programming Questions!