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
Can someone help with this question please. 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 the number of Christmas spelling challenges pupils complete in December, up to a maximum of 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 If the number of challenges, as a percentage of the maximum of is more than then the pupil will be awarded a holly stamp. In this project, we have provided a whengreenflagclicked script and a whenspacekeypressed script. Consider these scripts carefully and then answer the questions below.a Complete the stepbystep description below of what the when space keypressed script does when the user starts the program using the green flag, then presses the space key, and enters 'Jan', and then 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 Their input, 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 not what the script does in general or what might have happened with different inputs. 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. mark ii What might be an appropriate name for the constant you have chosen? mark c Amend the whengreenflagclicked and when space keypressed scripts so that: If a pupil completes more than of the Christmas spelling challenges, their name is added to the list hollylist. Otherwise, their name is added to a list snowmanlist
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