<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>
$125,060,000
one-hundred twenty-five million, and sixty thousand dollars
I mean 125.06 in fraction form is 6253/50, if that works great.
125.06 million dollars, if you can use the number in the question.
Answer:
$4,116
Step-by-step explanation:
Worth of Mike's car at the start of 2014 = $12,000
If the car is said to depreciates every year by 30% = 30/100 = 0.3
The worth of the car at the start of 2017 is what we are to determine.
This means that the car depreciated by 30% (0.3) for 3 years since 2014 (2017 - 2014 = 3 yrs)
The worth at the start of 2017 would be calculated as follows:
12,000 × (1 - 0.3)³
= 12,000 × (0.7)³
= 12,000 × 0.343
= 4,116
Worth of the car at the start of 2017 would be $4,116
The <em>correct answers</em> are:
y = 0.10x + 2.50; $5.
Explanation:
Using a graphing calculator, we enter the data in the STAT function. The year will be the independent (x) variable and the cost will be the dependent (y) variable.
For the year, instead of starting at 1998, we will start at 0, since that is where we started measuring. This means the year 2000 will be 2; 2002 will be 4; etc, up to x=10.
Running the linear regression, the calculator gives us a slope of 0.10 and a y-intercept of 2.499, or 2.50. This makes the equation y = 0.10x + 2.50.
To predict the price in 2023, we first find what our x-value will be. Subtract 1998 from this:
2023-1998 = 25
Now substitute 25 in place of x in the equation:
y = 0.10(25) + 2.50 = 2.50 + 2.50 = 5