Question: Arrays Assignment Create a project named TempreturesArray. Use this project to write and run a JAVA program that performs the following: o Creates an integer

 Arrays Assignment Create a project named "TempreturesArray. Use this project to
write and run a JAVA program that performs the following: o Creates

Arrays Assignment Create a project named "TempreturesArray. Use this project to write and run a JAVA program that performs the following: o Creates an integer 1-D array named temperatures of 5 elements. Reads the temperatures in 7 days and stores them in the temperatures array. o Prints the array indices and temperatures in a tabular format as shown in the sample output. o Finds and prints the highest temperature in the array and prints the day number with the highest temperature. o Swaps the first and last temperatures. o Reprints the array indices and temperatures in a tabular format, Sample Output Enter temperature for 7 days in a week: 15 17 22 23 20 19 20 15 17 The entered temperatures are: Day Temperature 1 2 3 22 4 23 5 20 6 7 20 19 The highest temperature is 23 in day 4 The modified temperatures are: Day Temperature 1 20 2 17 3 22 4 23 5 20 6 19 7 15

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!