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
For some transformation having kinetics that obey the Avrami equation (Equation 10.17), the parameter n is known to have a value
OleMash [197]

Answer:

t = 25.10 sec

Explanation:

we know that Avrami equation

Y = 1 - e^{-kt^n}

here Y is percentage of completion  of reaction = 50%

t  is duration of reaction = 146 sec

so,

0.50 = 1 - e^{-k^146^2.1}

0.50 = e^{-k306.6}

taking natural log on both side

ln(0.5) = -k(306.6)

k = 2.26\times 10^{-3}

for 86 % completion

0.86 = 1 - e^{-2.26\times 10^{-3} \times t^{2.1}}

e^{-2.26\times 10^{-3} \times t^{2.1}} = 0.14

-2.26\times 10^{-3} \times t^{2.1} = ln(0.14)

t^{2.1} = 869.96

t = 25.10 sec

5 0
3 years ago
Zander worked at a pet shop in high school and during college began taking classes in veterinary medicine. To pay the bills duri
anastassius [24]
True.
To understand it better
First job : Pet shop
Second job : pizza place
The first job supports his career path he has experience.
The second job support life in making sure he gets to his career path/ does help financially for him to get there.
And it’s called career pathway.
3 0
2 years ago
Which option identifies the next step in the following scenario?
Whitepunk [10]

Answer: The engineer will create a detailed sketch that labels all of the visual components.

Explanation:

It should be noted that the reverse engineering is required for the replacement and the modification of an existing product.

With regards to the question, the correct answer is option A "The engineer will create a detailed sketch that labels all of the visual components".

4 0
3 years ago
A world class runner can run long distances at a pace of 15 km/hour. That runner expends 800 kilocalories of energy per hour. a)
maks197457 [2]

Answer: a) 1.05kW b) 3.78MJ c) 5.3 bars

Explanation :

A)

Conversions give 900 kcal as 900000 x 4.2 J/cal {4.2 J/cal is the standard factor}

= 3780kJ

And 1 hour = 3600s

Therefore, Power in watts = 3780/3600 = 1.05kW = 1050W

B)

At 15km/hour a 15km run takes 1 hour.

1 hour is 3600s and the runner burns 1050 joule per second.

Energy used in 1 hour = 3600 x 1050 J/s

= 3780000 J or 3.78MJ

C)

1 mile = 1.61km so 13.1 mile is 13.1 x 1.61 = 21.1km

15km needs 3.78 MJ of energy therefore 21.1km needs 3.78 x 21.1/15 = 5.32MJ =5320 kJ

Finally,

1 Milky Way = 240000 calories = 4.2 x 240000 J = 1008000J or 1008kJ

This means that the runner needs 5320/1008 = 5.3 bars

7 0
3 years ago
What is the best reason a scientist might use a model to represent the solar system?
uranmaximum [27]
So they can grasp a better understanding! good luck
3 0
3 years ago
Other questions:
  • You are watching the weather forecast and the weatherman says that strong thunderstorms and possible tornadoes are likely to for
    15·1 answer
  • A water-filled manometer is used to measure the pressure in an air-filled tank. One leg of the manometer is open to atmosphere.
    15·1 answer
  • An air conditioning system operating on reversed carnot cycle is required to remove heat from the house at a rate of 32kj/s to m
    5·1 answer
  • 14. Tires are rotated to
    12·2 answers
  • wo companies, Ajax Co. and Boho Inc., were negotiating a merger. In the course of the negotiations, an Ajax representative told
    15·1 answer
  • Ratio equivalent to 12 red beans to 5 total beans
    15·1 answer
  • Technician A says that a way to prevent galvanic corrosion is to duplicate the original installation method. Technician B says t
    12·1 answer
  • How can statistical analysis of a dataset inform a design process
    8·1 answer
  • Characteristics of 3 types of soil​
    10·1 answer
  • 10.) A solid circular titanium control rod at 7,000 lb axial tension force where stress must not
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!