Questions
A college must track equipment items purchased using special funds. Create an Inventory class that represents...

A college must track equipment items purchased using special funds.

Create an Inventory class that represents an equipment item. An equipment item consists of an 8-alphanumeric inventory number, a short description of the item, the purchase price of the item, and its current location (e.g.: room/building location). If an item is surplussed (e.g., gotten rid of), then the current location should say surplus, but the item should remain on the list.

Write a program that reads inventory items from a file into a vector. Implement a menu system that allows the user to add, edit, and delete records from the list as well as search the list based on inventory number and print a report of all records.
The list should always be maintained in order of inventory number. When the program closes, the data file should be overwritten with the most recent data from the list.

Implement one of the sorting and searching algorithms from the chapter. Do not use the built-in sort function.

Be sure to use the same menu options as shown in the example so the auto-grader can accurately grade your assignment.

Sample

MAIN MENU
1 - Add
2 - Edit
3 - Delete
4 - Search
5 - Print All
6 - Exit
Choice: 2

Enter inventory number to edit: 12-2322-12
Curent Values
12-2322-12 Printer 800.00 PW-590

EDIT MENU
1 - Inventory Number
2 - Description
3 - Price
4 - Location
5 - Done
Choice: 3
Enter new price: 820.00
EDIT MENU
1 - Inventory Number
2 - Description
3 - Price
4 - Location
5 - Done
Choice: 1
Enter new Inventory Number: 12-AB-3333
Invalid inventory number.
EDIT MENU
1 - Inventory Number
2 - Description
3 - Price
4 - Location
5 - Done
Choice: 5
MAIN MENU
1 - Add
2 - Edit
3 - Delete
4 - Search
5 - Print All
6 - Exit
Choice: 5

12-1194-94 Switch 417.00 TR-123
12-1232-35 Monitor 300.00 Surplus
12-1384-91 MicroPlus 1200.00 Surplus
12-2322-12 Printer 820.00 PW-590
12-3245-21 Test 120.00 Surplus
14-4343-41 Cabinet 175.00 AW-212
14-4992-22 Bookshelf 375.00 BN-100
14-8383-12 Chair 70.00 BN-100
14-9842-85 Desk 283.00 BN-100
14-9923-95 Typewriter 120.00 Surplus

MAIN MENU
1 - Add
2 - Edit
3 - Delete
4 - Search
5 - Print All
6 - Exit
Choice: 6

Need the answer in C++ and always need a .cpp file, .h file, and driver file

In: Computer Science

Use tab 7. (Hospital charges) in DS3.xls and do the following: Calculate the mean and median...

  1. Use tab 7. (Hospital charges) in DS3.xls and do the following:
    1. Calculate the mean and median of age, LOS and charges using the =AVERAGE() and =MEDIAN() functions. (3 points)
    2. Based on the results from ‘a.’ above, in which direction, if any, are each of these three distributions (age, LOS, charges) skewed? (4 points)
    3. Calculate the variance and standard deviation of age, LOS and charges using the =VAR.S() and =STDEV.S() functions. (3 points)
  2. Write out the formula for calculating the 95% confidence interval for a sample mean. (5 points)
  3. In this problem, you will compute confidence intervals for the mean under a variety of conditions and compare the results. You will also discuss what accounts for differences in these confidence intervals, if any. Please use Tab 9. In DS3.xlsx to show your work and report your results with two digits to the right of the decimal point.
    1. Using =T.INV.2T() and the formula for calculating the confidence interval, calculate the exact 95% confidence interval (upper and lower limits) for the following: (4 points)
      1. n = 40, mean = 32, S.D. = 6
      2. n = 40, mean = 32, S.D. = 12
      3. n = 140, mean = 32, S.D. = 6
      4. n = 140, mean = 32, S.D. = 12
    2. Using t = 2 and the formula for calculating the confidence interval, calculate the approximate 95% confidence interval (upper and lower limits) for the following: (2 points)
      1. n = 40, mean = 32, S.D. = 6
      2. n = 40, mean = 32, S.D. = 12
    3. Compare the confidence intervals computed in a.i and a.ii, above. What accounts for any differences observed. (1 point)
    4. Compare the confidence intervals computed in a.i and a.iii, above. What accounts for any differences observed. (1 point)
    5. Compare the confidence intervals computed in b.i and b.ii, above. What accounts for any differences observed. (1 point)
    6. Compare the confidence intervals computed in a.i and b.i, above. What accounts for any differences observed. (1 point)
  4. In the next problem, you will compute confidence intervals for two means and use these to test hypotheses concerning these means. You will also compute the confidence interval for a proportion. Using the data in Tab 10. (Charges) in DS3.xlsx. Please report your results with two digits to the right of the decimal point. Assume that the data represent a random sample from a larger population and do the following:
    1. Calculate the exact 95% confidence interval (lower and upper limits) for the sample mean of LOS. (2 points)
    2. Use the confidence interval calculated in “a” above to test the hypothesis that the mean LOS is 5.5 days. (2 points)
    3. Calculate the exact 99% confidence interval (lower and upper limits) for the sample mean of charges. (2 points)
    4. Using the confidence interval calculated in “c” above, test the hypothesis (at the alpha = 1% level) that the mean of charges is $4,700. (2 points)
    5. Compute the 95% confidence interval for the proportion female. (Hint: You will need to calculate the proportion of records that are for females and the S.E. for this proportion). (2 points)

