Question: This question focuses on Part 1 ( variables ) , Part 2 ( constants , lists, arithmetic and joining strings ) and Part 3 (

This question focuses on Part 1(variables), Part 2(constants, lists, arithmetic and joining strings) and Part 3(selection).
Open the project TM111_02_Q1.sb2.
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 40 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 40. If the number, as a percentage of the maximum of 40, is more than 75%, then the pupil will be awarded a Yellow Jersey sticker.
In this project, we have provided a when_green_flag_clicked script and a when[space]key_pressed script. Consider these scripts carefully and then answer the questions below.
a.Imagine a scenario in which the user starts the program, then presses the space key, and enters Ella, and then 32 when prompted.
Copy and complete the following step-by-step 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 40...
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 32, 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!