Questions
Write a C ++ program that asks the user for the speed of a vehicle (in...

Write a C ++ program that asks the user for the speed of a vehicle (in miles per hour) and how many hours it has traveled. The program should then use a loop to display the distance the vehicle has traveled for each hour of that time period. Here is an example of the output:

What is the speed of the vehicle in mph? 40
How many hours has it traveled? 3
Hour Distance Traveled
--------------------------------
1           40
2           80
3          120

Input Validation: Do not accept a negative number for speed and do not accept any value less than 1 for time traveled.

Distance Traveled

The distance a vehicle travels can be calculated as follows:

   distance = speed * time

For example, if a train travels 40 miles per hour for 3 hours, the distance traveled is 120 miles.

In: Computer Science

Introduce variables to represent items of interest in the problem. For example, (1) Let n be...

Introduce variables to represent items of interest in the problem. For

example, (1) Let n be the number to be found, or (2) Let a be Alice’s

current age, or (3) Let r be the rate of the first car.

(2)

Write down an equation using the information given in the problem. This

is the really important part for this particular assignment!

(3)

Solve the equation and find the value requested in the problem.

The distance between A and B is 180 miles. An automobile at A starts for B are the rate of 40 miles per hour at the same time that an automobile at B starts for A at the rate of 50 miles per

hour. How long will it be before the automobiles meet?

A snail leaves A and travels at the rate of four inches per minute to B. At B the snail catches a ride on a turtle and is carried back the A at the rate of ten inches per minute. If the round trip takes 14 minutes, what is the distance between A and B?

Two boats start at the same point, one goes straight north, the

other straight south. The first boat travels twice as fast as the

second. After three hours they are 72 miles apart. Find the rate

of the faster boat.

In: Math

Intro C++ Programming Chapter 6 Functions You have been tasked to write a new program for...

Intro C++ Programming Chapter 6 Functions

You have been tasked to write a new program for the Research Center's shipping department. The shipping charges for the center are as follows:

Weight of Package (in kilograms)                Rate per mile Shipped
2 kg or less                                                      $0.05
Over 2 kg but no more than 6 kg    $0.09
Over 6 kg but not more than 10 kg    $0.12
Over 10 kg    $0.20

Write a function in a program that asks for the weight of a package in kilograms and the distance it is to be shipped. Using that data, write another function that calculates the shipping charge and returns it to the main program and displays the value there.

For the second function, pass the two values (weight and distance) into the function as arguments. In the function if the shipping distance the user provided earlier is a distance greater than 200 miles, there will be an additional charge of $25 added to the order. For example, if an item weighing 20 kg is shipped 250 miles, the total cost will be $75, calculated by the formula: ((250 miles * 0.20) + 25).

input validation: Do not accept any weights less than 0.5 kilograms, nor any distances less than 0 miles.

In: Computer Science

Your small remodeling business has two work vehicles. One is a small passenger car used for...

Your small remodeling business has two work vehicles. One is a small passenger car used for job site visits and for other general business purposes. The other is a heavy truck used to haul equipment. The car gets 25 miles per gallon (mpg). The truck gets 10 mpg. You want to improve gas mileage to save money, and you have enough money to upgrade one vehicle. The upgrade cost will be the same for both vehicles. An upgraded car will get 40 mpg; an upgraded truck will get 12.5 mpg. The cost of gasoline is $2.65 per gallon. Calculate the annual fuel savings in gallons for the truck and car assuming both vehicles are driven 12,000 miles per year. (Do not round intermediate calculations.) Assuming an upgrade is a good idea in the first place, which one should you upgrade? Both vehicles are driven 12,000 miles per year.

Truck Gallons per year=

Car Gallons per year=

Assuming an upgrade is a good idea in the first place, which one should you upgrade? Both vehicles are driven 12,000 miles per year.

In: Finance

Assume that at the beginning of 2015 Fast Delivery purchased a used Jumbo 747 aircraft at...

Assume that at the beginning of 2015 Fast Delivery purchased a used Jumbo 747 aircraft at a cost of $55,200,000. Fast Delivery expects the plane to remain useful for five years ​(6,800,000 ​miles) and to have a residual value of $5,200,000. Fast Delivery expects to fly the plane 835,000 miles the first​ year, 1,225,000 miles each year during the​ second, third, and fourth​ years, and 2,290,000 miles the last year.

1. Compute Fast Delivery​'s depreciation for the first two years on the plane using the following​ methods:

a. ​Straight-line method

b. ​Units-of-production method​ (round depreciation per mile to the closest​ cent)

c. ​Double-declining-balance method

2. Show the​ airplane's book value at the end of the first year under each depreciation method.

Answers:

A. Using the straight-line method, depreciation is $_________ for 2015 and $__________ for 2016.

B. Using the units-of-production method, depreciation is $__________ for 2015 and $__________ for 2016

C. Using the doubling-decling-balance method, depreciation is $_________ for 2015 and $________ for 2016

2.  

Book Value: Straight-Line Units-of-Production Double-Declining-Balance
Less:

____________

_______________ _______________________
Book Value

=============

=============== ================

In: Accounting

The book’s Atlanta Commute (distance) dataset (available directly on StatKey) provides the commute distances in miles...

The book’s Atlanta Commute (distance) dataset (available directly on StatKey) provides
the commute distances in miles for 500 randomly chosen people who work in the Atlanta
metropolitan area.
(a) Use StatKey to obtain the mean and standard deviation of the commute distances in this
sample.
(b) Use StatKey to create 5000 bootstrap samples and a bootstrap distribution of sample
means. What are the mean and standard error of your bootstrap distribution?
(c) Use your bootstrap distribution to determine 95% and 99% confidence intervals for the
average commute distance of workers in the Atlanta metropolitan area. Determine the
margin of error for each of these confidence intervals. What happens to the margin of
error as the confidence level increases?
(d) Based on your bootstrap distribution and your interval estimates, which of the following
is most likely and which is least likely?
i. the average commute distance for people who work in the Atlanta metropolitan area
is less than 20 miles
ii. the average commute distance for people who work in the Atlanta metropolitan area
is around 20 miles
iii. the average commute distance for people who work in the Atlanta metropolitan area
is greater than 20 miles
Explain.

In: Statistics and Probability

Three different companies each purchased trucks on January 1, Year 1, for $60,000. Each truck was...

Three different companies each purchased trucks on January 1, Year 1, for $60,000. Each truck was expected to last four years or 250,000 miles. Salvage value was estimated to be $5,000. All three trucks were driven 79,000 miles in Year 1, 47,000 miles in Year 2, 51,000 miles in Year 3, and 74,000 miles in Year 4. Each of the three companies earned $49,000 of cash revenue during each of the four years. Company A uses straight-line depreciation, company B uses double-declining-balance depreciation, and company C uses units-of-production depreciation.

Answer each of the following questions. Ignore the effects of income taxes.

Required

  1. a-1. Calculate the net income for Year 1.

  2. a-2. Which company will report the highest amount of net income for Year 1?

  3. b-1. Calculate the net income for Year 4.

  4. b-2. Which company will report the lowest amount of net income for Year 4?

  5. c-1. Calculate the book value on the December 31, Year 3, balance sheet.

  6. c-2. Which company will report the highest book value on the December 31, Year 3, balance sheet?

  7. d-1. Calculate the retained earnings on the December 31, Year 4, balance sheet.

  8. d-2. Which company will report the highest amount of retained earnings on the December 31, Year 4, balance sheet?

    e. Which company will report the lowest amount of cash flow from operating activities on the Year 3 statement of cash flows?

In: Finance

The Toyota Camry is one of the best-selling cars in North America. The cost of a...

The Toyota Camry is one of the best-selling cars in North America. The cost of a previously owned Camry depends on many factors, including the model year, mileage, and condition. To investigate the relationship between the car’s mileage and the sales price for Camrys, the following data show the mileage and sale price for 19 sales (PriceHub web site, February 24, 2012).

Miles (1000s) Price ($1000s)
22 16.2
29 16.0
36 13.8
47 11.5
63 12.5
77 12.9
73 11.2
87 13.0
92 11.8
101 10.8
110 8.3
28 12.5
59 11.1
68 15.0
68 12.2
91 13.0
42 15.6
65 12.7
110 8.3
(b) Develop an estimated regression equation showing how price is related to miles. What is the estimated regression model?
Let x represent the miles.

If required, round your answers to four decimal places. For subtractive or negative numbers use a minus sign even if there is a + sign before the blank. (Example: -300)

For the model estimated in part (b), calculate the predicted price and residual for each automobile in the data. Identify the two automobiles that were the biggest bargains.
If required, round your answer to the nearest whole number.

The best bargain is the Camry # __ in the data set, which has __ miles, and sells for $__ less than its predicted price.

The second best bargain is the Camry # __ in the data set, which has __ miles, and sells for $ __ less than its predicted price.

In: Statistics and Probability

Three different companies each purchased trucks on January 1, Year 1, for $72,000. Each truck was expected to last four years or 200,000 miles.

Three different companies each purchased trucks on January 1, Year 1, for $72,000. Each truck was expected to last four years or 200,000 miles. Salvage value was estimated to be $7,000. All three trucks were driven 67,000 miles in Year 1, 42,000 miles in Year 2, 40,000 miles in Year 3, and 62,000 miles in Year 4. Each of the three companies earned $61,000 of cash revenue during each of the four years. Company A uses straight-line depreciation, company B uses double-declining-balance depreciation, and company C uses units-of-production depreciation. Answer each of the following questions. Ignore the effects of income taxes. Required a-1. Calculate the net income for Year 1. a-2. Which company will report the highest amount of net income for Year 1? b-1. Calculate the net income for Year 4. b-2. Which company will report the lowest amount of net income for Year 4? c-1. Calculate the book value on the December 31, Year 3, balance sheet. c-2. Which company will report the highest book value on the December 31, Year 3, balance sheet? d-1. Calculate the retained earnings on the December 31, Year 4, balance sheet. d-2. Which company will report the highest amount of retained earnings on the December 31, Year 4, balance sheet? e. Which company will report the lowest amount of cash flow from operating activities on the Year 3 statement of cash flows?

In: Accounting

On January 8, 2017, Whitewater Riders purchased a van to transport rafters back to the point...

On January 8, 2017, Whitewater Riders purchased a van to transport rafters back to the point of departure after completing the on-the-water portion of the rafting adventures they operate. The cost of the van is $44,000 and Whitewater Rider expects to use the van for four years or 60,000 miles. The estimated selling price after four years is $2,000. The van was driven 12,000 miles in 2017, 18,000 miles in 2018, 21,000 miles in 2019, and 10,000 miles in 2020.

Required:

On the following Whitewater Riders worksheet, compute the annual depreciation expense and ending book value of the van using straight-line, double-declining, and units-of-production methods. In addition, answer the three questions below:

1.   Which method results in the highest net income for Whitewater Riders?

a. 2017 b. 2018 c. 2019. d. 2020

2.   Which method results in the lowest income tax liability for Whitewater Riders?

a. 2017 b. 2018 c. 2019. d. 2020

3.   Which method would you recommend Whitewater Riders use and why?  

Whitewater Riders

Schedule of Van Depreciation for years 2017- 2020

Depreciation Method       Year        Depreciation expense       Ending Book Value

Straight-line                       2017

Straight-line                       2018

Straight-line                       2019

Straight-line                       2020

Double-declining              2017

Double-declining              2018       

Double-declining             2019

Double-declining             2020

Units-of-production         2017     

Units-of-production         2018

Units-of-production         2019

Units-of-production         2020           

In: Accounting