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
inessss [21]
3 years ago
8

In this assignment, you will demonstrate your ability to write simple shell scripts. This is a cumulative assignment that will c

hallenge you to pull together a variety of lessons from throughout the course. Earlier in the semester, when looking at the problems of file transfer, we discussed the difference beteween binary and ASCII files and the two styles of ASCII text files. In this assignment, you will write a script to diagnose whether a group of files are Windows-style ASCII text and, if so, will convert them to Unix-style ASCII text.
Engineering
1 answer:
nevsk [136]3 years ago
8 0

Answer:

Explanation:

Usage: flip [-t|-u|-d|-m] filename[s]

  Converts ASCII files between Unix, MS-DOS/Windows, or Macintosh newline formats

  Options:

     -u  =  convert file(s) to Unix newline format (newline)

     -d  =  convert file(s) to MS-DOS/Windows newline format (linefeed + newline)

     -m  =  convert file(s) to Macintosh newline format (linefeed)

     -t  =  display current file type, no file modifications

You might be interested in
Air enters a cmpressor at 20 deg C and 80 kPa and exits at 800 kPa and 200 deg C. The power input is 400 kW. Find the heat trans
aksik [14]

Answer:

The heat is transferred is at the rate of 752.33 kW

Solution:

As per the question:

Temperature at inlet, T_{i} = 20^{\circ}C = 273 + 20 = 293 K

Temperature at the outlet, T_{o} = 200{\circ}C = 273 + 200 = 473 K

Pressure at inlet, P_{i} = 80 kPa = 80\times 10^{3} Pa

Pressure at outlet, P_{o} = 800 kPa = 800\times 10^{3} Pa

Speed at the outlet, v_{o} = 20 m/s

Diameter of the tube, D = 10 cm = 10\times 10^{- 2} m = 0.1 m

Input power, P_{i} = 400 kW = 400\times 10^{3} W

Now,

To calculate the heat transfer, Q, we make use of the steady flow eqn:

h_{i} + \frac{v_{i}^{2}}{2} + gH  + Q = h_{o} + \frac{v_{o}^{2}}{2} + gH' + p_{s}

where

h_{i} = specific enthalpy at inlet

h_{o} = specific enthalpy at outlet

v_{i} = air speed at inlet

p_{s} = specific power input

H and H' = Elevation of inlet and outlet

Now, if

v_{i} = 0 and H = H'

Then the above eqn reduces to:

h_{i} + gH + Q = h_{o} + \frac{v_{o}^{2}}{2} + gH + p_{s}

Q = h_{o} - h_{i} + \frac{v_{o}^{2}}{2} + p_{s}                (1)

Also,

p_{s} = \frac{P_{i}}{ mass, m}

Area of cross-section, A = \frac{\pi D^{2}}{4} =\frac{\pi 0.1^{2}}{4} = 7.85\times 10^{- 3} m^{2}

Specific Volume at outlet, V_{o} = A\times v_{o} = 7.85\times 10^{- 3}\times 20 = 0.157 m^{3}/s

From the eqn:

P_{o}V_{o} = mRT_{o}

m = \frac{800\times 10^{3}\times 0.157}{287\times 473} = 0.925 kg/s

Now,

p_{s} = \frac{400\times 10^{3}}{0.925} = 432.432 kJ/kg

Also,

\Delta h = h_{o} - h_{i} = c_{p}\Delta T =c_{p}(T_{o} - T_{i}) = 1.005(200 - 20) = 180.9 kJ/kg

Now, using these values in eqn (1):

Q = 180.9 + \frac{20^{2}}{2} + 432.432 = 813.33 kW

Now, rate of heat transfer, q:

q = mQ = 0.925\times 813.33 = 752.33 kW

4 0
3 years ago
A cylinder with a frictionless piston contains 0.05 m3 of air at 60kPa. The linear spring holding the piston is in tension. The
AleksAgata [21]

Answer:

18 kJ

Explanation:

Given:

Initial volume of air = 0.05 m³

Initial pressure = 60 kPa

Final volume = 0.2 m³

Final pressure = 180 kPa

Now,

the Work done by air will be calculated as:

Work Done = Average pressure × Change in volume

thus,

Average pressure = \frac{60+180}{2}  = 120 kPa

and,

Change in volume = Final volume - Initial Volume = 0.2 - 0.05 = 0.15 m³

Therefore,

the work done = 120 × 0.15 = 18 kJ

4 0
3 years ago
Water vapor at 10bar, 360°C enters a turbine operatingat steady state with a volumetric flow rate of 0.8m3/s and expandsadiabati
Artyom0805 [142]

Answer:

A) W' = 178.568 KW

B) ΔS = 2.6367 KW/k

C) η = 0.3

Explanation:

We are given;

