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
o-na [289]
3 years ago
12

Assume that array1 and array2 are both 25-element integer arrays. Indeicate whether each of the following statements is legal or

illegal.a. array1 = array2;b. cout<< array1;c. cin >>array2;
Engineering
1 answer:
vfiekz [6]3 years ago
3 0

Answer:

a. array1 = array2; Illegal

b. cout<< array1; Illegal

c. cin >>array2; Illegal

Explanation:

a. array1 = array2;

Illegal, since the assignment operator doesn't work to directly assign the values into other array.

b. cout<< array1;

Illegal, since the index number in not defined, if you want to print all the elements in the array1 then run a for loop to iterate over the entire loop.

c. cin >>array2;

Illegal, since the index number is not defined, if you want get input from the user then run a for loop to iterate over the entire loop.

You might be interested in
If you stretch a rubber hose and pluck it, you can observe a pulse traveling up and down the hose. What happens to the speed of
stich3 [128]

Answer:

Explanation:if you stretch the hose more tightly the speed of the pulse will reduce..

5 0
3 years ago
A four-cylinder, four-stroke internal combustion engine has a bore of 3.7 in. and a stroke of 3.4 in. The clearance volume is 16
abruzzese [7]

Answer:

1) The three possible assumptions are

a) All processes are reversible internally

b) Air, which is the working fluid circulates continuously in a closed loop

cycle

c) The process of combustion is depicted as a heat addition process

2) The diagrams are attached

5) The net work per cycle is 845.88 kJ/kg

The power developed in horsepower ≈ 45374 hP

Explanation:

1) The three possible assumptions are

a) All processes are reversible internally

b) Air, which is the working fluid circulates continuously in a closed loop

cycle

c) The process of combustion is depicted as a heat addition process

2) The diagrams are attached

5) The dimension of the cylinder bore diameter = 3.7 in. = 0.09398 m

Stroke length = 3.4 in. = 0.08636 m.

The volume of the cylinder v₁= 0.08636 ×(0.09398²)/4 = 5.99×10⁻⁴ m³

The clearance volume = 16% of cylinder volume = 0.16×5.99×10⁻⁴ m³

The clearance volume, v₂  = 9.59 × 10⁻⁵ m³

p₁ = 14.5 lbf/in.² = 99973.981 Pa

T₁ = 60 F = 288.706 K

\dfrac{T_{2}}{T_{1}} = \left (\dfrac{v_{1}}{v_{2}}  \right )^{K-1}

Otto cycle T-S diagram

T₂ = 288.706*6.25^{0.393} = 592.984 K

The maximum temperature = T₃ = 5200 R = 2888.89 K

\dfrac{T_{3}}{T_{4}} = \left (\dfrac{v_{4}}{v_{3}}  \right )^{K-1}

T₄ = 2888.89 / 6.25^{0.393} = 1406.5 K

Work done, W = c_v×(T₃ - T₂) - c_v×(T₄ - T₁)

0.718×(2888.89  - 592.984) - 0.718×(1406.5 - 288.706) = 845.88 kJ/kg

The power developed in an Otto cycle = W×Cycle per second

= 845.88 × 2400 / 60  = 33,835.377 kW = 45373.99 ≈ 45374 hP.

8 0
4 years ago
A manometer containing a fluid with a density of 60 lbm/ft3 is attached to a tank filled with air. If the gage pressure of the a
8090 [49]

Answer:

The fluid level difference in the manometer arm = 22.56 ft.

Explanation:

Assumption: The fluid in the manometer is incompressible, that is, its density is constant.

The fluid level difference between the two arms of the manometer gives the gage pressure of the air in the tank.

And P(gage) = ρgh

ρ = density of the manometer fluid = 60 lbm/ft³

g = acceleration due to gravity = 32.2 ft/s²

ρg = 60 × 32.2 = 1932 lbm/ft²s²

ρg = 1932 lbm/ft²s² × 1lbf.s²/32.2lbm.ft = 60 lbf/ft³

h = fluid level difference between the two arms of the manometer = ?

P(gage) = 9.4 psig = 9.4 × 144 = 1353.6 lbf/ft²

1353.6 = ρg × h = 60 lbf/ft³ × h

h = 1353.6/60 = 22.56 ft

A diagrammatic representation of this setup is presented in the attached image.

Hope this helps!

5 0
4 years ago
Instead of running blood through a single straight vessel for a distance of 2 mm, one mammalian species uses an array of 100 tin
Marina CMI [18]

Solution:

Given that :

Volume flow is, $Q_1 = 1000 \ mm^3/s$

So, $Q_2= \frac{1000}{100}=10 \ mm^3/s$

Therefore, the equation of a single straight vessel is given by

$F_{f_1}=\frac{8flQ_1^2}{\pi^2gd_1^5}$    ......................(i)

So there are 100 similar parallel pipes of the same cross section. Therefore, the equation for the area is

$\frac{\pi d_1^2}{4}=1000 \times\frac{\pi d_2^2}{4} $

or $d_1=10 \ d_2$

Now for parallel pipes

$H_{f_2}= (H_{f_2})_1= (H_{f_2})_2= .... = = (H_{f_2})_{10}=\frac{8flQ_2^2}{\pi^2 gd_2^5}$  ...........(ii)

Solving the equations (i) and (ii),

$\frac{H_{f_1}}{H_{f_2}}=\frac{\frac{8flQ_1^2}{\pi^2 gd_1^5}}{\frac{8flQ_2^2}{\pi^2 gd_2^5}}$

       $=\frac{Q_1^2}{Q_2^2}\times \frac{d_2^5}{d_1^5}$

       $=\frac{(1000)^2}{(10)^2}\times \frac{d_2^5}{(10d_2)^5}$

       $=\frac{10^6}{10^7}$

Therefore,

$\frac{H_{f_1}}{H_{f_2}}=\frac{1}{10}$

or $H_{f_2}=10 \ H_{f_1}$

Thus the answer is option A). 10

7 0
3 years ago
In __________, the air bags system checks itself for problems each time the ignition is turned on
zlopas [31]

Answer:

===========

Automobiles

===========

8 0
2 years ago
Other questions:
  • 2. In the above figure, what type of cylinder arrangement is shown in the figure above?
    9·2 answers
  • Please explain the theory of Hydrostatic Thrust on a plane Surface
    14·2 answers
  • Complete the following sentence. The skills and content of several subject areas were combined to form a new field known as a me
    12·2 answers
  • For a bronze alloy, the stress at which plastic deformation begins is 266 MPa and the modulus of elasticity is105 GPa.
    15·1 answer
  • A manager who focuses on the employees who enable a company to do business is human resource management. True True False False
    7·1 answer
  • Please answer fast. With full step by step solution.​
    14·1 answer
  • What are the functions of the peripheral nervous system
    6·2 answers
  • ABS system is necessary?
    6·1 answer
  • The Web and Digital Communications pathway is broken down into four main categories of technology. Which category BEST describes
    13·1 answer
  • Discuss importance of good communication system​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!