Question: ( 2 5 pts ) The array called temps stores 8 temperature values ( with fractional amounts ) . ( A ) Write a loop

(25 pts) The array called temps stores 8 temperature values (with fractional amounts).
(A) Write a loop to input all the temperatures from the user into the array.
(B) Write a second loop to find the index of the highest temperature in the temps array and then output the highest temperature. h=4,L=2,temh=L,tamL=4
(C) Write code to swap the highest temperature with the last value in the temps array.
(Hint: use a result from part (B)).
( 2 5 pts ) The array called temps stores 8

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!