Questions
Find the maximum value and minimum value in milesTracker. Assign the maximum value to maxMiles, and...

Find the maximum value and minimum value in milesTracker. Assign the maximum value to maxMiles, and the minimum value to minMiles. Sample output for the given program:

Min miles: -10
Max miles: 40

import java.util.Scanner;

public class ArraysKeyValue {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
final int NUM_ROWS = 2;
final int NUM_COLS = 2;
int [][] milesTracker = new int[NUM_ROWS][NUM_COLS];
int i;
int j;
int maxMiles; // Assign with first element in milesTracker before loop
int minMiles; // Assign with first element in milesTracker before loop

for (i = 0; i < milesTracker.length; i++){
for (j = 0; j < milesTracker[i].length; j++){
milesTracker[i][j] = scnr.nextInt();
}
}

/* Your solution goes here */

System.out.println("Min miles: " + minMiles);
System.out.println("Max miles: " + maxMiles);
}
}

In: Computer Science

<!DOCTYPE html> <html> <body> <script> // // A car's miles-per-gallon (MPG) can be calculated with the...

<!DOCTYPE html>
<html>
<body>
<script>
//
// A car's miles-per-gallon (MPG) can be calculated with the following formula:
//
//      MPG=Milesdriven/Gallonsofgasused
//
// Write a program that asks the user for the number of miles driven and the 
// gallons of gas used. It should then call a function to calculate and return 
// the car's MPG and display the result.
//

function calculateMPG(miles, gas) {

/////////////////////////////////////////////////////////////////////////////////
// Insert your code between here and the next comment block.  Do not alter     //
// any code in any other part of this file.                                    //
/////////////////////////////////////////////////////////////////////////////////

        
/////////////////////////////////////////////////////////////////////////////////
// Insert your code between here and the previous comment block.  Do not alter //
// any code in any other part of this file.                                    //
/////////////////////////////////////////////////////////////////////////////////

}

var milesDriven = prompt('How many miles have you driven? ');
var gasUsed = prompt('How much gas have you used driving that far? ')

alert('You car is getting ' + calculateMPG(milesDriven, gasUsed) + ' MPG.');

</script>
</body>
</html>

In: Computer Science

1.) Bringing all of section 6.2 together... The distribution of passenger vehicle speeds traveling on the...

1.)

Bringing all of section 6.2 together...

The distribution of passenger vehicle speeds traveling on the Interstate 5 Freeway (I-5) in California is nearly normal with a mean of 72.6 miles/hour and a standard deviation of 4.78 miles/hour.


(a) What percent of passenger vehicles travel slower than 80 miles/hour?
% (round to two decimal places)
(b) What percent of passenger vehicles travel between 60 and 80 miles/hour?
% (round to two decimal places)
(c) How fast do the fastest 5% of passenger vehicles travel?
mph (round to two decimal places)
(d) The speed limit on this stretch of the I-5 is 70 miles/hour. Approximate what percentage of the passenger vehicles travel above the speed limit on this stretch of the I-5.
% (round to two decimal places)

2.)

A company produces steel rods. The lengths of the steel rods are normally distributed with a mean of 230-cm and a standard deviation of 2.4-cm. Suppose a rod is chosen at random from all the rods produced by the company. There is a 39% probability that the rod is longer than:

Enter your answer as a number accurate to 1 decimal place.

In: Statistics and Probability

Analyze the Sales Budget your team has created. Based on the projected revenue numbers within the...

Analyze the Sales Budget your team has created. Based on the projected revenue numbers within the quarterly data given, determine approximately how many new airplanes will be needed to generate the necessary revenue on an annualized basis. The industry uses Passenger Seat Miles as a measure of revenue. Current data fm the industry shows revenue per Passenger Seat Mile is 16 cents. ExpressJet believes that their revenue will go up by one cent per month during the quarter. An average plane flies 52,500,000 miles a year and will last 30 years. Complete a 2 to 3 page memo to the management of ExpressJet explaining your analysis of their asset needs.

