Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone help with this question please. This question focuses on Part 1 (variables), Part 2 (constants, lists, arithmetic, and joining strings) and Part 3
Can someone help with this question please.
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 the number of Christmas spelling challenges pupils complete in December, up to a maximum of 40 . Before recording the number of challenges 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 the number of challenges, which she will enter as a whole number out of 40 . If the number of challenges, as a percentage of the maximum of 40 , is more than 75%, then the pupil will be awarded a holly stamp. 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. Complete the step-by-step description below of what the when [space] key_pressed script does when the user starts the program using the green flag, then presses the space key, and enters 'Jan', and then 38. The user is asked to enter a pupil's name. Their input, 'Jan', is stored in the variable name. The user is asked to enter the number of challenges completed by the pupil out of a maximum of 40 . Their input, 38 , is stored in 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 'Jan' and 38, not what the script does in general or what might have happened with different inputs. (4 marks) b. i. Identify a numerical value in this program that might appropriately be stored in a constant. (There may be more than one possibility but you are only required to identify one. You are not asked to implement this constant.) (1 mark) ii. What might be an appropriate name for the constant you have chosen? (1 mark) c. Amend the when_green_flag_clicked and when [space] key_pressed scripts so that: - If a pupil completes more than 75% of the Christmas spelling challenges, their name is added to the list holly_list. - Otherwise, their name is added to a list snowman_list
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started