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:
design hour volumes will be 4000 to 6000
Explanation:
given data
AADT = 150000 veh/day
solution
we get here design hour volumes that is express as
design hour volumes = AADT × k × D ..............1
here k is factor and its range is 8 to 12 % for urban
and D is directional distribution i.e traffic equal divided by the direction
so here design hour volumes will be 4000 to 6000
Answer:
Explanation:
For ligation process the 1:3 vector to insert ratio is the good to utilize . By considering that we can take 1 ratio of vector and 3 ratio of insert ( consider different insert size ) and take 10 different vials of ligation ( each calculated using different insert size from low to high ) and plot a graph for transformation efficiency and using optimum transformation efficiency we can find out the insert size.
Diverging Diamond Interchange