Change in position (triangleV) divided by change in time (triangleT)
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:
Resistance of resistor A = 6.0 Ω and resistance of resistor B = 3.0 Ω
Explanation:
When the two resistors are in series, let V₁ = voltage in resistor A and R₁ = resistance of resistor A and V₂ = voltage in resistor B and R₂ = resistance of resistor B.
Given that V₁ + V₂ = 6.0 V and V₁ = 4.0 V,
V₂ = 6.0 V - V₁ = 6.0 V - 4.0 V = 2.0 V
Also, let the current in series be I.
So, V₁ = IR₁ and V₂ = IR₂
I = V₁/R₁ and I = V₂/R₂
equating both expressions, we have
V₁/R₁ = V₂/R₂
4.0 V/R₁ = 2.0 V/R₂
dividing through by 2.0 V, we have
2/R₁ = 1/R₂
taking the reciprocal, we have
R₂ = R₁/2
R₁ = 2R₂
From the parallel connection, let V₁ = voltage in resistor A and R₁ = resistance of resistor A and V₂ = voltage in resistor B and R₂ = resistance of resistor B. Since it is parallel, V₁ = V₂ = V = 6.0 V
Also, V₂ = I₂R₂ where I₂ = current in resistor B = 2.0 A and R₂ = resistance of resistor B
So, R₂ = V₂/I₂
= 6.0 V/2.0 A
= 3.0 Ω
R₁ = 2R₂
= 2(3.0 Ω)
= 6.0 Ω
So, resistance of resistor A = 6.0 Ω and resistance of resistor B = 3.0 Ω
Answer:
a. by collisions and mergers of planetesimals.
Explanation:
Inner planets are planets within 1.5 AU distance from the sun. These are called terrestrial planets because they are somewhat similar to Earth, mainly made of rocks.
The main ingredient of these planets are solar nebula and interstellar dust condensation of which leads to formation of small rock particles. These particles come close to each other under in the influence of gravity and other forces. As the mass of the particles increase they form planetesimals, these planetesimals eventually merge to form planets.