• 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
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

TM111 TMA02. EXAM-with 100% verified solutions-2023update

Document preview thumbnail
Preview 2 out of 8 pages

TM111 TMA02. EXAM-with 100% verified solutions-2023update

Content preview

TM111 TMA02. EXAM-with
100% verified solutions-
2023update
TM111 https://www.coursehero.com/file/146403292/TM111-TMA02docx/TMA02
* Question 1
What the script will do when the spacebar is pressed it record the name of the pupil and how many
books they have read, then work out their reading percentage.
we were hoping for something like:
… Their input, 12, is stored in the variable books_read. The variable percentage_read is set to the value of books_read multiplied by 5 (or to the percentage equivalent of books_read) which in this case is 60.
The user is told the percentage of books read (60%).
The script then checks whether 60 is less than 70 and finds it is
so the pupil's name, 'Frank', is added to low_reading_list.
0/4 Since the value 12 was given you can use exact values, percentages etc. for a clear example. *1b
Value of the constant is BOOKS, as we know there are 20 and this doesn’t change.
*1c
BOOKS would be an appropriate name for the constant.
I will accept this answer. 2/2 chosen constant and you adhered to formatting conventions. Screen shot of low & satisfactory below
This study source was downloaded by 100000831777157 from CourseHero.com on 07-12-2022 04:39:25 GMT -05:00

Document information

Uploaded on
January 20, 2023
Number of pages
8
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

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.
PAUL692
4.2
(33)
Sold
276
Followers
124
Items
689
Last sold
1 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced 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