• 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 12 pages
Essay

TM111 TMA02 Computing and Information Technologies

Document preview thumbnail
Preview 2 out of 12 pages

Essay for TM111 TMA02

Content preview

Module: TM111
Assignment: TMA 02




1|Page

, Question 1:

a) When the [space]key_pressed is clicked, it will delete the existing
pupils name from the sensing variable and the user is asked to input
the students name, in this case “Dani” is entered. Next the user is
asked to input “what distance in km was run” and 20km is entered.
The “distance percentage” score is then worked out and provides a
percentage out of 100. Dani has scored 80% and was added to the
“gold_medel_list” as the program, using the variable entered,
determined that “distance_percentage > 60 then add name to
gold_medel_list”.




Figure 1.1

b) i) A numerical value in this program that is appropriate to refer to as a
constant is 60 in the “distant_percentage” variable as it is fixed and
cannot be change for the purpose of adding candidate to the
“gold_medal_list”.

b)ii) an appropriate name for the constant can be
MAXIMUM_DISTANCE.




2|Page

Document information

Study
Unknown
Uploaded on
July 16, 2022
Number of pages
12
Written in
2021/2022
Type
Essay
Professor(s)
Unknown
Grade
B
£10.98
Purchased by 25 students

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.
Rekah
3.5
(15)
Sold
127
Followers
69
Items
28
Last sold
2 months ago


Reviews from verified buyers




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