Questions
Code in C++ Must show: unit testing ------------------------------------ UsedFurnitureItem Create a class named UsedFurnitureItem to represent...

Code in C++

Must show: unit testing

------------------------------------

UsedFurnitureItem

  1. Create a class named UsedFurnitureItem to represent a used furniture item that the store sells.
  2. Private data members of a UsedFurnitureItem are:
    1. age (double) // age in years – default value for
    2. brandNewPrice (double) // the original price of the item when it was brand new
    3. description (string) // a string description of the item
    4. condition (char) // condition of the item could be A, B, or C.
    5. size (double) // the size of the item in cubic inches.
    6. weight (double) // the weight of the item in pounds.
  3. Private member functions of a UsedFurnitureItem object are
    1. double CalculateCurrentPrice( ): Current price depends on age, brandNewPrice, and condition of the used furniture Item. If the item is in A-condition, the current price will go down by extra 10% of the brandNewPrice for each year of its age until 7 years (e.g., After the first year, and item with a $100 brandNewPrice will cost $90, after 2 years, $ 80, and so on). If the age is greater than 7 years, the price is fixed at 30% of the brandNewPrice. The current price of B-condition items goes down by extra 15 % of the brandNewPrice for each year until the 5th year. After that, the current price is fixed at 20% of the brandNewPrice. Items with C-condition are priced at 10% of the brandNewPrice regardless of age.
    1. double CalculateShippingCost( ): Shipping cost of a UsedFurnitureItem depends on weight, size, and distance. While weight and size are member variables, shipping distance is provided as an additional argument to this function. Shipping rate is 1 cent per mile for items that are smaller than 1000 cubic inches and smaller than 20 pounds. Items with larger size or weight cost 2 cents per mile.
  4. Public member functions of a UsedFurnitureItem
    1. Constructors – default and overloaded [default values: age = 1.0, brandNewPrice = 10.00, description = “Not available”, condition = ‘A’, size = 1.0, weight = 1.0]
    2. Accessors (getters)
    1. Mutators (setters) – You should ensure that invalid (zero or negative) values do not get assigned to age, brandNewPrice, size or weight data members. An invalid character (other than ‘A’, ‘B’ or ‘C’) should not be allowed to be assigned

-------------------------------------

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...

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:

  • $1,000 face value, 8% annual coupon bonds with 15 years remaining to maturity and a current market price of $1,150.
  • $100 par value preferred stock that pays an 11% annual dividend and has a current market price of $92.
  • Common stock with a current market price of $50/share. Investors expect the next annual dividend to be $4.00 and to grow after that at a constant rate of 7% per year into the foreseeable future.    If RecedingAir were to issue new securities today:
  • New bonds would pay interest annually, have a 15-year life, and incur a flotation cost of 3%.
  • A new issue of preferred stock would pay annual dividends and incur flotation costs of 6%
  • A new issue of common stock would incur flotation costs of 8%. RecedingAir’s income is taxed at a 35% marginal rate.
  • RecedingAir’s target capital structure is 35% long-term debt, 15% preferred stock, and 50% common equity.
  • RecedingAir forecasts it will retain $25,000,000 of earnings in the coming year.
  1.    What is the required rate of return of RecedingAir’s bondholders?
  2.    What is RecedingAir’s cost of debt?
  3.    What is the required rate of return of RecedingAir’s preferred stockholders?
  4.    What is RecedingAir’s cost of preferred stock financing?
  5.    What is the required rate of return of RecedingAir’s common stockholders?
  6.     What is RecedingAir’s cost of retained earnings financing?
  7.    What is RecedingAir’s cost of a new common stock issue?
  8.          What is RecedingAir’s weighted-average cost of capital (WACC) for its first dollar of new financing?
  9. How much total new financing can RecedingAir raise before its supply of new retained earnings financing is exhausted and there is a break in the cost of capital schedule?

In: Finance

Q3: Problems: Problem 1 Viola Enterprises is a manufacturer that produces violins for established professional musicians....

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

Culver Company sells tablet PCs combined with Internet service, which permits the tablet to connect to...

Culver Company sells tablet PCs combined with Internet service, which permits the tablet to connect to the Internet anywhere and set up a Wi-Fi hot spot. It offers two bundles with the following terms.
1. Culver Bundle A sells a tablet with 3 years of Internet service. The price for the tablet and a 3-year Internet connection service contract is $496. The standalone selling price of the tablet is $238 (the cost to Culver Company is $184). Culver Company sells the Internet access service independently for an upfront payment of $306. On January 2, 2020, Culver Company signed 110 contracts, receiving a total of $54,560 in cash.
2. Culver Bundle B includes the tablet and Internet service plus a service plan for the tablet PC (for any repairs or upgrades to the tablet or the Internet connections) during the 3-year contract period. That product bundle sells for $606. Culver Company provides the 3-year tablet service plan as a separate product with a standalone selling price of $136. Culver Company signed 220 contracts for Culver Bundle B on July 1, 2020, receiving a total of $133,320 in cash.

In response to competitive pressure for Internet access for Culver Bundle A, after 2 years of the 3-year contract, Culver Company offers a modified contract and extension incentive. The extended contract services are similar to those provided in the first 2 years of the contract. Signing the extension and paying $100 (which equals the standalone selling of the revised Internet service package) extends access for 2 more years of Internet connection. 40 Culver Bundle A customers sign up for this offer.
Prepare the journal entry when the contract is signed on January 2, 2022, for the 40 extended contracts. Assume the modification does not result in a separate performance obligation. (Credit account titles are automatically indented when the amount is entered. Do not indent manually. If no entry is required, select "No entry" for the account titles and enter 0 for the amounts.)

Account Titles and Explanation

Debit

Credit

Prepare the journal entry on December 31, 2022, for the 40 extended contracts (the first year of the revised 3-year contract). (Credit account titles are automatically indented when the amount is entered. Do not indent manually. If no entry is required, select "No entry" for the account titles and enter 0 for the amounts. Round answers to 0 decimal places, e.g. 5,125.)

Account Titles and Explanation

Debit

Credit

Click if you would like to Show Work for this question:

Open Show Work

Question Attempts: Unlimited

SAVE FOR LATER

SUBMIT ANSWER

In: Accounting

1.What is the settlement price, opening price and closing price for futures? What is open interest?...

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...

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...

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...

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...

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

  1. Assign the activity costs to ach of the three customers
  2. Calculate the contribution for each customer if the sales pattern for each as follows:

Supermarket customer            Sales revenue**

  1. $350,000
  2. S160,000
  3. $210,000

**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.

  1. What conclusion can we draw from the customer profit analysis? Advise the management of the Floral Art Company as to whether any changes should be made in its relationships with customers. Advise Hector as to how he should go about executing these changes.

In: Accounting

Mrs. Ayesha Said is a 39-year-old Muslim Arab housewife and mother of six who immigrated to...

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.

  1. Describe Arab Americans with respect to religion, education, occupation, income, and English-language skills. Compare the Said family with Arab Americans as a group.

In: Nursing