Questions
Write a pyhton program and to evaluate polynomials in general and test it on the following:...

Write a pyhton program and to evaluate polynomials in general and test it on the following: ? 4 − 3? 3 − 39? 2 + 47? + 170 = 0

a) Develop and test a function named evalPoly() that evaluates a polynomial at a given value of the variable. The function receives two arguments: a list of the polynomial coefficients, and the value of the variable. It returns the result of the evaluation as a float. Use your function to evaluate the polynomial at ? = -5.2, -5.0, -1.8, -1.6, 2.6, 2.8, 7.0 and 7.2. What do you conclude about the solutions to the equation above?

b) Write a second function named solvePoly() that seeks a solution of the polynomial between two values of the variable where the function has changed sign. This function should receive the list of coefficients, the two values of the variable between which there is a solution. It should return the value of the variable at which a solution was found. This function may be based on an exhaustive search, a bisection search, or on Newton-Raphson’s method. Select a method with some justification.

In: Computer Science

13. The observation of what overall characteristic of the CMBR left, "... no real doubt we...

13. The observation of what overall characteristic of the CMBR left, "... no real doubt we are seeing the residual radiation left behind from the hot, dense beginning of the early universe."

14. The tiny fluctuations in the early universe due to gravity redshifts from concentrations of mass eventually led to what?

16. List two processes or events that formed the elements heavier than helium: a) those that make carbon, nitrogen, and oxygen, and b) those that make iron, nickel, gold, and even heavier elements.

17. The discovery of what aspect of the Universe restores Einstein’s “biggest blunder” (his fudge factor in his equations) to general relativity

In: Other

Write a python program to read from a file the names and grades of a class...

Write a python program to read from a file the names and grades of a class of students to calculate the class average, the maximum, and the minimum grades. The program should then write the names and grades on a new file identifying the students who passed and the students who failed. The program should consist of the following functions: a) Develop a gradesInput() function that reads data from a file and stores it and returns it as a dictionary. The function has one argument which is the name of the file where the data is entered. Each line on the file should contain the record of one student holding his or her name and the corresponding grade.

b) Write a second function gradesAssess() that iterates over the dictionary and determines the statistics on the average, minimum, and maximum of the grades and return these statistics as a list.

c) Write a third function gradesReport() that will iterate over the dictionary and write on a new file named Class_Results.txt the names of students whose grades are greater or equal to 60, preceded by the message “Passing Students”. Then the names of students whose grades are lower than 60 should be written on the file, preceded by the message “Failing Students”. Finally, the class statistics should be written on the file, also preceded by the message “Class Statistics”.

d) Write a main program that coordinates the operation of the three developed functions. The program should inform the user of what is its function and request from the user the name of the file where class names and grades are written. Form you own data file, Class_Data.txt that has the following entries : Raja, 90 Yahya, 50 Jad, 70 Hussein, 71 John, 97 Tony, 98 Nasser, 78 Maroun, 70 Pamela, 78 Maroun, 70 Ali, 74 Firas, 85

In: Computer Science

Write a program in python to calculate the value of cos(?) using its Taylor series expansion:...

Write a program in python to calculate the value of cos(?) using its Taylor series expansion:

?2 ?4 ?6 ?8 cos(?)=1− + − + ...

The program should consist of the following functions:

  1. a) Develop and test a cosCalc() function that receives as an argument, of type float, the value of the variable and returns the result as a float also. Include 20 terms maximum from the series, or until the value of a term is less than 1e-8. b) Write a main program to invoke the function and calculate and print the values of

2! 4! 6! 8!

?2?
cos (− ), cos(−?), and sin ⁡( ).

In: Computer Science

With online instruction being implemented during COVID-19 outbreak, what approach(es) would you adopt to evaluate the...

With online instruction being implemented during COVID-19 outbreak, what approach(es) would you adopt to evaluate the performance of students if you were the professor of this HR class?

Please identify your approach(es) clearly and state your reasons why. (Hint: Comparative approach, Attribute approach, Behavioral approach, Results approach, and Quality approach).

In: Operations Management

what are Backstage activities for Personal Shopper

what are Backstage activities for Personal Shopper

In: Operations Management

What do you think about using Social Media as a background check? Please use the 5...

What do you think about using Social Media as a background check? Please use the 5 criteria (i.e., reliable, valid, generalizable, practical, and legal) to argue your position.

In: Operations Management

Q3. “Sexual harassment is a problem that occurs between two employees. The company should not be...

Q3. “Sexual harassment is a problem that occurs between two employees. The company should not be held liable for the actions of misbehaving employees.” Do you agree or disagree with this statement? Explain your answer.
Q4. The Society for Human Resource Management now utilizes the terms “diversity and inclusiveness” together. Why do you think that is the case? What would you do to accomplish both simultaneously? Explain.

In: Operations Management

Consider the people you feel are the most competent communicators. They can be from your personal...

Consider the people you feel are the most competent communicators. They can be from your personal life or public figures.

