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();
}
}
Both the technicians are correct.
Explanation
Intake air temperature sensor is used in engines of vehicles to monitor the temperature of air entering the engine.
They are basically made of thermistors whose electrical resistance changes according to temperature.
Depending upon the reading and accuracy of intake air temperature sensor, the power-train control module (PCM) will decide about the air and fuel mixture ratio in the engine.
The hot air in engine requires less fuel to operate the engine parts while cold air requires more fuel to operate the engine.
The ratio of air and fuel mixture should be maintained in the engine and it is done by PCM only after getting the input from IAT. So technician B is saying correct.
Also the IAT works as a backup to support the engine coolant temperature sensor by the computer.
As the IAT checks the temperature of outside air, it will help to change the coolant temperature of the engine based on the environment.
Thus technician A is also correct. So both the technicians are correct.
Answer:
Given Data:
concentration of sewer Csewer = 1.2 g/L
converting into mg/L = Csewer = 1.2 g/L x 1000 mg/g = 1200 mg/L
flow rate of sewer Qsewer = 2000 L/min
concentration of sewer Cstream = 20 mg/L
flow rate of sewer Qstream = 2m3/s
converting Q into L/min = 2m3/s x 1000 x 60 = 120000 L/min
mass diagram is
Answer and Explanation:
The explanation is attached below