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:

Euclidian Distance:

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
The heat transferred to and the work produced by the steam during this process is 13781.618 kJ/kg
<h3>
How to calcultae the heat?</h3>
The Net Change in Enthalpy will be:
= m ( h2 - h1 ) = 11.216 ( 1755.405 - 566.78 ) = 13331.618 kJ/kg
Work Done (Area Under PV curve) = 1/2 x (P1 + P2) x ( V1 - V2)
= 1/2 x ( 75 + 225) x (5 - 2)
W = 450 KJ
From the First Law of Thermodynamics, Q = U + W
So, Heat Transfer = Change in Internal Energy + Work Done
= 13331.618 + 450
Q = 13781.618 kJ/kg
Learn more about heat on:
brainly.com/question/13439286
#SP1
Answer:
Judgement
Explanation:
Gilbert is required by the Judgement Principle to "disclose those conflicts of interest that cannot reasonably be avoided or escaped." Since Gilbert professionally believes that the software meets specifications, secures documents, and satisfies user requirements, it is not clear if he violated any principle. However, he could have informed his client of his interest in the software and also presented other software packages of different companies from which the client could make its independent choice.
Answer:
Explanation:
There are three points in time we need to consider. At point 0, the mango begins to fall from the tree. At point 1, the mango reaches the top of the window. At point 2, the mango reaches the bottom of the window.
We are given the following information:
y₁ = 3 m
y₂ = 3 m − 2.4 m = 0.6 m
t₂ − t₁ = 0.4 s
a = -9.8 m/s²
t₀ = 0 s
v₀ = 0 m/s
We need to find y₀.
Use a constant acceleration equation:
y = y₀ + v₀ t + ½ at²
Evaluated at point 1:
3 = y₀ + (0) t₁ + ½ (-9.8) t₁²
3 = y₀ − 4.9 t₁²
Evaluated at point 2:
0.6 = y₀ + (0) t₂ + ½ (-9.8) t₂²
0.6 = y₀ − 4.9 t₂²
Solve for y₀ in the first equation and substitute into the second:
y₀ = 3 + 4.9 t₁²
0.6 = (3 + 4.9 t₁²) − 4.9 t₂²
0 = 2.4 + 4.9 (t₁² − t₂²)
We know t₂ = t₁ + 0.4:
0 = 2.4 + 4.9 (t₁² − (t₁ + 0.4)²)
0 = 2.4 + 4.9 (t₁² − (t₁² + 0.8 t₁ + 0.16))
0 = 2.4 + 4.9 (t₁² − t₁² − 0.8 t₁ − 0.16)
0 = 2.4 + 4.9 (-0.8 t₁ − 0.16)
0 = 2.4 − 3.92 t₁ − 0.784
0 = 1.616 − 3.92 t₁
t₁ = 0.412
Now we can plug this into the original equation and find y₀:
3 = y₀ − 4.9 t₁²
3 = y₀ − 4.9 (0.412)²
3 = y₀ − 0.83
y₀ = 3.83
Rounded to two significant figures, the height of the tree is 3.8 meters.
Answer:
I dont really know, I am sorry, but I am going to ask my teacher