PLEASE USE DATA BELOW:

Sex   Age   LOS   Charges
F   75   3   $5,041.93
F   72   3   $4,318.13
F   56   1   $707.70
M   89   5   $5,399.67
F   49   2   $3,405.38
F   69   4   $2,384.47
F   85   2   $2,590.86
M   79   5   $7,000.21
M   70   1   $2,404.39
F   72   5   $5,029.09
F   80   5   $4,177.90
M   85   10   $8,244.25
M   90   6   $5,184.53
F   70   5   $17,480.97
M   86   5   $4,734.98
F   80   4   $3,026.42
F   83   7   $8,118.92
F   78   3   $17,005.45
F   80   12   $17,605.59
F   84   10   $18,290.04
F   83   6   $6,460.59
F   68   9   $10,955.29
M   88   4   $2,421.63
F   83   9   $10,421.01
F   73   6   $11,045.79
F   83   6   $5,482.93
F   73   5   $5,082.83
F   76   2   $3,004.67
F   72   5   $6,450.77
M   86   3   $4,637.96
M   69   2   $1,547.81
F   92   2   $1,905.65
F   82   1   $1,078.56
M   83   16   $10,655.80
M   46   4   $2,426.48
M   39   1   $1,596.91
F   89   2   $3,311.66
M   91   3   $3,078.99
F   76   2   $2,721.63
F   68   7   $5,547.71
F   80   1   $1,820.41
F   76   3   $4,242.10
F   88   5   $3,169.19
M   77   3   $3,620.78
F   75   2   $5,384.92
F   50   2   $2,581.72
F   82   3   $3,542.79
F   76   4   $2,489.65
F   84   6   $3,548.05
F   94   11   $8,953.38
M   76   3   $1,876.70
F   94   14   $19,708.11
M   88   3   $2,694.11
F   74   1   $1,599.82
M   73   1   $2,472.64
F   81   2   $5,019.86
M   66   6   $2,945.22
F   79   2   $2,834.68
M   83   3   $1,871.78
F   87   8   $6,815.61
F   82   11   $11,179.97
M   85   14   $10,242.50
F   83   5   $3,034.14
F   90   9   $7,022.47
F   77   7   $7,792.24
F   76   10   $14,769.92
F   94   6   $5,804.21
F   91   7   $6,823.60
M   49   9   $7,024.64
F   75   2   $2,146.99
M   91   7   $6,424.30
M   71   10   $12,919.48
F   71   7   $11,098.70
F   76   2   $4,860.83
F   77   7   $4,425.44
M   85   4   $5,151.52
M   75   7   $5,363.25
M   81   7   $5,216.91
M   78   2   $5,756.89
F   75   3   $5,621.92
M   76   3   $6,864.63
F   78   2   $3,489.88
F   70   10   $7,596.68
M   60   5   $6,572.60
F   67   2   $12,313.78
F   91   4   $3,720.09
M   96   11   $8,217.27
F   72   1   $1,035.75
F   90   4   $3,674.03
M   92   2   $2,451.69
F   82   10   $9,931.21
F   61   8   $8,954.81
M   76   3   $4,286.90
F   88   2   $1,731.73
F   65   6   $3,580.55
F   82   6   $5,330.24
M   78   10   $6,015.34
M   79   4   $4,655.83
M   73   2   $2,781.28
M   77   3   $4,713.26

In: Statistics and Probability

In the probability distribution to the​ right, the random variable X represents the number of hits...

