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:
(a) BP = 11.99 KPa
(b) h = 2 m
Explanation:
(a)
Since, the fluid pressure and blood pressure balance each other. Therefore:
BP = ρgh
where,
BP = Blood Pressure
ρ = density of fluid = 1020 kg/m³
g = acceleration due to gravity = 9.8 m/s²
h = height of fluid = 1.2 m
Therefore,
BP = (1020 kg/m³)(9.8 m/s²)(1.2 m)
<u>BP = 11995.2 Pa = 11.99 KPa</u>
(b)
Again using the equation:
P = ρgh
with data:
P = Gauge Pressure = 20 KPa = 20000 Pa
ρ = density of fluid = 1020 kg/m³
g = acceleration due to gravity = 9.8 m/s²
h = height of fluid = ?
Therefore,
20000 Pa = (1020 kg/m³)(9.8 m/s²)h
<u>h = 2 m</u>
Explanation:
1) Wind energy is generated through a wind turbine. When wind passes through the blades of wind mill, the blades of the wind mill tend to rotate. Due to the spinning of the rotor across the turbine, the kinetic energy from the wind is converted to electrical energy
2) Incase of wind energy, the consumption gets higher when there is more wind and would be zero incase of no movement of blades.
Incase of hydroelectric power, the generation is rather stable and consumption depends on the usage of power from the consumers
Incase of gasoline generator, the generation is also stable subject to availability of gasoline and consumption again depends on the usage of power from the consumers
3) Pros of Hydroelectric power
Cost of electricity generation is less
Can produce green energy
Produce mass volume of electricity
Cons of Hydroelectric power
Requires massive initial investement
Can be installed on certain demographical area