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
How do we define energy efficiency
marta [7]
Energy efficiency simply means using less energy to perform the same task – that is, eliminating energy waste. ... There are enormous opportunities for efficiency improvements in every sector of the economy, whether it is buildings, transportation, industry, or energy generation.
7 0
4 years ago
Read 2 more answers
5. Bar stock of initial diameter = 90 mm is drawn with a draft = 10 mm. The draw die has an entrance angle = 18, and the coeffi
yulyashka [42]

Answer:

a)  0.2099

b)  46.5 MPa

c)  233765 N

d)  3896 W

Explanation:

a)

r = (A'' - A') / A'', where

A'' = 1/4 * π * D''²

A'' = 1/4 * 3.142 * 90²

A'' = 6362.55 mm²

D' = D'' - d = 90 - 10 = 80 mm

A' = 1/4 * π * D'²

A' = 1/4 * 3.142 * 80²

A' = 5027.2 mm²

r = (A'' - A') / A'

r = (6362.55 - 5027.2) / 6362.55

r = 1335 / 6362.55

r = 0.2099

b)

Draw stress = σd

Y' = k = 105 MPa

Φ = 0.88 + 0.12(D/Lc), where

D = 0.5 (90 + 80) = 85 mm

Lc = 0.5 [(90 - 80)/sin 18] = 16.18 mm

Φ = 0.88 + 0.12(85/16.18) = 1.51

σd = Y' * (1 + μ/tan α) * Φ * In(A''/A')

σd = 105 * (1 + 0.08/tan18) * 1.51 * In(6362.55/5027.2)

σd = 105 * 1.246 * 1.51 * 0.2355

σd = 46.5 MPa

c)

F = A' * σd

F = 5027.2 * 46.5

F = 233764.8 N

d)  

P = 233764.8 (1 m/min)

P = 233764.8 Nm/min

P = 3896.08 Nm/s

P = 3896.08 W

6 0
4 years ago
Can you think of a product that you love even though it may not work perfectly? Why do you love it?
Nadya [2.5K]

Answer: Can you think of a product that you love even though it may not work perfectly? Why do you love it?

Explanation: headphone even if they half broken like the ones i have one rn cus i can block my classmates out by blasting my music loudly in the headphones

6 0
3 years ago
What engine does chrysler 300c have?​
dmitriy555 [2]

Answer:

5.7 hemi v8

Explanation:

it has the 5.7 hemi v8 engine and the SRT comes with 6.1 version

3 0
3 years ago
Consider a unidirectional continuous fiber-reinforced composite with epoxy as the matrix with 55% by volume fiber.i. Calculate t
ohaa [14]

Answer:

I)E= 40.95 GPa

II)E=5.29 GPa

Explanation:

I)

Given that

E₁ = 2.41 GPa  ,V₁=1-0.55 = 0.45

E₂ = 72.5 GPa   ,V₂=0.55

Longitudinal moduli  given as ;

E= E₁V₁+E₂V₂

E= 2.41 x 0.45 + 72.5 x 0.55 GPa

E= 40.95 GPa

II)

E₁ = 2.41 GPa  ,V₁=1-0.55 = 0.45

E₂ =230 GPa   ,V₂=0.55

Transverse moduli given as:

\dfrac{1}{E}=\dfrac{V_1}{E_1}+\dfrac{V_2}{E_2}

\dfrac{1}{E}=\dfrac{0.45}{2.41}+\dfrac{0.55}{230}

E=5.29 GPa

7 0
3 years ago
Other questions:
  • A feeder is supplying a 125-ampere, 240-volt panelboard in a multifamily dwelling. The conductors will be THHN aluminum conducto
    10·1 answer
  • A mass of 2 kg is suspended from a vertical spring of stiffness 15 kN/m and subject to viscous damping of 5 Ns/m. What is the am
    9·1 answer
  • An open 1- -m-diameter tank contains water at a depth of 0.7 m when at rest. As the tank is rotated about its vertical axis the
    5·2 answers
  • A westbound section of freeway currently has three 12-ft wide lanes, a 6-ft right shoulder, and no ramps within 3 miles upstream
    6·1 answer
  • Problem 4: Air flows into an open system and carries energy at the rate of 100 kW. When the air leaves the system, the energy ra
    12·1 answer
  • What impact does modulus elasticity have on the structural behavior of a mechanical design?
    14·1 answer
  • Air enters a compressor at 100 kPa, 10°C, and 220 m/s through an inlet area of 2 m2. The air exits at 2 MPa and 240°C through an
    10·1 answer
  • If the middle bend of a three-bend saddle is a 30-degree bend
    6·2 answers
  • En que consiste la ley del emprendimiento ?
    13·1 answer
  • The minimum recommended standards for the operating system, processor, primary memory (RAM), and storage capacity for certain so
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!