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

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 = ?

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

Recommended Textbook for

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions