For this coding exercise, you need to create a new Java project in Eclipse and finish all the coding in Eclipse. Run and debug your Eclipse project to make sure it works. Then you can just copy and paste the java source code of each file from Eclipse into the answer area of the corresponding box below.
The boxes will expand once you paste your code into them, so don’t worry about how it looks J
All data members are private and all methods are public in each class/interface in the exercise below.
Creare a class named CreditCard, which has three private data members:
Provide:
There are two effector methods:
/** CreditCard.java */
Code a subclass named ExpressCard that inherits from the superclass CreditCard, which has two private data members:
Provide:
There are two effector methods:
/** ExpressCard.java */
Code a subclass named PremiumCard that inherits from the superclass CreditCard, which has two private data members:
Provide:
There are two effector methods:
/** PremiumCard.java */
Code a class named JohnDoeTest that has a main method. Replace JohnDoe with your name.
In the main method, create two objects:
When creating these two objects, you need to use the constructor that has all parameters in each class, and you need to hardcode reasonable values for the parameters needed by the constructor in each class. (There is no need to ask user to input data - so don’t include the Scanner class!).
Then in the main method, use each object created above to invoke the necessary methods, so that you can calculate each object’s transaction fee and mileage award, then output the transaction fee and mileage award.
Keep 2-digit precision in the output for transaction fee, and keep 1-digit precision in output for mileage award.
/** JohnDoeTest.java, and replace JohnDoe with your name*/
In: Computer Science
Caro Manufacturing has two production departments, Machining and Assembly, and two service departments, Maintenance and Cafeteria. Direct costs for each department and the proportion of service costs used by the various departments for the month of August follow:
| Proportion of Services Used by | |||||||||||
| Department | Direct Costs | Maintenance | Cafeteria | Machining | Assembly | ||||||
| Machining | $ | 120,000 | |||||||||
| Assembly | 74,000 | ||||||||||
| Maintenance | 53,000 | — | 0.3 | 0.5 | 0.2 | ||||||
| Cafeteria | 40,000 | 0.6 | — | 0.2 | 0.2 | ||||||
Required:
Use the reciprocal method to allocate the service costs. (Matrix algebra is not required.)
In: Accounting
Compute the following binomial probabilities using the table of Cumulative Binomial Probabilities. Give your answer to 3 places past the decimal.
c) Binomial pmf value: b(10; 15, 0.3)
d) Binomial pmf value: b(11; 20, 0.4)
e) P(2 ≤ X ≤ 7) when X ~ Bin(15, 0.2)
f) P(X ≥ 9) when X ~ Bin(15, 0.2)
g) P(6 < X ≤ 9) when X ~ Bin(15, 0.2)
In: Math
On January 3, 2018, Quick Delivery Service purchased a truck at a cost of $67,000. Before placing the truck in service, Quick spent $4,000 painting it, $1,500 replacing tires, and $2,200 overhauling the engine. The truck should remain in service for five years and have a residual value of $5,100. The truck's annual mileage is expected to be 20,000 miles in each of the first four years and 12,800 miles in the fifth year—92,800 miles in total. In deciding which depreciation method to use, Jacob Nealy, the general manager, requests a depreciation schedule for each of the depreciation methods (straight-line, units-of-production, and double-declining-balance).
Requirement 1. Prepare a depreciation schedule for each depreciation method, showing asset cost, depreciation expense, accumulated depreciation, and asset book value. Begin by preparing a depreciation schedule using the straight-line method.
Requirement 2. Quick prepares financial statements using the depreciation method that reports the highest net income in the early years of asset use. Consider the first year that Quick uses the truck. Identify the depreciation method that meets the company's objectives.
In: Accounting
A supplier of electrical parts and motors company with annual sales of $14 million and employs a staff of 80. Company enters an agreement with Miles two days after the current September 30th year-end. Effective October 2, 2016, Mile’s services with the company were terminated due to his alleged inability to get along with his co-workers. In settlement of several counterclaims and legal threats by Miles over his termination, a financial agreement was reached. The agreement provides that the company will pay Miles or his beneficiary $30,000 annually for the next six years. The first payment will commence one year from the date of the agreement.
Question 1 ) Should generally accepted accounting principles do not require the recognition of liabilities for this agreement as of September 30, 2016, or as of September 30, liabilities of $180,000 for the agreement should be recognized ? What arguments in support of and against liability recognition ?
Question 2 ) What recommendation for agreement should be accounted for. Include in your discussion what year(s) the effects of the agreement (including specific dollar amounts) should be reported in the company’s balance sheet and income statement. Identify any accounts to be reported in the financial statements.
In: Accounting
Engaging in regular exercise has both psychological and physical benefits. You believe you have a novel way to help obese adults start and maintain a regular exercise program. Your idea is to have them visualizing themselves engaging in exercise (walking) via virtual reality for two weeks before having them actually go out and walk. From data compiled by the National Institutes of Health, you know that obese adults in the United States walk, on average, 0.40 miles per day, with a standard deviation equal to 0.16 miles, and that the distance walked per day by obese adults is normally distributed. You obtain a sample of 49 obese adults for your study, apply the exercise program, and determine that they walked, on average, 0.45 miles per day following the virtual reality intervention. You want to assess whether this intervention has been successful. So to get started on this study…
In: Statistics and Probability
Create an Automobile class for a dealership. Include fields for an ID number, make, model, color, year, vin number, miles per gallon, and speed.
Include get and set methods for each field.
Do not allow the ID to be negative or more than 9999; if it is, set the ID to 0.
Do not allow the year to be earlier than 2000 or later than 2017; if it is, set the year to 0.
Do not allow the miles per gallon to be less than 10 or more than 60; if it is, set the miles per gallon to 0.
Car speed should be initialized as 0.
Include a constructor that accepts arguments for each field value and uses the set methods to assign the values.
Also write two methods, Accelerate () and Brake ().
Whenever Accelerate () is called, increase the speed by 5, and whenever Brake () is called, decrease the speed by 5.
To allow users to specify the speed to increase (or decrease), create two overloading methods for Accelerate () and Brake () that accept a single parameter specifying the increasing (or decreasing) speed.
Write an application that declares several Automobile objects and demonstrates that all the methods work correctly.
Save the files as Automobile.java and TestAutomobiles.java
In: Computer Science
1. Suppose it is claimed that the typical adult travels an average distance of 16 miles to get to work each day. You believe this average is too low for Columbus residents. You survey a random sample of 98adults from Columbus and find that your sample travels an average distance of 17.6 miles to work each day, with a sample standard deviation of 7.8 miles. Use this information to conduct the appropriate hypothesis test by going through the steps you learned about from our Chapter 22 and Chapter 23 lecture videos (and from your reading of Chapters 22 and 23). Assume the alpha level is .05 (or 5%).
A. What will the hypotheses be?
Ho:
Ha:
B. Use the following formula to compute the test statistic.
C. Based on what you see in Table B, what should the p-value be?
D. Will you reject or fail to reject the null hypothesis? Please state your decision and the reason why you are making that decision.
E. In general, if we end up rejecting the null hypothesis when conducting a hypothesis test, we say our results are _________________________ significant.
In: Statistics and Probability
|
Alternative Scenarios: |
|
Coal (over 1000 miles, same land mass) |
|
Human organs used for transplant within the same country/continent (over 1000 miles) |
|
Tens of thousands of pounds of grain used for production of beer (over 1000 miles) |
|
5,000 lbs. (2271 kilos) specialized parts used in manufacturing equipment (average value) |
How does the availability of third-party providers influence your decision?
In: Operations Management
Consider the following information regarding the performance of a money manager in a recent month. The table represents the actual return of each sector of the manager’s portfolio in column 1, the fraction of the portfolio allocated to each sector in column 2, the benchmark or neutral sector allocations in column 3, and the returns of sector indices in column 4.
| Actual Return | Actual Weight | Benchmark Weight | Index Return | |||||||||
| Equity | 2.6 | % | 0.6 | 0.6 | 3.1% (S&P 500) | |||||||
| Bonds | 1.5 | 0.2 | 0.1 | 1.7 (Barclay’s Aggregate) | ||||||||
| Cash | 0.8 | 0.2 | 0.3 | 0.9 | ||||||||
a-1. What was the manager’s return in the month? (Do not round intermediate calculations. Input all amounts as positive values. Round your answer to 2 decimal places.)
a-2. What was her overperformance or underperformance? (Do not round intermediate calculations. Input all amounts as positive values. Round your answer to 2 decimal places.)
b. What was the contribution of security selection to relative performance? (Do not round intermediate calculations. Round your answer to 2 decimal places. Negative amount should be indicated by a minus sign.)
c. What was the contribution of asset allocation to relative performance? (Do not round intermediate calculations. Round your answer to 2 decimal places. Negative amount should be indicated by a minus sign.)
In: Finance