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
The most important element of green construction is that it is a(n) __________ approach to building. *
madam [21]
Environmentally friendly


Since it focuses on are sustainable and efficient with and are made with the future in mind.
5 0
3 years ago
Joe is a chemical engineer whose plant discharges heavy metals into the local river. By the test authorized by the city governme
chubhunter [2.5K]

Answer:

B probably

Explanation:

Because the prompt doesn't specify what sort of violation it could be anything maybe when they release the metals during the day and so on.

5 0
2 years ago
Two resistors, A and B, individually connect to a 9V battery. A student notices that resistor A is warmer than resistor B. Which
dybincka [34]

Answer:

Resistor B

Explanation:

Since resistance is the opposition to the flow of current in a circuit,

first let assume the two resistors are connected in parallel to the voltage, recall that when connection is in parallel, the different amount of current pass through the resistors depending on the value with the small resistor having  a lower resistance effect hence higher current will pass through

The energy dissipated in each resistor can be calculated as

E=\frac{1}{2}IR^{2}t.

from the formula we can conclude that the energy value will be higher for the resistor with small resistance value. hence more heating effect which will cause it to be warm.

Also when connected individually the current flow from the voltage source will pass through the resistor which when we calculate the energy dissipated, the resistor with smaller value will be higher because it will draw more current which will in turn lead to a heating effect and cause the resistor to be warm. Hence we can conclude that the resistance B has greatest resistance value.

4 0
3 years ago
can anyone give me tips on adding HP to my 2014 dodge charger SE? it uses the 3.6L220 CI 24 valve v6 vvt (variable valve timing)
marissa [1.9K]
<h2>ANSWER</h2><h2></h2>

I had a couple of answers for this, but when I checked nothing

was right, so im not sure.

<h2></h2>

5 0
2 years ago
A resistor, an inductor, and a capacitor are connected in series to an ac source. What is the condition for resonance to occur?.
vaieri [72.5K]

Answer:if power factor =1 is possible for that.

Explanation:when pf is unity. means 1.

6 0
1 year ago
Other questions:
  • Which pendulum will.mobe faster​
    13·1 answer
  • function summedValue = SummationWithLoop(userNum) % Summation of all values from 1 to userNum summedValue = 0; i = 1; % Write a
    11·1 answer
  • A vehicle experiences hard shifting. Technician A says that the bell housing may be misaligned. Technician B says that incorrect
    5·1 answer
  • A piston/cylinder contains 1.5 kg of water at 200 kPa, 150°C. It is now heated by a process in which pressure is linearly relate
    14·1 answer
  • Write a function separatethem that will receive one input argument which is a structure containing fields named length and width
    8·1 answer
  • When a user process is interrupted or causes a processor exception, the x86 hardware switches the stack pointer to a kernel stac
    13·1 answer
  • In the High Low Logic Index low levels are bearish and high levels are bullish, generally True False
    13·1 answer
  • The velocity components expressed in m/s<br>​
    6·1 answer
  • Is santa real or nah is santa real or nah
    7·2 answers
  • please help me answer 3 of these questions in complete sentences. this is ccrd 1 related to jobs and college. thanks so much if
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!