Question: This question focuses on Part 1 ( variables ) , Part 2 ( constants , lists, arithmetic and joining strings ) and Part 3 (
This question focuses on Part variables Part constants lists, arithmetic and joining strings and Part selection
Open the project TMQsb
This project is intended to implement a program to help the teacher record how many kilometres pupils have completed during a charity bicycle ride, up to a maximum of km
Before recording the number of kilometres completed by each pupil, the teacher will start the program using the green flag. She will then press her space key whenever she wants to record a pupils completed number of kilometres, which she will enter out of a maximum of If the number, as a percentage of the maximum of is more than then the pupil will be awarded a Yellow Jersey sticker.
In this project, we have provided a whengreenflagclicked script and a whenspacekeypressed script. Consider these scripts carefully and then answer the questions below.
aImagine a scenario in which the user starts the program, then presses the space key, and enters Ella and then when prompted.
Copy and complete the following stepbystep description of what happens, starting from the point at which the user is prompted for input.
The user is asked to enter a pupils name. Their input, Ella is stored in the variable name.
The user is asked to enter the number of kilometres completed by the pupil out of a maximum of
Your description should make clear what data is stored in the variables and the list involved, and the result of any comparison that is made.
You should describe what happens in the particular scenario here, with the inputs Ella and not what the script does in general or what might have happened with different inputs.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
