Write a C program that read 6 weight values (in kilogram) of 10 adults entered by the user and store them in a one-dimensional array with data type of float named weight|]. From the array, find (i)...


Write a C program that read 6 weight values (in kilogram) of 10 adults entered by the user<br>and store them in a one-dimensional array with data type of float named weight|]. From the<br>array, find<br>(i)<br>(ii)<br>average value of weight<br>percentage of heaviest weight<br>Then display all the weight stored in the array. For example, if the first weight entered is<br>51.62, the display should be weight|01-51.62. At the end of the program, display the result of<br>(i) and (ii) using a funetion that do not return a value.<br>Sample output:<br>Please enter 6 weight values :<br>51.54 61.62 41.48 71.65 63.60 71.58<br>weight (0)- 51.54<br>weight (1)- 61.62<br>weight (2]- 41.48<br>weight(3]- 71.65<br>weight (4) 63.60<br>weight (5)= 71.58<br>Average Weight 60.25<br>Heaviest Weight Percentage: 19.82<br>

Extracted text: Write a C program that read 6 weight values (in kilogram) of 10 adults entered by the user and store them in a one-dimensional array with data type of float named weight|]. From the array, find (i) (ii) average value of weight percentage of heaviest weight Then display all the weight stored in the array. For example, if the first weight entered is 51.62, the display should be weight|01-51.62. At the end of the program, display the result of (i) and (ii) using a funetion that do not return a value. Sample output: Please enter 6 weight values : 51.54 61.62 41.48 71.65 63.60 71.58 weight (0)- 51.54 weight (1)- 61.62 weight (2]- 41.48 weight(3]- 71.65 weight (4) 63.60 weight (5)= 71.58 Average Weight 60.25 Heaviest Weight Percentage: 19.82

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here