Questions
1. make a c++ program that generates a random number 1to 100 using rand(). user gets...

1. make a c++ program that generates a random number 1to 100 using rand().
user gets 5 attempts
stop program when they get it right
find out which guess was the closest to the actual number and print out that they have to run the difference in miles for example (50-30)=20 miles
do not use arrays!
very quick upvote for good response

In: Computer Science

Suppose marginal benefit from a hectare of for a public park (assume it is a pure...

Suppose marginal benefit from a hectare of for a public park (assume it is a pure public good) for two groups of consumers (A and B) is given by: MBa = 10 − Q and MBb = (8 – Q)/2 where Q is the number of hectares of the park. To simplify our analysis, assume that there are only 1 consumer of each type. The marginal cost to provide the park is a constant $5.

a) What is the socially efficient number of hectares for the park?

b) Assume that the consumers each makes a voluntary contribution to a fund which will be used to build the park. The size of the park depends on the amount of money collected. How many hectares will be built in the end? Assume both consumers know the marginal cost and marginal benefit function of each type.

In: Economics

The Naples Newspaper completes production of its daily edition by 5 a.m. A truck picks up...

The Naples Newspaper completes production of its daily edition by 5 a.m. A truck picks up pallets loaded with newspapers and delivers them to four neighbor sites, where carriers sort and fold the papers for individual routes. The mileage between locations is shown in the table below. Currently, the truck picks up the number of pallets required by each customer at the factory, delivers them, and then returns to the factory to get the papers for the next customer (i.e., current route 0-1-0-2-0-3-0-4-0). The truck always returns to Scottsville and gets 10 miles per gallon using diesel fuel. A truck can carry up to 17 pallets. A gallon of diesel fuel is $2.50. The newspaper operates 365 days per year.

Factory (0) Scottsville (1) Hudson (2) Bonita (3) Walker (4) Pallets Demanded
Factory (0) 7 5 15 17
Scottsville (1) 16 8 11 11
Hudson (2) 9 6 6
Bonita (3) 4 8
Walker (4) 9
  1. How many miles does the truck travel each day using the current route? What is the total number of miles traveled annually? Round your answers to the nearest whole number.

    miles per day
    miles per year

  2. Use the Clarke-Wright Method to find a more efficient route. Round your answers to the nearest whole number.

    Routes Travel Distance (miles)
    0-1-0, 0-1-2-0, 0-1-3-0, 0-1-4-0
    0-2-0, 0-2-3-0. 0-2-4-0
    0-2-3-0, 0-4-0, 0-3-4-0
    Total
  3. How many miles, gallons, and dollars can be saved per year by adopting the current versus shorter route found by the Clarke–Wright Method? Do not round intermediate calculations. Round your answers to two decimal places.

    miles per year
    gallons per year
    $  per year

  4. How many pounds of gas are emitted into the atmosphere and saved per year using the shortest truck route versus the current truck route? Assume that one gallon of gas generates 13 pounds of carbon dioxide and other global-warming gases from the truck's tailpipe. Do not round intermediate calculations. Round your answer to one decimal place.

    lbs of gas per year

In: Statistics and Probability

Find the variance of the following data. Round your answer to one decimal place. x 3...

Find the variance of the following data. Round your answer to one decimal place. x 3 4 5 6 7 8 P(X=x) 0.1 0.1 0.1 0.2 0.2 0.3

In: Statistics and Probability

A 248 nC point charge is at co-ordinate (0, 0.2) . A 85 nC charge is...

A 248 nC point charge is at co-ordinate (0, 0.2) . A 85 nC charge is at (0, -0.2). Find the electrostatic field at (0.4, -0.7). The Coulomb constant is k = 8.99 10^9 N m^2 / C^2 and the coordinates are given in meters.

In: Physics

it is a different table so please do the calculation again Heat treating is often used...

it is a different table so please do the calculation again

