Question: ( 2 5 pts ) The array called temps stores 8 temperature values ( with fractional amounts ) . ( A ) Write a loop
pts The array called temps stores 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. temhtamL
C Write code to swap the highest temperature with the last value in the temps array.
Hint: use a result from part B
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
