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
Rainbow [258]
2 years ago
11

Algorithm for sum 2+4+6+….+n

Engineering
1 answer:
gavmur [86]2 years ago
3 0
20 this is the sum hope this help
You might be interested in
Compared to 15 mph on a dry road, about how much longer will it take for
Marysya12 [62]

Answer:

8 to 10 times

Explanation:

For dry road

u= 15 mph        ( 1 mph = 0.44 m/s)

u= 6.7 m/s

Let take coefficient of friction( μ) of dry road is 0.7

So the de acceleration a = μ g

a= 0.7 x 10  m/s ²                         ( g=10 m/s ²)

a= 7 m/s ²

We know that

v= u - a t

Final speed ,v=0

0 = 6.7 - 7 x t

t= 0.95 s

For snow road

μ = 0.4

de acceleration a = μ g

a = 0.4 x 10 = 4 m/s ²

u= 30 mph= 13.41 m/s

v= u - a t

Final speed ,v=0

0 = 30 - 4 x t'

t'=7.5 s

t'=7.8 t

We can say that it will take 8 to 10 times more time as compare to dry road for stopping the vehicle.

8 to 10 times

7 0
3 years ago
Read 2 more answers
You should use the pass technique a fire extinguisher
PilotLPTM [1.2K]

Answer:

Yes

Explanation:

8 0
2 years ago
In this exercise, you will write a Point structure that represents a space in two-dimensional space. This Point should have both
Afina-wow [57]

Answer:

Check the explanation

Explanation:

Points to consider:

We need to take the input from the user

We need to find the manhatan distance and euclidian using the formula

(x1, y1) and (x2, y2) are the two points

Manhattan:

|x_1 - x_2| + |y_1 - y_2|

Euclidian Distance:

\sqrt{(x1 - yl)^2 + (x2 - y2)^2)}

Code

#include<stdio.h>

#include<math.h>

struct Point{

  int x, y;

};

int manhattan(Point A, Point B){

  return abs(A.x - B.x) + abs(A.y- B.y);

}

float euclidean(Point A, Point B){

  return sqrt(pow(A.x - B.x, 2) + pow(A.y - B.y, 2));

}

int main(){

  struct Point A, B;

  printf("Enter x and Y for first point: ");

  int x, y;

  scanf("%d%d", &x, &y);

  A.x = x;

  A.y = y;

  printf("Enter x and Y for second point: ");

  scanf("%d%d", &x, &y);

  B.x = x;

  B.y = y;

  printf("Manhattan Distance: %d\n", manhattan(A, B));

  printf("Euclidian Distance: %f\n", euclidean(A, B));

 

}

Sample output

8 0
3 years ago
Write a program to input 6 numbers. After each number is input, print the biggest of the numbers entered so far.
likoan [24]

Answer:

P<u>rogram:</u>

# Enter Numbers #

number1 = int(input("Enter number: " ))

print("Largest: " + string(number1))

#for num 2 #

number2 = int(input("Enter a number: "))

if number2 > number1:

 print("Largest: " + string(number2))

else:

 print("Largest: " + string(num1))

#for num 3 #

number3 = int(input("Enter a number: "))

print("Largest: " + string(max(number1, number2, number3)))  

#for num 4 #

number4 = int(input("Enter a number: "))

print("Largest: " + string(max(number1, number2, number3, number4)))

#for num 5 #

number5 = int(input("Enter a number: "))

print("Largest: " + string(max(number1, number2, number3, number4, number5)))

#for num 6 #

number6 = int(input("Enter a number: "))

print("Largest: " + string(max(number1, number2, number3, number4, number5, number6)))        

# END #

4 0
3 years ago
Design a plate and frame heat exchanger for the following problem:
qwelly [4]

Answer:

See explaination and attachment.

Explanation:

Iteration method is a repetitive method applied until the desired result is achieved.

Let the given equation be f(x) = 0 and the value of x to be determined. By using the Iteration method you can find the roots of the equation. To find the root of the equation first we have to write equation like below

x = pi(x)

Let x=x0 be an initial approximation of the required root α then the first approximation x1 is given by x1 = pi(x0).

Similarly for second, thrid and so on. approximation

x2 = pi(x1)

x3 = pi(x2)

x4 = pi(x3)

xn = pi(xn-1).

please go to attachment for the step by step solution.

8 0
3 years ago
Other questions:
  • Consider a vortex filament of strength in the shape of a closed circular loop of radius R. Obtain an expression for the velocity
    10·1 answer
  • A closed system undergoes an adiabatic process during which the work transfer into the system is 12 kJ. The system then returns
    14·1 answer
  • Consider a fully developed laminar flow in a circular pipe. The velocity at R/2 (midway between the wall surface and the centerl
    6·1 answer
  • You are watching the weather forecast and the weatherman says that strong thunderstorms and possible tornadoes are likely to for
    15·1 answer
  • A very specific part of the population is called a
    6·1 answer
  • Which of the following is part of the highway
    11·2 answers
  • Consider a 400 mm × 400 mm window in an aircraft. For a temperature difference of 90°C from the inner to the outer surface of th
    10·1 answer
  • Ask a question about your assignment
    8·2 answers
  • Why charles babbage is known as father of computer explain <br>​
    12·1 answer
  • What current must flow if 0.24 coulombs is to be transferred in 15ms?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!