Heat treating is often used to carburize metal parts, such as gears. The thickness of the carburized layer is considered a crucial feature of the gear and contributes to the overall reliability of the part. Because of the critical nature of this feature, two different lab tests are performed on each furnace load. One test is run on a sample pin that accompanies each load. The other test is a destructive test, where an actual part is cross-sectioned. This test involves running a carbon analysis on the surface of both the gear pitch (top of the gear tooth) and the gear root (between the gear teeth). Table 12-6 shows the results of the pitch carbon analysis test for

Temp

SoakTime

SoakPct

DiffTime

DiffPct

Pitch

1650

0.58

1.1

0.25

0.9

0.013

1650

0.66

1.1

0.33

0.9

0.016

1650

0.66

1.1

0.33

0.9

0.015

1650

0.66

1.1

0.33

0.95

0.016

1600

0.66

1.15

0.33

1

0.015

1600

0.66

1.15

0.33

1

0.016

1650

1

1.1

0.5

0.8

0.014

1650

1.17

1.1

0.58

0.8

0.021

1650

1.17

1.1

0.58

0.8

0.018

1650

1.17

1.1

0.58

0.8

0.019

1650

1.17

1.1

0.58

0.9

0.021

1650

1.17

1.1

0.58

0.9

0.019

1650

1.17

1.15

0.58

0.9

0.021

1650

1.2

1.15

1.1

0.8

0.025

1650

2

1.15

1

0.8

0.025

1650

2

1.1

1.1

0.8

0.026

1650

2.2

1.1

1.1

0.8

0.024

1650

2.2

1.1

1.1

0.8

0.025

1650

2.2

1.15

1.1

0.8

0.024

1650

2.2

1.1

1.1

0.9

0.025

1650

2.2

1.1

1.1

0.9

0.027

1650

2.2

1.1

1.5

0.9

0.026

1650

3

1.15

1.5

0.8

0.029

1650

3

1.1

1.5

0.7

0.03

1650

3

1.1

1.5

0.75

0.028

1650

3

1.15

1.66

0.85

0.032

1650

3.33

1.1

1.5

0.8

0.033

1700

4

1.1

1.5

0.7

0.039

1650

4

1.1

1.5

0.7

0.04

1650

4

1.15

1.5

0.85

0.035

1700

12.5

1

1.5

0.7

0.056

1700

18.5

1

1.5

0.7

0.068

  1. Fit a regression model using all five regressors. Write out the equation. Summarize this analysis by providing the equation, ?2, and list the standard errors.    What does the analysis of variance indicate?
  2. Check for multicollinearity. Explain your findings.
  3. Describe what you notice about the p values for the regressors. Construct a t-test on each regression coefficient. What can you conclude about the variables in this model? Use an alpha = 0.05.
  4. Prepare a normal probability plot of the residuals and check the adequacy of the model.
  5. Repeat steps (a)-(d) except utilize stepwise regression to identify a model.

In: Statistics and Probability

Heat treating is often used to carburize metal parts, such as gears. The thickness of the...

Heat treating is often used to carburize metal parts, such as gears. The thickness of the carburized layer is considered a crucial feature of the gear and contributes to the overall reliability of the part. Because of the critical nature of this feature, two different lab tests are performed on each furnace load. One test is run on a sample pin that accompanies each load. The other test is a destructive test, where an actual part is cross-sectioned. This test involves running a carbon analysis on the surface of both the gear pitch (top of the gear tooth) and the gear root (between the gear teeth). Table 12-6 shows the results of the pitch carbon analysis test for 32 parts.

Temp

SoakTime

SoakPct

DiffTime

DiffPct

Pitch

1650

0.58

1.1

0.25

0.9

0.013

1650

0.66

1.1

0.33

0.9

0.016

1650

0.66

1.1

0.33

0.9

0.015

1650

0.66

1.1

0.33

0.95

0.016

1600

0.66

1.15

0.33

1

0.015

1600

0.66

1.15

0.33

1

0.016

1650

1

1.1

0.5

0.8

0.014

1650

1.17

1.1

0.58

0.8

0.021

1650

1.17

1.1

0.58

0.8

0.018

1650

1.17

1.1

0.58

0.8

0.019

1650

1.17

1.1

0.58

0.9

0.021

1650

1.17

1.1

0.58

0.9

0.019

1650

1.17

1.15

0.58

0.9

0.021

1650

1.2

1.15

1.1

0.8

0.025

1650

2

1.15

1

0.8

0.025

1650

2

1.1

1.1

0.8

0.026

1650

2.2

1.1

1.1

0.8

0.024

1650

2.2

1.1

1.1

0.8

0.025

1650

2.2

1.5

1.1

0.8

0.024

1650

2.2

1.1

1.1

0.9

0.025

1650

2.2

1.1

1.1

0.9

0.027

1650

2.2

1.1

1.5

0.9

0.026

1650

3

1.15

1.5

0.8

0.029

1650

3

1.1

1.5

0.7

0.03

1650

3

1.1

1.5

0.75

0.028

1650

3

1.15

1.66

0.85

0.032

1650

3.33

1.1

1.5

0.8

0.033

1700

4

1.1

1.5

0.7

0.039

1650

4

1.1

1.5

0.7

0.04

1650

4

1.15

1.5

0.85

0.035

1700

12.5

1

1.5

0.7

0.056

1700

18.5

1

1.5

0.7

0.068

PLEASE answer only the STEPWISE part of the question

Repeat steps (a)-(d) except utilize stepwise regression to identify a model.]

  1. Fit a regression model using all five regressors. Write out the equation. Summarize this analysis by providing the equation, ?2, and list the standard errors.    What does the analysis of variance indicate?
  2. Check for multicollinearity. Explain your findings.
  3. Describe what you notice about the p values for the regressors. Construct a t-test on each regression coefficient. What can you conclude about the variables in this model? Use an alpha = 0.05.
  4. Prepare a normal probability plot of the residuals and check the adequacy of the model.

All of them got answered check this link: https://www.chegg.com/homework-help/questions-and-answers/heat-treating-often-used-carburize-metal-parts-gears-thickness-carburized-layer-considered-q45865978

In: Statistics and Probability

Heat treating is often used to carburize metal parts, such as gears. The thickness of the...

Heat treating is often used to carburize metal parts, such as gears. The thickness of the carburized layer is considered a crucial feature of the gear and contributes to the overall reliability of the part. Because of the critical nature of this feature, two different lab tests are performed on each furnace load. One test is run on a sample pin that accompanies each load. The other test is a destructive test, where an actual part is cross-sectioned. This test involves running a carbon analysis on the surface of both the gear pitch (top of the gear tooth) and the gear root (between the gear teeth). Table 12-6 shows the results of the pitch carbon analysis test for 32 parts.

Temp

SoakTime

SoakPct

DiffTime

DiffPct

Pitch

1650

0.58

1.1

0.25

0.9

0.013

1650

0.66

1.1

0.33

0.9

0.016

1650

0.66

1.1

0.33

0.9

0.015

1650

0.66

1.1

0.33

0.95

0.016

1600

0.66

1.15

0.33

1

0.015

1600

0.66

1.15

0.33

1

0.016

1650

1

1.1

0.5

0.8

0.014

1650

1.17

1.1

0.58

0.8

0.021

1650

1.17

1.1

0.58

0.8

0.018

1650

1.17

1.1

0.58

0.8

0.019

1650

1.17

1.1

0.58

0.9

0.021

1650

1.17

1.1

0.58

0.9

0.019

1650

1.17

1.15

0.58

0.9

0.021

1650

1.2

1.15

1.1

0.8

0.025

1650

2

1.15

1

0.8

0.025

1650

2

1.1

1.1

0.8

0.026

1650

2.2

1.1

1.1

0.8

0.024

1650

2.2

1.1

1.1

0.8

0.025

1650

2.2

1.5

1.1

0.8

0.024

1650

2.2

1.1

1.1

0.9

0.025

1650

2.2

1.1

1.1

0.9

0.027

1650

2.2

1.1

1.5

0.9

0.026

1650

3

1.15

1.5

0.8

0.029

1650

3

1.1

1.5

0.7

0.03

1650

