Program to store lists of names and ages in parallel arrays

Assignment Help C/C++ Programming
Reference no: EM1353944

Write a C++ program that stores lists of names (the last name first) and ages in parallel arrays and sorts the names into alphabetical order keeping the ages with the correct names. The original arrays of names and ages should remain no changes. Therefore, you need to create an array of character pointers to store the addresses of the names in the name array initially. Apply the selection sort to this array of pointers so that the corresponding names are in alphabetical order. You should use another array of pointers to age array to make sure the age is corresponding to the correct name. Please see the additional program requirements at the bottom of this page.

Create a class named Student which contains name array and age array.

Problem Requirement

a) You must create three separate files: Student.h, Student.cpp, and Lab5.cpp files.

b) Your program should run correctly with the same inputs and outputs as given in the sample run.

Reference no: EM1353944

Questions Cloud

Group development and organizational culture : Explain what kinds of behaviors would you expect to see in the forming stage, and what can you do to solidify the team
Strength of organizational culture : Explain what do they mean by the strength of organizational culture, and what possible problems are there with a strong organizational culture?
Elucidate do you agree with the student reasoning : increases the amount of a product that consumers buy because it keeps the price below the competitive market equilibrium. Elucidate do you agree with the student's reasoning.
Explain when successfully building loyalty and community : Explain When successfully building loyalty and community and trust seems to be the biggest factor. How can a company build trust and Should consumers trust companies?
Program to store lists of names and ages in parallel arrays : Write a C++ program that stores lists of names (the last name first) and ages in parallel arrays and sorts the names into alphabetical order keeping the ages with the correct names.
Illustrate what is happening to the value of the us dollar : Illustrate what is happening to the value of the US dollar these days. What causes the value of the US dollar to rise or fall.
Find the measured frequency for the light : A distant galaxy is simultaneously rotating and receding from the earth. As drawing shows, the galactic center is receding from the earth at a relative speed of uG = 1.8 x 10^6 m/s.
Explain culture and the filter of the social system : Focus on a culture different from your own and how do communication styles vary according to age, sex, and status of speakers in that culture?
Explain what do you think netflix''s prospects : Explain What do you think Netflix's prospects are for the future and In five years and who will be its primary competitors

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Problems on oops

Problems on OOPS

  Create a program for a company named retail-mart

Prompt the user to enter an item name (one word only), a quantity and a price. For this step, in addition to functionality, I'll be looking at: location of the variable declarations; appropriateness of data types selected; appropriateness of the va..

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Uml diagram of all the classes

Speaking of converting into the correct object-type, the goal of the factory is to abstract away object creation.

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

  Basics of code development on linux and cryptography

Prepare a C program that gives simple mono-alphabetic substitution between plaintext, and Enhance your code to use "-e" to encrypt a string argument and "-d" to decrypt it using argv and argc

  Implement the tronomino tiling algorithm

Implement the tronomino tiling algorithm,  our program should take an arbitrary input positive integer  k  in the Linux command line and generate a 2 k  * 2 k  board.

  Prepare a businesspartner

Prepare a BusinessPartner class that contains a company name, first name and a telephone number.

  Write a program that inputs a dollar amount to be printed

Write a program that inputs a dollar amount to be printed on a check and then prints the amount in check-protected format with leading asterisks if necessary

  Develop a two dimensional interactive game

The player starts as a disk, but can "morph" (that is expand and contract) in selected directions

  Write a program that will be used to gather statistical data

Write a program that will be used to gather statistical data about the number of movies

  Write a complete c++ program

The main program will read in a parameter value n (read this in main). Then it will call a function read2arrays (details below) to read lists of grades into two arrays, which the main program will call test1 and test2 (or some other names of your ..

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