In the probability distribution to the​ right, the random variable X represents the number of hits a baseball player obtained in a game over the course of a season. Complete parts​ (a) through​ (f) below. x ​P(x) 0 0.1685 1 0.3358 2 0.2828 3 0.1501 4 0.0374 5 0.0254 ​

(a) Verify that this is a discrete probability distribution. This is a discrete probability distribution because all of the probabilities are at least one of the probabilities is all of the probabilities are between 0 and 1​, ​inclusive, and the sum mean sum product of the probabilities is 1. ​(Type whole numbers. Use ascending​ order.)

​(b) Draw a graph of the probability distribution. Describe the shape of the distribution. Graph the probability distribution. Choose the correct graph below. A. 0 1 2 3 4 5 0 0.1 0.2 0.3 0.4 Number of Hits Probability The graph of a probability distribution has a horizontal x-axis labeled "Number of Hits" from 0 to 5 in intervals of 1 and a vertical y-axis labeled "Probability" from 0 to 0.4 in intervals of 0.05. Vertical line segments are centered on each of the horizontal axis tick marks. The approximate heights of the vertical line segments are as follows, with the horizontal coordinate listed first and the line height listed second: 0, 0.15; 1, 0.04; 2, 0.03; 3, 0.17; 4, 0.34; 5, 0.28. B. 0 1 2 3 4 5 0 0.1 0.2 0.3 0.4 Number of Hits Probability The graph of a probability distribution has a horizontal x-axis labeled "Number of Hits" from 0 to 5 in intervals of 1 and a vertical y-axis labeled "Probability" from 0 to 0.4 in intervals of 0.05. Vertical line segments are centered on each of the horizontal axis tick marks. The approximate heights of the vertical line segments are as follows, with the horizontal coordinate listed first and the line height listed second: 0, 0.34; 1, 0.15; 2, 0.03; 3, 0.17; 4, 0.28; 5, 0.04. C. 0 1 2 3 4 5 0 0.1 0.2 0.3 0.4 Number of Hits Probability The graph of a probability distribution has a horizontal x-axis labeled "Number of Hits" from 0 to 5 in intervals of 1 and a vertical y-axis labeled "Probability" from 0 to 0.4 in intervals of 0.05. Vertical line segments are centered on each of the horizontal axis tick marks. The approximate heights of the vertical line segments are as follows, with the horizontal coordinate listed first and the line height listed second: 0, 0.03; 1, 0.04; 2, 0.15; 3, 0.28; 4, 0.34; 5, 0.17. D. 0 1 2 3 4 5 0 0.1 0.2 0.3 0.4 Number of Hits Probability The graph of a probability distribution has a horizontal x-axis labeled "Number of Hits" from 0 to 5 in intervals of 1 and a vertical y-axis labeled "Probability" from 0 to 0.4 in intervals of 0.05. Vertical line segments are centered on each of the horizontal axis tick marks. The approximate heights of the vertical line segments are as follows, with the horizontal coordinate listed first and the line height listed second: 0, 0.17; 1, 0.34; 2, 0.28; 3, 0.15; 4, 0.04; 5, 0.03. Describe the shape of the distribution. The distribution has one mode has one mode is multimodal is uniform is bimodal and is skewed right. roughly symmetric. skewed right. skewed left.

​(c) Compute and interpret the mean of the random variable X. mu Subscript xequals 0.1666 hits ​(Type an integer or a decimal. Do not​ round.) Which of the following interpretations of the mean is​ correct? A. In any number of​ games, one would expect the mean number of hits per game to be the mean of the random variable. B. Over the course of many​ games, one would expect the mean number of hits per game to be the mean of the random variable. C. The observed number of hits per game will be less than the mean number of hits per game for most games. D. The observed number of hits per game will be equal to the mean number of hits per game for most games. ​

Need help with (c) through (f) please!

(d) Compute the standard deviation of the random variable X. sigma Subscript xequals nothing hits ​(Round to three decimal places as​ needed.)

​(e) What is the probability that in a randomly selected​ game, the player got 2​ hits? nothing ​(Type an integer or a decimal. Do not​ round.)

​(f) What is the probability that in a randomly selected​ game, the player got more than 1​ hit? nothing ​(Type an integer or a decimal. Do not​ round.)

In: Statistics and Probability

Write a C# program that prints a calendar for a given year. Call this program calendar....

Write a C# program that prints a calendar for a given year. Call this program calendar. The program prompts the user for two inputs:
      1) The year for which you are generating the calendar.
      2) The day of the week that January first is on, you will use the following notation to set the day of the week:
    
      0 Sunday                     1 Monday                   2 Tuesday                   3 Wednesday
      4 Thursday                 5 Friday                      6 Saturday

Your program should generate a calendar similar to the one shown in the example output below. The calendar should be printed on the screen. Your program should be able to handle leap years. A leap year is a year in which we have 366 days. That extra day comes at the end of February. Thus, a leap year has 366 days with 29 days in February. A century year is a leap year if it is divisible by 400. Other years divisible by 4 but not by 100 are also leap years.

Example: Year 2000 is a leap year because it is divisible by 400.  Year 2004 is a leap year because it is divisible by 4 but not by 100.
Your program should clearly describe the functionality of each function and should display the instructions on how to run the program.

Your need to create one method “displayMonth” for print each month as required. You can choose return method or not that depend on your design.

Sample Input:

Enter the year for which you wish to generate the calendar: 2004
Enter the day of the week that January first is on: 4

Sample output:

Calendar for year 2004

January
Sun      Mon     Tue      Wed     Thu      Fri        Sat
                                                1          2          3
4          5          6          7          8          9          10
11        12        13        14        15        16        17
18        19        20        21        22        23        24
25        26        27        28        29        30        31

February
Sun      Mon     Tue      Wed     Thu      Fri        Sat
1          2          3          4          5          6          7
..         ..          ..          ..          ..          ..          ..
..          ..

In: Computer Science

1. Write the complete electron configuration for the nickel(II)ion.Using NOBLE GAS notation write the...

1. Write the complete electron configuration for the nickel(II) ion.

Using NOBLE GAS notation write the electron configuration for the cobalt(III) ion.

2. Write the complete electron configuration for the common monatomic ion formed by the element fluorine, F.

This ion is a(n) with a charge of

3.(1) The element with a valence electron configuration of 4s24p2 is in group and period .

(2) The element with a valence electron configuration of 3s2 is in group and period

.4.(1) What is the valence electron configuration for the boron atom?

(2) What is the valence electron configuration for the calcium atom?

5.(1) What is the element with an electron configuration of 1s22s22p63s23p64s23d7?

(2) What is the element with an electron configuration of 1s22s22p63s23p64s23d104p2?

6.(1) The element with an electron configuration of 1s22s22p63s23p64s23d1 is in group and period .

(2) The element with an electron configuration of 1s22s22p63s23p64s2 is in group and period .

In: Chemistry

Hydro One is evaluating buying two different transforms. Ø  Transformer #1: costs $370,000 has a 3 year...

Hydro One is evaluating buying two different transforms.

Ø  Transformer #1: costs $370,000 has a 3 year life, has pre-tax operating cost of $80,000 per year.

Ø  Transformer #2: costs $475,000 has a 5 year life, has pre-tax operating cost of $30,000 per year.

Ø  Both transformers are Class 8 (CCA rate of 20% per year) and both have a savage value of $40,000.

The firm’s tax rate is 35% and discount rate is 10%

1. What is the NPV for Transformer #1?

2.What is the PVCCATS for Transformer #1?

3. What is the NPV for Transformer #2?

4. What is the PVCCATS for Transformer #2?

5. What is the EAC for Transformer #1?

6. What is the EAC for Transformer #2?

In: Accounting

Construct your own valid DEDUCTIVE arguments by applying the FIVE argument forms (rules) on the worksheet...

Construct your own valid DEDUCTIVE arguments by applying the FIVE argument forms (rules) on the worksheet below. You will need to insert your own example for each rule, following the form of the argument. A TRANSLATION KEY MUST BE PROVIDED FOR EACH EXERCISE (see above for an example).

FORMS/RULES:

Modus Ponens

1) If p, then q.

2) p.

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

3) Thus, q.

Modus Tollens

1) If p, then q.

2) Not q.

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

3) Thus, not p.

Hypothetical Syllogism

1) If p, then q.

2) If q, then r.

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

3) Thus, if p, then r.

Disjunctive Syllogism

1) p or q.

2) Not p.

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

3) Thus, q.

Dilemma

1) p or q.

2) If p, then r.

3) If q, then s.

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

4) Thus, r or s.

In: Advanced Math

Required information [The following information applies to the questions displayed below.] Drs. Glenn Feltham and David...

Required information

[The following information applies to the questions displayed below.]

Drs. Glenn Feltham and David Ambrose began operations of their physical therapy clinic, called Northland Physical Therapy, on January 1, 2017. The annual reporting period ends December 31. The trial balance on January 1, 2018, was as follows (the amounts are rounded to thousands of dollars to simplify):

Account Titles Debit Credit
Cash $ 8
Accounts Receivable 4
Supplies 4
Equipment 8
Accumulated Depreciation $ 1
Software 4
Accumulated Amortization 1
Accounts Payable 6
Notes Payable (short-term) 0
Salaries and Wages Payable 0
Interest Payable 0
Income Taxes Payable 0
Deferred Revenue 0
Common Stock 14
Retained Earnings 6
Service Revenue 0
Depreciation Expense 0
Amortization Expense 0
Salaries and Wages Expense 0
Supplies Expense 0
Interest Expense 0
Income Tax Expense 0
Totals $ 28 $ 28

Transactions during 2018 (summarized in thousands of dollars) follow:

  1. Borrowed $24 cash on July 1, 2018, signing a six-month note payable.
  2. Purchased equipment for $27 cash on July 2, 2018.
  3. Issued additional shares of common stock for $4 on July 3.
  4. Purchased software on July 4, $4 cash.
  5. Purchased supplies on July 5 on account for future use, $6.
  6. Recorded revenues on December 6 of $59, including $10 on credit and $49 received in cash.
  7. Recognized salaries and wages expense on December 7 of $32; paid in cash.
  8. Collected accounts receivable on December 8, $7.
  9. Paid accounts payable on December 9, $8.
  10. Received a $4 cash deposit on December 10 from a hospital for a contract to start January 5, 2019.

Data for adjusting journal entries on December 31:

  1. Amortization for 2018, $1.
  2. Supplies of $4 were counted on December 31, 2018.
  3. Depreciation for 2018, $2.
  4. Accrued interest of $1 on notes payable.
  5. Salaries and wages incurred but not yet paid or recorded, $2.
  6. Income tax expense for 2018 was $5 and will be paid in 2019.

Required:

  1. Record journal entries for transactions (a) through (j). (If no entry is required for a transaction/event, select "No Journal Entry Required" in the first account field. Enter your answers in thousands of dollars.)

In: Accounting

Consider the following data for two variables, x and y. x1 = 4 5 7 8...

Consider the following data for two variables, x and y.

x1 = 4 5 7 8 10 12 12 22

y1 = 12 14 16 15 18 20 24 19

b. Compute the standardized residuals for these data (to 2 decimals, if necessary). Enter negative values as negative numbers.

Observation 1
Observation 2
Observation 3
Observation 4
Observation 5
Observation 6
Observation 7
Observation 8

Do the data include any outliers?
- Select your answer -Yes, there appear to be 3 outliersYes, there appear to be 2 outliersYes, there appears to be an outlierNo, there do not appear to be any outliersItem 11

c. Compute the leverage values for these data (to 2 decimals). Enter negative values as negative numbers.

Observation 1
Observation 2
Observation 3
Observation 4
Observation 5
Observation 6
Observation 7
Observation 8

Does there appear to be any influential observations in these data?
- Select your answer -Yes, observation 8 is an influential observation Yes, observation 6 is an influential observation Yes, observation 3 is an influential observation No, there do not appear to be any influential observations

In: Statistics and Probability

Revenues generated by a new fad product are forecast as follows:     Year Revenues 1 $60,000...

Revenues generated by a new fad product are forecast as follows:

   

Year Revenues
1 $60,000    
2 30,000    
3 20,000    
4 10,000    
Thereafter 0    

   

Expenses are expected to be 50% of revenues, and working capital required in each year is expected to be 10% of revenues in the following year. The product requires an immediate investment of $54,000 in plant and equipment.

   

a. What is the initial investment in the product? Remember working capital.

   

  Initial investment $   

    

b.

If the plant and equipment are depreciated over 4 years to a salvage value of zero using straight-line depreciation, and the firm’s tax rate is 20%, what are the project cash flows in each year? (Enter your answers in thousands of dollars. Do not round intermediate calculations. Round your answers to 2 decimal places.)

   

Year Cash Flow
1 $        
2        
3        
4        

    

c.

If the opportunity cost of capital is 10%, what is project NPV? (Negative amount should be indicated by a minus sign. Do not round intermediate calculations. Round your answer to 2 decimal places.)

    

  NPV $   

   

d.

What is project IRR? (Do not round intermediate calculations. Round your answer to 2 decimal places.)


  IRR %

In: Accounting