Important – help with assignment questions
You should read the TM111 Assessment Guide in the Assessment section of the TM111 website
before answering the questions here.
You should read the TM111 Assessment Guide in the Assessment section of the TM111 website
before answering the questions here.
All written answers must be submitted in a word-processor document that is compatible with
Microsoft Word, that is with one of the following file extensions: a .doc, .docx or .rtf. See the section
on ‘What to submit for TMAs’ in the TM111 Assessment Guide.
If you need further guidance on any assignment questions, please ask your tutor, who will be
happy to help.
Note that screenshots should show just the scripts concerned, not the whole OUBuild window or
your entire screen. Refer to the TM111 Assessment Guide for further information on screenshots.
Reminder: In order to pass the module, you will need to gain a weighted average of 40% or more
for your TMAs and iCMAs and gain a mark of at least 30% on TMA 03. The weighted average of
your iCMA and TMA scores will give your overall module score.
This module requires all assignments to be submitted electronically. To submit an assignment, please
follow the link(s) from your StudentHome page to the online TMA/EMA service.
If you foresee any difficulty with submitting your assignment on time, you should contact your tutor well
in advance of the cut-off date.
This tutor-marked assignment (TM111 TMA 02) must be submitted by 12 noon (UK local time) on
23 January 2020.
Questions
In this TMA you will work on some prototype programs to assist a teacher working with a class of young
pupils.
In each question, unless directed otherwise
you should assume that the user enters valid data, and you do not need to test your program with
invalid inputs
when designing an algorithm or creating code, you should do no more than the question asks – do
1 of 14 17/12/2019, 19
,Tutor-marked assignment TMA 02: View as single page https://learn2.open.ac.uk/mod/oucontent/view.php?id=1558190&printabl
not add extra features.
Marks may be deducted if the specification isn’t followed exactly.
Question 1 (20 marks)
This question focuses on Part 1 (variables) Part 2 (constants, lists, arithmetic, joining strings) and Part 3
(selection).
Open the project .
This project is intended to implement a program to help the teacher record the number of books pupils
have read in a class reading scheme. The reading scheme comprises 20 books.
Before recording numbers of books read the teacher will start the program with the green flag. She will
then press her space key whenever she wants to record the number of books a pupil has read, which
she will enter as a whole number of books out of 20. If the percentage of books read is less than 70% it
is classed as low.
In this project we have provided a script and a
script. Consider the latter script carefully and then answer the questions
below.
a. Complete the following step-by-step description of what the script
does when the user starts the program with the green flag, then presses their space key, and
enters , and then . Your description should make clear what data is stored in the
variables and the list involved, and the result of any comparison that is made.
The user is asked to enter a pupil's name. Their input, , is stored in the variable .
The user is asked to enter the number of books the pupil has read ….
(4 marks)
b.
i. Identify a value in this program that might appropriately be stored in a constant. (There may
be more than one possibility but you are only required to identify one. You are not asked to
implement this constant.)
(1 mark)
ii. What might be an appropriate name for the constant you have chosen?
(1 mark)
c. Amend the and scripts so that:
if a pupil has read less than 70% of the books in the reading scheme their name is added to
the list
otherwise their name is added to a list (which you should
create and initialise appropriately).
2 of 14 17/12/2019, 19
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Graham035. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £8.16. You're not tied to anything after your purchase.