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

  Write a program for find greatest common divisor

Write code for a recursive implementation of Euclid's algorithm

  Write a bouncing ball video game

The balls bounces within the screen where the two horizontal walls are fixed

  Perform operations on arrays

Perform operations on arrays execute tests and repetitions

  Write two short c programs and solve exam-style problem

Write two short C programs and solve four exam-style problems.

  Implement the guess the word

Implement  the ‘Guess the Word' game in an object-oriented manner

  Computer programming techniques

Construct a program from a design and use appropriate functions

  Write a program to calculate students average test scores

Write a program to calculate students average test scores

  Design a simple game of blackjack

Prepare a simple game of blackjack using object oriented programming.

  Computer programming using c language lab

Computer programming using c language lab

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Create class integerset

Create class IntegerSet for which each object can hold integers in the range 0 through 100. Represent the set internally as a vector of bool values. Element a[i] is true if integer i is in the set. Element a[j] is false if integer j is not in the set..

  Give students practice in writing and calling their function

To give students practice in writing and calling their own functions. To give students practice in implementing and planning complex programs.

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