Tm111 Tma02. 2024
* 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, isstored 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 istold the percentage of booksread (60%). The script then checks whether 60 is less than 70 and findsit 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 val
Información del documento
- Subido en
- 20 de enero de 2024
- Número de páginas
- 8
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas