Computer Science > EXAM > TM111-Introduction to Computing - TMA02 (Already Graded A) (All)
TM111-Introduction to Computing - TMA02 (Already Graded A) 1a) When the ‘Space’ key is pressed, and the user is asked for their name and they enter ‘Faria’ this is now stored in the variable... ‘name’. After this the user is asked to input the pupil’s score out of 80 where the number is 72 in this situation this is now stored in the variable ‘maths_test_score’. Behind the scenes of the program there is another variable called ‘percentage_score’ which is set by taking the variable ‘maths_test_score’ and multiplying this by 1.25. After this calculation is completed the owl is then instructed to combine the variable ‘percentage_score’ and the ‘%’ symbol together to give an output of ‘90%’. With this there is a ‘maths_challenge_list’ where if any pupil scores more then 75% this will then set them into this list. This is done by taking the variable ‘percentage_score’ and checking to see if it is higher than 75%, which it is, so the output to this is the variable ‘name’ now gets added to the list, in this case, ‘Faria’. [Show More]
Last updated: 1 year ago
Preview 1 out of 5 pages
Connected school, study & course
About the document
Uploaded On
Sep 04, 2021
Number of pages
5
Written in
This document has been written for:
Uploaded
Sep 04, 2021
Downloads
1
Views
103
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·