1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
3241004551 [841]
3 years ago
15

Consider the following program:

Engineering
1 answer:
EleoNora [17]3 years ago
5 0

Answer:

The solution of this question is given below in explanation section.

Explanation:

The correct answer to this question is A i.e. 112002 .

the correct code of this question is given below

#include  <stdio.h>

#include  <string.h>

#include  <sys/types.h>

//#include "csapp.h"

void end(void)

{

printf("2");

}

int main()

{

if (fork() == 0)

atexit(end);

if (fork() == 0)

printf("0");

else

printf("1");

exit(0);

}

/* $end forkprob2 */

when you run this program, fork function print different values.

However, it is noted that when you run the program repeatedly, it will show you different values. But the most possible value that this program will show is A.

The picture is attached of the running program to get the idea of code.

You might be interested in
Suppose an underground storage tank has been leaking for many years, contaminating a groundwater and causing a contaminant conce
Ghella [55]

Answer: the cancer risk for an adult male drinking the water for 10 years is 2.88 × 10⁻⁶

Explanation:

firstly, we find the time t required to travel for the contaminant to the well;

Given that, contamination flowing rate = 0.5 ft/day

Distance of well from the site = 1 mile =  5280 ft

so t = 5280 / 0.5 = 10560 days

k is given as 1.94 x 10⁻⁴ 1/day

next we find the Pollutant concentration Ct in the well

Ct = C₀ × e^-( 1.94 x 10⁻⁴ × 10560)

Ct = 0.3 x e^-(kt)  

Ct= 0.0386 mg/L

next we determine the chronic daily intake, CDI

CDI =  (C x CR x EF x ED) / (BW x AT)

where C is average concentration of the contaminant(0.0368mg/L), CR is contact rate (2L/day), EF is exposure frequency (350days/Year), ED is exposure duration (10 years), BW is average body weight (70kg).

now we substitute  

CDI = (0.0368 x 2 x 350 x 10) / ((70x 365) x 70)

= 257.7 / 1788500

= 0.000144 mg/Kg.day

CDI = 1.44 x 10⁻⁴ mg/kg.day  

Finally we calculate the cancer risk, R

Slope factor SF is given as 0.02 Kg.day/mg

Risk, R = I x SF

= 1.44 x 10⁻⁴ mg/kg.day  x 0.02Kg.day/mg    

R = 2.88 × 10⁻⁶

therefore the cancer risk for an adult male drinking the water for 10 years is 2.88 × 10⁻⁶

7 0
3 years ago
A heat engine receives 6 kW from a 250oC source and rejects heat at 30oC. Examine each of three cases with respect to the inequa
taurus [48]

Answer:

Explanation:

Given

T_h=250^{\circ}C\approx 523\ K

T_L=30^{\circ}C\approx 303\ K

Q_1=6 kW

From Clausius inequality

\oint \frac{dQ}{T}=0  =Reversible cycle

\oint \frac{dQ}{T}  =Irreversible cycle

\oint \frac{dQ}{T}>0  =Impossible

(a)For P_{out}=3 kW

Rejected heat Q_2=6-3=3\ kW

\oint \frac{dQ}{T}= \frac{Q_1}{T_1}-\frac{Q_2}{T_2}

=\frac{6}{523}-\frac{3}{303}=1.57\times 10^{-3} kW/K

thus it is Impossible cycle

(b)P_{out}=2 kW

Q_2=6-2=4 kW

\oint \frac{dQ}{T}= \frac{Q_1}{T_1}-\frac{Q_2}{T_2}

=\frac{6}{523}-\frac{4}{303}=-1.73\times 10^{-3} kW/K

Possible

(c)Carnot cycle

\frac{Q_2}{Q_1}=\frac{T_1}{T_2}

Q_2=3.47\ kW

\oint \frac{dQ}{T}= \frac{Q_1}{T_1}-\frac{Q_2}{T_2}

=\frac{6}{523}-\frac{3.47}{303}=0

and maximum Work is obtained for reversible cycle when operate between same temperature limits

P_{out}=Q_1-Q_2=6-3.47=2.53\ kW

Thus it is possible

6 0
4 years ago
How many grams is one molecule of calcium oxide?
MakcuM [25]

Answer:

Molar mass -56.0774 g/mol

There is a way to calculate this

atomic number for calcium is 20

atomic number for oxygen is 8

The molar mass for calcium is 40

The molar mass for oxygen is 16

CALCIUM OXIDE

40. +. 16

=56g/mol

1 molecule = 1×56=56g/mol

2 molecules=2×56 =112g/mol

5 0
2 years ago
A 1020 CD steel shaft is to transmit 15 kW while rotating at 1750 rpm. Determine the minimum diameter for the shaft to provide a
vladimir2022 [97]

Answer:

diameter is 14 mm

Explanation:

given data

power = 15 kW

rotation N = 1750 rpm

factor of safety = 3

to find out

minimum diameter

solution

we will apply here power formula to find T that is

power = 2π×N×T / 60    .................1

put here value

15 ×10^{3} = 2π×1750×T / 60

so

T = 81.84 Nm

and

torsion = T / Z                        ..........2

here Z is section modulus i.e = πd³/ 16

so from equation 2

torsion = 81.84 / πd³/ 16

so torsion = 416.75 / / d³     .................3

so from shear stress theory

torsion = σy / factor of safety

so here σy = 530 for 1020 steel

so

torsion = σy / factor of safety

416.75 / d³ = 530 × 10^{6} / 3

so d = 0.0133 m

so diameter is 14 mm

3 0
4 years ago
The first thing you should do is develop a ____________________ to determine what vehicle you can afford.
swat32

The first thing you should do is develop a <u>budget</u> to determine what vehicle you can afford.

<h3>What is an automobile?</h3>

An automobile is also referred to as a vehicle, car or motorcar and it can be defined as a four-wheeled vehicle that is designed and developed to be propelled by an internal-combustion (gasoline) engine, especially for the purpose of transportation from one location to another.

<h3>What is a budget?</h3>

A budget can be defined as a financial plan that is typically used for the estimation of revenue and expenditures of an individual, business organization or government for a specified period of time, often one year.

In this context, we can reasonably infer and logically deduce that the first thing anyone should do is to develop a <u>budget</u> in order to determine what vehicle they can afford.

Read more on budget here: brainly.com/question/13964173

#SPJ1

7 0
1 year ago
Other questions:
  • For all substances, Cp&gt;C. Why is that?
    15·1 answer
  • In order to reduce the waiting time further, a traffic light was installed to replace the yield sign. Assuming the departure pro
    5·1 answer
  • The sports car has a weight of 4900 lblb and center of gravity at GG. If it starts from rest it causes the rear wheels to slip a
    13·1 answer
  • How do I do science it just don’t show a true display of skill
    13·1 answer
  • A bar of steel has the minimum properties Se = 40 kpsi, S = 60 kpsi, and S-80 kpsi. The bar is subjected to a steady torsional s
    6·1 answer
  • An electron is traveling with initial kinetic energy K in a uniform electric field. The electron comes to rest momentarily after
    12·1 answer
  • Why become an Android programmer?
    11·1 answer
  • Select three mechanical processes used in the manufacturing phase of engineering.
    11·2 answers
  • When you purchase commercial software you own the source code to that program. true false
    6·2 answers
  • What is valve overlap?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!