Three trays each hold two reflectors, with two more reflectors waiting. Work out the total and both ways of dividing it among the trays.
The starter provides trays, per_tray, and extra. It also prints total, whole, and average, which use temporary expressions so you can run each stage. Initially they print 7, 7, and 7.00; none is the requested result.
total, whole, and average: calculate the reflector total from the supplied values, divide it by trays as integers, then use conversion before division for the fractional average.Keep the supplied print call. Work through the calculations in order, pressing Run after each one:
total, the report should begin Reflectors: 8.whole, its field should read Whole: 2.average, its field should read Average: 2.67.The complete line is Reflectors: 8 | Whole: 2 | Average: 2.67. Submit checks that whole line together; these Run checkpoints are not independent graded tasks. The check also cannot prove which expressions you used. Check for the cast before division in your source.
Convert total before dividing by trays; %.2f then rounds the display.