Questions
What are the weakneses of the following forces in modeling the piston: 1-Constant force 2- linear...

What are the weakneses of the following forces in modeling the piston:

1-Constant force

2- linear

3-1/2 sin wave

In: Mechanical Engineering

(Full Program)Write code that shows how deadlocks work. Then write code that shows a fix using...

  1. (Full Program)Write code that shows how deadlocks work. Then write code that shows a fix using semaphores.

  1. (Full program)Write code showing the elevator algorithm.

c++ Language

In: Computer Science

The cylinder in an automobile engine has a radius of about 5 cm. The top of...

The cylinder in an automobile engine has a radius of about 5 cm. The top of
the piston begins its compression stroke at about 23 cm from the head end
and travels about 18 cm during the stroke. The gas in the cylinder behaves
as an ideal gas with five degrees of freedom per molecule. It begins at 310 K
and 1 atm pressure when the piston is at the bottom of its stroke (i.e., fully
expanded).
(a) How many moles of gas are in the cylinder?
(b) What are the temperature and pressure of the gas at the end of the adia-
batic compression stroke?
(c) How much work is done on the gas by the piston during the compression
stroke?
(d) When the gas is completely compressed, the combustion of the gasoline
increases the temperature by another 800 K. What is the temperature
now?
(e) How much heat energy has been added to the gas?
f) How much work is done by the gas as it expands adiabatically back to
its starting point?
(g) What is the efficiency of this engine?

In: Chemistry

An ideal monoatomic gas is separated into two volumes V1 and V2 by means of of...

An ideal monoatomic gas is separated into two volumes V1 and V2 by means of
of a diathermic piston, such that each volume contains N atoms and both parts are
they find at the same temperature T0. The complete system is isolated from the
exterior by means of insulating walls.
The piston is externally manipulated reversibly until the two gases are
they find in thermodynamic equilibrium one with the other.
The purpose is to find the final temperature and the work done, or by the system, or
in the surroundings.
To answer this problem, follow the steps described below and answer
the questions that are asked:
a) What is the name of the type of process described? Show that
ΔS1 = -ΔS2
where ΔS1 and ΔS2 are the changes in the entropies of the two gases.
b) Write the equilibrium conditions in the final state and find the final volumes
On each side.
c) Find the final temperature. (Hint: Use the First Law on each side and the
result of subsection a)).
d) Find the total work due to the manipulation of the piston. Does the system do work
Or does the external agent do work on the system? Explain

In: Physics

I need clear steps / formulas used with (F) ( I'm lost with current solutions )...

I need clear steps / formulas used with (F) ( I'm lost with current solutions )

To get full marks for the following questions you need to convert the question from words to a mathematical expression (i.e. use mathematical notation), defining your random variables where necessary, and using correct probability statements. Suppose that the IQ of adults is normally distributed with a mean of 100 and standard deviation of 15. (a) [2 marks] What IQ score distinguishes the highest 10%? (b) [3 marks] What is the probability that a randomly selected person has an IQ score between 91 and 118? (c) [2 marks] Suppose people with IQ scores above 125 are eligible to join a high-IQ club. Show that approximately 4.78% of people have an IQ score high enough to be admitted to this particular club. (d) [4 marks] Let X be the number of people in a random sample of 25 who have an IQ score high enough to join the high-IQ club. What probability distribution does X follow? Justify your answer. (e) [2 marks] Using the probability distribution from part (d), find the probability that at least 2 people in the random sample of 25 have IQ scores high enough to join the high-IQ club. (f) [3 marks] Let L be the amount of time (in minutes) it takes a randomly selected applicant to complete an IQ test. Suppose L follows a uniform distribution from 30 to 60. What is the probability that the applicant will finish the test in less than 45 minutes?

In: Statistics and Probability

2 kW of power will be trasnmitted via chain-sprocket system. Rotational speed of input shaft is...

2 kW of power will be trasnmitted via chain-sprocket system. Rotational speed of input shaft is 20 rpm. Required approximate rotational speed of input shaft is 20 rpm. Required approximate rotational speed for the out shaft is 7 rpm. Approximate distance between center lines of input and output shafts should be 900 mm. This chain-sprocket system is used for an elevator and it is asked to use single or multiple DIN 8187 chain with 31.75 mm pitch.

a) Calculate number of teeth on sprocket, which is on output shaft, is number of teeth on the sprocket on input shaft is 19.

b) Calculate input power for selection of chain and select the appropriate chain type.

c) Calculate pitch circle diameters of driving and driven sprockets, linear velocity of chain, length of chain, (number of chain links), and exact center line distance between driving and driven sprocket.

d) Calculate factor of safety of the selected chain.

In: Mechanical Engineering

2.2 kW of power will be trasnmitted via chain-sprocket system. Rotational speed of input shaft is...

2.2 kW of power will be trasnmitted via chain-sprocket system. Rotational speed of input shaft is 20 rpm. Required approximate rotational speed of input shaft is 20 rpm. Required approximate rotational speed for the out shaft is 7 rpm. Approximate distance between center lines of input and output shafts should be 900 mm. This chain-sprocket system is used for an elevator and it is asked to use single or multiple DIN 8187 chain with 31.75 mm pitch.

