Question: a The space station has a device which records temperature readings every hour. However, the astronaut reading from it is floating upside down, and so

 a The space station has a device which records temperature readings

a The space station has a device which records temperature readings every hour. However, the astronaut reading from it is floating upside down, and so reads the values backwards. As a solution an additional feature is added so the readings are printed backwards. Write a C++ to upgrade the device. Declare the function void reverse(int readings[], int size) which takes an array and its size, and reverses it (first element should become last, last element should become first, and so on) I . In the main, declare an integer array of size 10 and initialize it via user input then call reverse to reverse the array. In the main, print the new readings. Sample output: Please input 10 temperature readinga 34 36 38 41 43 33 30 19 39 45 The readings in reverse are 45 39 19 38 33 43 41 38 36 34

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