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)

TM111 Introduction To Computing 1 TMA02/TM111 TMA02

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
05-11-2022
Written in
2022/2023

Question 1 A) -The user is asked to enter a child’s name. Their input, “Jamil”, is stored in the variable child_name. -The user is asked to enter an amount of trip money in £. Their input, 20, Is stored in trip_money -The variable trip_money is then passed through an if statement to determine if there is any difference -The variable trip_money is less than the desired amount of 24.95, so it goes into the loop. The difference is then set to 24.95-trip_money, which results in the difference being set as 4.95 B) i) the second part of the trip_money if statement. The cost of the trip ii) trip_cost iii) beforehand, you could be asked to declare the cost of the trip, and that value is stored in the If loop C) This study source was downloaded by from CourseH on :25:57 GMT -05:00 D) Question 2 This study source was downloaded by from CourseH on :25:57 GMT -05:00 Question 4 A) (i)

Show more Read less
Institution
Course

Content preview

Question 1

A)
-The user is asked to enter a child’s name. Their input, “Jamil”,
is stored in the variable child_name.
-The user is asked to enter an amount of trip money in £. Their
input, 20, Is stored in trip_money
-The variable trip_money is then passed through an if
statement to determine if there is any difference
-The variable trip_money is less than the desired amount of
24.95, so it goes into the loop. The difference is then set to
24.95-trip_money, which results in the difference being set as
4.95

B)
i) the second part of the trip_money if statement. The cost of
the trip
ii) trip_cost
iii) beforehand, you could be asked to declare the cost of the
trip, and that value is stored in the If loop

C)




This study source was downloaded by 100000847097152 from CourseHero.com on 11-05-2022 07:25:57 GMT -05:00

, D)




Question 2




This study source was downloaded by 100000847097152 from CourseHero.com on 11-05-2022 07:25:57 GMT -05:00

Written for

Course

Document information

Uploaded on
November 5, 2022
Number of pages
7
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.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.
FLOYYD Walden University
Follow You need to be logged in order to follow users or courses
Sold
238
Member since
5 year
Number of followers
220
Documents
2778
Last sold
4 weeks ago

I’ve been sharing study resources on Stuvia since 2020, helping students around the world succeed in their exams and coursework. My focus is on creating well-structured, accurate, and easy-to-understand documents that save time and boost results. Whether you’re looking for summaries, past paper solutions, test banks, or detailed notes, you’ll find content that is carefully prepared and student-friendly. I value clarity, quality, and reliability—so you can study with confidence. Join the many students who have already benefited from my resources and take your learning to the next level.

Read more Read less
3.6

46 reviews

5
25
4
2
3
6
2
3
1
10

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