Queremos crear un diagrama general para calcular el área de un triangulo.
Este será algo como:
- Definir variables
- Pedirle al usuario que introduzca los valores deseados (de las variables).
- Leer los valores deseados y asignarlo a la variable correspondiente.
- Realizar la operación para calcular el área.
- Mostrar en pantalla el resultado.
Como naturalmente habra algunas variaciones segun el programa que utilicemos, lo voy a escribir de forma bastante general.
Primero definamos nuestras variables:
Por ejemple, en fortran usariamos algo como:
real:: B, H, A
Donde B será la variable que usaremos para la base, H para la altura, y A para el área.
Luego tenemos que escribir en pantalla algo que le diga al usario que debe introducir la base y el area.
Luego el programa debe ser capaz de leer ese input.
con algo de la forma:
B = read*input 1
H = read*input 2
Una vez tenemos definidas las variables, simplemente calculamos el área del triangulo:
A = H*B/2
Finalmente la podemos mostrar en pantalla con algo como:
print(A).
Lo que nos mostraría el valor del área.
Concluyendo, el diagrama en general sería:
- Definir variables
- Pedirle al usuario que introduzca los valores deseados (de las variables).
- Leer los valores deseados y asignarlo a la variable correspondiente.
- Realizar la operación para calcular el área.
- Mostrar en pantalla el resultado.
Si quieres aprender más, puedes leer:
brainly.com/question/21949109
Answer:
Our planet is surrounded by a layer of gases called the atmosphere. ... ➢ Without our atmosphere, there would be no life on earth. ➢ Scientists divided the atmosphere into four layers according to temperature: troposphere, stratosphere, mesosphere, and thermosphere.
Explanation:
The Berlin Airlift is best described as the aircraft used to delivered needed food and supplies to the city of Berlin through the air because all other routes were blocked by the Soviet Union.
<h3>What is Berlin Airlift?</h3>
The Berlin airlift was a 1940s military operation that supplied West Berlin with food and other vital goods by air after the Soviet Union blockaded the city.
Thus, the Berlin Airlift is best described as the aircraft used to delivered needed food and supplies to the city of Berlin through the air because all other routes were blocked by the Soviet Union.
Learn more about Berlin Airlift here: brainly.com/question/1104371
#SPJ1
Answer:
7,546 J
Explanation:
recall that Potential energy is given by
P.E = mgΔh
where m = 70kg (given)
g = 9.8 m/s² (acceleration due to gravity)
Δh = change in height
= distance from top of building to top of car
= height of building - height of car
= (5+8) - 2
= 11m
substituting all these into the equation:
P.E = mgΔh
= 70 x 9.8 x 11
= 7,546 J
We know, R = V / I
Here, V = 86 V
I = 3 A
Substitute their values,
R = 86 / 3
R = 28.67 Ohm
In short, Your Answer would be 28.67 Ohms
Hope this helps!