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();
}
}
Answer:
the correct distance is 202 ft
Explanation:
The computation of the correct distance is shown below:
But before that correction to be applied should be determined
= (101 ft - 100 ft) ÷ (100 ft) × 200 ft
= 2 ft
Now the correct distance is
= 200 ft + 2 ft
= 202 ft
Hence, the correct distance is 202 ft
The same would be relevant and considered too
Answer:
474.59 mg/L
Explanation:
Given that
BOD = 30 mg/L
Original BOD = 30 mg/L × dilution factor
Original BOD = 30 mg/L × 10 = 300 mg/L

here
is the ultimate BOD ; BOD is the biochemical oxygen demand ; t = 0.20 /day

Explanation:
Outer di ameter
Given loading on the cylinder
Helix an gle of the weld form
(i) Normal stress on the plane at angle
is
(ii) Shear stress along an angle of
is
