Ryan is self-employed. This year Ryan used his personal auto for several long business trips. Ryan paid $2,800 for gasoline on these trips. His depreciation on the car if he was using it fully for business purposes would be $3,000. During the year, he drove his car a total of 15,600 miles (a combination of business and personal travel). (Do not round intermediate calculations. Round your final answer to the nearest dollar amount.)
a. Ryan can provide written documentation of the business purpose for trips totaling 4,680 miles. What business expense amount can Ryan deduct (if any) for these trips?
b. Ryan estimates that he drove approximately 2,225 miles on business trips, but he can only provide written documentation of the business purpose for trips totaling 1,450 miles. What business expense amount can Ryan deduct (if any) for these trips?
In: Accounting
You are interested in finding a 95% confidence interval for the average commute that non-residential students have to their college. The data below show the number of commute miles for 12 randomly selected non-residential college students. Round answers to 3 decimal places where possible. 8 7 25 13 23 26 6 6 6 28 8 12 a. To compute the confidence interval use a distribution. b. With 95% confidence the population mean commute for non-residential college students is between and miles. c. If many groups of 12 randomly selected non-residential college students are surveyed, then a different confidence interval would be produced from each group. About percent of these confidence intervals will contain the true population mean number of commute miles and about percent will not contain the true population mean number of commute miles.
In: Statistics and Probability
You are interested in finding a 90% confidence interval for the average commute that non-residential students have to their college. The data below show the number of commute miles for 11 randomly selected non-residential college students. Round answers to 3 decimal places where possible. 25 21 26 6 25 14 26 24 7 10 14 a. To compute the confidence interval use a distribution. b. With 90% confidence the population mean commute for non-residential college students is between and miles. c. If many groups of 11 randomly selected non-residential college students are surveyed, then a different confidence interval would be produced from each group. About percent of these confidence intervals will contain the true population mean number of commute miles and about percent will not contain the true population mean number of commute miles.
In: Statistics and Probability
perform each of the following steps:
a) Read the problem statement.
b) Formulate the algorithm using pseudocode and top-down, stepwise refinement.
c) Define the algorithm in JavaScript.
d) Test, debug and execute the JavaScript.
e) Process three complete sets of data.
Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline by recording the number of miles driven and the number of gallons used for each tankful. Develop a script that will take as input the miles were driven and gallons used (both as integers) for each tankful. The script should calculate and output HTML5 text that displays the number of miles per gallon obtained for each tankful and prints the combined number of miles per gallon obtained for all tankfuls up to this point. Use prompt dialogs to obtain the data from the user.
In: Computer Science
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
#include <iostream>
using namespace std;
int main() {
const int NUM_ROWS = 2;
const int NUM_COLS = 2;
int milesTracker[NUM_ROWS][NUM_COLS];
int i;
int j;
int maxMiles = -99; // Assign with first element in milesTracker
before loop
int minMiles = -99; // Assign with first element in milesTracker
before loop
int value;
for (i = 0; i < NUM_ROWS; i++){
for (j = 0; j < NUM_COLS; j++){
cin >> value;
milesTracker[i][j] = value;
}
}
/* Your solution goes here */
cout << "Min miles: " << minMiles <<
endl;
cout << "Max miles: " << maxMiles << endl;
return 0;
}
In: Computer Science
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 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
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 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 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