ExpressJet Sales Budget
SALES BUDGET:
October November December Quarter
Miles flown by fleet       218,750,000      218,750,000        218,750,000 656,250,000
Revenue per seat mile $0.16 $0.17 $0.18 $0.17
Total sales $35,000,000 $37,187,500 $39,375,000 $111,562,500
Total Miles per quarter       656,250,000
Average miles per quarter         13,125,000 Average useage per year       52,500,000
TOTAL PLANES NEEDED 50 Average useage per month         4,375,000

In: Accounting

Depreciation by units-of-activity Method Prior to adjustment at the end of the year, the balance in...

Depreciation by units-of-activity Method

Prior to adjustment at the end of the year, the balance in Trucks is $419,400 and the balance in Accumulated Depreciation—Trucks is $124,880. Details of the subsidiary ledger are as follows:

Truck
No.
Cost Estimated
Residual
Value
Estimated
Useful
Life
Accumulated
Depreciation
at Beginning
of Year
Miles
Operated
During
Year
1 $83,000 $12,450 220,000 miles —     33,000 miles
2 115,400 13,848 280,000 $23,080     28,000
3 96,000 13,440 200,000 $76,800     20,000
4 125,000 15,000 420,000 $25,000     50,400

a. Determine for each truck the depreciation rate per mile and the amount to be credited to the accumulated depreciation section of each subsidiary account for the miles operated during the current year. Keep in mind that the depreciation taken cannot reduce the book value of the truck below its residual value.

Round the rate per mile to two decimal places. Enter all values as positive amounts.



Truck No.

Rate per Mile
(in cents)

Miles
Operated
Credit to
Accumulated
Depreciation
1 $ 33,000 $
2 $ 28,000 $
3 $ 20,000 $
4 $ 50,400 $
Total $

Feedback

b. Journalize the entry to record depreciation for the year.

In: Accounting

Find the position of the final image of the 1.0-cm-tall object.

The figure shows a combination of two lenses. (Figure 1)

Part A

Find the position of the final image of the 1.0-cm-tall object.

Express your answer using two significant figures.

Part B

Find the size of the final image of the 1.0-cm-tall object.

Express your answer using two significant figures.

Part C

Find the orientation of the final image of the 1.0-cm-tall object.

In: Physics

(Tipler6 21.33★★) A charge of -1.0 µC is located at the origin, a second charge of...

(Tipler6 21.33★★) A charge of -1.0 µC is located at the origin, a second charge of 3.6 µC is located at x = 0, y = 0.1 m, and a third charge of 10 µC is located at x = 0.2 m, y = 0. Calculate the components of the forces that act on each of the three charges.

1)The x-component of the force on q = -1.0 µC:

2)The y-component of the force on q = -1.0 µC:

In: Physics

Suppose your expectations regarding the stock market are as follows: State of the Economy Probability HPR...

Suppose your expectations regarding the stock market are as follows: State of the Economy Probability HPR Boom 0.4 32% Normal growth 0.3 20 Recession 0.3 -16 Use above equations to compute the mean and standard deviation of the HPR on stocks. (Do not round intermediate calculations. Round your answers to 2 decimal places.) Please show all working.

In: Finance

A $1000 bond with a coupon rate of 6.2% paid semiannually has eight years to maturity...

A $1000 bond with a coupon rate of 6.2% paid semiannually has eight years to maturity and a yield to maturity of 8.3%. If interest rates rise and the yield to maturity increases to 8.6%, what will happen to the current yield of the bond?

  1. A.

    The current yield will decrease by 0.129%.

    B.

    The current yield will increase by 0.3%.

    C.

    The current yield will decrease by 0.3%

    D.

    The current yield will increase by 0.129%.

In: Finance

The mean caffeine content μ of a certain energy drink is under examination. A measure taken...

The mean caffeine content μ of a certain energy drink is under examination. A measure taken on a random sample of size n = 16 yieldsx̄ = 2.4 g/l.

  1. (a) Assuming that the standard deviation is known to be σ = 0.3, find the 95 confidence interval for μ.

  2. (b) If that the standard deviation is unknown but the sample standard deviation is s = 0.3, find the 95 confidence interval for μ.

In: Math