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
Scrat [10]
3 years ago
12

Write code to add two numbers, 5 and 7. Then display the sum on the serial monitor.

Physics
1 answer:
77julia77 [94]3 years ago
3 0

Answer:

Explanation

Using the Python 3 syntax in writing the code.

First we will define a function 'add_numbers', parse in the variables x and y and return its sum as shown.

Then we carry out the addition of 5 and 7.

def sum_numbers(x, y):

return x+y

sum_numbers(5, 7)

You might be interested in
A student walks 50 meters east, 40 meters north, 35 meters east, and then 20 m south. What is the magnitude and direction of the
Nuetrik [128]

Answer: A student walks 50 meters east, 40 meters north, 35 meters east, and then 20 m south. Then the magnitude and direction of the student's total displacement will be 87.32 m along the direction of AD or in east-south direction.

Explanation: To find the correct answer, we need to know about the Displacement of a body in motion.

<h3>What is displacement of a body in motion?</h3>
  • The displacement is the shortest distance between initial and final positions of a body.
  • It's a vector quantity, and can positive, negative, or zero.
  • The magnitude of displacement is less than or equal to the distance travelled.
<h3>How to solve the problem?</h3>
  • At first, we can draw a diagram showing the motion of the body.
  • From the diagram, the displacement of the body will be equal to the distance between point A and D.
  • To solve this, we can use Pythagoras theorem.

AD=AC+CD\\AC^{2} =50^{2} +11^2\\AC=51.19 m\\Similarly,\\CD^2=35^2+9^2\\CD=36.13 m\\thus, \\AD=51.19+36.13=87.32 m

Thus, from the above calculations, we can conclude that, the displacement of the body will be equal to 87.32 m along the direction of AD or in east-south direction.

Learn more about the Displacement here:

brainly.com/question/28020108

#SPJ4

3 0
2 years ago
1. A heat lamp is designed to keep food and other things warm. Would it also make a good tanning lamp? Why or why not?
NemiM [27]
1. becuase it is so hot that it could tan or be used to keep warm.
4 0
3 years ago
Read 2 more answers
A rope of negligible mass passes over a uniform cylindrical pulley of 1.50kg massand 0.090m radius. The bearings of the pulley h
boyakko [2]

Answer:

Explanation:

mass of pulley, m3 = 1.5 kg

Radius of pulley, R = 0.09 m

mass of monkey, m2 = 4.5 kg

mass of banana bunch, m1 = 3 kg

Let a is teh acceleration ans T1 and T2 be the tension in the rope.

The moment of inertia of the pulley

I = 0.5 x m3 x R² = 0.5 x 1.5 x 0.09 x 0.09 = 0.006075 kgm²

According to Newton's second law

T1 - m1 g = m1 x a .... (1)

m2 g - T2 = m2 x a ..... (2)

(T2 - T1 ) x R = I x α    

where, α is the angular acceleration

α = a / R

(T2 - T1)R = 0.5 x m3 x R² x a / R

T2 - T1 = 0.5 x m3 x a ..... (3)  

from (1), (2) and (3)

a = \frac{m_{2}-m_{1}}{m_{1}+m_{2}+\frac{m_{3}}{2}}\times g

a = \frac{4.5-3}{3+4.5+0.75}\times 9.8

a = 1.78 m/s²

from equation (1)

T1 = m1 ( g + a) = 3 ( 9.8 + 1.78) = 34.77 N

from equation (2)

T2 = m2 (g - a) = 4.5 (9.8 - 1.78) = 36.13 N

4 0
3 years ago
How do I find frictional force with force applied?
lions [1.4K]

Answer: Choose the normal force acting between the object and the ground. Let's assume a normal force of 250 N.

Determine the friction coefficient.

Multiply these values by each other: 250 N * 0.13 = 32.5 N .

You just found the force of friction!

Explanation:

8 0
3 years ago
In a game of tug of war, team one pulls to the right with a force of 500 newtons and team two pulls to the left with a force of
seraphim [82]

Answer:

Explanation:

There is no set way to do this. All you have to do is define left and right. Left will be minus and right will be the opposite --- plus.

That is completely arbitrary. It could be the other way around. It does not matter.

Left is minus so: - 600 N   is the force going left.

Right plus so: + 500 N

Now just add.

Net Force = +500 - 600

Net Force = - 100 N

So the Net Force is - 100 N going to the left.

8 0
3 years ago
Other questions:
  • A charged comb often attracts small bits of dry paper that then fly away when they touch the comb. Explain why that occurs.
    14·1 answer
  • Sand is falling into a conical pile at the rate of 10 m^3/s such that height of the pile is always half the diameter of the base
    15·2 answers
  • The current in a hair dryer measures 15.0 amps. The resistance of the hair dryer is 8 ohms. What is the voltage?
    6·2 answers
  • A cart of mass m moving right at speed v with respect to the track collides with a cart of mass 0.7m moving left.
    8·2 answers
  • A pitcher throws a 0.143-kg baseball toward the batter so that it crosses home plate horizontally and has a speed of 42 m/s just
    12·1 answer
  • 1. What is the velocity of an 250-kg that has 6,250 J of energy?<br><br><br> Please help
    6·1 answer
  • Pls help me all dew in 5 minutes!
    10·2 answers
  • Pls help me to answer this​
    13·1 answer
  • One Affective way to develop the feeling function in one’s personality is to
    9·1 answer
  • A balloon is a sphere with a radius of 5.0 m. the force of air against the walls of the balloon is 45 n. what is the air pressur
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!