a) Calculate number of teeth on sprocket, which is on output shaft, is number of teeth on the sprocket on input shaft is 19.

b) Calculate input power for selection of chain and select the appropriate chain type.

c) Calculate pitch circle diameters of driving and driven sprockets, linear velocity of chain, length of chain, (number of chain links), and exact center line distance between driving and driven sprocket.

d) Calculate factor of safety of the selected chain.

In: Mechanical Engineering

For a normal population with μ = 40 and σ = 10, which of the following...

For a normal population with μ = 40 and σ = 10, which of the following samples has the highest probability of being obtained?

  • M = 38 for a sample of n = 4  
  • M = 36 for a sample of n = 4
  • M = 38 for a sample of n = 100  
  • M = 36 for a sample of n = 100  

In: Statistics and Probability

USE C PROGRAMMING, call all functions in main, and use a 2 by 3 2d array...

USE C PROGRAMMING, call all functions in main, and use a 2 by 3 2d array to test, thanks.

get_location_of_min This function takes a matrix as a 2-D array of integers with NUM_COLS width, the number of rows in the matrix and two integer pointers. The function finds the location of the minimum value in the matrix and stores the row and column of that value to the memory location pointed to by the pointer arguments. If the minimum value occurs in more than one row, the function choses the one with the highest row number. If the minimum value occurs more than once in that row, the function chose the one with the highest column number. You can assume the matrix is not empty. Examples: if get_location_of_min is called with matrix {{1,7},{4,2},{2,-1}}, and NUM_COLS is 2, the number of rows is 3 the smallest value (-1) is at row 2 column 1. After the function is complete the values 2 and 1 are stored at the corresponding locations pointed to by the arguments. if get_location_of_min is called with matrix {{3,7},{4,2},{2,6}}, and NUM_COLS is 2, the number of rows is 3 the smallest value (2) occurs twice and the one at the highest row is at row 2 column 0. After the function is complete the values 2 and 0 are stored at the corresponding locations pointed to by the arguments. if get_location_of_min is called with matrix {{3,7},{2,4},{2,2}}, and NUM_COLS is 2, the number of rows is 3 the smallest value (2) occurs three times and the one at the highest row and column is at row 2 column 1. After the function is complete the values 2 and 1 are stored at the corresponding locations pointed to by the arguments.

get_location_of_max This function takes a matrix as a 2-D array of integers with NUM_COLS width, the number of rows in the matrix and two integer pointers. The function finds the location of the minimum value in the matrix and stores the row and column of that value to the memory location pointed to by the pointer arguments. If the minimum value occurs in more than one row, the function choses the one with the highest row number. If the minimum value occurs more than once in that row, the function chose the one with the highest column number. You can assume the matrix is not empty. Examples: if get_location_of_max is called with matrix {{1,7},{4,2},{2,9}}, and NUM_COLS is 2, the number of rows is 3 the largest value (9) is at row 2 column 1. After the function is complete the values 2 and 1 are stored at the corresponding locations pointed to by the arguments. if get_location_of_max is called with matrix {{3,7},{4,8},{8,6}}, and NUM_COLS is 2, the number of rows is 3 the largest value (8) occurs twice and the one at the highest row is at row 2 column 0. After the function is complete the values 2 and 0 are stored at the corresponding locations pointed to by the arguments. if get_location_of_max is called with matrix {{3,7},{8,4},{8,8}}, and NUM_COLS is 2, the number of rows is 3 the largest value (8) occurs three times and the one at the highest row and column is at row 2 column 1. After the function is complete the values 2 and 1 are stored at the corresponding locations pointed to by the arguments.

swap_min_max_values This function takes a matrix as a 2-D array of integers with NUM_COLS width, the number of rows in the matrix. The function will find the locations of the minimum and maximum values and swap the locations of these values in the matrix. The locations of minimum and maximum values follow the specifications of the get_location_of_min and get_location_of_max functions. You can assume the matrix is not empty. Examples: if get_location_of_max is called with matrix {{1,7},{4,2},{2,9}}, and NUM_COLS is 2, the number of rows is 3. The minimum value (1) and is at row 0 column 0 and the largest value (9) is at row 2 column 1. After the function is complete matrix is {{9,7},{4,2},{2,1}}.

In: Computer Science

I need to implement a code in python to guess a random number. The number must...

I need to implement a code in python to guess a random number. The number
must be an integer between 1 and 50 inclusive, using the module random function randint. The user will have four options to guess the number. For each one of the failed attempts, the program
it should let the user know whether is with a lower or higher number and how many tries they have left. If the user guess the number, the program must congratulate the user and tell him how much he won. If you are a user, hit on the 1st attempt
He wins first $ 100, on the second $ 75, on the third $ 50, on the fourth $ 25. If the user misses all four opportunities, the program must inform the user that he owes money  $ 60 and what was the number that the computer generates randomly.

In: Computer Science