Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The list 10km_times contains times, in minutes, taken by runners to run a 10km race. The when[space]key_pressed script below should calculate and display the average

image text in transcribedimage text in transcribed

The list 10km_times contains times, in minutes, taken by runners to run a 10km race. The when[space]key_pressed script below should calculate and display the average (mean) of the times in the list, or tell the user that the list is empty. So for example if 10km_times has the contents shown in the watcher below then the message 'Average time in minutes is 52.6' should be displayed.

The program is incomplete at the points labelled a, b and c. Select the code (in textual form) that should be inserted at each of these points.

[total]+[item[position]of[10km_times]] item[total]of[10km_times] 10km_times position item[position]of[10km_times] length_of[10km_times]

a = ?

b = ?

c = ?

10km_times 156 \( 2 \longdiv { 4 0 } \) \( 3 \longdiv { 6 3 } \) 45 \( 5 \longdiv { 4 9 } \) length: 5

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

When are transfers used in organizations? LO.1

Answered: 1 week ago