• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 13 páginas
Examen

Ncg_Tm111_Tma02 Exam With Solutions/Updated 2023

Document preview thumbnail
Vista previa 2 fuera de 13 páginas

NCG_TM111_TMA02 EXAM WITH SOLUTIONS/UPDATED 2023

Vista previa del contenido

NCG_TM111_TMA02



TM111 TMA02

Question 1
(a) When the spacebar is pressed, the user is asked to input the students name, which, in this
case, is Faria. Faria is then stored as a "name" variable. The user is then asked to input their
test score of 72, this is then stored as a "math_test_score" variable. The "percentage_score"
is then worked out by using the variable "math_test_score" * 1.25, which then provides us
with a percentage out of 100. The sprite then informs us of the "percentage_score" for
Faria. In this case, Faria's "percentage_score" is higher than 75% so therefore her name
which was stored in the "name" variable, is now added to the "math_challenge_list" list.
The program was able to decide if Faria was legible for the "math_challenge_list" by using
the "IF percentage_score > 75 THEN" function.
An excellent fully detailed description.




(b)
i. 80
Make it clear what this number represents. Although this might be suitable in an
extended version it is not being used in this program.

The percentage multiplier, 1.25, might be stored in a constant.



ii. MAXIMUM_SCORE
Good to see the naming convention for constants has been followed.

(c)




Page | 1

, NCG_TM111_TMA02




Figure 1– A Screenshot of OUBuild script which shows the use of lists and the IF_Then blocks to categorise students based
on their math test scores.

Excellent




(d)

i.




Page | 2

Información del documento

Subido en
8 de febrero de 2023
Número de páginas
13
Escrito en
2022/2023
Tipo
Examen
Contiene
Preguntas y respuestas
$16.28

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Ethanhope
4.4
(20)
Vendido
99
Seguidores
97
Artículos
2785
Última venta
1 año hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes