Questions
C++ requirements All values must be read in as type double and all calculations need to...

C++ requirements

All values must be read in as type double and all calculations need to be done using type double.

For part 2 you MUST have at least 4 functions, including main. The main function will be the driver of the program. It needs to either do the processing or delegate the work to other functions.

Failure to follow the C++ requirements could reduce the points received from passing the tests.

General overview

This program will convert a set of temperatures from Fahrenheit to Celsius.

Your program will be reading in three double values. The first values are starting and ending temperatures. The third value is the increment value. There is no prompt for the input. There is an error message that can be displayed. This is discussed later.

You need to display output for all of the values between the starting and ending values. First two values are temperatures in Fahrenheit. You need to display all of the values from the first temperature to the last temperature. You increment from one temperature to the next by the increment value (the third value you read in). You need to convert these temperatures to Celsius. You need to output the temperatures as both Fahrenheit and Celsius. The numbers should be 15 characters wide with 3 digits of precision and need to be in fixed format. Do not use tab characters (\t) to output the values.

For part 2 you MUST have at least 4 functions, including main. The main function will be the driver of the program. It needs to either do the processing or delegate the work to other functions.

Obviously the main function will have the same function that you have been using for all of your labs. In addition to need to have a function with the following signature:

double convert(double fahrenheit)

Other functions that you may want to have are:

A function to read in the values

A display function

A display heading function

The headings are also required (see the sample output below).

The conversion from Fahrenheit to Celsius is:

celsius = (fahrenheit - 32) / 1.8

Here is a sample run with valid input:

-30 100 20

The output would be:

     Fahrenheit        Celsius
        -30.000        -34.444
        -10.000        -23.333
         10.000        -12.222
         30.000         -1.111
         50.000         10.000
         70.000         21.111
         90.000         32.222

For data validation you need to make sure the first number read in is less than or equal to the second number. The third number read in must be greater than 0. If this is not the case you need to output the following message and read in three new values:

Starting temperature must be <= ending temperature and increment must be > 0.0

The above message is all one line of output.

You need to keep reading in values and outputting messages until the values are all valid.

Using the following input :

40 30 5
30 40 -5
30 40 5

We get the output:

Starting temperature must be <= ending temperature and increment must be > 0.0
Starting temperature must be <= ending temperature and increment must be > 0.0
     Fahrenheit        Celsius
         30.000         -1.111
         35.000          1.667
         40.000          4.444

Depending on the value for the increment the ending temperature may not be reached. You need to display the temperatures where the value of the Fahrenheit temperature is less than or equal to the ending temperature.

Consider this input:

100.5 110.4 5

The valid output will be:

     Fahrenheit        Celsius
        100.500         38.056
        105.500         40.833

The last Fahrenheit temperature output is 105.5. The next one would have been 110.5, but this is more than the ending temperature of 100.4. This is not an error condition. The output would be as above.

Think about what other tests cases are needed? Do we cover all possible input problems or valid types of input values?

Expected output

There are eight tests. Each test will have a new set of input data. You must match, exactly, the expected output.

You will get yellow highlighted text when you run the tests if your output is not what is expected. This can be because you are not getting the correct result. It could also be because your formatting does not match what is required. The checking that zyBooks does is very exacting and you must match it exactly. More information about what the yellow highlighting means can be found in course "How to use zyBooks" - especially section "1.4 zyLab basics".

Finally, do not include a system("pause"); statement in your program. This will cause your verification steps to fail.

In: Computer Science

C++ requirements All values must be read in as type double and all calculations need to...

C++ requirements

All values must be read in as type double and all calculations need to be done using type double.

For part 2 you MUST have at least 4 functions, including main. The main function will be the driver of the program. It needs to either do the processing or delegate the work to other functions.

Failure to follow the C++ requirements could reduce the points received from passing the tests.

General overview

This program will convert a set of temperatures from Fahrenheit to Celsius.

Your program will be reading in three double values. The first values are starting and ending temperatures. The third value is the increment value. There is no prompt for the input. There is an error message that can be displayed. This is discussed later.

You need to display output for all of the values between the starting and ending values. First two values are temperatures in Fahrenheit. You need to display all of the values from the first temperature to the last temperature. You increment from one temperature to the next by the increment value (the third value you read in). You need to convert these temperatures to Celsius. You need to output the temperatures as both Fahrenheit and Celsius. The numbers should be 15 characters wide with 3 digits of precision and need to be in fixed format. Do not use tab characters (\t) to output the values.

For part 2 you MUST have at least 4 functions, including main. The main function will be the driver of the program. It needs to either do the processing or delegate the work to other functions.

Obviously the main function will have the same function that you have been using for all of your labs. In addition to need to have a function with the following signature:

double convert(double fahrenheit)

Other functions that you may want to have are:

A function to read in the values

A display function

A display heading function

The headings are also required (see the sample output below).

The conversion from Fahrenheit to Celsius is:

celsius = (fahrenheit - 32) / 1.8

Here is a sample run with valid input:

-30 100 20

The output would be:

     Fahrenheit        Celsius
        -30.000        -34.444
        -10.000        -23.333
         10.000        -12.222
         30.000         -1.111
         50.000         10.000
         70.000         21.111
         90.000         32.222

For data validation you need to make sure the first number read in is less than or equal to the second number. The third number read in must be greater than 0. If this is not the case you need to output the following message and read in three new values:

Starting temperature must be <= ending temperature and increment must be > 0.0

The above message is all one line of output.

You need to keep reading in values and outputting messages until the values are all valid.

Using the following input :

40 30 5
30 40 -5
30 40 5

We get the output:

Starting temperature must be <= ending temperature and increment must be > 0.0
Starting temperature must be <= ending temperature and increment must be > 0.0
     Fahrenheit        Celsius
         30.000         -1.111
         35.000          1.667
         40.000          4.444

Depending on the value for the increment the ending temperature may not be reached. You need to display the temperatures where the value of the Fahrenheit temperature is less than or equal to the ending temperature.

Consider this input:

100.5 110.4 5

The valid output will be:

     Fahrenheit        Celsius
        100.500         38.056
        105.500         40.833

The last Fahrenheit temperature output is 105.5. The next one would have been 110.5, but this is more than the ending temperature of 100.4. This is not an error condition. The output would be as above.

Think about what other tests cases are needed? Do we cover all possible input problems or valid types of input values?

Expected output

There are eight tests. Each test will have a new set of input data. You must match, exactly, the expected output.

You will get yellow highlighted text when you run the tests if your output is not what is expected. This can be because you are not getting the correct result. It could also be because your formatting does not match what is required. The checking that zyBooks does is very exacting and you must match it exactly. More information about what the yellow highlighting means can be found in course "How to use zyBooks" - especially section "1.4 zyLab basics".

Finally, do not include a system("pause"); statement in your program. This will cause your verification steps to fail.

In: Computer Science

Question 36 In a corporate structure with shareholders, managers, and a board of directors: Select one:...

Question 36

In a corporate structure with shareholders, managers, and a board of directors:

Select one:

a. shareholders are agents

b. directors are agents

c. in principle, the board of directors works on behalf of the shareholders

d. managers are principals

e. shareholders are generally both principals and agents

Question 37

A project costs $525 and has cash flows of $110 for the first three years and $75 in each of the project's last five years. What is the payback period of the project?

Select one:

a. The project never pays back

b. 5.00 years

c. 5.60 years

d. 5.33 years

e. 5.67 years

Question 38

Suppose a project costs $440 and produces cash flows of $100 over each of the following seven years. What is the IRR of the project?

Select one or more:

a. There is not enough information; a discount rate is required

b. 18.6%

c. 13.2%

d. 24.3%

e. 10.0%

Question 39

Your company purchased a piece of land five years ago for $150,000 and subsequently added $175,000 in improvements. The current book value of the property is $225,000. There are two options for future use of the land: 1) the land can be sold today for $375,000 on a net after-tax basis; 2) your company can destroy the past improvements and build a factory on the land. In consideration of the factory project, what amount (if any) should the land be valued at?

Select one:

a. The present book value of $225,000.

b. The property should be valued at zero since it is a sunk cost.

