1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
rosijanka [135]
2 years ago
7

AYUDAAA PORFAVOR

Physics
1 answer:
Sholpan [36]2 years ago
5 0

Queremos crear un diagrama general para calcular el área de un triangulo.

Este será algo como:

  1. Definir variables
  2. Pedirle al usuario que introduzca los valores deseados (de las variables).
  3. Leer los valores deseados y asignarlo a la variable correspondiente.
  4. Realizar la operación para calcular el área.
  5. 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:

  1. Definir variables
  2. Pedirle al usuario que introduzca los valores deseados (de las variables).
  3. Leer los valores deseados y asignarlo a la variable correspondiente.
  4. Realizar la operación para calcular el área.
  5. Mostrar en pantalla el resultado.

Si quieres aprender más, puedes leer:

brainly.com/question/21949109

You might be interested in
The minimum frequency of light needed to eject electrons from a metal is called the threshold frequency, ν0. find the minimum en
shusha [124]
The energy carried by the incident light is
E=hf
where h is the Planck constant and f is the frequency of the light. The threshold frequency is the frequency that corresponds to the minimum energy needed to eject the electrons from the metal, so if we substitute the threshold frequency in the formula, we get the minimum energy the light must have to eject the electrons:
E=hf=(6.63 \cdot 10^{-34}Js)(5.64 \cdot 10^{14}s^{-1})=3.74 \cdot 10^{-19}J
4 0
3 years ago
What do we call the movement of electric charge?<br> A. Power B. Voltage C. Resistance D. Current
Alex Ar [27]
D. Current

Hope I helped!
4 0
2 years ago
Read 2 more answers
Use the following words to complete the passage: add, reflecting, light, reflect, cancel, white, colors, waves interference, bri
Yuri [45]
1. white
2. colors
3. reflecting
4. light
5. waves interferences
6. reflect
7. add
8. brighter
9. cancel
6 0
2 years ago
A circuit has a current of 3 amps and is using a 9 volt battery. The circuit has a resistance of ____
leonid [27]

Answer:

so 9/3=3 current is 3 amperes

Explanation:

6 0
2 years ago
Read 2 more answers
What can you infer about the density of two objects if they object remains suspended in the liquid?
ZanzabumX [31]

Answer:

Equal Densities

Explanation:

if the density of the object was greater than that of the liquid, it would sink to the bottom. if the density od the object was lesser than the liquid, it would float :)

5 0
3 years ago
Read 2 more answers
Other questions:
  • The cretaceous-paleogene was a mass extinction event in which nearly every single large, land-dwelling dinosaur went extinct. WH
    10·2 answers
  • Sort the characteristics of solids liquids and gases into the correct colums
    10·1 answer
  • Object A moves with a constant velocity of -10 m/s and object B moves with a constant velocity of 5 m/s. Which object has the la
    12·1 answer
  • Which of the following is an example of energy being transferred by sound waves? A loud clap of thunder causes a window to vibra
    13·2 answers
  • A grain silo is shown below:grain silo formed by cylinder with radius 5 feet and height 175 feet and a half sphere on the topwha
    8·1 answer
  • Series circuit when you had one bulb and battery voltage was at 9 volts, what was current into battery?
    13·1 answer
  • A marble is thrown horizontally with a speed of 15.0 m/s from the top of a building. When it strikes the ground, the marble has
    12·2 answers
  • Velocity is a vector quantity because...
    12·1 answer
  • Projectile effects are a hazard in __________________. magnetic resonance imaging (MRI) fields pediatric units emesis stations o
    13·1 answer
  • If 36 grams of water is to be heated from 24.0°C to 48°C to make a cup of tea, how much heat must be added? The specific heat of
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!