Logo Passei Direto

Cálculo de Tempo de Viagem

Herramientas de estudio

Preguntas resueltas

What does the following code do?
Defines the variables veloz, Distancia, and Tiempo as Real numbers.
Asks the user to input the distance in meters.
Asks the user to input the velocity in meters per second.
Calculates the time it takes to travel the given distance at the given velocity.
Outputs the distance, velocity, and time.

a. Calculates the distance traveled given the velocity and time.
b. Calculates the velocity given the distance and time.
c. Calculates the time it takes to travel a given distance at a given velocity.
d. Calculates the distance traveled given the velocity and time, and outputs the result.

Material
¡Estudia con miles de materiales!

Preguntas resueltas

What does the following code do?
Defines the variables veloz, Distancia, and Tiempo as Real numbers.
Asks the user to input the distance in meters.
Asks the user to input the velocity in meters per second.
Calculates the time it takes to travel the given distance at the given velocity.
Outputs the distance, velocity, and time.

a. Calculates the distance traveled given the velocity and time.
b. Calculates the velocity given the distance and time.
c. Calculates the time it takes to travel a given distance at a given velocity.
d. Calculates the distance traveled given the velocity and time, and outputs the result.

Vista previa del material en texto

Proceso velocidad 
 Definir veloz,Distancia,Tiempo Como Real; 
 Escribir "programa que calcula el tiempo"; 
 Escribir "digite el valor de la distancia en metros"; 
 Leer Distancia; 
 Escribir "digite el valor del velocidad en mts/s"; 
 Leer veloz; 
 Escribir "la distancia digitada fue ",Distancia,"mts"; 
 Escribir "la velocidad digitada fue ",veloz,"mts/s"; 
 Tiempo=(Distancia/veloz); 
 Escribir "El tiempo es de ",Tiempo,"seg"; 
FinProceso