Part III â Something's Not Right
âItâs good to have you home, honey. I missed you. How was the flight?â Stacey had come to the airport to pick Frank up and she leaned over to kiss him as he climbed into the car with his luggage. âHow were the meetings? You look tired,â she added.
âThe past week was intense and I am exhausted. I thought I would manage some R & R during the trip, but no such luck. John and Dan were fired and we were told that there would be more layoffs in the future if business doesnât pick up. Everyone is feeling stressed. â
âYouâre one of the hardest workers they have Frank, they canât let you go.â
âI hope youâre right. They gave us tomorrow off in lieu of making us work for 7 days straight, but I canât help but think I should go in and get a jump on the week.â
âI know you donât want to hear this, but you have an appointment for that glucose tolerance test first thing in the morning. Weâll need to eat soon because the instructions say you are not allowed to eat for 8 hours before the test.â
Frank felt miserable. âIâm really not hungry. Maybe it was the change in diet, but Iâve had a persistent stomach ache and I didnât eat much when I was away.
âWell, we need to take extra special care of you until we find out whatâs wrong. I am sure everythingâs going to be okay.âThe next morning the alarm went off and Frank felt refreshed after a good nightâs sleep.
âWhatâs the matter Stacey? You look like youâve seen a ghost.â
Stacey brought him her pocket mirror so that he could see for himself. âForget the glucose tolerance test. I think we need to go to the Emergency Room right now.â
* ************
Doctor Smithers looked into Frankâs eyes. âItâs a good thing you came in because even a first year medical student could see that you are jaundiced.â
Stacey looked concerned. âWhat does that mean? Is he going to be
okay?â
âWell it could mean a few different things,â replied the doctor,
âso we are going to have to run some tests to be sure.â
Fill in Flow Chart 1 with the best choices from the provided word list.
Questions
5. Use Flow Chart 1 to suggest possible reasons for Frankâs jaundiced appearance.
6. Do you think that Frankâs jaundice is connected to the high blood glucose levels seen on the morning before his business trip? Why or why not?
7. Would you like to make a diagnosis to explain Frankâs jaundiced appearance?
8. What tests would you run to determine or confirm any of your diagnoses?
Part IV â The Test Results
âWhat does it mean to be jaundiced, doctor? Why did the whites
of my eyes turn yellow?â âItâs usually caused by a high level of a
molecule called bilirubin in your blood, Frank.â
âI was a biology major in college, but I donât remember where
bilirubin comes from.â
âYour blood has cells called erythrocytes or red blood cells; they contain hemoglobin which gives blood its red color. Cells in the spleen break down red blood cells and the products are reused by your body. The heme portion of hemoglobin is converted to bilirubin, which is the molecule that is responsible for your yellow color.â
âI remember now, isnât bilirubin involved in digestion?â
âYes. Bilirubin leaves the spleen in the blood and, because itâs not soluble in water, it binds with blood proteins called albumens to form unconjugated bilirubin. This bilirubin is taken up by the cells in the liver, where it combines with glucuronic acid to form conjugated bilirubin. It is one component of the bile, which travels down the bile duct to the gall bladder and the small intestine. When you eat, the gall bladder contracts and pushes the stored bile into the small intestine to aid in the digestion of fat.â
âSo what do my tests show?â
âYour hematocrit and your liver enzymes are at normal levels.â âSo,
my liverâs okay?â
âThese enzymes are normally confined to the liver cells and would only be found in large amounts in the blood if your liver was damaged. So these results indicate that there is no liver damage; thatâs good. But I am concerned that there is tenderness in the upper left quadrant of your abdomen ... sorry, around your stomach,â the doctor smiled at Frank and Stacey.
âAs I explained before, a jaundiced appearance is often produced by a buildup of bilirubin in the blood and your results confirm this (Table 3).â
Table 3 â The Level of Bilirubin in Blood
|
Bilirubin Type |
Frankâs Blood |
Normal Blood |
|
unconjugated |
0.9 mg/dl |
0.3 â 1.6 mg/dl |
|
conjugated |
0.6 mg/dl |
0 â 0.3 mg/dl |
âOne more thing concerns me,â continued the doctor. âThere is almost no urobilinogen or urobilin in your urine.â
âWhat are they?â asked Frank.
âBacteria in your intestines change bilirubin to urobilinogen. This urobilinogen can be reabsorbed back into your body and some is converted to urobilin. These two molecules circulate in your blood and are excreted in your urine; it is the urobilin that produces the straw color of urine. The low level of these two molecules in your urine plus the high level of bilirubin in your blood and the pale color of your stools indicates to me that, for some reason, bilirubin is staying in your body instead of going into your intestines.â
Questions
1. Where is unconjugated bilirubin formed?
2. Is the level of unconjugated bilirubin in Frankâs blood within
the normal range? 3. Where is conjugated bilirubin formed?
4. Is the level of conjugated bilirubin in Frankâs blood within the
normal range?
5. Using Flow Chart 1, outline some possible reasons for the high level of conjugated bilirubin; remember Frankâs liver enzymes are normal.
6. Frank experienced tenderness in the upper left quadrant of his abdomen. Use the word list in Figure 1 to label the major organs in this area.
Consider your diagnosis for Frankâs high blood glucose levels. Which gland secretes insulin?
Which organs are involved in creating Frankâs jaundiced appearance?
Look at Figure 1 and determine whether this gland and these organs (answers to Questions 7 and 8) are connected in any way.
Can you think of a reason that would explain the high levels of glucose and conjugated bilirubin in Frankâs blood?
Would you like to make any adjustments to your diagnoses?
In: Anatomy and Physiology
PLEASE DO ONLY THE "JOURNAL" SECTION. I ALREADY HAVE ANSWERS TO ALL THE OTHER ONES!!!
Beacon Signals Company maintains and repairs warning lights, such as those found on radio towers and lighthouses. Beacon Signals Company prepared the following end-ofperiod spreadsheet at December 31, 2019, fiscal year:
| Beacon Signals Company | ||||||
| End-of-Period Spreadsheet | ||||||
| For the Year Ended December 31, 2019 | ||||||
| Unadjusted Trial Balance | Adjustments | Adjusted Trial Balance | ||||
| Account Title | Dr. | Cr. | Dr. | Cr. | Dr. | Cr. |
| Cash | 13,000.00 | 13,000.00 | ||||
| Accounts Receivable | 40,500.00 | (a) 12,500.00 | 53,000.00 | |||
| Prepaid Insurance | 4,200.00 | (b) 3,000.00 | 1,200.00 | |||
| Supplies | 3,000.00 | (c) 2,250.00 | 750.00 | |||
| Land | 98,000.00 | 98,000.00 | ||||
| Building | 500,000.00 | 500,000.00 | ||||
| Accumulated Depreciation-Building | 255,300.00 | (d) 9,000.00 | 264,300.00 | |||
| Equipment | 121,900.00 | 121,900.00 | ||||
| Accumulated Depreciation-Equipment | 100,100.00 | (e) 4,500.00 | 104,600.00 | |||
| Accounts Payable | 15,700.00 | 15,700.00 | ||||
| Salaries and Wages Payable | (f) 4,900.00 | 4,900.00 | ||||
| Unearned Rent | 2,100.00 | (g) 1,300.00 | 800.00 | |||
| Sarah Colin, Capital | 238,100.00 | 238,100.00 | ||||
| Sarah Colin, Drawing | 10,000.00 | 10,000.00 | ||||
| Fees Earned | 388,700.00 | (a) 12,500.00 | 401,200.00 | |||
| Rent Revenue | (g) 1,300.00 | 1,300.00 | ||||
| Salaries and Wages Expense | 163,100.00 | (f) 4,900.00 | 168,000.00 | |||
| Advertising Expense | 21,700.00 | 21,700.00 | ||||
| Utilities Expense | 11,400.00 | 11,400.00 | ||||
| Depreciation Expense-Building | (d) 9,000.00 | 9,000.00 | ||||
| Repairs Expense | 8,850.00 | 8,850.00 | ||||
| Depreciation Expense-Equipment | (e) 4,500.00 | 4,500.00 | ||||
| Insurance Expense | (b) 3,000.00 | 3,000.00 | ||||
| Supplies Expense | (c) 2,250.00 | 2,250.00 | ||||
| Miscellaneous Expense | 4,350.00 | 4,350.00 | ||||
| 1,000,000.00 | 1,000,000.00 | 37,450.00 | 37,450.00 | 1,030,900.00 | 1,030,900.00 | |
Required:
| 1. | Prepare an income statement for the year ended December 31. If a net loss has been incurred, enter that amount as a negative number using a minus sign. Be sure to complete the statement heading. Use the list of Labels and Amount Descriptions for the correct wording of text items other than account names. You will not need to enter colons (:) on the income statement. |
| 2. | Prepare a statement of ownerâs equity for the year ended December 31. No additional investments were made during the year. For those boxes in which you must enter subtracted or negative numbers use a minus sign. Be sure to complete the statement heading. Use the list of Labels and Amount Descriptions for the correct wording of text items. |
| 3. | Prepare a balance sheet as of December 31. Fixed assets must be entered in order according to account number. Be sure to complete the statement heading. Use the list of Labels and Amount Descriptions for the correct wording of text items other than account names. You will not need to enter colons (:) or the word "Less" on the balance sheet; they will automatically insert where necessary. |
| 4. | Based upon the end-of-period spreadsheet, journalize the closing entries. Explanations should be omitted. If you are unsure of account titles, see the chart of accounts. |
| 5. | Prepare a post-closing trial balance. |
| CHART OF ACCOUNTS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Beacon Signals Company | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| General Ledger | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Labels | |
| Current assets | |
| Current liabilities | |
| December 31, 2019 | |
| Expenses | |
| For the Year Ended December 31, 2019 | |
| Property, plant, and equipment | |
| Revenues | |
| Amount Descriptions | |
| Decrease in ownerâs equity | |
| Increase in ownerâs equity | |
| Net income | |
| Net loss | |
| Sarah Colin, capital, January 1, 2019 | |
| Sarah Colin, capital, December 31, 2019 | |
| Total assets | |
| Total current assets | |
| Total expenses | |
| Total liabilities | |
| Total liabilities and ownerâs equity | |
| Total property, plant, and equipment | |
| Total revenues | |
| Withdrawals |
1. Prepare an income statement for the year ended December 31. If a net loss has been incurred, enter that amount as a negative number using a minus sign. Be sure to complete the statement heading. Use the list of Labels and Amount Descriptions for the correct wording of text items other than account names. You will not need to enter colons (:) on the income statement.
Score: 136/136
|
Beacon Signals Company |
|
Income Statement |
|
? |
|
1 |
? |
||
|
2 |
? |
? |
|
|
3 |
? |
? |
|
|
4 |
? |
? |
|
|
5 |
? |
||
|
6 |
? |
? |
|
|
7 |
? |
? |
|
|
8 |
? |
? |
|
|
9 |
? |
? |
|
|
10 |
? |
? |
|
|
11 |
? |
? |
|
|
12 |
? |
? |
|
|
13 |
? |
? |
|
|
14 |
? |
? |
|
|
15 |
? |
? |
|
|
16 |
? |
? |
2. Prepare a statement of ownerâs equity for the year ended December 31. No additional investments were made during the year. For those boxes in which you must enter subtracted or negative numbers use a minus sign. Be sure to complete the statement heading. Use the list of Labels and Amount Descriptions for the correct wording of text items.
Score: 54/54
|
Beacon Signals Company |
|
Statement of Ownerâs Equity |
|
? |
|
1 |
? |
? |
|
|
2 |
? |
? |
|
|
3 |
? |
? |
|
|
4 |
? |
? |
|
|
5 |
? |
? |
3. Prepare a balance sheet as of December 31. Fixed assets must be entered in order according to account number. Be sure to complete the statement heading. Use the list of Labels and Amount Descriptions for the correct wording of text items other than account names. You will not need to enter colons (:) or the word "Less" on the balance sheet; they will automatically insert where necessary.
Score: 177/177
|
Beacon Signals Company |
|
Balance Sheet |
|
? |
|
1 |
Assets |
|||
|
2 |
? |
|||
|
3 |
? |
? |
||
|
4 |
? |
? |
||
|
5 |
? |
? |
||
|
6 |
? |
? |
||
|
7 |
? |
? |
||
|
8 |
? |
|||
|
9 |
? |
? |
||
|
10 |
? |
? |
||
|
11 |
? |
? |
? |
|
|
12 |
? |
? |
||
|
13 |
? |
? |
? |
|
|
14 |
? |
? |
||
|
15 |
? |
? |
||
|
16 |
Liabilities |
|||
|
17 |
? |
|||
|
18 |
? |
? |
||
|
19 |
? |
? |
||
|
20 |
? |
? |
||
|
21 |
? |
? |
||
|
22 |
Ownerâs equity |
|||
|
23 |
? |
? |
||
|
24 |
? |
? |
4. Based upon the end-of-period spreadsheet, journalize the closing entries. If you are unsure of account titles, see the chart of accounts.
Question not attempted.
PAGE 11
JOURNAL
ACCOUNTING EQUATION
Score: 0/171
| DATE | DESCRIPTION | POST. REF. | DEBIT | CREDIT | ASSETS | LIABILITIES | EQUITY | |
|---|---|---|---|---|---|---|---|---|
|
1 |
Closing Entries |
|||||||
|
2 |
||||||||
|
3 |
||||||||
|
4 |
||||||||
|
5 |
||||||||
|
6 |
||||||||
|
7 |
||||||||
|
8 |
||||||||
|
9 |
||||||||
|
10 |
||||||||
|
11 |
||||||||
|
12 |
||||||||
|
13 |
||||||||
|
14 |
||||||||
|
15 |
In: Accounting
In three units of study, there will be application-focused cases due at the beginning of the class that will be provided by the instructor. These cases will be complex in nature and will require the application of course concepts to real-word business situations. Each case will have an associated rubric to highlight expectations. All submissions must be of professional quality and done in Microsoft Word, Microsoft Excel, or submitted as a PDF. Case: Investment Proposals for Ontario Coffee Home It is January 1, 2019. You are a Senior Analyst at Ontario Coffee Home (OCH), one of the leading coffee chains and wholesaler of coffee/bakery products in Ontario. The CEO of Ontario Coffee Home, Jerry Donovan, has reached out to you to draft a report to evaluate two investment proposals. Requirements 1. Identify which revenues and costs are relevant to your analysis, and which costs are irrelevant. Summarize all the information that will be required for each investment proposal, including describing the proposal and identifying the time horizon for each proposal evaluation. 2. Calculate the after-tax cash flows during the life of each of the projects. 3. Utilizing the after-tax cash flows from question 2, evaluate each investment proposal utilizing the following criteria (unless directed otherwise): a. Payback b. NPV 4. Clearly indicate whether any of the above criteria support each of the project proposals, and what the company should ultimately decide to do. Investment Proposals Jerry Donovan, CEO of OCH, wants you to evaluate two investment proposals that the company is considering: 1. The purchase of a coffee roaster plant in Cuba. 2. The re-development of coffee shops to accommodate the selling of frozen yogurt. Mr. Donovan reminds you that only relevant costs and revenues should be considered. âRelevant costs have to be occurring in the future,â explained Mr. Donovan. âAnd have to differ from the status quo. For example, if we choose to buy the roaster plant, it is only the incremental revenue and costs related to the purchase that should be considered. We also need to take into account the opportunity cost associated with the alternatives.â More details on each investment proposal are included below. Mr. Donovan wants you to recommend if OCH should invest in one, both, or none of the investment proposals. Required Return Mr. Donovan wants you to use 7% as the discount rate (i.e., the required return). Investment in Roasted Coffee Plant Mr. Donovan is considering purchasing a coffee plant in Cuba where labour is cheap and there are proximal coffee farms to help lower transportation costs. The acquisition price of the plant is $6M, which includes roasting equipment that originally cost $14M when it was purchased 8 years ago. Some of the equipment is on its last legs, so an additional $2M of equipment has to be purchased. The roaster plant currently has $2M of available tax shield left, excluding any tax shield related to the equipment to be purchased. The direct materials and direct labour used to manufacture these products are 8% and 7% of sales, respectively. The actual roasting processing costs are approximately 17% of sales. These costs as a percentage of sales are expected to remain consistent over the time horizon. The plant also requires two managers with fixed salaries of $50,000 each per year. Insurance for the plant and equipment is $40,000 per year. Other incremental manufacturing overhead costs (property taxes, maintenance, security, etc.) excluding depreciation are estimated to be $75,000 annually. Wages are expected to increase with inflation (estimated to be 2%) over the time period, while other fixed costs are expected to remain steady. Transportation variable costs (gas, variable overhead, etc.) are estimated to be 12% of revenue, and include transportation of raw materials to the roaster and finished products to the port for delivery to OCH coffeehouses. The roasted coffee plant is expected to produce 1.1M pounds of coffee for the first two years, with production dipping by 100,000 pounds per year after this due to lower productivity from the deteriorating equipment. Each pound of roasted coffee can be sold at $3.25 per pound (either to retail cafes, franchise cafes, or to wholesale partners), with the price expected to rise with inflation over time. Each pound of coffee can make 30 cups of coffee that can sell at an average retail price of $4.00 per cup. Mr. Donovan has stressed that the profitability of the plant base has to be looked at on a stand-alone basis, i.e., from the sales from the plant to buyers, not from retail cafĂŠs to customers. Mr. Donovan wants to see if the project will reach profitability after 5 years, as significant reinvestment will be needed after five years to keep the plant operational, so he wants you to evaluate the return on investment in that period using the investment criteria of payback period, NPV, and IRR. The following table will help in the calculations of the tax shield for the new equipment: Class CCA Rate Description 43 30% Machine and equipment to manufacture and process goods for sale Tax Shield Formula Assume no salvage value when calculating the tax shield, and that the half-year rule applies for Class 43. The tax rate Mr. Donovan wants you to utilize is 25%. When calculating the tax shield, the present value should be in the same period as the initial investment (Year 0), which also means that deprecation (i.e., CCA) should not be taken from the cash flows in subsequent years since their tax shelter effects are already accounted for in the tax shield. Redevelopment of Coffee Shops Mr. Donovan also wants you to evaluate the potential of developing several hundred stores into new store models with frozen yogurt services. Five hundred stores have been selected as candidates for development. It will cost $80,000 to convert each store, including modifications to refrigeration equipment, with these costs being capitalized with a 6% applicable CCA rate. The average modified coffee shop is expected to generate an additional $30,000 in after-tax cash flow every year. However, OCH is also estimated to lose about $15,000 in annual after-tax cash flow from these cafĂŠs due to yogurt sales cannibalizing existing coffee shops. In other words, some customers who normally would have purchased coffee would instead purchase yogurt. The five hundred stores have average annual rent of $36,000 each. Mr. Donovan wants you to evaluate the profitability of this investment after a seven-year period using the investment criteria of NPV.
In: Accounting
Foxy Investigative Services is an investigative services firm that is owned and operated by Shirley Vickers. On November 30, 2018, the end of the fiscal year, the accountant for Foxy Investigative Services prepared an end-of-period spreadsheet, a part of which follows:
|
Required: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Foxy Investigative Services |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
End-of-Period Spreadsheet |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
For the Year Ended November 30, 2018 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
~ |
Adjusted Trial Balance |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Account Title |
~ |
Dr. |
Cr. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
~ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Cash |
~ |
27,500 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Accounts Receivable |
~ |
71,800 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Supplies |
~ |
3,550 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Prepaid Insurance |
~ |
750 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Building |
~ |
330,500 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Accumulated Depreciation-Building |
~ |
184,100 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Accounts Payable |
~ |
16,100 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Salaries Payable |
~ |
6,600 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Unearned Rent |
~ |
1,500 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Common Stock |
~ |
40,000 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Retained Earnings |
~ |
70,300 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Dividends |
~ |
30,000 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Service Fees |
~ |
675,500 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Rent Revenue |
~ |
9,000 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Salaries Expense |
~ |
435,000 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Rent Expense |
~ |
55,000 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Supplies Expense |
~ |
11,850 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Depreciation Expense-Building |
~ |
10,000 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Utilities Expense |
~ |
8,800 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Repairs Expense |
~ |
4,250 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Insurance Expense |
~ |
3,000 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Miscellaneous Expense |
~ |
11,100 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
~ |
1,003,100 |
1,003,100 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
1. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
2. |
Based upon the end-of-period spreadsheet, journalize the closing entries. Refer to the Chart of Accounts for exact wording of account titles. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
3. |
If Retained Earnings had instead decreased $46,000 after the closing entries were posted, and the dividends remained the same, what would have been the amount of net income or net loss? If required, use a minus sign to indicate a net loss. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CHART OF ACCOUNTS |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Foxy Investigative Services |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
General Ledger |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LabelsCurrent assetsCurrent liabilitiesExpensesFor the Year Ended November 30, 2018November 30, 2018Property, plant, and equipmentRevenuesAmount DescriptionsChange in retained earningsDividendsNet incomeNet lossRetained earnings, December 1, 2017Retained earnings, November 30, 2018Total assetsTotal current assetsTotal expensesTotal liabilitiesTotal liabilities and stockholdersâ equityTotal property, plant, and equipmentTotal revenuesTotal stockholdersâ equity
1A. Prepare an income statement for the year ended November 30, 2018. If a net loss has been incurred, enter that amount as a negative number using a minus sign. Be sure to complete the statement heading. Use the list of Labels and Amount Descriptions for the correct wording of text items other than account names. You will not need to enter colons (:) on the income statement. Refer to the Chart of Accounts for exact wording of account titles.
|
Foxy Investigative Services |
|
Income Statement |
|
1 |
|||
|
2 |
|||
|
3 |
|||
|
4 |
|||
|
5 |
|||
|
6 |
|||
|
7 |
|||
|
8 |
|||
|
9 |
|||
|
10 |
|||
|
11 |
|||
|
12 |
|||
|
13 |
|||
|
14 |
|||
|
15 |
1B. Prepare a retained earnings statement for the year ended November 30, 2018. If a net loss is incurred or dividends were paid, enter that amount as a negative number using a minus sign. Be sure to complete the statement heading. Refer to the Chart of Accounts for exact wording of account titles. Refer to the lists of Labels and Amount Descriptions for exact wording of the answer choices for text entries other than account names.
|
Foxy Investigative Services |
|
Retained Earnings Statement |
|
1 |
|||
|
2 |
|||
|
3 |
|||
|
4 |
|||
|
5 |
1C. Prepare a balance sheet as of November 30, 2018. Fixed assets must be entered in order according to account number. Be sure to complete the statement heading. You will not need to enter colons (:) or the word "Less" on the balance sheet; they will automatically insert where necessary. Refer to the Chart of Accounts for exact wording of account titles. Refer to the lists of Labels and Amount Descriptions for exact wording of the answer choices for text entries other than account names. For those boxes in which you must enter subtracted or negative numbers use a minus sign.
|
Foxy Investigative Services |
|
Balance Sheet |
|
1 |
Assets |
||
|
2 |
|||
|
3 |
|||
|
4 |
|||
|
5 |
|||
|
6 |
|||
|
7 |
|||
|
8 |
|||
|
9 |
|||
|
10 |
|||
|
11 |
|||
|
12 |
|||
|
13 |
Liabilities |
||
|
14 |
|||
|
15 |
|||
|
16 |
|||
|
17 |
|||
|
18 |
|||
|
19 |
Stockholdersâ Equity |
||
|
20 |
|||
|
21 |
|||
|
22 |
|||
|
23 |
2. Based upon the end-of-period spreadsheet, journalize the closing entries. Refer to the Chart of Accounts for exact wording of account titles.
PAGE 11
JOURNAL
ACCOUNTING EQUATION
|
DATE |
DESCRIPTION |
POST. REF. |
DEBIT |
CREDIT |
ASSETS |
LIABILITIES |
EQUITY |
|
|---|---|---|---|---|---|---|---|---|
|
1 |
Closing Entries |
|||||||
|
2 |
||||||||
|
3 |
||||||||
|
4 |
||||||||
|
5 |
||||||||
|
6 |
||||||||
|
7 |
||||||||
|
8 |
||||||||
|
9 |
||||||||
|
10 |
||||||||
|
11 |
||||||||
|
12 |
||||||||
|
13 |
||||||||
|
14 |
||||||||
|
15 |
||||||||
|
16 |
||||||||
|
17 |
3. If Retained Earnings had instead decreased $46,000 after the closing entries were posted, and the dividends remained the same, what would have been the amount of net income or net loss? If required, use a minus sign to indicate a net loss.
In: Accounting
Write a Python program
The Hay System is a job performance evaluation method that is widely used by organizations around the world. Corporations use the system to map out their job roles in the context of the organizational structure. One of the key benefits of the method is that it allows for setting competitive, value-based pay policies. The main idea is that for each job evaluation, a number of factors (such as Skill, Effort, Responsibility and Working Conditions) are evaluated and scored by using a point system. Then, the cumulative total of points obtained will be correlated with the salary associated with the job position. As an engineering student, you have been commissioned to implement a simplified version of the Hay method. Particularly, the hiring company (which is called David and Joseph Ltd) is interested in getting the salary (or hay system score) for several job descriptions currently performed in the company. Data Representation Unfortunately, the company David and Joseph Ltd. has very strict security policies. Then, you will not be granted access to the main data base ). Instead, all the information needed has been compiled in files with the following characteristics. File 1 The first line of the file contains 1 positive integer: num words⤠10000, the number of words in the Hay Point dictionary. num words lines follow; each contains a word (a string of up to 16 lower-case letters) and a dollar value (an integer between 0 and 1000000).
You can safely assume that the num words words in the dictionary are distinct. Each description word-value is terminated by a line containing a period. You can take a look about how File 1 looks below.
7
administer 100000
.
spending 200000
.
manage 50000
.
responsibility 25000
.
expertise 100
.
skill 50
.
money 75000
.
Please note that for this file, num words is equal to 7. File 2 The first lines of the file contains a varyingly number of comments that must be ignored. You can recognize a comment line because it always start with the # character. Following the comments there is one job description. A job description consists of between 1 and 200 lines of text; for your convenience the text has been converted to lower case and has no characters other than letters, numbers, and spaces. Each line is at most 200 characters long. You can take a look about how File 2.1 looks below.
#Hello how are you
# This comment does not make sense
# It is just to make it harder
# The job description starts after this comment, notice that it has 4 lines.
# This job description has 700150 hay system points \\
the incumbent will administer the spending of kindergarden milk money and exercise responsibility for making change he or she will share responsibility for the task of managing the money with the assistant whose skill and expertise shall ensure the successful spending exercise
Below, you can find a second example of how File 2.2 could look like.
#This example has only one comment
this individual must have the skill to perform a heart transplant
and expertise in rocket science
The Hay System When applying the Hay System to the latest File 2 example (i.e., this individual must have the skill to perform a heart transplant and expertise in rocket science ) on the Hay Point dictionary coded in File 1, the job description gets a total of 150 points (or salary in dollars). This score is obtained because exactly two words (i.e., expertise and skill) of the job description are found in the dictionary. Particularly, expertise and skill have a score of 100 and 50 dollars, respectivelly.
Question 1: create dictionary
Complete the create dictionary function, which reads the information coded in the File 1 and returns a hay points dictionary. See below for an explanation of exactly what is expected. from typing import Dict, TextIO def create_dictionary(file1: TextIO) -> Dict[str, int]: âââReturn a dictionary populated with the information coded in file1. >>> File_1 = open(âFile1.txtâ) >>> hay_dict = create_dictionary(File_1) >>> hay_dict {âadministerâ: 100000, âspendingâ: 200000, âmanageâ: 50000, âresponsibilityâ: 25000, âexpertiseâ: 100, âskillâ: 50, âmoneyâ: 75000} """ Please note that the variable file1 is of type TextIO, then you can assume that file was already open and it is ready to be read.
Question 2: job description (24 points) Complete the job description function, which reads the information coded in the File 2 to return a list of strings with the job description. See below for an explanation of exactly what is expected. def job_description(file2: TextIO) -> List[str]: âââReturn a string with the job description information coded in file2. >>> File_2 = open(âFile2_1.txtâ) >>> job_desc = job_description(File_2) >>> job_desc [âtheâ, âincumbentâ, âwillâ, âadministerâ, âtheâ, âspendingâ, âofâ, âkindergardenâ, âmilkâ, âmoneyâ, âandâ, âexerciseâ, âresponsibilityâ, âforâ, âmakingâ, âchangeâ, âheâ, âorâ, âsheâ, âwillâ, âshareâ, âresponsibilityâ, âforâ, âtheâ, âtaskâ, âofâ, âmanagingâ, âtheâ, âmoneyâ, âwithâ, âtheâ, âassistantâ, âwhoseâ, âskillâ, âandâ, âexpertiseâ, âshallâ, âensureâ, âtheâ, âsuccessfulâ, âspendingâ, âexerciseâ] âââ Please note that the variable file2 is of type TextIO, then you can assume that file was already open and it is ready to be read.
Question 3: hay points (24 points) Complete the hay points function, which for a job description, output the corresponding salary computed as the sum of the Hay Point values for all words that appear in the description. Words that do not appear in the dictionary have a value of 0. See below for an explanation of exactly what is expected. def hay_points(hay_dictionary: Dict[str, int], job_description: List[str]) -> int: âââReturns the salary computed as the sum of the Hay Point values for all words that appear in job_description based on the points coded in hay_dictionary >>> File_1 = open(âFile1.txtâ) >>> File_2 = open(âFile2_1.txtâ) >>> hay_dict = create_dictionary(File_1) >>> job_desc = job_description(File_2) >>> points = hay_points(hay_dict, job_desc) >>> print(points) >>> 700150 âââ
Question 4: my test (0 points) The function my test is there to give you a starting point to test your functions. Please note that this function will not be graded, and it is there only to make sure that you understand what every function is expected to do and to test your own code. Note: In order for you to test your functions one at a time, comment out the portions of the my test() function that call functions you have not yet written. The expected output for the function calls is as follows:
The dictionary read from File1.txt is: {âadministerâ: 100000, âspendingâ: 200000, âmanageâ: 50000, âresponsibilityâ: 25000, âexpertiseâ: 100, âskillâ: 50, âmoneyâ: 75000}
The string read from File2_1.txt is: [âtheâ, âincumbentâ, âwillâ, âadministerâ, âtheâ, âspendingâ, âofâ, âkindergardenâ, âmilkâ, âmoneyâ, âandâ, âexerciseâ, âresponsibilityâ, âforâ, âmakingâ, âchangeâ, âheâ, âorâ, âsheâ, âwillâ, âshareâ, âresponsibilityâ, âforâ, âtheâ, âtaskâ, âofâ, âmanagingâ, âtheâ, âmoneyâ, âwithâ, âtheâ, âassistantâ, âwhoseâ, âskillâ, âandâ, âexpertiseâ, âshallâ, âensureâ, âtheâ, âsuccessfulâ, âspendingâ, âexerciseâ]
The salary computed is 700150
In: Computer Science
In: Math
How COVID-19 is driving a long-overdue revolution in education
The pandemic that has shuttered economies around the world has also battered education systems in developing and developed countries. Some 1.5 billion students â close to 90% of all primary, secondary and tertiary learners in the world â are no longer able to physically go to school. The impact has been dramatic and transformative as educators scramble to put in place workable short-term solutions for remote teaching and learning, particularly in emerging markets, where students and schools face additional challenges related to financing and available infrastructure.
While each level of education faces its unique challenges, it is the higher education segment that may end up, by necessity, triggering a learning revolution. Universities are distinctive in that their students are both old enough to handle the rigours of online work and technologically savvy enough to navigate new platforms. The real challenge lies for the institutions in which they have enrolled. Can traditional, campus-based universities adapt by choosing the right technologies and approaches for educating and engaging their students? The successes and failures that unfold should give us all a better grasp of what is possible.
Right now, video-conferencing apps like Zoom and WebEx are throwing universities a lifeline. However, lecturers are still struggling to maintain the same depth of engagement with students they could have in a classroom setting. They need to find solutions â and fast â to avoid a dip in the quality of education they are providing. Online education platforms such as Coursera, an IFC client with a global presence, can play a useful role by tapping their expertise in online programme design, choice of tech platform, and digital marketing to develop the best content either with or for the traditional players.
With the online segment still comprising a small fraction of the $2.2 trillion global higher education market â less than 2%, according to market intelligence firm HolonIQ â the market is ripe for disruption. The appetite from students for online offerings will likely grow because of COVID-19. Even before the pandemic, many universities were seeing declines in enrolment for campus-based programmes and parallel increases in uptake of their online courses. With COVID-19, we are seeing how yesterdayâs disruptors can become todayâs lifeguards. While traditional institutions once viewed online education as a threat, it has come to their rescue.
The adoption of online solutions in recent months has been unprecedented. In the short term, educators are applying a âfirst aidâ solution by switching entirely from in-person to remote instruction, a move that has been forced upon them by sudden mandatory campus closures. But they are quickly realizing that remote learning is just a baby step experiment in the long journey to offering online education that has been conceived as such, which includes effective student engagement tools and teacher training. Some of the partnerships sparked between universities, online education companies and tech providers may continue beyond the pandemic.
As painful and stressful a time as this is, it may fashion a long overdue and welcome rebirth of our education systems. The pandemic has been a great leveller in a way, giving all stakeholders (educators, learners, policy-makers and society at large) in developed and developing countries a better understanding of our current education systemsâ vulnerabilities and shortcomings. It has underscored how indispensable it is for our populations to be digitally literate to function and progress in a world in which social distancing, greater digitalization of services and more digitally-centered communications may increasingly become the norm. More fundamentally, COVID-19 is causing us to challenge deep-rooted notions of when, where, and how we deliver education, of the role of colleges and universities, the importance of lifelong learning, and the distinction we draw between traditional and non-traditional learners.
This pandemic has also made people realize how dependent we are on so-called low-skilled workers to keep our lives going. During shutdowns, lockdowns, curfews, itâs these workers who are on the front lines, working multiple shifts to maintain delivery and take care of our basic needs. Over time, automation will continue to eat into these jobs. While there will always be services provided by low-skilled workers, most new jobs will require higher skills levels. Being able to reskill and upskill in this rapidly changing world is not only a necessity but an economic imperative.
COVID-19 has struck our education system like a lightning bolt and shaken it to its core. Just as the First Industrial Revolution forged todayâs system of education, we can expect a different kind of educational model to emerge from COVID-19.
A. Indicate if the following statements are true or false according to the article. [5x2=10]
B. Answer the following questions based on the article above. Use the mark allocation to guide the length of the answers. [16]
8. What should universities keep in mind when changing to online teaching modes? [2]
9. Name some of the challenges lecturers experience in using Zoom and WebEx. [2]
10. Briefly explain the meaning of the following phrase found in paragraph 4, âWith COVID-19 we are seeing how yesterdayâs disruptors can become todayâs lifeguards. [2]
11. How has COVID-19 challenged the traditional deep-rooted way of teaching? List two challenges. [2x2=4]
C. Vocabulary [4x1=4]
For each of the questions below, only write the answer as selected from the option box below.
Select a word from the option box below that has a similar meaning to the words given below. Supply a synonym that can easily replace the words below in the article. [2x1=2]
11. declines
12. mandatory
Select a word from the option box below that has the opposite meaning of the words below. Supply an antonym that can easily replace the words below in the article. [2x1=2]
13. forced
14. disruption
|
outflow, order, drops, outpouring, important, voluntary, stop, compulsory, |
In: Psychology
In three units of study, there will be application-focused cases due at the beginning of the class that will be provided by the instructor. These cases will be complex in nature and will require the application of course concepts to real-word business situations. Each case will have an associated rubric to highlight expectations. All submissions must be of professional quality and done in Microsoft Word, Microsoft Excel, or submitted as a PDF.
Case: Investment Proposals for Ontario Coffee Home
It is January 1, 2019. You are a Senior Analyst at Ontario Coffee Home (OCH), one of the leading coffee chains and wholesaler of coffee/bakery products in Ontario. The CEO of Ontario Coffee Home, Jerry Donovan, has reached out to you to draft a report to evaluate two investment proposals.
Requirements
1. Identify which revenues and costs are relevant to your analysis, and which costs are irrelevant. Summarize all the information that will be required for each investment proposal, including describing the proposal and identifying the time horizon for each proposal evaluation.
2. Calculate the after-tax cash flows during the life of each of the projects.
3. Utilizing the after-tax cash flows from question 2, evaluate each investment proposal utilizing the following criteria (unless directed otherwise):
a. Payback
b. NPV
4. Clearly indicate whether any of the above criteria support each of the project proposals, and what the company should ultimately decide to do.
Investment Proposals
Jerry Donovan, CEO of OCH, wants you to evaluate two investment proposals that the company is considering:
1. The purchase of a coffee roaster plant in Cuba.
2. The re-development of coffee shops to accommodate the selling of frozen yogurt.
Mr. Donovan reminds you that only relevant costs and revenues should be considered. âRelevant costs have to be occurring in the future,â explained Mr. Donovan. âAnd have to differ from the status quo. For example, if we choose to buy the roaster plant, it is only the incremental revenue and costs related to the purchase that should be considered. We also need to take into account the opportunity cost associated with the alternatives.â
More details on each investment proposal are included below. Mr. Donovan wants you to recommend if OCH should invest in one, both, or none of the investment proposals.
Required Return
Mr. Donovan wants you to use 7% as the discount rate (i.e., the required return).
Investment in Roasted Coffee Plant
Mr. Donovan is considering purchasing a coffee plant in Cuba where labour is cheap and there are proximal coffee farms to help lower transportation costs.
The acquisition price of the plant is $6M, which includes roasting equipment that originally cost $14M when it was purchased 8 years ago. Some of the equipment is on its last legs, so an additional $2M of equipment has to be purchased. The roaster plant currently has $2M of available tax shield left, excluding any tax shield related to the equipment to be purchased.
The direct materials and direct labour used to manufacture these products are 8% and 7% of sales, respectively. The actual roasting processing costs are approximately 17% of sales. These costs as a percentage of sales are expected to remain consistent over the time horizon. The plant also requires two managers with fixed salaries of $50,000 each per year. Insurance for the plant and equipment is $40,000 per year.
Other incremental manufacturing overhead costs (property taxes, maintenance, security, etc.) excluding depreciation are estimated to be $75,000 annually. Wages are expected to increase with inflation (estimated to be 2%) over the time period, while other fixed costs are expected to remain steady.
Transportation variable costs (gas, variable overhead, etc.) are estimated to be 12% of revenue, and include transportation of raw materials to the roaster and finished products to the port for delivery to OCH coffeehouses.
The roasted coffee plant is expected to produce 1.1M pounds of coffee for the first two years, with production dipping by 100,000 pounds per year after this due to lower productivity from the deteriorating equipment. Each pound of roasted coffee can be sold at $3.25 per pound (either to retail cafes, franchise cafes, or to wholesale partners), with the price expected to rise with inflation over time. Each pound of coffee can make 30 cups of coffee that can sell at an average retail price of $4.00 per cup. Mr. Donovan has stressed that the profitability of the plant base has to be looked at on a stand-alone basis, i.e., from the sales from the plant to buyers, not from retail cafĂŠs to customers.
Mr. Donovan wants to see if the project will reach profitability after 5 years, as significant reinvestment will be needed after five years to keep the plant operational, so he wants you to evaluate the return on investment in that period using the investment criteria of payback period, NPV, and IRR. The following table will help in the calculations of the tax shield for the new equipment:
|
Class |
CCA Rate |
Description |
|
43 |
30% |
Machine and equipment to manufacture and process goods for sale |
Assume no salvage value when calculating the tax shield, and that the half-year rule applies for Class 43. The tax rate Mr. Donovan wants you to utilize is 25%. When calculating the tax shield, the present value should be in the same period as the initial investment (Year 0), which also means that deprecation (i.e., CCA) should not be taken from the cash flows in subsequent years since their tax shelter effects are already accounted for in the tax shield.
Redevelopment of Coffee Shops
Mr. Donovan also wants you to evaluate the potential of developing several hundred stores into new store models with frozen yogurt services. Five hundred stores have been selected as candidates for development. It will cost $80,000 to convert each store, including modifications to refrigeration equipment, with these costs being capitalized with a 6% applicable CCA rate. The average modified coffee shop is expected to generate an additional $30,000 in after-tax cash flow every year. However, OCH is also estimated to lose about $15,000 in annual after-tax cash flow from these cafĂŠs due to yogurt sales cannibalizing existing coffee shops. In other words, some customers who normally would have purchased coffee would instead purchase yogurt.
The five hundred stores have average annual rent of $36,000 each. Mr. Donovan wants you to evaluate the profitability of this investment after a seven-year period using the investment criteria of NPV.
In: Accounting
Overview
Your assignment is to complete a wireless network design for a small company. You will place a number of network elements on the diagram and label them appropriately. A network diagram is important to communicate the design features of a network between network administrators, system administrators and cyber-security analysts. It helps to create a shared mental model between these different technologists, yet each will have their own perspective on what is important to have documented on the diagram. Please review a description of ABC Corporationâs network resources and how they are allocated.
You may find the following Floor Plan helpful in completing this lab.
ABC Corporationâs Network Description
ABC Corporation is a small business in the heart of Central Pennsylvania. They provide services to their clients all over the region. The three-story main office building is where all of the employees report to work each day. There are no remote users. ABC Corporation is a very traditional business. While they have a computer network and are connected to the Internet, they arenât very fancy and donât yet have a need for telecommuting, wireless networks, or smart phones. All of their computers are desktop machines and are connected with wired Ethernet connections. All of the network wiring is CAT-6 twisted pair wiring that goes from the office location to a wiring closet. There is one wiring closet on each floor. Each closet is connected to the basement wiring closet via fiber.
There are several departments of the company. The administrative office has ten employees including the CEO, executive Vice-President, a human resources manager, and several assistants and secretaries. The finance office has fifteen employees. Both of these divisions are on the third floor.
The second floor has the Sales and R&D departments. There are a total of twenty employees in the Sales Department and includes sales executives and assistants. All of the sales department personnel have laptop computers, but they are still connected via the wired network. The R&D department has ten engineers who have two computers each â one in their office and one in their lab spaces.
The first floor has the shipping/receiving department, manufacturing department and the receptionist. The receptionist shares a computer with the night watchman, since they work opposite shifts. There are 20 people in manufacturing, but they only use three computers to enter their production details into the companyâs ERP system. The shipping/receiving department has six people, each with a computer that connects to UPS, Fedex and USPS systems, prints packaging labels and shipping documents. There is also a conference room/training room on the first floor with a multimedia system that includes a podium computer, projector, and all of the bells and whistles.
The basement houses the maintenance department, information technology, and the mail room. The mail room clerk doesnât use the computers at all. The two maintenance workers have computers at their desks that they use to enter reports of work performed. The IT Department has seven employees, each with a desktop computer. They also manage the server farm, which includes two domain controllers, one print server, one mail server, one database server, one internal web server, one external web server (on the DMZ interface of the firewall), a file server, a special server for the ERP system, and a backup server.
Add Wireless Network Access Points
Each floor, with the exception of the basement (the basement does not need wireless), needs to have two wireless access points, one for the north end of the building, and the other for the south. However, the wireless access points will overlap in the middle of the building, so you need to pick different wireless network channels for each end. On the first floor, there should be an additional wireless access point in the conference room for guests.
The âguestâ network should have a different SSID than the companyâs wireless network. It should be configured to allow anyone to connect with a password. The password will be provided by the receptionist to any visitors and will be changed each week. The company wireless network should be configured to have the same SSID on all of the wireless network access points (but different from the âguestâ network). It should be configured with WPA-2 Enterprise with AES and should be connected to the companyâs servers for authentication (Windows Server with RADIUS server enabled for the Active Directory).
Note: You might want to review this informative webpage to see how to configure Windows Server to handle the authentication for the access points.
Place your network access points on your network diagram you did for Homework #2. Segment the wireless network separately from the wired network so that it is on its own subnet. Segment the visitor wireless network so itâs on its own subnet, separate from both the wired network and the company wireless network.
Label each access point with its own IP address and basic configuration. Each device should have its own name, IP address and should list its configuration in terms of encryption protocol (TKIP, AES, 3-DES or None) and authentication protocol (WPA, WPA-Enterprise, WPA2-Enterprise, WPA-2, WEP, etc, none, etc). Identify the SSIDs that are used for each device.
Place the wireless access points in the building. You may use the floor plan provided in the attached PDF.
Create a Network Diagram
Your network diagram needs to include the following elements:
Network Documentation
Your network design document needs to explain each of the elements in your wireless network design. Explain how you segmented your wireless network from other parts of the network. Describe what security settings you might want to implement in your router. Describe the reason for the number of access points that you need on each floor.
What to Turn In
For assignments that require you to submit Visio work, please
export your file and submit as a PDF. Also, please submit your
original Visio file.
You also need to turn in a Word document (.doc or .docx) file that
explains your network diagram elements. Include snapshots from your
network diagram in your Word doc file â and annotate your diagram
snapshots to better help your explanation of your network.
I want the answer in Microsoft VISIO screenshot
In: Computer Science
In this lab, you will be completing a programming exercise through the point of view of both a
contracted library developer and the client that will use the developed code.
In the first part, you will be required to write a class in C++ that will be included in the clientâs code.
Your class must be written with defensive programming in mind. It should allow the client to include or
leave out your defensive checks at compile-time.In the second part, you will use your defensively
programmed class methods to guide the revision of the provided user driver program. After
encountering failures from misuse of the library class methods, you will update the driver program,
according to the implementation guidelines in the CWE documentation for the appropriate error.
Note that the code you write does not have to be completely optimized and you will likely see better
ways to write the class and the driver to avoid the problems inherit in the client descriptions.
In Part 1 of the lab you will complete the following:
ďˇ Write a class called myArray in a file named âyourlastname_lab2.cppâ where you substitute your
own name
o Constructor
ď§ two inputs: int size and string input
ď§ dynamically create a char* array of int size
ď§ parse string input (which should be a string of comma-separated characters)
and enter the characters in the array in order
o Destructor should free the memory assigned to your char* array
o ReadFromArray
ď§ one input: int index
ď§ return char at the given index for the array
o WriteToArray
ď§ two inputs: int index, char replace
ď§ overwrite char at given index with new char replace
o DeleteArray
ď§ free the memory for your char*
ď§ set char* to NULL
o PrintArray
ď§ output the contents of the char* array to stdout
o NewArray
ď§ two inputs: int size and string input
ď§ dynamically create a char* array of int size
ď§ parse string input (which should be a string of comma-separated characters)
and enter the characters in the array in order
ďˇ For each class method, provide the contract for proper usage of the method
o enter as comment lines directly after the definition
o List any preconditions (what has to be true immediately before executing the method)o List any postconditions (what has to be true immediately after executing the method)
ďˇ Utilize C standard assert() library calls from assert.h to test your preconditions
ďˇ Use macros to give the client the option on whether to include the asserts at compile-time
ďˇ Use the provided sample client driver program to test your class code
ďˇ Take screenshots of your assertions being invoked for each function
In Part 2 of the lab you will complete the following:
⢠Using the assertions you have placed into your class methods, update the driver code to ensure
calls made to the class methods are in-contract
⢠Identify what CWE errors, if applicable, are occurring with out-of-contract use of your class
methods
⢠Review the âPotential Mitigationâ section for those CWE errors and use the âPhase:
Implementationâ entries to guide your revision of the provided program driver.
⢠Take screenshots of the driver code working without hitting the assertions â be sure to explain
in your word document how you tested the preconditions of each method and what changes
you made to the driver to ensure in-contract calls were made to the methods.
Graduate students should also answer the following:
⢠Is there a Python equivalent to the C-standard assert() calls used in class with C++?
⢠How would you approach defensive programming from the point-of-view of python methods?
Submit a zip file to Blackboard which contains your class file and a word document which includes the
screenshots and other information described above.
For full credit your code should compile, run as described, and be appropriately commented. If I need to
know anything in particular about how I should compile your code, include that in your document.
GIVEN cpp code:
============
//Sample client code for interfacing with myArray class
//Use this driver program to test your class and defensive
programming assertions
#include <iostream>
#include <string>
#include <stdlib.h>
#include "your_class_here.cpp" //replace this with your
own file
using namespace std;
int main(){
int size, choice, read, write;
string input;
char replace, response;
char * array;
cout << "Welcome, please enter a maximum size
for your array" << endl;
cin >> size;
cout << "Please enter a series of
comma-separated characters for your array" << endl;
cin >> input;
//create object of class type which should
dynamically allocate a char* array
//of int size and fill it with the comma-separated
values from string input
Array myArray(size, input);
while(1){
cout << "Array Menu"
<< endl;
cout << "1. Read by index"
<< endl;
cout << "2. Write by index"
<< endl;
cout << "3. Delete array"
<< endl;
cout << "4. Print array"
<< endl;
cout << "5. New Array"
<< endl;
cout << "6. Exit" <<
endl;
cin >> choice;
switch(choice){
case 1:
cout << "Enter an index to read a value from the array"
<< endl;
cin
>> read;
//call to library function ReadFromArray(int read)
//this library call should read a single character from the array
and return it
response = myArray.ReadFromArray(read);
cout << "The item in index[" << read << "] is "
<< response << endl;
break;
case 2:
cout << "Enter an index to write a value to the array"
<< endl;
cin
>> write;
cout << "What single character would you like to write to the
array?" << endl;
cin
>> replace;
//call to library function WriteToArray(int write, char
replace)
//this library call should write a single character to the
array
myArray.WriteToArray(write,replace);
cout << "The item in index[" << write << "] is "
<< myArray.ReadFromArray(write) << endl;
break;
case 3:
//call to library function DeleteArray() which should free the
dynamically allocated array
myArray.DeleteArray();
break;
case 4:
//call to library function PrintArray() which will print the
contents of the array to stdout
myArray.PrintArray();
break;
case 5:
//call to library function NewArray() which will dynamically
allocate a new array
cout << "Welcome, please enter a maximum size for your array"
<< endl;
cin
>> size;
cout << "Please enter a series of comma-separated characters
for your array" << endl;
cin
>> input;
myArray.NewArray(size, input);
break;
case 6:
exit(0);
break;
}
}
return 0;
}
In: Computer Science