11:15 LTE O Chapter 7 Project - new Summer 19 3... Chapter 7 Project Project Name: Chpt7_Project Class Name: Chpt7_Project Write a Java program with a single-dimension array that holds 10 integer...


I need help with wroting a Java program with a single-dimension array that holds
10 integer numbers and identify the maximum value of the 10
numbers. Next sort the array using a bubble sort and display the
array before and after sorting.


11:15<br>LTE O<br>Chapter 7 Project - new Summer 19 3...<br>Chapter 7 Project<br>Project Name: Chpt7_Project<br>Class Name: Chpt7_Project<br>Write a Java program with a single-dimension array that holds<br>10 integer numbers and identify the maximum value of the 10<br>numbers. Next sort the array using a bubble sort and display the<br>array before and after sorting.<br>Step 1. Create an algorithm (either flowchart or pseudocode)<br>will use to write the program. Place the algorithm in a<br>that<br>you<br>Word document.<br>Step 2. Code the program in Eclipse and ensure the following<br>steps are accomplished.<br>1. Generate 10 random integer numbers between 1 and 100, and<br>place each random number in a different element of a single-<br>dimension array starting with the first number generated.<br>2. Locate the largest of the 10 numbers and display its value.<br>3. Display the array's contents in the order the numbers are<br>initially inserted. This is called an unsorted list.<br>4. Using the bubble sort, now sort the array from smallest<br>integer to the largest. The bubble sort must be in its own<br>method; it cannot be in the main method. Here is the code for<br>the bubble sort method. Use this code, and not some code you<br>find online.<br>Bubble Sort Code:<br>public static void bubbleSort(int[] list)<br>{<br>int temp;<br>for (int i = list.length - 1; i> 0; i--)<br>{<br>for (int j= 0; j<i; j++)<br>{<br>if (list[j] > list[j+ 1])<br>{<br>temp = list[j];<br>list[j] = list[j + 1];<br>list[j + 1] = temp;<br>}<br>}<br>}<br>(7<br>94<br>Dashboard<br>Calendar<br>Notifications<br>Inbox<br>

Extracted text: 11:15 LTE O Chapter 7 Project - new Summer 19 3... Chapter 7 Project Project Name: Chpt7_Project Class Name: Chpt7_Project Write a Java program with a single-dimension array that holds 10 integer numbers and identify the maximum value of the 10 numbers. Next sort the array using a bubble sort and display the array before and after sorting. Step 1. Create an algorithm (either flowchart or pseudocode) will use to write the program. Place the algorithm in a that you Word document. Step 2. Code the program in Eclipse and ensure the following steps are accomplished. 1. Generate 10 random integer numbers between 1 and 100, and place each random number in a different element of a single- dimension array starting with the first number generated. 2. Locate the largest of the 10 numbers and display its value. 3. Display the array's contents in the order the numbers are initially inserted. This is called an unsorted list. 4. Using the bubble sort, now sort the array from smallest integer to the largest. The bubble sort must be in its own method; it cannot be in the main method. Here is the code for the bubble sort method. Use this code, and not some code you find online. Bubble Sort Code: public static void bubbleSort(int[] list) { int temp; for (int i = list.length - 1; i> 0; i--) { for (int j= 0; j list[j+ 1]) { temp = list[j]; list[j] = list[j + 1]; list[j + 1] = temp; } } } (7 94 Dashboard Calendar Notifications Inbox
11:15<br>LTE O<br>Chapter 7 Project - new Summer 19 3...<br>Z. LOCat tHC largest Of tlNe TV IIUIIIUCIS alng dispray its valut.<br>3. Display the array's contents in the order the numbers are<br>initially inserted. This is called an unsorted list.<br>4. Using the bubble sort, now sort the array from smallest<br>integer to the largest. The bubble sort must be in its own<br>method; it cannot be in the main method. Here is the code for<br>the bubble sort method. Use this code, and not some code you<br>find online.<br>Bubble Sort Code:<br>public static void bubbleSort(int[] list)<br>{<br>int temp;<br>for (int i = list.length - 1; i> 0; i--)<br>{<br>for (int j = 0; j <i; j++)<br>{<br>if (list[j] > list[j + 1])<br>{<br>temp = list[j];<br>list[j] = list[j + 1];<br>list[j + 1] = temp;<br>}<br>}<br>}<br>}<br>||<br>5. Display the array's contents after the bubble sort is completed.<br>6. Add comments at the top of the class with your First and Last<br>name, and comment the code to explain the various steps.<br>Step 3. Test your program. Below is an example of what the<br>program output should look like. Your output will be different<br>because the 10 random numbers will not be the same as the<br>example.<br>Use the Snip It tool in Windows or a similar tool on the Mac to<br>cut and paste the Eclipse Console output window into the same<br>Word document as the algorithm in Step 1.<br><terminated> C7_Project (2) [Java Application] C:\Program Files\Java\jre1.8.0_131\bin\javaw.exe (Mar 26, 2019, 11:24:20 AM)<br>The largest value is 100<br>The unsorted list is: 64 24 25<br>48 71 1ee<br>81<br>3<br>The sorted list is: 3 5 24<br>47 48<br>64 71 81<br>100<br>SAMBLE<br>(7<br>94<br>Dashboard<br>Calendar<br>Notifications<br>Inbox<br>

Extracted text: 11:15 LTE O Chapter 7 Project - new Summer 19 3... Z. LOCat tHC largest Of tlNe TV IIUIIIUCIS alng dispray its valut. 3. Display the array's contents in the order the numbers are initially inserted. This is called an unsorted list. 4. Using the bubble sort, now sort the array from smallest integer to the largest. The bubble sort must be in its own method; it cannot be in the main method. Here is the code for the bubble sort method. Use this code, and not some code you find online. Bubble Sort Code: public static void bubbleSort(int[] list) { int temp; for (int i = list.length - 1; i> 0; i--) { for (int j = 0; j list[j + 1]) { temp = list[j]; list[j] = list[j + 1]; list[j + 1] = temp; } } } } || 5. Display the array's contents after the bubble sort is completed. 6. Add comments at the top of the class with your First and Last name, and comment the code to explain the various steps. Step 3. Test your program. Below is an example of what the program output should look like. Your output will be different because the 10 random numbers will not be the same as the example. Use the Snip It tool in Windows or a similar tool on the Mac to cut and paste the Eclipse Console output window into the same Word document as the algorithm in Step 1. C7_Project (2) [Java Application] C:\Program Files\Java\jre1.8.0_131\bin\javaw.exe (Mar 26, 2019, 11:24:20 AM) The largest value is 100 The unsorted list is: 64 24 25 48 71 1ee 81 3 The sorted list is: 3 5 24 47 48 64 71 81 100 SAMBLE (7 94 Dashboard Calendar Notifications Inbox
Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here