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
vova2212 [387]
3 years ago
8

Create two arrays with 5 elements each: one will hold Strings and the second will hold integers. Write a program to ask the user

to enter 5 student names and their ages. Output the data from the parallel arrays.

Engineering
1 answer:
MrMuchimi3 years ago
5 0

Answer:

#include <iostream>

#include <iomanip>

#include <string>

using namespace std;

int main() {

   string name[5];  

   int age[5];  

   int i,j;  

   for ( i = 0; i<=4; i++ ) {  

       cout << "Please enter student's name:";  

       cin >> name[i];  

       cout << "Please enter student's age:";  

       cin >> age[i];          

   }  

for (i=0;i<=4;i++){

   cout<<"Age of  "<< name[i]<<"  is  "<<age[i]<<endl;  

}

}

Output of above program is displayed in figure attached.

You might be interested in
A home electrical system is joined to the electric company's system at the junction of the
aleksandrvk [35]

That would be B, I hope this helps!

5 0
2 years ago
Please help i am give brainliest i really need help guys no links please ???
devlian [24]

Explanation:

The wind is an actual form of solar energy. winds are caused by the heating of the atmosphere by the sun, the rotation of the earth, and the earth's surface irregularities. The wind is capture in a wind turbine which provides a renewable energy source, the wind makes the rotor spin, as the rotor spins the movement of the blades drives a generator that creates energy, also known as wind power. The average wind efficiency of turbines is between 35-45%.

Advantages of wind power

- Wind power is cost-effective

- wind creates jobs

- wind enables US industry growth and US competitiveness

-it's a clean fuel source

   

4 0
3 years ago
Two steel plates are to be held together by means of 16-mm-diameter high-strength steel bolts fitting snugly inside cylindrical
dusya [7]

Answer:

The outer diameter of the spacers that yields the most economical and safe design is 25.03 mm

Explanation:

For steel bolt

Stress = 210 MPa or 210 N/mm2

Pressure = Stress* Area

Pbolt = 210 N/mm2 * 16^2 *(pi)/4

Pbolt = 210 N/mm2 * 200.96 mm^2 = 42201.6  N

For Brass spacer

Pressure = 42201.6  N

Area of Brass spacer = Pressure/Stress

Area of Brass spacer = 42201.6  N/145 N/mm^2 = 291.044 mm^2

Area of Brass spacer = (pi) (d^2 - 16^2)/4 =  291.044 mm^2

d^2 - 16^2 = 291.044 mm^2* 4/(pi) = 370.758

d^2 =  370.758 + 16^2

d^2 =   626.758

d = 25.03 mm

The outer diameter of the spacers that yields the most economical and safe design is 25.03 mm

5 0
3 years ago
2 Blocks 1 and 2 rest on rough surfaces with coefficient of frictions ¢1 and ¢2 respectively. The blocks
Amiraneli [1.4K]

Answer:

  • 100N
  • 25N

Explanation:

a) On the verge of tipping over, reaction acts at the corner A

When slippage occurs,

Block moves w/ const. velocity  equilibrium

Three-force member: reaction at A must pass through B

tan b/2h, h b/ 2 θ µ = = ∴= k k ( µ )

b) When slippage occurs,

Block moves w/ const. velocity  equilibrium

Three-force member: reaction at C must pass through G

k tanθ µ =

tan x/ H/2 , x H/2

4 0
3 years ago
A closed, rigid tank is filled with a gas modeled as an ideal gas, initially at 27°C and a gage pressure of 300 kPa. If the gas
ch4aika [34]

Answer:

gauge pressure is 133 kPa

Explanation:

given data

initial temperature T1 = 27°C = 300 K

gauge pressure = 300 kPa = 300 × 10³ Pa

atmospheric pressure = 1 atm

final temperature T2 = 77°C = 350 K

to find out

final pressure

solution

we know that gauge pressure is = absolute pressure - atmospheric pressure so

P (gauge ) = 300 × 10³ Pa - 1 × 10^{5} Pa

P (gauge ) = 2 × 10^{5} Pa

so from idea gas equation

\frac{P1*V1}{T1} = \frac{P2*V2}{T2}   ................1

so {P2} = \frac{P1*T2}{T1}

{P2} = \frac{2*10^5*350}{300}

P2 = 2.33 × 10^{5} Pa

so gauge pressure = absolute pressure - atmospheric pressure

gauge pressure = 2.33 × 10^{5}  - 1.0 × 10^{5}

gauge pressure = 1.33 × 10^{5} Pa

so gauge pressure is 133 kPa

4 0
3 years ago
Other questions:
  • A rigid tank of 1 in3 contains nitrogen gas at 600 kPa, 400 K. By mistake someone lets 0.5 kg flow out. If the final temperature
    5·1 answer
  • How much does 5 acres of land cost in the US?
    12·1 answer
  • Using the results of the Arrhenius analysis (Ea=93.1kJ/molEa=93.1kJ/mol and A=4.36×1011M⋅s−1A=4.36×1011M⋅s−1), predict the rate
    10·1 answer
  • The waffle slab is: a) the two-way concrete joist framing system. b) a one-way floor and roof framing system. c) the one-way con
    11·1 answer
  • A thick oak wall (rho = 545 kg/m3 , Cp = 2385 J/kgK, and k = 0.17 W/mK) initially at 25°C is suddenly exposed to combustion prod
    11·1 answer
  • Which traditional subject is part of construction management or construction science syllabi?
    5·1 answer
  • the voltage across a 5mH inductor is 5[1-exp(-0.5t)]V. Calculate the current through the inductor and the energy stored in the i
    6·1 answer
  • Engineering practices include which of the following? Select all that apply.
    10·1 answer
  • On calculating which of the following quantities , does the body have an effect in simple projectile motion?​
    10·1 answer
  • This acronym is a reminder of the most common types of hazards or injuries caused by electricity.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!