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 types of protection is an employer required to pay for?
77julia77 [94]

Answer:

Hearing protection would be your answer!

Explanation:

This includes earplugs,muffs etc.

Hope it helps!

7 0
3 years ago
Read 2 more answers
The Micro:bit is considered a what?
Scrat [10]

Sorry need points I'm new

3 0
3 years ago
A steel pipe of 400-mm outer diameter is fabricated from 10-mm-thick plate by welding along a helix that forms an angle of 20° w
Verdich [7]

Explanation:

Outer di ameter d_{0}=400 \mathrm{mm}[tex] Thickness of the cylinder [tex]t=10 \mathrm{mm}

\therefore[tex] Inner diam eter [tex]d_{i}=d_{0}-2 t=400-2 \times 10

d_{1}=380 \mathrm{mm}

Given loading on the cylinder P=300 \mathrm{kN} Helix an gle of the weld form \theta=20^{\circ}

(i) Normal stress on the plane at angle \theta=20^{\circ} is

\sigma=\frac{P \cos ^{2} \theta}{A_{0}}

\text { Where } A_{0}=\frac{\pi}{4}\left(d_{0}^{2}-d_{1}^{2}\right)

\quad=\frac{\pi}{4}\left(400^{2}-380^{2}\right)

=12252.21 \mathrm{mm}^{2}

=12.25221 \times 10^{-9} \mathrm{m}^{2}

\sigma=\frac{-300 \times 10^{2} \times \cos ^{2} 20}{12.25221 \times 10^{-1}}

=-21.6 \mathrm{MPa}

(ii) Shear stress along an angle of \theta=20^{\circ} is \tau=\frac{P}{A_{0}} \cos \theta \sin \theta

=\frac{-300 \times 10^{-1} \times \cos 20 \times \sin 20}{12.25221 \times 10^{-3}}

=-7.86 \mathrm{MPa}

3 0
3 years ago
Carbon nanotubes can be a considered toxic agent due to: (a)- Its ability to produce toxic gases (b)Its ability to penetrate ski
SpyIntel [72]

Answer: b)Its ability to penetrate skin quickly due to its very small diameter

Explanation: Carbon nano tubes(CNT) are the material widely used in the medical field due to the atomic structure of it ans also have small size. Toxicity in the carbon nano tubes is because their small sized atomic particles which can enter the skin by penetration or inhalation. But are still preferred in the medicine because having unique properties like mechanical property, chemical property,surface property etc.

4 0
3 years ago
A differential amplifier is very useful for removing common mode noise voltage that might be fed or induced in the signal cables
Reptile [31]
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed.
TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of that third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation.
Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements.
I think will help
7 0
3 years ago
Other questions:
  • Line.
    9·1 answer
  • Consider a simple ideal Rankine cycle and an ideal regenerative Rankine cycle with one open feedwater heater. The two cycles are
    15·1 answer
  • Refectories are one of the types of ceramics that have low melting temperature. a)-True b)-False
    7·1 answer
  • 1. What is an op-amp? List the characteristics of an ideal op-amp
    11·1 answer
  • 5. Create a function named second_a that uses a list comprehension. The function will take a single integer parameter n. Find ev
    7·1 answer
  • Manufacturing employees who perform assembly line work are referred to as
    7·2 answers
  • Strands of materials A and B are placed under a tensile force of 10 Newtons. Material A deforms more than Material B.
    5·2 answers
  • A fair die is thrown, What is the probability gained if you are told that 4 will
    12·1 answer
  • A _______ contact allows current to flow when the switch's operator is not activated.?
    6·1 answer
  • PDC Bank is working on creating an AI application that enables customers to send SMS to the AI application to allow banking acti
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!