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

  What is an erp system

What is an ERP system? What are the top three reasons companies choose to use it as the basis for designing their information systems?

  Can someone explain to me what is wrong

Provided is two functions. The function addLarge is called from main and is supposed to retrieve two strings from the user and print those strings. When I compile this code, only the second string prints. Can someone explain to me what is wrong?

  Find a recurrence relations

Find a recurrence relations and initial conditions for the number of bit strings of length n that do not contain three consecutive zeros . please explain full

  Privacy protection act and forensic computer science

Research a scholarly paper in two paragraphs summaries. First paragraph is a summary of the article and the second paragraph is a reaction or discussion to the article. - Must be in APA formatTopic 1: Privacy Protection Act,

  Example of weighted directed grap with weight function

Provide an example of weighted directed graph G = (V, E) with weight function ω:E→R and source vertex s such that G satisfies following property.

  Adding two unsigned and signed binary numbers

Add the two binary numbers and interpret the sum assuming that the numbers are (1) unsigned, and (2) signed.

  Convert the decimal integer

Convert the decimal integer -24 to 16 bit and 32 bit two's complement hexadecimal representation. show your calculations.

  Write the code of the main part of the program

Write the code of the main part of the program so that the code only uses the operations enqueue, dequeue, size, and isEmpty. Then, show that your program works with both types of queue implementation { as a linked list and as an array.

  How can organizations in a global market

how can organizations in a global market utilize Enterprise Content Management technology to maintain governance and control over content in ensuring regulatory compliance

  Swimlane-hypothesis space

Assignment need to be done. It is about swimlane. I am attaching document and example of how it suppose to be done.

  Create a sequentially numbered array

Create a sequentially numbered array of 50 integers. Then use the Random_range procedure to shuffle the array in a random order.(Each number will only appear once in the array.) Display the shuffled array.

  What is the paintcomponent method

Describe the types of information available to a program when using the KeyListener interface.

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