c. The sales price of $375,000 less the book value of the improvements.

d. The original $150,000 purchase price of the land itself.

e. The after-tax sales value of $375,000.

Question 40

A new project will cause accounts payable to increase by $70,000, accounts receivable to increase by $70,000 and inventory to increase by $10,000. Which one of the following statements is true?

Select one:

a. Net working capital will decrease.

b. Net working capital will increase.

c. The project will not affect net working capital.

d. The change in accounts payable is a use of cash.

e. The change in inventory is a use of cash.

In: Finance

Haply Inc. contracts with Barksdale LLC to have an engine repaired. After much negotiation, the parties...

Haply Inc. contracts with Barksdale LLC to have an engine repaired. After much negotiation, the parties agree that the engine will be repaired and reinstalled at Haply’s facilities in 5 days. Haply plans on losing $40,000 a day for each day the engine is not delivered after the five-day window (this is the cost for a replacement engine).

Haply tells Barksdale’s representatives that if the engine is not repaired on time that bad press will cause Haply to lose a client’s business totaling $3,000,000. Barksdale does not complete the contract until day 7.

It cost Haply $500 to secure the delivery of a replacement engine. The actual rental of the replacement engine cost $40,000 a day. And Haply lost the business of a client totaling $3,000,000. Haply sues Barksdale for incidental, consequential and compensatory damages. The court finds that there is a breach of contract. What are the consequential, incidental, and compensatory damages that Barksdale is liable for in this case? Be sure to define each of those terms.

The requirements below must be met for your paper to be accepted and graded:

Write between 500 – 750 words (approximately 2 – 3 pages) using Microsoft Word.

Attempt APA style, see example below.

Use font size 12 and 1” margins.

Include cover page and reference page.

At least 60% of your paper must be original content/writing.

No more than 40% of your content/information may come from references.

Use at least two references from outside the course material, preferably from EBSCOhost. Text book, lectures, and other materials in the course may be used, but are not counted toward the two reference requirement.

In: Accounting

A new refrigerator is being designed. Magnets will be used to hold the door closed, and...

A new refrigerator is being designed. Magnets will be used to hold the door closed, and the rubber seal thickness can be selected to adjust the separation between the magnets (and therefore the force). The total length of rubber seal required to go around the door is 6m, and the cost of rubber seal is given equation 2. The pull force when opening the door should be 12N. Determine which of the magnet combinations should be used, and the combined cost of the magnets and seals per refrigerator.

Table 2. Material costs of neodymium magnets

Magnet size

Cost per unit

10mm

$4.10

12.7mm

$8.15

25mm

$43.20

$Cost/m of rubber seal = 30 T-0.7                    Equation 2

where T = thickness of each seal in mm (half the separation between the magnets)

25mm

10mm

12.7mm

10-12.7mm

Separation mm

Force

N

Separation

mm

Force N

Separation

mm

Force

N

Separation

mm

Force

N

250

0.014715

45

0.034335

120

0.0036297

130

0.0015696

240

0.015696

42

0.038259

110

0.0066708

120

0.001962

230

0.0192276

40

0.053955

100

0.0093195

110

0.002943

220

0.0207972

38

0.060822

90

0.0135378

100

0.0041202

210

0.0241326

35

0.07848

80

0.018639

90

0.0060822

200

0.02943

32

0.099081

70

0.0319806

80

0.0090252

190

0.03924

30

0.161865

60

0.0526797

70

0.014715

180

0.048069

27

0.199143

50

0.099081

60

0.0249174

170

0.054936

25

0.259965

40

0.197181

50

0.0464994

160

0.065727

23

0.299205

30

0.468918

40

0.092214

150

0.0897615

20

0.44145

25

0.77499

30

0.206991

140

0.112815

17

0.638631

20

1.2753

20

0.555246

130

0.150093

15

1.03005

15

2.06991

15

1.3734

120

0.204048

45

0.034335

10

2.99205

110

0.283509

100

0.385533

90

0.565056

80

0.77499

70

1.13796

In: Mechanical Engineering

6) The table below represents data on a variable of interest collected from a single sample...

