MPCS Fitness Test — Average Oxygen Level of Trainees
M · mediumP · Verified PYQmath
Problem
A batch of 3 trainees runs for 3 rounds. Record their oxygen level after every round (value must be between 1 and 100, else re-prompt). After all rounds, calculate each trainee’s average oxygen level and select the trainee(s) with the highest average as “most fit”. If all averages are below 70, declare “All trainees are unfit.” Round average oxygen values before comparing.
Example
Input
95 88 91 78 82 85 70 75 72
Output
Most fit trainee: 1 Average Oxygen Level: 91.33
2D array 3x3. For each trainee, compute average. Find max average. Print all trainees achieving that max. If max < 70 → unfit.