TM111
Introduction to computing and information
technology 1
TMA02
Total Word count: 201 words
Q1: 133 words
Q2: 0 words
Q3: 68 words
Q4: 0 words
Q5: 0 words
This study source was downloaded by 100000831777157
...
TM111
Introduction to computing and information
technology 1
TMA02
Total Word count: 201 words
Q1: 133 words
Q2: 0 words
Q3: 68 words
Q4: 0 words
Q5: 0 words
This study source was downloaded by 100000831777157 from CourseHero.com on 07-12-2022 03:20:10 GMT -05:00
https://www.coursehero.com/file/92616996/TMA-02-Joseph-Edwards-K260202Xdoc/
TM111– TMA01
TMA01 – Part 1
CONTENTS: Page No.
Q1...............................................................................................................................3
Q2...............................................................................................................................5
Q3...............................................................................................................................6
Q4...............................................................................................................................7
Q5...................................................................................................................................7
References......................................................................................................................8
This study source was downloaded by 100000831777157 from CourseHero.com on 07-12-2022 03:20:10 GMT -05:00
https://www.coursehero.com/file/92616996/TMA-02-Joseph-Edwards-K260202Xdoc/
TM111– TMA01
Q1
A. The Green flag is clicked to clear maths_challenge_list
When the space bar is pressed
The user is asked to enter a pupil’s name. They input ‘Farlia’ which is stored
as a variable name.
Then the user is requested to enter their maths test score out of 80. Their input
was 72 which is stored in maths_test_score.
The maths_test_score 72 is multiplies by 1.25 to work out the percentage of
correct questions answered. The result 90 is stored in the percentage_score.
The percentage_score is joined with the % symbol. This is the output of the
program by the sprite saying the joined strings 60% for 2 seconds.
If the percentage_score is less than 75 the variable name is added to the
maths_challenge_list
This is true so the name is added to the maths_challenge_list.
B.
C.
D.
This study source was downloaded by 100000831777157 from CourseHero.com on 07-12-2022 03:20:10 GMT -05:00
https://www.coursehero.com/file/92616996/TMA-02-Joseph-Edwards-K260202Xdoc/
TM111– TMA01
[WORDS = 133]
This study source was downloaded by 100000831777157 from CourseHero.com on 07-12-2022 03:20:10 GMT -05:00
https://www.coursehero.com/file/92616996/TMA-02-Joseph-Edwards-K260202Xdoc/
TM111– TMA01
Q2
[WORDS = 0]
This study source was downloaded by 100000831777157 from CourseHero.com on 07-12-2022 03:20:10 GMT -05:00
https://www.coursehero.com/file/92616996/TMA-02-Joseph-Edwards-K260202Xdoc/
TM111– TMA01
Q3
A. Original word ‘Elegant’
Set ‘consonant_swap’ to True
Repeat until ‘consonant_swap’ is false
Set ‘consonant_swap’ to false
Start at beginning of word
Repeat for each letter of the word
Find the next ‘vowel’ in original word
Swap ‘vowel’ with ‘@’
Set consonant_swap’ to True
B.
C.
Test number Test purpose Inputs
[Show More]