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:
The charge on the third object is − 21.7nC
Explanation:
From Gauss's Law
Φ = Q/ε₀
where;
Φ is the total electric flux through the shell = − 533 N⋅m²/C
Q is the total charge Q in the shell = ?
ε₀ is the permittivity of free space = 8.85 x 10⁻¹²
From this equation; Φ = Q/ε₀
Q = Φ * ε₀ = − 533 * 8.85 x 10⁻¹²
Q = −4.7 X 10⁻⁹ C = -4.7nC
Q = q₁ + q₂ + q₃
− 4.7nC = − 14.0 nC + 31.0 nC + q₃
− 4.7nC − 17nC = q₃
− 21.7nC = q₃
Therefore, the charge on the third object is − 21.7nC
Answer:
Greater than
Explanation:
The Wavelength will be higher than what will be heard without any motion on the boat due to the Doppler Effect, which is the change in the frequency of a sound wave whenever there's a relative motion between the source of the wave and observer. The amount of shift in frequency depends on the speed of the source towards the observer; the higher the velocity of the source, the higher the shift.
Air and water ima air bender