Think about what makes them good communicators. What particular communication behaviors or skills do they use?

With these thoughts in mind:

Post at least 250 words answering the following:

List three competent communicators. These can be people you know personally or public figures.

What behaviors do these individuals employ that make them competent and why?

Which of these could you adopt, and how would that help you to reach your communication goals more effectively?

In: Psychology

value of y is _____4_______. Consider an ideal vapor-compression refrigeration cycle using Freon 410A (see ....

value of y is _____4_______.

Consider an ideal vapor-compression refrigeration cycle using Freon 410A (see . https://www.freon.com/en-/media/files/freon/freon-410a-si-thermodynamic-properties.pdf) The pressure in the evaporator is 10y kPa (That is, if y = 3 the evaporator pressure is 30 kPa). and the temperature at the exit of the condenser is 40oC. The mass flow in the system is (0.05 + y/200) kg/s.   (That is, if y =3, then the mass flow is 0.0.065 kg/s).

  1. Find the enthalpy at the entrance to the compressor.                    h = __________ kJ/kg (+ 3 kJ/kg)

  1. Find the enthalpy at the exit of the compressor.                              h = __________ kJ/kg (+ 5kJ/kg)

  1. Find the enthalpy at the exit of the condenser.                                h = __________ kJ/kg (+ 3kJ/kg)

  1. Find the rate of heat transfer in the evaporator:                              = __________ W (+ 300W)

In: Mechanical Engineering

Use the five competitive forces model as described in this chapter to describe how information technology...

  1. Use the five competitive forces model as described in this chapter to describe how information technology might be used to provide a winning position for each of these businesses:
  2. A global advertising agency
    1. A local restaurant
    2. A mobile applications provider
    3. An insurance company
    4. A web-based audio book service

In: Computer Science

How can a parent stimulate cognitive development? Are there elements in our environment which reduce cognitive...

How can a parent stimulate cognitive development? Are there elements in our environment which reduce cognitive development and may initiate a disorder?

In: Psychology

Mr. Meadows Cookie Company makes a variety of chocolate chip cookies in the plant in Albion,...

  1. Mr. Meadows Cookie Company makes a variety of chocolate chip cookies in the plant in Albion, Michigan. Based on orders received and forecasts of buy-ing habits, it is estimated that the demand for the next four months is 850, 1,260, 510, and 980, expressed in thousands of cookies. During a 46-day period when there were 120 workers, the company produced 1.7 million cookies. Assume that the number of workdays over the four months are respectively 26, 24, 20, and 16. There are currently 100 workers employed, and there is no starting inventory of cookies.
  1. What is the minimum constant workforce required to meet demand over the next four months?
  2. Assume that cI = 10 cents per cookie per month, cH = $100, and cF = $200. Evaluate the cost of the plan derived in part (a).
  3. Formulate as a linear program. Be sure to define all variables and include the required constraints.
  4. Solve for the optimal solution.

Suppose that the cost of hiring workers each period is $100 for each worker until 20 workers are hired, $400 for each worker when between 21 and 50 workers are hired, and $700 for each worker hired beyond 50.

  1. Write down the complete linear programming formulation of the revised problem.

In: Operations Management

Gautam is interested in learning what types of ethical messages are most effective. He has three...

Gautam is interested in learning what types of ethical messages are most effective.

He has three conditions, integrity, confidentiality, professional behavio, and

he randomly assigns 20 people to each of these conditions. After each person reads the message, they rate its effectiveness

on a 1-10 scale.He runs a one-way ANOVA and finds the following results:

Condition Mean

Integrity               6

Confidentiality           5

Professional Behavior   9

Source SS df MS F

Between   3000 2

Within

Total 11,500 59

a)Complete the one-way ANOVA table.

b) Determine the critical F at a=.01

What conclusion should Gautam make?

c) Is it appropriate to calculate a Tukey HSD test for this problem? Why? If it is appropriate, calculate a Tukey HSD test for each of the three possible comparisons between two means. What groups are significantly different from each other at a=.01

(integrity, confidentiality, professional behavior) according to this test?

In: Math

Backcountry Adventures is a Colorado-based outdoor travel agent that operates a series of backcountry huts. Currently,...

Backcountry Adventures is a Colorado-based outdoor travel agent that operates a series of backcountry huts. Currently, the value of the firm is $3.8 million. But profits will depend on the amount of snowfall: If it is good year, the firm will be worth $5.2 million, and if it is a bad year it will be worth $2.5 million. Suppose managers always keep the debt to equity ratio of the firm at 30%, and the debt is riskless.

a. What is the initial amount of debt?
b. Calculate the percentage change in the value of the firm, its equity and its debt once the level of snowfall is revealed, but before the firm adjusts the debt level to achieve its target debt to equity ratio.
c. Calculate the percentage change in the value of outstanding debt once the firm adjusts to its target debt-equity ratio.
d. What does this imply about the riskiness of the firm's tax shields. Explain.

In: Accounting