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:
I can't understand your language
Answer:
d. low earth orbit (LEO)
Explanation:
This type of satellites form a constellation deployed as a series of “necklaces” in such a way that at any time, at least one satellite is visible by a receiver antenna, compensating the movement due to the earth rotation.
Opposite to that, a geostationary satellite is at an altitude that makes it like a fixed point over the Earth´s equator, rotating synchronously with the Earth, so it is always visible in a given area.
Answer: Electric current originates from positively charged protons negatively charged electrons of an atom.
Explanation:
The movement of ions (positive or negative) from one point to another is called electric current.
An atom has three sub-atomic particles. These are protons, neutrons and electrons.
Protons are positively charged, neutrons have no charge and electrons are negatively charged. Protons and neutrons reside inside the nucleus of an atom whereas electrons revolve around the nucleus.
So, protons and electrons are responsible for originating electric current form an atom as these are the charged particles.
Thus, we can conclude that electric current originates from positively charged protons negatively charged electrons of an atom.
Answer:
18 pieces of furniture
Explanation:
Since you receive $120.93 per furniture piece and a the month's commission is $2,176.74 you divide the commission by the furniture price.