6) The table below represents data on a variable of interest collected from a single sample measured at two different points in time. A researcher is interested in testing whether scores are higher at the second measurements.
Time 1 8 6 7 5 2 8 9 3 4 7

Time 2 7 9 11  6 4 5 8 7 4 5

a) What are the appropriate hypotheses for this analysis? b) What is/are the critical value(s) for this test at a 0.05 alpha level? c) What is the estimated standard error for this test? d) What is the observed value of the appropriate test statistic? e) What is your decision regarding the stated hypotheses?

In: Statistics and Probability

The table below represents data on a variable of interest collected from a single sample measured...

The table below represents data on a variable of interest collected from a single sample measured at two different points in time. A researcher is interested in testing whether scores are higher at the second measurements.

Time 1: 8 6 7 5 2 8 9 3 4 7

Time 2: 7 9 11 6 4 5 8 7 4 5

a) What are the appropriate hypotheses for this analysis?

b) What is/are the critical value(s) for this test at a 0.05 alpha level?

c) What is the estimated standard error for this test?

d) What is the observed value of the appropriate test statistic?

e) What is your decision regarding the stated hypotheses?

In: Statistics and Probability

A) A person can take either of two routes to work, through Matteson or Richton Park....

A) A person can take either of two routes to work, through Matteson or Richton Park. Both take on average 35 minutes, and travel times are Normally distributed. But are the variances of the travel times different? A random sample with n = 6 using the Matteson route, and another random sample with n = 7 using the Richton Park route, showed a variance of 40 (units: square minutes) and 30 respectively. To test whether the variances are different, the following test of hypothesis is to be carried out: H0: sigma subscript 1 superscript 2 space equals space sigma subscript 2 superscript 2 H1: sigma subscript 1 superscript 2 space not equal to space sigma subscript 2 superscript 2 To test this at 10% level of significance, what is the critical value for the test statistic? (Give two decimal places)

B) A supermarket claims that the average wait time at the checkout counter is less than 9 minutes. We can assume that the population is Normally distributed.

Consider

H0: mu >= 9

H1: mu < 9

A random sample of 50 customers yielded an average wait time of 8.5 minutes and a standard deviation of 2.5 minutes.

What is the value of the test statistic (tstat or t-sub-xbar)?

(Provide two decimal places)

In: Statistics and Probability

Access the hourly wage data on the below Excel Data File (Hourly Wage). An economist wants...

Access the hourly wage data on the below Excel Data File (Hourly Wage). An economist wants to test if the average hourly wage is less than $28. Assume that the population standard deviation is $8.

b-1. Find the value of the test statistic. (Negative value should be indicated by a minus sign. Round intermediate calculations to at least 4 decimal places and final answer to 2 decimal places.)

Hourly Wage Education Experience Age Gender
39.00 11 2 40 1
21.02 4 1 39 0
42.36 4 2 38 0
20.17 5 9 53 1
22.57 6 15 59 1
43.43 6 12 36 1
17.87 9 5 45 0
24.62 4 12 37 0
28.36 5 14 37 1
10.25 11 3 43 1
27.14 8 5 32 0
10.35 9 18 40 1
27.09 7 1 49 1
21.34 4 10 43 0
19.71 1 9 31 0
32.41 9 22 45 0
22.80 11 3 31 1
26.07 4 14 55 0
42.14 6 5 30 1
21.42 9 3 28 0
21.52 6 15 60 1
34.00 4 13 32 0
38.85 4 9 58 1
29.06 5 4 28 0
12.60 6 5 40 1
27.64 6 2 37 0
32.28 4 18 52 1
33.46 6 4 44 0
18.05 6 4 57 0
28.56 9 3 30 1
13.41 5 8 43 0
43.54 7 6 31 1
33.23 4 3 33 0
27.34 6 23 51 1
18.41 4 15 37 0
31.82 4 9 45 0
31.30 6 3 55 0

In: Math

8. Explain the liability of bailees for lost damaged, or destroyed goods? Business Law questions

8. Explain the liability of bailees for lost damaged, or destroyed goods?

Business Law questions

In: Finance