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
You are given a noninverting 741 op-amp with a dc-gain of 23.6 dB. The input signal to this amplifier is;Vin(t) = (0.18)∙cos(2π(
Vsevolod [243]

Answer:

Output voltage equation is V_{out} (t) = 2.72 \cos (2\pi (57000)t +18.3)

Explanation:

Given:

dc gain A = 23.6 dB

Input signal V_{in} (t) = 0.18 \cos (2\pi (57000)t +18.3)

Now convert gain,

A = 10^{\frac{23.6}{20} } = 15.13

DC gain at frequency f = 0 is given by,

  A = \frac{V_{out} }{V_{in} }

V_{out} =AV_{in}

V_{out} = 15.13 \times   0.18 \cos (2\pi (57000)t +18.3)

At zero frequency above equation is written as,

V_{out} = 2.72 \times \cos 18.3

V_{out} = 2.72

Now we write output voltage as input voltage,

V_{out} (t) = 2.72 \cos (2\pi (57000)t +18.3)

Therefore, output voltage equation is V_{out} (t) = 2.72 \cos (2\pi (57000)t +18.3)

7 0
3 years ago
What does it mean when it says technology is A dynamic process
Degger [83]

Answer:

It studies the process of technological change. Under the field of Technology Dynamics the process of technological change is explained by taking into account influences from "internal factors" as well as from "external factors

Explanation:

5 0
3 years ago
A square-thread power screw has a major diameter of 32 mm and a pitch of 4 mm with single threads, and it is used to raise a loa
Valentin [98]

Answer:

54mm.

Explanation:

So, we are given the following data or parameters or information that is going to assist in solving this type of question efficiently;

=> "A square-thread power screw has a major diameter of 32 mm"

=> "a pitch of 4 mm with single threads"

=> " and it is used to raise a load putting a force of 6.5 kN on the screw."

=> The coefficient of friction for both the collar and screw is .08."

=> "If the torque from the motored used to raise the load is limited to 26 N×M."

Step one: determine the lead angle. The lead angle can be calculated by using the formula below;

Lead angle = Tan^- (bg × T/ Jh × π ).

=> Jh = J - T/ 2. = 32 - 4/2. = 30mm.

Lead angle = Tan^- { 1 × 4/ π × 30} = 2.43°.

Step two: determine the Torque required to against thread friction.

Starting from; phi = tan^-1 ( 0.08) = 4.57°.

Torque required to against thread friction = W × Jh/2 × tan (lead angle + phi).

Torque required to against thread friction =( 6500 × 30/2) × tan ( 2.43° + 4.57°). = 11971.49Nmm.

Step three: determine the Torque required to against collar friction.

=> 2600 - 11971.49Nmm = 14028.51Nmm.

Step four = determine the mean collar friction.

Mean collar friction = 14028.51Nmm/0.08 × 6500 = 27mm

The mean collar diameter = 27 × 2 = 54mm.

5 0
3 years ago
A remote village on an island was devastated by a typhoon. Farmland was flooded and the crops
insens350 [35]

Answer:

A flood happens when water overflows or soaks land that is normally dry. flooding, happens when a large storm or tsunami causes the sea to They soon fell ill and died from cholera, which is spread by  Rice, wheat, and corn crops were destroyed.  Excess water overflows and runs on top of the land.

Explanation:

hope this helps

6 0
3 years ago
When asked about favorite Thanksgiving leftovers, 9% of the people said turkey and 7100 said mashed potatoes. Which food is more
irakobra [83]

Answer:

how many people were asked though

Explanation:

8 0
3 years ago
Other questions:
  • Write a grammar for a language whose sentences start with an even and non-zero number of x’s, end with an odd number of z’s, and
    11·1 answer
  • A stream of air enters a 7.00-cm ID pipe at a velocity of 30.0 m/s at 27.0°C and 1.80 bar (gauge). At a point downstrream, the a
    15·1 answer
  • A thick oak wall (rho = 545 kg/m3 , Cp = 2385 J/kgK, and k = 0.17 W/mK) initially at 25°C is suddenly exposed to combustion prod
    11·1 answer
  • Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print
    10·1 answer
  • Zionjasean17 zionjasean17
    8·2 answers
  • La Patrulla Fronteriza de los Estados Unidos analiza la compra de un helicóptero nuevo para la vigilancia aérea de la frontera d
    14·1 answer
  • According to the article, what is one reason why commercial carmakers aim to develop driverless technology?
    9·1 answer
  • Which of the following is not caused by alcohol?
    10·2 answers
  • Which of the following is true regarding screw gauges and shank?
    5·1 answer
  • Most goals
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!