subject
Engineering, 19.11.2019 07:31 eliana12

The fibonacci sequence is the series of numbers 0, 1, 1, 2, 3, 5, 8, …. it is defined by the following mathematical expression, with x0 and x1 being 0 and 1, respectively: xn = xn-1 + xn-2 write a c program using the fork() system call that generates and prints the fibonacci sequence in the child process. the number of members in the sequence will be determined by a user provided as a user prompted input. make the parent process wait for the child process to complete before exiting. make the program print both the parent and child process ids. the program should perform the necessary error checking to only accept positive integers from the user. a failure of fork() should be caught and printed as an error message using err_sys call.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
question
Engineering, 04.07.2019 18:10
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
question
Engineering, 04.07.2019 18:20
Find the kinematic pressure of 160kpa. for air, r-287 j/ kg k. and hair al viscosity of air at a temperature of 50°c and an absolute (10 points) (b) find the dynamic viscosity of air at 110 °c. sutherland constant for air is 111k
Answers: 3
question
Engineering, 04.07.2019 18:20
Atank with constant volume contains 2.27 kg of a mixture of water phases (liquid-vapor). in the initial state the temperature and the quality are 127 °c and 0.6, respectively. the mixture is heated until the temperature of 160 oc is reached. illustrate the process in a t-v diagram. then, determine (1) the mass of the vapor in kg at the initial state, (2) the final pressure in kpa.
Answers: 3
You know the right answer?
The fibonacci sequence is the series of numbers 0, 1, 1, 2, 3, 5, 8, …. it is defined by the followi...
Questions
question
Mathematics, 05.05.2020 13:47
question
Mathematics, 05.05.2020 13:47
question
Mathematics, 05.05.2020 13:47
question
Mathematics, 05.05.2020 13:47
question
Chemistry, 05.05.2020 13:47
question
Chemistry, 05.05.2020 13:47
question
Mathematics, 05.05.2020 13:47
question
Mathematics, 05.05.2020 13:47
Questions on the website: 13722361