a, When the green flag is pressed any data stored is deleted. When the space key is pressed the user
is asked to enter the pupils name into the first variable, followed by entering the pupils attendance,
out of 50 days into the second variable, the user is then presented with the third variable, a
percentage of the pupils attendance before the pupil is added to the appropriate list.
b, A constant is a variable that does not change during the programme. An example used in this
programme would be the variable ‘name’ which could be changed to PUPIL..
c,
d,1
d,2
An alternative form of selection structure to the attendance programme could be to change the
percentage used for satisfactory attendance to 89% which will send 45 days attendance, equivalent
to 90% to the satisfactory list and 44 days attendance, equivalent to 88% to the low attendance list.
1
This study source was downloaded by 100000841689952 from CourseHero.com on 07-24-2022 02:32:18 GMT -05:00
https://www.coursehero.com/file/54291092/TM111TMA02docx/