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
Which of the following is not a relationship set between elements in a sketch​
Svet_ta [14]

Answer:

The entity relationship (ER) data model has existed for over 35 years. It is well suited to data modelling for use with databases because it is fairly abstract and is easy to discuss and explain. ER models are readily translated to relations. ER models, also called an ER schema, are represented by ER diagrams.

6 0
2 years ago
Answer true or false 3.Individual people decide what will be produced in a command<br> oconomy
Pie

Answer:

False

Explanation:

The government decides the productions.

7 0
4 years ago
Read 2 more answers
Sawing stock to reduce its thickness is known as __________ .
rjkz [21]

Answer:

resawing

Explanation:

8 0
4 years ago
If you were driving the blue Prius in the situation pictured above, explain why the red Mustang should be given right-of-way at
dexar [7]

Answer:

The blue Prius, because the Mustang arrived almost in the same time. And when you arrive in an intersection at the same time of other vehicle you need yield for the car on your right if the car is on your left you have the right of way.

Explanation:

4 0
3 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
Other questions:
  • System grounding on a power system means electrically connecting the __?__ of every wye-connected transformer or generator to ea
    12·1 answer
  • Determine displacement (in) of a 1.37 in diameter steel bar, which is 50 ft long under a force of 27,865 lb if elasticity modulu
    5·1 answer
  • Which of the following is not an example of heat generation? a)- Exothermic chemical reaction in a solid b)- Endothermic Chemica
    15·1 answer
  • This search compares the target value with the middle element in the collection, then ignores the half of the collection in whic
    11·1 answer
  • Airplanes typically have a Pitot-static probe located on the underside that measures relative wind speed as the airplane flies.
    6·1 answer
  • Does anyone know obamas last name???? please help its for a friend I swear!!!111!!11!
    8·1 answer
  • Technician A says when you push the horn button, electromagnetism moves an iron bar inside the horn, which opens and closes cont
    5·2 answers
  • What do you think of web 3.0? do you think it will be realized someday in the future?​
    5·1 answer
  • Which work practice should be followed to best prevent the ingestion of chemicals?
    7·1 answer
  • 3. What is special about beryllium-copper alloy tools?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!