• ¿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 7 páginas
Examen

Tma02_Tm111

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

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

Vista previa del contenido

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

Información del documento

Subido en
13 de enero de 2023
Número de páginas
7
Escrito en
2022/2023
Tipo
Examen
Contiene
Preguntas y respuestas
$14.49

¿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
FLOYYD12
5.0
(1)
Vendido
1
Seguidores
1
Artículos
272
Última venta
3 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