Temperature at state 1;T1 = 360 °C

Temperature at state 2;T2 = 160 °C

Pressure at state 1;P1 = 10 bar

Pressure at State 2;P2 = 1 bar

Volumetric flow rate;V' = 0.8 m³/s

A) From table A-6 attached and by interpolation at temperature of 360°C and Pressure of 10 bar, we have;

Specific volume;v1 = 0.287322 m³/kg

Mass flow rate of water vapour at turbine is defined by the formula;

m' = V'/v1

So; m' = 0.8/0.287322

m' = 2.784 kg/s

Now, From table A-6 attached and by interpolation at state 1 with temperature of 360°C and Pressure of 10 bar, we have;

Specific enthalpy;h1 = 3179.46 KJ/kg

Now, From table A-6 attached and by interpolation at state 2 with temperature of 160°C and Pressure of 1 bar, we have;

Specific enthalpy;h2 = 3115.32 KJ/kg

Now, since stray heat transfer is neglected at turbine, we have;

-W' = m'[(h2 - h1) + ((V2)² - (V1)²)/2 + g(z2 - z1)]

Potential and kinetic energy can be neglected and so we have;

-W' = m'(h2 - h1)

Plugging in relevant values, the work of the turbine is;

W' = -2.784(3115.32 - 3179.46)

W' = 178.568 KW

B) Still From table A-6 attached and by interpolation at state 1 with temperature of 360°C and Pressure of 10 bar, we have;

Specific entropy: s1 = 7.3357 KJ/Kg.k

Still from table A-6 attached and by interpolation at state 2 with temperature of 160°C and Pressure of 1 bar, we have;

Specific entropy; s2 = 8.2828 KJ/kg.k

The amount of entropy produced is defined by;

ΔS = m'(s2 - s1)

ΔS = 2.784(8.2828 - 7.3357)

ΔS = 2.6367 KW/k

C) Still from table A-6 attached and by interpolation at state 2 with s2 = s2s = 8.2828 KJ/kg.k and Pressure of 1 bar, we have;

h2s = 2966.14 KJ/Kg

Energy equation for turbine at ideal process is defined as;

Q' - W' = m'[(h2 - h1) + ((V2)² - (V1)²)/2 + g(z2 - z1)]

Again, Potential and kinetic energy can be neglected and so we have;

-W' = m'(h2s - h1)

W' = -2.784(2966.14 - 3179.46)

W' = 593.88 KW

the isentropic turbine efficiency is defined as;

η = W_actual/W_ideal

η = 178.568/593.88 = 0.3

8 0
3 years ago
2. A trapezoidal channel has a bottom width of 4 m and side slopes of 2:1 (H:V). If the flow rate is 50 m3/s at a depth of 3.6 m
Daniel [21]

Answer:

Explanation:

Sum of the side slope = 2 + 1 = 3

Length of first slope = 2/3 X 3.6 = 2 X 1.2 = 2.4m

Lenght of second slope = 1/3 X 3.6 = 1.2m

Area of the trapezoidal channel = (2.4 + 1.2)/2 X 3.6 = 1.8 X 3.6 = 6.48m²

Alternate dept = 50m³/6.48m²= 7.716m

4 0
3 years ago
Because there is a one-to-many relationship between sales reps and customers in the TAL Distributors database, one sales rep can
stiv31 [10]

Answer:

True

Explanation:

The relationship between sales reps and customers is an example of a one-to-many relationship. This is because one sales rep can be associated with many customers but a customer must have one sales rep. It is impossible for a customer to have zero sales rep but this is quite possible for a sales rep to have either zero, one or even more customers. Therefore the statement is True.

7 0
3 years ago
Other questions:
  • Coal fire burning at 1100 k delivers heat energy to a reservoir at 500 k. Find maximum efficiency.
    6·1 answer
  • What is the correct statement regarding the stress over the section of a shaft in torsion?
    13·1 answer
  • What considerations are included in the Preliminary Floodproofing/Retrofitting Preference Matrix?
    7·1 answer
  • Tech A says that in some cases, the electronic brake control module can be programmed with a new tire size to restore proper ele
    7·1 answer
  • . (20 pts) A horizontal cylindrical pipe (k = 10 W/m·K) has an outer diameter of 15 cm and a wall thickness of 5 cm. The pipe is
    14·1 answer
  • An energy system can be approximated to simply show the interactions with its environment including cold air in and warm air out
    6·1 answer
  • Determine (with justification) whether the following systems are (i) memoryless, (ii) causal, (iii) invertible, (iv) stable, and
    10·1 answer
  • Which of the following about valence electron is correct?
    10·2 answers
  • 1) Which step in the Design Process utilizes technical drawings to provide information necessary to
    8·1 answer
  • What is the primary damage control telephone circuit for
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!