• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 2 out of 11 pages
Exam (elaborations)

Tm111 Tma02/Tm111 Tma02/Tm111 Tma02

Document preview thumbnail
Preview 2 out of 11 pages

TM111 TMA02/TM111 TMA02/TM111 TMA02

Content preview

certifiednurse
TM111 TMA02/TM111 TMA02/TM111 TMA02

TM111 TMA02

Question 1
(a) When the spacebar is pressed, the user is asked to input the students name, which, in this
case, is Faria. Faria is then stored as a "name" variable. The user is then asked to input their
test score of 72, this is then stored as a "math_test_score" variable. The "percentage_score"
is then worked out by using the variable "math_test_score" * 1.25, which then provides us
with a percentage out of 100. The sprite then informs us of the "percentage_score" for
Faria. In this case, Faria's "percentage_score" is higher than 75% so therefore her name
which was stored in the "name" variable, is now added to the "math_challenge_list" list.
The program was able to decide if Faria was legible for the "math_challenge_list" by using
the "IF percentage_score > 75 THEN" function.
An excellent fully detailed description.




(b)
i. 80

Make it clear what this number represents. Although this might be suitable in an extended version it
is not being used in this program.

The percentage multiplier, 1.25, might be stored in a constant.




ii. MAXIMUM_SCORE
Good to see the naming convention for constants has been followed.




Page | 1

, certifiednurse
TM111 TMA02/TM111 TMA02/TM111 TMA02
(c)




Figure 1– A Screenshot of OUBuild script which shows the use of lists and the IF_Then blocks to categorise students based
on their math test scores.

Excellent




(d)

i.




Page | 2

Document information

Study
Uploaded on
July 22, 2022
Number of pages
11
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers
£9.62

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
STUVIAGURU2025
3.7
(75)
Sold
500
Followers
447
Items
1900
Last sold
1 month ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions