Code in C++
Must show: unit testing
------------------------------------
UsedFurnitureItem
-------------------------------------
Test Program:
The test program will test each setter (for objects of both types in a sequence) by calling the setter to set a value and then call the corresponding getter to print out the set value. This test should be done twice on data members that could be set to invalid values (that have numerical or character data type) – once after trying to set invalid values and subsequently, once after setting them to valid values. The data members with string data types (model, description) can be tested just once.
In: Computer Science
What is questions (i)?
The president of Receding Airlines has asked you to calculate the company's cost of capital. To start, you have gathered the following information:
RecedingAir has the following securities outstanding:
In: Finance
Q3: Problems:
Problem 1
Viola Enterprises is a manufacturer that produces violins for established professional musicians. Ed Johnson, the company’s sales manager, prepared the following sales forecast for 2011:
|
Sales Price |
1st Quarter |
2nd Quarter |
3rd Quarter |
4th Quarter |
|
$600 |
600 |
500 |
600 |
600 |
The sales price of violins is expected to increase by 6% per quarter to cover expected increases in raw material costs.
Required
Prepare Viola’s sales budget for 2011 for violins.
Problem 2
Viola Enterprises is a manufacturer that produces violins for amateur, rising, and established professional musicians. Ed Johnson, the company’s sales manager, prepared the following sales forecast for violins for the four quarters of 2011 and the first quarter of 2012:
|
Sales Price |
1st Quarter |
2nd Quarter |
3rd Quarter |
4th Quarter |
1st Quarter |
|
$600 |
600 |
500 |
600 |
600 |
450 |
On December 31, 2010, Viola had 80 violins in stock–fewer than the desired inventory level of 20% of the next quarter’s sales.
Required
Prepare Viola’s production budget for violins for 2011.
Problem 3
Viola Enterprises is a manufacturer that produces both violins and cellos for amateur, rising, and established professional musicians. Each cello requires a spruce top, which Viola purchases for $400 each. On December 31, 2010, Viola had 40spruce tops in inventory. Spoilage during the production process results in a standard quantity of 1.2spruce tops per cello. Viola wants to maintain an ending inventory of spruce tops equal to 20% of the following quarter’s production needs rounded to the nearest whole unit. The first quarter of 2012 has been budgeted at 140 cellos to be produced. Sales and production needs appear below:
|
1st Quarter |
2nd Quarter |
3rd Quarter |
4th Quarter |
Annual |
|
|
Budgeted unit sales |
200 |
80 |
100 |
120 |
500 |
|
Budgeted production |
184 |
86 |
106 |
234 |
610 |
Required
Prepare the purchases budget for spruce tops for 2011.
Problem 4
Batmania, Inc plans to sell 1,195 baseball bats with production scheduled at 1,200 bats during July. Each bat requires 3 board feet of birch and 0.60 hours of direct labor. Birch costs $2.20 per board foot and employees of the company are paid $12.50 per hour. Batmania has 210 board feet of birch and 25 bats in beginning inventory, and plans to have 240 board of birch and 30 bats in ending inventory for the month.
Required
Calculate budgeted direct labor for July.
In: Accounting
|
|
|
|
In: Accounting
1.What is the settlement price, opening price and closing price for futures? What is open interest?
2.Why hedgers cannot achieve perfect hedging when using futures?
In: Finance
Calculate the bond price, duration, actual changes in bond price, and changes in bond price based on duration. Coupons are paid at the end of each year. (Mostly need help with the bottom section)
|
Maturity, in years |
20 |
|
|
YTM |
5% |
|
|
Coupon rate |
6% |
|
|
Face value |
1,000 |
|
|
Bond price |
||
|
Year |
Ct |
t*Ct/(Price*(1+YTM)^t) |
|
1 |
||
|
2 |
||
|
3 |
||
|
4 |
||
|
5 |
||
|
6 |
||
|
7 |
||
|
8 |
||
|
9 |
||
|
10 |
||
|
11 |
||
|
12 |
||
|
13 |
||
|
14 |
||
|
15 |
||
|
16 |
||
|
17 |
||
|
18 |
||
|
19 |
||
|
20 |
||
|
Duration |
||
|
Change in YTM |
Actual change in bond price |
Change in bond price based on duration |
|
0.10% |
||
|
0.20% |
||
|
0.30% |
||
|
0.40% |
||
|
0.50% |
||
|
0.60% |
||
|
0.70% |
||
|
0.80% |
||
|
0.90% |
||
|
1.00% |
In: Finance
| Lot Price Data | ||||
| Lot Price is lot price in $1000s | ||||
| Lot Size is lot size in 1000s of square feet | ||||
| Mature Trees is the number of mature trees on the property | ||||
| Distance from Water is the distance from the edge of property to the water in feet | ||||
| Distance from Road is the distance from the main road to the center of the property in miles | ||||
| Lot Price | Lot Size | Mature Trees | Distance from Water | Distance from Road |
| 105.4 | 41.2 | 24 | 42 | 0.6 |
| 91.2 | 44.8 | 5 | 71 | 1.3 |
| 183.3 | 21.3 | 72 | 43 | 0.7 |
| 93.8 | 43.9 | 58 | 14 | 0.6 |
| 207.5 | 57.7 | 52 | 12 | 1.3 |
| 130.9 | 33.4 | 78 | 26 | 1.2 |
| 162.3 | 31.4 | 65 | 51 | 1.2 |
| 18.8 | 27.4 | 22 | 0 | 1.1 |
| 80.5 | 26.2 | 68 | 83 | 0.8 |
| 38.3 | 40.0 | 57 | 76 | 0.9 |
| 71.3 | 47.6 | 53 | 35 | 0.9 |
| 55.5 | 31.6 | 36 | 26 | 0.4 |
| 85.7 | 21.6 | 23 | 24 | 0.1 |
| 110.5 | 36.3 | 48 | 98 | 0.9 |
| 85.1 | 47.2 | 61 | 59 | 0.6 |
| 78.3 | 30.5 | 41 | 55 | 1.0 |
| 27.2 | 41.8 | 1 | 60 | 0.8 |
| 70.9 | 20.6 | 20 | 33 | 0.3 |
| 101.4 | 35.3 | 38 | 75 | 0.1 |
| 133.3 | 40.1 | 68 | 0 | 0.9 |
| 117.7 | 35.6 | 24 | 41 | 0.9 |
| 49.7 | 20.6 | 16 | 77 | 0.6 |
| 49.6 | 22.4 | 32 | 86 | 0.7 |
| 83.2 | 45.8 | 77 | 19 | 1.0 |
| 81.3 | 29.4 | 40 | 0 | 0.2 |
| 152.5 | 51.7 | 60 | 34 | 0.8 |
| 112.2 | 27.2 | 0 | 16 | 0.6 |
| 37.1 | 37.0 | 50 | 49 | 1.0 |
| 130.2 | 38.9 | 48 | 63 | 0.7 |
| 39.1 | 32.5 | 25 | 45 | 0.1 |
| 81.9 | 34.0 | 12 | 0 | 0.6 |
| 24.6 | 35.8 | 16 | 34 | 0.4 |
| 101.9 | 32.9 | 44 | 42 | 0.2 |
| 117.6 | 46.4 | 62 | 48 | 0.6 |
| 148.8 | 51.9 | 59 | 39 | 0.2 |
| 60.2 | 28.9 | 0 | 66 | 0.7 |
| 43.7 | 35.2 | 57 | 77 | 0.2 |
| 113.1 | 30.4 | 70 | 78 | 1.2 |
| 38.1 | 38.3 | 24 | 62 | 0.8 |
| 89.2 | 49.2 | 61 | 0 | 1.0 |
| 3.0 | 21.5 | 46 | 83 | 0.7 |
| 55.8 | 41.9 | 10 | 69 | 0.6 |
| 89.7 | 21.8 | 79 | 62 | 0.5 |
| 136.1 | 66.3 | 56 | 34 | 0.5 |
| 44.7 | 28.2 | 73 | 77 | 0.3 |
| 63.2 | 41.9 | 64 | 65 | 1.2 |
| 163.4 | 46.7 | 69 | 27 | 1.0 |
| 64.1 | 32.1 | 12 | 0 | 0.4 |
| 98.7 | 38.5 | 59 | 77 | 0.3 |
| 139.9 | 27.6 | 0 | 0 | 1.1 |
| 92.0 | 47.0 | 65 | 37 | 1.3 |
| 66.6 | 20.7 | 24 | 51 | 0.1 |
| 16.4 | 34.0 | 12 | 75 | 1.3 |
| 131.9 | 31.9 | 76 | 63 | 0.9 |
| 11.0 | 28.0 | 2 | 42 | 0.4 |
| 27.9 | 40.0 | 52 | 84 | 0.8 |
| 103.5 | 46.6 | 26 | 70 | 0.9 |
| 107.0 | 23.2 | 11 | 83 | 0.3 |
| 51.6 | 46.4 | 53 | 44 | 0.6 |
| 133.4 | 32.1 | 55 | 98 | 0.2 |
Use the Lot Price Data to run a regression in Excel. Your response variable is Lot Price, while the other four variables are all X variables in this regression. For the Mature Trees variable, the 95% confidence interval for the slope coefficient includes the hypothesized value of zero.
TRUE OR FALSE
In: Statistics and Probability
covers the moral theories of Mill’s utilitarianism, Kant’s deontology, and Aristotle’s virtue ethics. No other moral theories are permitted on this contains three moral dilemmas, each of which must be solved using a different moral theory. Be sure to cite your sources.
Solve each of the following dilemmas using one of the following theories: Mill's utilitarianism, Kant's deontology, or Aristotle's virtue ethics. Explain the different aspects of the theory you are using, and clearly show how that theory prescribes a certain action for the person involved in the dilemma. Be as thorough and complete as possible. Remember, this is not a test of your opinion; it is a test of correct application of moral theories. You must give a precise answer to the bolded questions at the end of each passage. Once you have used a moral theory, you cannot use it again. By the end of the you should have used all three theories once. For , if you use utilitarianism to solve the first dilemma, you must use either deontology or virtue ethics to solve the second dilemma, and the remaining theory to solve the last dilemma. There is NO "correct" theory to use for a particular dilemma; that decision is entirely up to you. You may find it easier to use a particular theory for a particular dilemma, and if so, do so. You DO NOT need to explain why you have chosen to use that particular theory. Good luck!
1. Jack is a government employee, working for CTU (Counter Terrorism Unit). Jack’s job is to discover terrorist plots, and attempt to stop acts of terrorism. He has done so within the bounds of the law in the past.
Jack has been told of an alleged plot to take over an elementary school. The plot involves taking school children hostage, and then executing the children until the terrorists’ demands are met. At this point, Jack is about 70% sure that the terrorist plot is a real, imminent threat.
Jack has been told that a man named Eli probably has knowledge of the current whereabouts of one of the suspected terrorists. Eli is a well-trained spy of an enemy nation. Jack finds Eli at home with Eli’s wife, and Jack breaks into the house and keeps Eli and the wife prisoner. However, Eli claims to have no knowledge whatsoever of the suspected terrorists, or of any terrorist plot. Jack knows that torturing Eli for information would be useless, since part of Eli’s spy-training prepared him not to give in to physical torture. However, the wife has had no such training, and Jack can tell that Eli loves his wife very much. Jack thinks that if he tortures the wife in front of Eli, Eli might reveal some information to save his wife from horrible pain. Should Jack torture Eli’s wife? (Remember to use one of the three moral theories acceptable for this test to solve this dilemma. Any discussion of any personal opinion, religious perspective, or theory other than the moral theories acceptable for this test will result in a score of "0" for this question.)
2. Tamara's best friend, Janine, who had been having bad luck the past couple of years developing good relationships, finally meets the "man of her dreams." She has been dating him for several weeks. There is only one problem: this man is married. To further an already complicated situation, this married man’s wife is Tamara’s other friend, Susannah.
One day when Susannah is having coffee with Tamara, Susannah tells Tamara that she suspects her husband of having an affair. Because Tamara knows her husband, and she and the couple have many mutual friends, Susannah asks Tamara if she has heard the rumor and, if so, if she has any information about the affair. Susannah is shocked and distraught about the possibility of the rumor being true, but is hoping that either the rumor is false, or if true, to work with her husband to save their marriage. Tamara knows that the rumor is true, and Tamara knows that the husband is having an affair with Janine, but she is friends with both women. What should Tamara say to Susannah? Be specific in exactly what you think Tamara should say. (Remember to use one of the three moral theories acceptable for this test to solve this dilemma. Any discussion of any personal opinion, religious perspective, or theory other than the moral theories acceptable for this test will result in a score of "0" for this question.)
3. An employer who is considering hiring Eva has asked Donna, Eva’s former supervisor, for a report on Eva. In truth, Eva’s work for Donna has been only average. However, Eva is Donna’s friend, and Donna knows that Eva probably will not get the job if she says anything negative about Eva, and Donna knows that Eva desperately needs the job. Further, Donna knows that if the situation were reversed, she would not want Eva to mention her deficiencies. Nevertheless, it has been Donna’s policy to reveal the deficiencies of employees when she has been asked for references by employers, and she knows that some of Eva’s faults may be bothersome to this particular employer. Finally, this employer has leveled with Donna in the past when Donna has asked for a report on people who have worked for him. Should Donna reveal deficiencies in Eva’s past performance? (Remember to use one of the three moral theories acceptable for this test to solve this dilemma. Any discussion of any personal opinion, religious perspective, or theory other than the moral theories acceptable for this test will result in a score of "0" for this question.)
In: Psychology
Hector Gonzales runs the floral art company, which supplies floral arrangements to three large supermarket chains throughout Australia. Management has become concerned about the rising costs associated with the process and dispatch of orders. An activity analysis of the indirect costs identified the following customer related cost.
Use of cost drivers
Supermarket customers
|
Activity cost pool |
Cost driver |
Estimated indirect costs |
Total expected use of cost driver** |
1 |
2 |
3 |
|
Orders processing |
Number of orders |
$200 000 |
450 |
300 |
100 |
50 |
|
Returns processing |
Number of returns |
$50 000 |
100 |
50 |
25 |
25 |
|
Delivery |
Number deliveries |
$100 000 |
700 |
400 |
200 |
100 |
|
Rush orders |
Number of rush orders |
$70 000 |
50 |
10 |
20 |
20 |
|
Sales visits |
Number of visits |
$20 000 |
100 |
50 |
25 |
25 |
Supermarket customer Sales revenue**
**Selling price is marked up 50% on direct cost of flowers
Hints: conduct a customer profitability analysis based on the above customer related indirect costs.
In: Accounting
Mrs. Ayesha Said is a 39-year-old Muslim Arab housewife and mother of six who immigrated to the United States from a rural town in southern Iraq 2 years ago. Her mother-in-law and her husband, Mr. Ahmed Said, accompanied her to the United States as participants in a post–Gulf War resettlement program, after they spent some time in a Saudi Arabian refugee camp. Their relocation was coordinated by a local international institution that provided an array of services for finding employment, establishing a household, enrolling the children in public schools, and applying for federal aid programs.
Mr. Ahmed, who completed the equivalent of high school, works in a local plastics factory. He speaks some English. He plans to attend an English-language class held at the factory for its many Iraqi employees. Mrs. Ayesha, who has very little formal schooling, spends her day cooking and caring for her children and spouse, with the assistance of her mother-in-law. She leaves their home, a three-bedroom upper flat in a poor area of the city, only when she accompanies her husband shopping or when they attend gatherings at the local Islamic center. These events are quite enjoyable because most of those using the center are also recently arrived Iraqi immigrants. She also socializes with other Iraqi women by telephone. Except for interactions with the American personnel at the institute, Mr. Ahmed and Mrs. Ayesha Said remain quite isolated from American society. They have discussed moving to Detroit because of its large Arab community.
Four of the Said children attend public elementary schools, participating in the English as a Second Language (ESL) program. Mr. Ahmed and Mrs. Ayesha are dismayed by their children’s rapid acculturation. Although Muslims do not practice holidays such as Halloween, Christmas, Valentine’s Day, and Easter, their children plead to participate in these school-related activities.
Mrs. Ayesha is being admitted to the surgical unit after a modified radical mastectomy to treat breast cancer. According to the physician’s notes, she discovered a “lump that didn’t go away” about 6 months ago while breast-feeding her youngest child. She delayed seeking care, hoping that inshallah, the lump would vanish. Access to care was also limited by Mrs. Ayesha’s preference for a female physician and her family’s financial constraints—that is, finding a female surgeon willing to treat a patient with limited financial means. Her past medical history includes measles, dental problems, headache, and a reproductive history of seven pregnancies. One child, born prematurely, died soon after birth. As you enter the room, you see Mrs. Ayesha dozing. Her husband, mother-in-law, and a family friend, who speaks English and Arabic and acts as the translator, are at her bedside.
In: Nursing