3

1.1

1.5

0.75

0.028

1650

3

1.15

1.66

0.85

0.032

1650

3.33

1.1

1.5

0.8

0.033

1700

4

1.1

1.5

0.7

0.039

1650

4

1.1

1.5

0.7

0.04

1650

4

1.15

1.5

0.85

0.035

1700

12.5

1

1.5

0.7

0.056

1700

18.5

1

1.5

0.7

0.068

PLEASE answer only the STEPWISE part of the question

except utilize stepwise regression to identify a model.]

  1. Fit a regression model using all five regressors except utilize stepwise regression to identify a model. Write out the equation. Summarize this analysis by providing the equation, ?2, and list the standard errors.    What does the analysis of variance indicate?
  2. Check for multicollinearity for stepwise regression . Explain your findings.
  3. Describe what you notice about the p values for the regressors. Construct a t-test on each regression coefficient. What can you conclude about the variables in this model? Use an alpha = 0.05 for stepwise regression
  4. Prepare a normal probability plot of the residuals and check the adequacy of the model for stepwise regression

In: Statistics and Probability

eBook Calculator Simplifying the ABC System: Equally Accurate Reduced ABC Systems Selected activities and other information...

eBook

Calculator

Simplifying the ABC System: Equally Accurate Reduced ABC Systems

Selected activities and other information are provided for Patterson Company for its most recent year of operations.

Expected Consumption
Ratios
Activity         Driver         Quantity         Wafer A         Wafer B
7.   Inserting dies         Number of dies         2,000,000         0.7         0.3
8.  Purchasing materials         Number of purchase
   orders
        1,900         0.2         0.8
1.  Developing test programs         Engineering hours         11,000         0.25         0.75
3.  Testing products         Test hours         18,000         0.6         0.4
     ABC assignments                                 $150,000         $150,000
     Total overhead cost                                                         $300,000

Required:

1. Form reduced system cost pools for activities 7 and 8. Do not round interim calculations. Round your final answers to the nearest dollar.

Inserting dies cost pool $
Purchasing cost pool $

2. Assign the costs of the reduced system cost pools to Wafer A and Wafer B. Do not round interim calculations. Round your final answers to the nearest dollar.

Wafer A $
Wafer B $

3. What if the two activities were 1 and 3? Repeat Requirements 1 and 2.

Form reduced system cost pools for activities 1 and 3.

Do not round interim calculations. Round your final answers to the nearest dollar.

Developing test programs cost pool $
Testing products cost pool $

Assign the costs of the reduced system cost pools to Wafer A and Wafer B.

Wafer A $
Wafer B $

In: Accounting

Concord Air Express decided to offer direct service from Cleveland to Myrtle Beach. Management must decide...

Concord Air Express decided to offer direct service from Cleveland to Myrtle Beach. Management must decide between a full-price service using the company’s new fleet of jet aircraft and a discount service using smaller capacity commuter planes. It is clear that the best choice depends on the market reaction to the service Concord Air offers. Management developed estimates of the contribution to profit for each type of service based upon two possible levels of demand for service to Myrtle Beach: strong and weak. The following table shows the estimated quarterly profits (in thousands of dollars):

Demand for Service

Service

Strong

Weak

Full Price

$960

-$490

Discount

$670

$320

  1. What is the decision to be made, what is the chance event, and what is the consequence for this problem? How many decision alternatives are there? How many outcomes are there for the chance event?
  2. If nothing is known about the probabilities of the chance outcomes, what is the recommended decision using the optimistic, conservative, and minimax regret approaches?
  3. Suppose that management of Myrtle Air Express believes that the probability of strong demand is 0.7 and the probability of weak demand is 0.3. Use the expected value approach to determine an optimal decision.
  4. Suppose that the probability of strong demand is 0.8 and the probability of weak demand is 0.2. What is the optimal decision using the expected value approach?
  5. Use graphical sensitivity analysis to determine the range of demand probabilities for which each of the decision alternatives has the largest expected value.
  6. PLz show details for each step and give explanations. Thank you^^

In: Economics