Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

TM111TMA02.docx

Rating
-
Sold
1
Pages
4
Grade
A+
Uploaded on
24-07-2022
Written in
2021/2022

Question 1. a, When the green flag is pressed any data stored is deleted. When the space key is pressed the user is asked to enter the pupils name into the first variable, followed by entering the pupils attendance, out of 50 days into the second variable, the user is then presented with the third variable, a percentage of the pupils attendance before the pupil is added to the appropriate list. b, A constant is a variable that does not change during the programme. An example used in this programme would be the variable ‘name’ which could be changed to PUPIL. c, d,1 d,2 An alternative form of selection structure to the attendance programme could be to change the percentage used for satisfactory attendance to 89% which will send 45 days attendance, equivalent to 90% to the satisfactory list and 44 days attendance, equivalent to 88% to the low attendance list. 1 This study source was downloaded by from CourseH on :32:18 GMT -05:00 . Question 2. Question 3. a, input a word, working through the letters in the original word from first to last identify the vowels and duplicate, output the word. b, 2 This study source was downloaded by from CourseH on :32:18 GMT -05:00 c, Test Number Test purpose Inputs Word Expected Results New word displayed 1. test last letter a vowel hippo hiippoo 2. test vowels u, e, a umbrella uumbreellaa 3. test vowels o, i spoil spooiil Question 4. a, Test Number Test purpose Existing data flowerpots Test inputs position Expected Results flowerpots 1. Swap last two items 5, 1, 2, 4, 6, 0, 7, 3 8 5, 1, 2, 4, 6, 0, 3, 7 2. Swap first two items 5, 1, 2, 4, 6, 0, 7, 3 2 1, 5, 2, 4, 6, 0, 7, 3 3. Swap items 5 and 6 5, 1, 2, 4, 6, 0, 7, 3 6 5, 1, 2, 4, 0, 6, 7, 3 b, 3 This study source was downloaded by from CourseH on :32:18 GMT -05:00 c, d, There are 7 comparisons. There are 8 comparisons. If 1000 items already in ascending order were added, the comparisons would be 999 because the list is already sorted. There are 56 comparisons for flowerpot 2. My results for flowerpot 2 agree with the teacher's formula. n x (n-1) = 8 x 7 = 56. There are 240 comparisons for flowerpot 3. My results for flowerpot 3 agree with the teacher's formula. n x (n-1) = 16 x 15 = 240

Show more Read less
Institution
Course

Content preview

Question 1.

a, When the green flag is pressed any data stored is deleted. When the space key is pressed the user
is asked to enter the pupils name into the first variable, followed by entering the pupils attendance,
out of 50 days into the second variable, the user is then presented with the third variable, a
percentage of the pupils attendance before the pupil is added to the appropriate list.

b, A constant is a variable that does not change during the programme. An example used in this
programme would be the variable ‘name’ which could be changed to PUPIL..

c,




d,1




d,2

An alternative form of selection structure to the attendance programme could be to change the
percentage used for satisfactory attendance to 89% which will send 45 days attendance, equivalent
to 90% to the satisfactory list and 44 days attendance, equivalent to 88% to the low attendance list.

1
This study source was downloaded by 100000841689952 from CourseHero.com on 07-24-2022 02:32:18 GMT -05:00


https://www.coursehero.com/file/54291092/TM111TMA02docx/

Written for

Course

Document information

Uploaded on
July 24, 2022
Number of pages
4
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.49
Get access to the full document:

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

Get to know the seller

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.
millyphilip West Virginia University
Follow You need to be logged in order to follow users or courses
Sold
2923
Member since
4 year
Number of followers
1958
Documents
44307
Last sold
10 hours ago
white orchid store

EXCELLENCY IN ACCADEMIC MATERIALS ie exams, study guides, testbanks ,case, case study etc

3.6

551 reviews

5
239
4
87
3
104
2
32
1
89

Recently viewed by you

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