Create two arrays with 5 elements each

Assignment Help Basic Computer Science
Reference no: EM13308484

Using One Dimensional Parallel arrays.(C++ Program)

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.

Sample Run: Your program must run exactly like the example below.

Enter a student name: Joe

Enter a student name: Mark

Enter a student name: Mary

Enter a student name: Michelle

Enter a student name: Aaron

Enter Joe's Age: 25

Enter Mark's Age: 24

Enter Mary's Age: 35

Enter Michelle's Age: 19

Enter Aaron's Age: 65

Joe 25

Mark 24

Mary 35

Michelle 19

Aaron 65

 

Reference no: EM13308484

Questions Cloud

Natural law and the fiduciary duties of business managers : Joseph Johnston argues, in his article, Natural Law and the Fiduciary Duties of Business Managers that..."Simply put, stakeholder theory sounds good in social theory but will not work in practice."
Generate a random number for the user and for the monster : I have been trying for days to figure out how to get this working, but have yet to succeed in doing so. Can some please help me with this?
Define calculations and format the table : internship at Mountain View Realty, a real estate firm that focuses in the North Utah County area. The previous intern developed a spreadsheet listing houses listed and sold during the last several months. She included addresses, location, list pr..
What would be reading on barometer containing benzene : What would be the reading on a barometer containing Benzene at 20 degrees Celsius at a time when the atmospheric pressure was equivalent to 12.3 m of water
Create two arrays with 5 elements each : Create two arrays with 5 elements each: one will hold Strings and the second will hold integers.
Discuss approaches that would attack this problem : Suppose a developed nation’s economy historically had an economic growth rate of 3% but over the last 10 years, that rate hovered around 2%.  In the last two years, assume it appears to have fallen further
Write a program that reads a file containing two columns : write a program that reads a file containing two columns of floating-point numbers. prompt the user for the file name. print the average of each column in c++.
What is molar concentration of chemical that will dissolve : A 1,000 L water tank contains 1,200 moles of an experimental chemical that is a weak acid with pka of 7.2. The PH of the tank is 9.0. what is molar concentration of the chemical that will dissolve in the water at PH 9.0

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Declare an arraylist named taxrates

Declare an ArrayList named taxRates of five elements of type Double and initialize the elements (starting with the first) to the values 0.10 , 0.15 , 0.21 , 0.28 , 0.31 , respectively.

  Using the sql schema generation feature of the modeling tool

Consider the description of UNIVERSITY database below. Using the SQL schema generation feature of the modeling tool, generate the SQL schema and diagram for an Oracle database.

  Query decomposition

Query Decomposition

  Design combinational circuit that compute 4-bit leading zero

Design a combinational circuit that computes the 4-bit leading zero detecting function. A leading zero detecting function counts the number of zeros in the most significant bits before the first '1'.

  Write a program that computes the quotient and remainder

Write a program that computes the quotient and remainder using IJVM instructions and mic1 software. Please provide IJVM instructions!

  What is the proper syntax of declaring a c-style string

Take a look at the following program -- #include using namespace std; int main( ) { char name[100]; //declare a character array cout > name; cout

  Operating system machine level identical to isa language

Some instruction at operating system machine level are identical to ISA language instruction. These instruction are performed by micro program rather than by operation system.

  There are four conditions that are necessary

There are four conditions that are necessary for a deadlock to occur. Give an example to show that these conditions are not sufficient for a resource deadlock to occur. When are these conditions sufficient for a resource deadlock to occur? Explain..

  Significant questions software installed by cable personnel

Interesting post on the computer discussion site (Slashdot) raises some significant questions about software installed by cable personnel.

  Design a block of memory

Design a block of memory which is 512K x 8 bits using memory chips which are 128K x 8 bits. Assume that the chips are ROM with Chip Enable inputs, and Output Enable inputs. How many address inputs do the individual chips have?

  How to boost over company-s former speed champ

Explain the definition (or definitions) of performance which you think the company utilzed. Do you believe the news release is misleading?

  Create an new windows form application

Create an new windows form application. Add 2 controls that can display multi-line text. Use the application to enter data into an ArrayList (or you can initialize the arrayList via the application).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd