Questions
This is an exercise for a menu-driven program. Program should use shell functions. Write a program...

This is an exercise for a menu-driven program. Program should use shell functions. Write a program that displays the following menu:

Geometry Calculator

1. Calculate the area of a circle

2. Calculate the area of a rectangle

3. Calculate the area of a triangle

4. Quit

Enter your choice (1-4)

If the user enters 1, the program should ask for the radius of the circle and then display the area. Use the following formula to calculate the circle’s area: ? = ?? 2 where π=3.14159 and r is the radius of the circle.

If the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. Use the following formula to calculate the rectangle’s area: ???? = ?????ℎ ∗ ????ℎ

If the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. Use the following formula to calculate the area of the triangle: ???? = ???? ∗ ℎ???ℎ? ∗ .5

If user enters 4, the program should terminate

In: Computer Science

Conduct the hypothesis test and provide the test statistic and the critical value, and state the...

Conduct the hypothesis test and provide the test statistic and the critical value, and state the conclusion.

A person drilled a hole in a die and filled it with a lead weight, then proceeded to roll it 200 times. Here are the observed frequencies for the outcomes of 1, 2, 3, 4, 5, and 6, respectively: 28, 27, 40, 38, 26, 41. Use a 0.01 significance level to test the claim that the outcomes are not equally likely. Does it appear that the loaded die behaves differently than a fair die?

The test statistic is __________.
(Round to three decimal places as needed.)

The critical value is __________ .
(Round to three decimal places as needed.)

State the conclusion.

(1) __________ Ho . There (2) __________ sufficient evidence to support the claim that the outcomes are not equally likely. The outcomes (3) __________ to be equally likely, so the loaded die (4) __________ to behave differently from a fair die.

(1) Do not reject
Reject
(2) is
is not
(3) appear
do not appear
(4) does not appear
appears

In: Statistics and Probability

20)Product costs: 1. include only the prime costs of manufacturing a product. 2. include only the...

20)Product costs:
1. include only the prime costs of manufacturing a product.
2. include only the conversion costs of manufacturing a product.
3. are expensed when products become part of finished goods inventory.
4. are regarded as assets before the products are sold.
5. exclude fixed factory overhead.

21)Dividends in arrears:
1. Must be disclosed in the notes to the financial statements.
2. Must be reported in the liabilities section of the balance sheet.
3. Are expenses that are reported on the income statement.
4. Are associated with preferred stock which has a current dividend preference.
5. Are paid to shareholders of common stock

23)A company has 10 manufacturing plants. Which one of the following would be
considered a direct cost for a particular plant?
1. President’s salary
2. Research and development costs
3. Wages of assembly line workers
4. Cost of market research survey
5. Cost of advertising

In: Accounting

We consider a population of cars from a given model year. A sample of 24 such...

We consider a population of cars from a given model year. A sample of 24 such cars

has been recently sold. The sale price as a function of the age of the car is in the Excel

file S4.XLSX (Car) in the Excel directory.

a. Try a linear regression and an exponential (non-linear) regression with Excel to

fit these data. Comment your results.

b. Which regression model seems to fit the data better and why?

c. Run the LINEST function in Excel. Provide the result table.

Car sale price
Age (year) Price ($)
1 119400
3 73200
5 51000
2 91800
8 36600
2 102000
3 73800
1 120600
6 42600
7 39600
4 61800
8 31200
5 48600
1 126000
5 52800
3 70200
6 43200
6 53400
7 40800
4 63400
7 36000
8 33000
4 64800
2 93000

In: Math

National Park Tours Co. is a travel agency. The nine transactions recorded by National Park Tours...

National Park Tours Co. is a travel agency. The nine transactions recorded by National Park Tours during May 2019, its first month of operations, are indicated in the following T accounts:

Cash Equipment Beth Worley, Drawing
(1) 75,000 (2) 900 (3) 8,000 (9) 2,500
(7) 8,150 (3) 1,600
(4) 6,280
(6) 2,700
(9) 2,500
Accounts Receivable Accounts Payable Fees Earned
(5) 12,300 (7) 8,150 (6) 2,700 (3) 6,400 (5) 12,300
Supplies Beth Worley, Capital Operating Expenses
(2) 900 (8) 660 (1) 75,000 (4) 6,280
(8) 660

Prepare the nine journal entries from which the postings were made. For a compound transaction, if an amount box does not require an entry, leave it blank.

(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)

Check My Work

In: Accounting

Select a multinational Natural Resources/Mining company and evaluate it on the following Supply Chain Management criteria’s:...

Select a multinational Natural Resources/Mining company and evaluate it on the following Supply Chain Management criteria’s: Demand Management Application Criteria: 1. Effective Demand Management as part of overall Logistics and Supply Chain expertise 2. Outbound to Customer Logistics Management. 3. Overall Forecasting and Demand Management process 4. Sales and Operation Planning process. 5. Channel Structures in Order Fulfillment Order Management and Customer Service Application Criteria: 1. Relationship Between Order Management and Customer Service. 2. Order Management Phases – Influencing the Order, Order Execution 3. CRM – Customer Relationship Management 4. ABC – Activity Based Costing. 5. Replenishment Cycle Managing Inventory Application Criteria: 1. Effective Management of inventories and Return on Investment (ROI) 2. Uncertainty and Safety Stocks 3. Inventory Carrying Cost. 4. Push versus Pull approach.

In: Operations Management

A) For the gas phase decomposition of hydrogen iodide at 700 K 2 HIH2 + I2...

A) For the gas phase decomposition of hydrogen iodide at 700 K 2 HIH2 + I2 the average rate of disappearance of HI over the time period from t = 0 s to t = 1446 s is found to be 5.67×10-4 M s-1. The average rate of formation of H2 over the same time period is M s-1.

B) The rearrangement of cyclopropane to propene at 500 °C (CH2)3CH3CH=CH2 is first order in (CH2)3 with a rate constant of 6.70×10-4 s-1. If the initial concentration of (CH2)3 is 6.00×10-2 M, the concentration of (CH2)3 will be 1.06×10-2 M after s have passed.

C) The activation energy for the gas phase decomposition of ethyl chloroformate is 123 kJ. ClCOOC2H5C2H5Cl + CO2 The rate constant at 450 K is 2.62×10-4 /s. The rate constant will be 2.86×10-3 /s at K.

In: Chemistry

A machine can be purchased for $252,000 and used for five years, yielding the following net...

A machine can be purchased for $252,000 and used for five years, yielding the following net incomes. In projecting net incomes, double-declining depreciation is applied, using a five-year life and a zero salvage value.

Year 1

Year 2

Year 3

Year 4

Year 5

Net income

$

13,000

$

28,000

$

62,000

$

48,000

$

101,000


Compute the machine’s payback period (ignore taxes). (Round payback period answer to 3 decimal places.)

Computation of Annual Depreciation Expense

Year       Beginning Book Value    Annual Depr. (40% of Book Value)            Accumulated Depreciation at Year-End                Ending Book Value          

1                                                                             

2                                                             

3                                                             

4                                                             

5                                                             

Annual Cash Flows

Year       Net income         Depreciation      Net Cash Flow   Cumulative Cash Flow   

0              $(252,000)                                           $(252,000)          

1              13,000                                  

2              28,000                                  

3              62,000                                  

4              48,000                                  

5              101,000                                                

Payback period =                              years

In: Accounting

Extraction costs of a non-renewable resource include the: 1. cost of removal from the ground only....

Extraction costs of a non-renewable resource include the:

1.

cost of removal from the ground only.

2.

cost of removal from the ground plus the cost of preparation for sale.

3.

cost of removal from the ground, the cost of preparation for sale, and the cost of not being able to extract and sell the resource in the future.

4.

cost of removal from the ground plus replanting costs.

Property rights for fish from the open ocean:

1.

do not exist.

2.

are established by the United Nations.

3.

exist once the fish are sold at market.

4.

exist once the fish are caught.

Which of the following policies has succeeded in reducing fishery catch sizes without creating an "arms race" among fishers?

1.

Limiting the length of the catch season.

2.

Limiting the number of boats allowed in a given area.

3.

Limiting catch size (TAC).

4.

Issuing Individual Transferable Quotas (ITQs).

In: Economics

1. Practice Tasks Aims: to simulate the principles and key technology in operating systems. You need...

1. Practice Tasks

Aims: to simulate the principles and key technology in operating systems. You need to analyze, design, implement and debug a program which simulates the chosen principles or technology. You need to finish the following tasks to do the practice:

1) CPU scheduling algorithms (including FCFS, SJF, Priority Scheduling, Round Robin)

2) Process Synchronization (including producer and consumer problem, reader and writer problem, Dining-Philosophers Problem)

3) Page replacement algorithm (including FIFO, LRU, Optimal Algorithm)

4) Disk scheduling algorithm (including FCFS, SSTF, SCAN)

You need to implement the above 4 tasks to do the practice. You need to implement the input, algorithms and the output. The output will be different when you switch to different algorithms.

2. Requirements

1) Requirement analysis

2) Function design

3) Code preferebly in c/c++ or java

4) Report write-up

In: Computer Science