Question: a ) Consider the table below : Robot Number Speed Weight Max. Run - Time Price 1 . 0 4 . 5 5 . 6

a) Consider the table below :
Robot Number Speed Weight Max. Run-Time Price
1.04.55.612.7495.99
2.05.68.98.2599.95
3.02.114.66.5399.95
4.07.96.43.4749.65
The table gives information about 4 mobile robots :
Top Speed (m/s), Weight (Kg), Maximum Run-Time on a full battery (Hours), Price ().
Write a program that stores the information in a single array, and allows the user to change any value (including robot number). The program should also allow the user to select the following information when requested via a simple menu:
i) The fastest / slowest robots.
ii) The heaviest / lightest robots.
iii) The robots with the best / worst maximum run-time.
iv) The cheapest / most expensive robots.
v) The average speed of all the robots.
vi) The average Weight of all the robots.
vii) The average runtime of all the robots.
viii) The average price of all the robots.
ix) All the details of any one robot.
The robots array is a 4 by 5 table (4 rows x 5 columns) and all the values are floats (or doubles) so we can store them all in one array.
float robots[4][5]={1.0,4.5,5.6,12.7,495.66,2.0,5.6 and so on.
This means you can refer to the entire data set just using the single array. (Use only include to solve) and (use loops and 2D Arrays to do and void not allowed to use.)
 a) Consider the table below : Robot Number Speed Weight Max.

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!