Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 a single array. (Use only include to solve) and (use loops and two dimensional arrays to do and void function not allowed to use.Only use arrays and for loop to solve the question and #define _CRT_SECURE_NO_WARNINGS) Programming C to solve.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Explain Potters general framework for mass media scholarship.

Answered: 1 week ago