Questions
(Tokenizing Telephone Numbers) Write a program that inputs a telephone number as a string in the...

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

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

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

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

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

  

  1. Give and interpret the 95% confidence interval for the hours of sleep a student gets.
  2. Give and interpret the 99% confidence interval for the hours of sleep a student gets
  3. Compare the 95% and 99% confidence intervals for the hours of sleep a student gets. Explain the difference between these intervals and why this difference occurs.

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.

  1. Give and interpret the 95% confidence intervals for males and females on the HEIGHT variable. Which is wider and why?

  1. Give and interpret the 99% confidence intervals for males and females on the HEIGHT variable. Which is wider and why?

  1. Find the mean and standard deviation of the DRIVE variable by copying that variable into the Week 1 spreadsheet. Use the Week 4 spreadsheet to determine the percentage of data points from that data set that we would expect to be less than 40. To find the actual percentage in the dataset, sort the DRIVE variable and count how many of the data points are less than 40 out of the total 35 data points. That is the actual percentage. How does this compare with your prediction?

Mean ______________             Standard deviation ____________________

Predicted percentage ______________________________

Actual percentage _____________________________

Comparison ___________________________________________________

______________________________________________________________

  1. What percentage of data would you predict would be between 40 and 70 and what percentage would you predict would be more than 70 miles? Use the Week 4 spreadsheet again to find the percentage of the data set we expect to have values between 40 and 70 as well as for more than 70. Now determine the percentage of data points in the dataset that fall within this range, using same strategy as above for counting data points in the data set. How do each of these compare with your prediction and why is there a difference?

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

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

An auto manufacturing company wanted to investigate how the price of one of its car models depreciates with age.

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

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:

  1. Investment revenue includes National Intercable Company's $9 million share of the net income of Central Fiber Optics Corporation, an equity method investee.
  2. A long-term investment in bonds, originally purchased for $34 million, was sold for $38 million.
  3. Pretax accounting income exceeded taxable income causing the deferred income tax liability to increase by $3 million.
  4. A building that originally cost $48 million, and which was one-fourth depreciated, was destroyed by fire. Some undamaged parts were sold for $4 million.
  5. The right to use a building was acquired with a seven-year lease agreement; present value of lease payments, $90 million. Annual lease payments of $11 million are paid at Jan. 1 of each year starting in 2018.
  6. $170 million of bonds were retired at maturity.
  7. $20 million par value of common stock was sold for $40 million, and $50 million of preferred stock was sold at par.
  8. Shareholders were paid cash dividends of $22 million.


Required:
2. Prepare the statement of cash flows. Present cash flows from operating activities by the direct method. (Enter your answers in millions (i.e., 10,000,000 should be entered as 10.). Amounts to be deducted should be indicated with a minus sign.)

In: Accounting

Create a 3 hr Unit Hydrograph based on the following 2 hr Unit Hydrograph. Draw the...

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

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