(Tokenizing Telephone Numbers) Write a program that inputs a telephone number as a string in the form (555) 555-5555. The program should use function strtok to extract the area code as a token, the first three digits of the telephone number as a token and the last four digits of the phone number as a token. The seven digits of the phone number should be concatenated into one string. The program should convert the area-code string to int and convert the phone-number string to long. Both the area code and the phone number should be printed
In: Computer Science
Hayden Inc. has a number of copiers that were bought four years ago for $22,000. Currently maintenance costs $2,200 a year, but the maintenance agreement expires at the end of two years, and thereafter, the annual maintenance charge will rise to $8,200. The machines have a current resale value of $8,200, but at the end of year 2, their value will have fallen to $3,700. By the end of year 6, the machines will be valueless and would be scrapped. Hayden is considering replacing the copiers with new machines that would do essentially the same job. These machines cost $27,000, and the company can take out an eight-year maintenance contract for $1,400 a year. The machines would have no value by the end of the eight years and would be scrapped. Both machines are depreciated using seven-year straight-line depreciation, and the tax rate is 40%. Assume for simplicity that the inflation rate is zero. The real cost of capital is 9%. a. Calculate the equivalent annual cost, if the copiers are: (i) replaced now, (ii) replaced two years from now, or (iii) replaced six years from now.
In: Finance
Project L costs $55,000, its expected cash inflows are $13,000 per year for 8 years, and its WACC is 7%. What is the project's discounted payback? Do not round intermediate calculations. Round your answer to two decimal places.
In: Finance
Problem 1. You have glass fibers and a thermosetting plastic, sketch three different ways in which they could be arranged to give you formats with different strength. Of the three you drew, which is most isotropic and which is most anisotropic and why?
Problem 2. Explain the basic components required to make a composite and explain the role of each component.
Problem 3. Give two benefits of composites over metals and one area where they fall short of metals.
Problem 4. List two reinforcement materials and two matrix materials.
Problem 5. Draw a stress-stain curve for a brittle polymer, a ductile polymer, and an elastomer. Comment on their expected behavior in the elastic region of their curves. Be sure to name relevant material properties in your commentary.
Problem 6: Explain how changes in temperature can impact the behavior of a polymer.
Problem 7: a) Draw a diagram showing the polymer delivery system from beginning to mold for an injection molding process. (Remember that the equipment it is similar to extrusion with one exception) b) List and explain the process stages.
Problem 8: List 3 properties of engineering ceramics and applications in which these properties are advantageous.
In: Chemistry
We need to find the confidence interval for the SLEEP variable. To do this, we need to find the mean and standard deviation with the Week 1 spreadsheet. Then we can the Week 5 spreadsheet to find the confidence interval.
First, find the mean and standard deviation by copying the SLEEP variable and pasting it into the Week 1 spreadsheet. Write down the mean and the sample standard deviation as well as the count. Open the Week 5 spreadsheet and type in the values needed in the green cells at the top. The confidence interval is shown in the yellow cells as the lower limit and the upper limit.
| Sleep (hours) |
| 7 |
| 7 |
| 5 |
| 7 |
| 6 |
| 8 |
| 7 |
| 8 |
| 5 |
| 8 |
| 8 |
| 4 |
| 8 |
| 8 |
| 6 |
| 8 |
| 8 |
| 8 |
| 7 |
| 10 |
| 6 |
| 7 |
| 8 |
| 5 |
| 8 |
| 7 |
| 7 |
| 4 |
| 9 |
| 8 |
| 7 |
| 7 |
| 8 |
| 8 |
| 10 |
In the Week 2 Lab, you found the mean and the standard deviation for the HEIGHT variable for both males and females. Use those values for follow these directions to calculate the numbers again.
| Height (inches) |
| 61 |
| 62 |
| 63 |
| 63 |
| 64 |
| 65 |
| 65 |
| 66 |
| 66 |
| 67 |
| 67 |
| 67 |
| 67 |
| 68 |
| 68 |
| 69 |
| 69 |
| 69 |
| 69 |
| 69 |
| 69 |
| 69 |
| 70 |
| 70 |
| 70 |
| 70 |
| 70 |
| 71 |
| 71 |
| 71 |
| 73 |
| 73 |
| 74 |
| 74 |
| 75 |
(From Week 2 Lab: Calculate descriptive statistics for the variable Height by Gender. Click on Insert and then Pivot Table. Click in the top box and select all the data (including labels) from Height through Gender. Also click on “new worksheet” and then OK. On the right of the new sheet, click on Height and Gender, making sure that Gender is in the Rows box and Height is in the Values box. Click on the down arrow next to Height in the Values box and select Value Field Settings. In the pop up box, click Average then OK. Write these down. Then click on the down arrow next to Height in the Values box again and select Value Field Settings. In the pop up box, click on StdDev then OK. Write these values down.)
You will also need the number of males and the number of females in the dataset. You can either use the same pivot table created above by selecting Count in the Value Field Settings, or you can actually count in the dataset.
Then use the Week 5 spreadsheet to calculate the following confidence intervals. The male confidence interval would be one calculation in the spreadsheet and the females would be a second calculation.
|
Mean ______________ Standard deviation ____________________ Predicted percentage ______________________________ Actual percentage _____________________________ Comparison ___________________________________________________ ______________________________________________________________ |
|
Predicted percentage between 40 and 70 ______________________________ Actual percentage _____________________________________________ Predicted percentage more than 70 miles ________________________________ Actual percentage ___________________________________________ Comparison ____________________________________________________ _______________________________________________________________ Why? __________________________________________________________ ________________________________________________________________ |
In: Math
Fuzzy Monkey Technologies, Inc., purchased as a long-term investment $ 130 million of 8% bonds, dated January 1, on January 1, 2018. Management intends to have the investment available for sale when circumstances warrant. For bonds of similar risk and maturity the market yield was 10%. The price paid for the bonds was $115 million. Interest is received semiannually on June 30 and December 31. Due to changing market conditions, the fair value of the bonds at December 31, 2018, was $120 million. Required: 1. to 3. Prepare the relevant journal entries on the respective dates (record the interest at the effective rate). 4-a. At what amount will Fuzzy Monkey report its investment in the December 31, 2018, balance sheet? 4-b. Prepare the entry necessary to achieve this reporting objective. 5. How would Fuzzy Monkey's 2018 statement of cash flows be affected by this investment?
In: Accounting
| age | 8 | 8 | 4 | 3 | 2 | 5 | 7 | 5 |
| price | 35 | 21 | 68 | 72 | 83 | 57 | 40 |
46 |
An auto manufacturing company wanted to investigate how the price of one of its car models depreciates with age. The research department at the company took a sample of eight cars of this model and collected the following information on the ages (in years) and prices (in hundreds of dollars) of these cars.
Find the least squares regression line equation in the form y^=a+bx. Use "Age" as the independent variable and "Price" as the dependent variable.
Round your answers to four decimal places.
y^=_____+(______)x
Predict the price of a 5 year-old car of this model.
Round your answer to one decimal place.
ypred=_______
In: Statistics and Probability
The comparative balance sheets for 2018 and 2017 and the
statement of income for 2018 are given below for National
Intercable Company. Additional information from NIC’s accounting
records is provided also.
| NATIONAL INTERCABLE COMPANY Comparative Balance Sheets December 31, 2018 and 2017 ($ in millions) |
||||||||
| 2018 | 2017 | |||||||
| Assets | ||||||||
| Cash | $ | 106 | $ | 95 | ||||
| Accounts receivable | 280 | 275 | ||||||
| Less: Allowance for uncollectible accounts | (8 | ) | (6 | ) | ||||
| Prepaid insurance | 4 | 10 | ||||||
| Inventory | 262 | 255 | ||||||
| Long-term investment | 50 | 75 | ||||||
| Land | 180 | 180 | ||||||
| Buildings and equipment | 322 | 280 | ||||||
| Less: Accumulated depreciation | (118 | ) | (85 | ) | ||||
| Trademark | 29 | 30 | ||||||
| $ | 1,107 | $ | 1,109 | |||||
| Liabilities | ||||||||
| Accounts payable | $ | 38 | $ | 54 | ||||
| Salaries payable | 4 | 5 | ||||||
| Deferred income tax liability | 20 | 17 | ||||||
| Lease liability | 79 | 0 | ||||||
| Bonds payable | 115 | 285 | ||||||
| Less: Discount on bonds | (25 | ) | (28 | ) | ||||
| Shareholders' Equity | ||||||||
| Common stock | 290 | 270 | ||||||
| Paid-in capital—excess of par | 110 | 90 | ||||||
| Preferred stock | 50 | 0 | ||||||
| Retained earnings | 426 | 416 | ||||||
| $ | 1,107 | $ | 1,109 | |||||
| NATIONAL INTERCABLE COMPANY Income Statement For Year Ended December 31, 2018 ($ in millions) |
||||||
| Revenues | ||||||
| Sales revenue | $ | 420 | ||||
| Investment revenue | 16 | |||||
| Gain on sale of investments | 4 | $ | 440 | |||
| Expenses | ||||||
| Cost of goods sold | 170 | |||||
| Salaries expense | 62 | |||||
| Depreciation expense | 45 | |||||
| Trademark amortization expense | 1 | |||||
| Bad debt expense | 7 | |||||
| Insurance expense | 24 | |||||
| Bond interest expense | 40 | |||||
| Loss on building fire | 32 | 381 | ||||
| Income before tax | 59 | |||||
| Income tax expense | 27 | |||||
| Net income | $ | 32 | ||||
|
Additional information from the accounting records:
|
||||||
In: Accounting
Create a 3 hr Unit Hydrograph based on the following 2 hr Unit Hydrograph. Draw the resultant curve.
| Time (hr) | Flow (cfs) |
| 0 | 0 |
| 2 | 60 |
| 4 | 160 |
| 6 | 85 |
| 8 | 35 |
| 10 | N |
The value N is the last two digits of your student number. For example, if your student number is 17548045, then N= 45
In: Civil Engineering
Centrifuge Parts (match the part in Column A with the one correct function in Column B)
Column A
1. Rheostat ______
2. Bucket _______
3. Trunnion ring _____
4. Brake _______
Column B
A. sets spinning time
B. speed control
C. tube holder
D. holds bucket
E. allow for faster slow down time ?
Types of Centrifuges (match the Centrifuge name in Column A with the one correct function in Column B)
Column A
5. Cytospine
6. Horizontal head
7. Microheamatocrit
Column B
A. greater speed than angle head
B. retains good cellular detail
C. spins capillary tubes in hematology
D. better separation of layers
8. An advantage of a horizontal head centrifuge is (may be more than 1 answer)
a) gives best separation of layers
b) spins faster than angle head due to less wind resistance
c) holds more tubes
9. 8 tubes of whole blood were placed in a centrifuge. The speed was set for 2000 rpm for 10 minutes. The imbalance light came on as soon as the instrument started spinning. Choose from the list below all possible causes
a) rubber cushion missing from 1 or more buckets
b) tubes not placed opposite each other in buckets
c) blood volumes for opposite tubes not equal
d) tube sizes not all the same
10. If a method required spinning at an exact gravitational force, you must know the Relative Centrifugal Force for that centrifuge for a specific speed. The 2 things that will influence the RCF are: a) speed of rotation (RPM) b) size of the centrifuge (distance of tubes from motor shaft) c) nature of the samples to be spun RCF = 1.12R(RPM/1000)2, R= radius
11.State the steps to be followed if a tube of serum breaks in a centrifuge.
In: Other