Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 3 In preparation for the examination candidates should attempt the tollowing practical tasks by writing and testing a program or programs A junior park

Task 3 image text in transcribed
In preparation for the examination candidates should attempt the tollowing practical tasks by writing and testing a program or programs A junior park run event is held every week on a Saturday morning in a local park over a distance of two kilometres. Children between the ages of 4 and 14 inclusive can register to take part. Children register with their name and age. When they register, they are allocated a unique identification number of four digits; the last digit is a check digit. Once registered a child can take part in junior park run events for a year For each event, the organisers record the time each child takes to run two kilometres. Their time is stored for every event they complete and the number of runs they have completed is updated by one. If their time is faster than their personal best (PB) time, their PB time is updated. When a child has completed 11 runs, they are awarded a half-marathon wristband. When a child has completed 22 runs, they are awarded a full-marathon wristband A program is required to update the children's data, update PB times it necessary, and decide i a wristband is to be awarded. The program also needs to identity the fastest child at this event for each of the age ranges: 4 to 6, 7 to 10 and 11 to 14 Write and test a program or programs for the park run organiser Your program or programs must include appropriate prompts for the entry of data. . Error messages and other output need to be set out clearly and be understandable. All variables, arrays, constants and other identifiers must have meaningful names. You will need to complete these three tasks. Each task must be fully tested TASK 1-Registering to take part Write a program to set up arrays to store the data for 20 children. On registration, each child must be allocated a unique identification number of four digits; the last digit is a check digit. The unique identification number, age in years and name for each child is recorded and stored on registration. The PB time and the number of runs are initialised to zero and these values stored on registration. Their PB time is stored as minutes correct to two decimal places TASK 2-Recording the times. start time and finish time each child took Extend your program to record the unique identification number and to input the time for every child completing the junior park run event. Calculate and store the to complete the run. A registered child does not have to compete in each event.Only one time per child is recorded during an event. TASK 3 -Updating the children's data and identifying the fastest child for each age range. Extend your program to update the number of runs and the PB time it completing the junior park run event. Check if any half-or full-marathon wristbands need to be awarded Output the names and the type of wristbands. Output the names and the times of the fastest child at this event for each of the age ranges 4 to 6, 7 to 10 and 11 to 14 necessary for every child if any half-or full-marathon wristbands need to be awarded

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

(8) What am I doing to stretch the high achievers?

Answered: 1 week ago