<span>The Java code below will ask for two integers and display the sum. If a non-integer is submitted the code will ask again. The break is used to exit the while true loop indicating that no-errors had occurred and two numbers were added.
System.out.print("Please insert two integers and this will display the sum.");
int numOne;
int numTwo;
while (True) {
try{
System.out.print("Integer Number One? ");
numOne = input.nextInt();
System.out.print("Integer Number Two? ");
numTwo = input.nextInt();
System.out.print("The Sum Is: " + (numOne + numTwo));
break;
}
catch (InputMismatchException e) {
System.out.print("please enter an integer .");
}
}</span>
X+y=4000....(1)
10x+6y=340*100⇒5x+3y=17000......(2)
(2)- 3*(1)⇒ 2x=5000⇒x=2500,y=4000-2500=1500
7.5x18.74= 140.55 is the correct answer
Take the amount 14 MPG (miles per gallon)
Then take the number of miles to go (133 miles to go)
Divide, like so:
133/14
= 9.5
Answer:
the correct anser is 0.0000563
Step-by-step explanation:
you move the decimal point to the left 5 spaces because it is negative