Answer:
see explaination
Explanation:
import java.util.InputMismatchException;
import java.util.Scanner;
public class calculate {
static float a=0,b=0;
double cal()
{
if(a==0||b==0)
{
System.out.println("no values found in a or b");
start();
}
double x=(a*a)+(b*b);
double h=Math.sqrt(x);
a=0;
b=0;
return h;
}
float enter()
{
float val=0;
try
{
System.out.println("Enter side");
Scanner sc1 = new Scanner(System.in);
val = sc1.nextFloat();
return val;
}
catch(InputMismatchException e)
{
System.out.println("Enter correct value");
}
return val;
}
void start()
{
calculate c=new calculate();
while(true)
{
System.out.println("Enter Command");
Scanner sc = new Scanner(System.in);
String input = sc.nextLine();
switch(input)
{
case "A":
a=c.enter();
break;
case "B":
b=c.enter();
break;
case "C":
double res=c.cal();
System.out.println("Hypotenuse is : "+res);
break;
case "Q":
System.exit(0);
default:System.out.println("wrong command");
}
}
}
public static void main(String[] args) {
calculate c=new calculate();
c.start();
}
}
Explanation:
Sum of forces in the x direction:
∑Fx = ma
Rx − 250 N = 0
Rx = 250 N
Sum of forces in the y direction:
∑Fy = ma
Ry − 120 N − 300 N = 0
Ry = 420 N
Sum of forces in the z direction:
∑Fz = ma
Rz − 50 N = 0
Rz = 50 N
Sum of moments about the x axis:
∑τx = Iα
Mx + (-50 N)(0.2 m) + (-120 N)(0.1 m) = 0
Mx = 22 Nm
Sum of moments about the y axis:
∑τy = Iα
My = 0 Nm
Sum of moments about the z axis:
∑τz = Iα
Mz + (250 N)(0.2 m) + (-120 N)(0.16 m) = 0
Mz = -30.8 Nm
Answer:
a. 318.2k
b. 45.2kj
Explanation:
Heat transfer rate to an object is equal to the thermal conductivity of the material the object is made from, multiplied by the surface area in contact, multiplied by the difference in temperature between the two objects, divided by the thickness of the material.
See attachment for detailed analysis
Answer:
lubricating all moving parts in the engine
Explanation:
like the pistons, pushrods, and the crank
Answer:
... spilling water or getting anything cascading onto the floor