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
What classification is an E7018?<br><br> will give brainliest
Hunter-Best [27]

Answer: E7018 is a low-hydrogen iron powder type electrode that produces high quality x-ray welds. It can be used in all positions on AC or DC reverse polarity welding current.

Explanation: Hope this helps

3 0
3 years ago
If you touch a downed power line, covered or bare, what's the likely outcome?
olya-2409 [2.1K]

Answer:

you get electrocuted...........

5 0
3 years ago
Read 2 more answers
I WILL GIVE 20 POINTS!!
Alex777 [14]

Answer:

Use a resume header

Explanation:

Create a Summary

Research industry, employer keywords

there are some hints okay

5 0
3 years ago
Read 2 more answers
Determine the enthalpy, volume and density of 1.0 kg of steam at a pressure of 0.5 MN/m2 and with a dryness fraction of 0.96
Viktor [21]

Answer:

Enthalpy, hsteam = 2663.7 kJ/kg

Volume, Vsteam = 0.3598613 m^3 / kg

Density = 2.67 kg/ m^3

Explanation:

Mass of steam, m = 1 kg

Pressure of the steam, P = 0.5 MN/m^2

Dryness fraction, x = 0.96

At P = 0.5 MPa:

Tsat = 151.831°C

Vf = 0.00109255 m^3 / kg

Vg = 0.37481 m^3 / kg

hf = 640.09 kJ/kg

hg = 2748.1 kJ/kg

hfg = 2108 kJ/kg

The enthalpy can be given by the formula:

hsteam = hf + x * hfg

hsteam = 640.09 + ( 0.96 * 2108)

hsteam = 2663.7 kJ/kg

The volume of the steam can be given as:

Vsteam = Vf + x(Vg - Vf)

Vsteam = 0.00109255 + 0.96(0.37481 - 640.09)

Vsteam = 0.3598613 m^3 / kg

From the steam table, the density of the steam at a pressure of 0.5 MPa is 2.67 kg/ m^3

5 0
3 years ago
What safety mechanism is sometimes disabled on a nail gun leading you to
Irina-Kira [14]

Answer: The NRA uses the general term “trigger control” to describe the act of moving the trigger and firing the gun without disturbing aim. ... The best method of controlling a trigger, for all levels of shooters, is to move the trigger straight to the rear, firing the gun without disturbing aim.

Hoped this Helped!!!!!

5 0
4 years ago
Other questions:
  • What are potential impacts of clean energy? Predict the impact on future<br> generations.
    14·1 answer
  • Define coordination number. How does this differ from atomic packing factor?
    7·1 answer
  • An air-conditioner with refrigerant-134a as the working fluid is used to keep a room at 23°C by rejecting the waste heat to the
    15·1 answer
  • Hot engine oil with heat capacity rate of 4440 w/k (product of mass flow rate and specific heat) and an inlet temperature of 150
    13·1 answer
  • Which is an alloy made up of iron and carbon and has high compressive and tensile strength?
    6·1 answer
  • How old is turtleman
    6·2 answers
  • Answer my question I will mark brainliest
    13·2 answers
  • What are some advantages of making electronic components like transistors increasingly smaller? (40 POINTS) Pls help
    9·1 answer
  • When servicing piston rods and pins it is important to always
    12·2 answers
  • Most of the energy used by the built environment comes from what source?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!