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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  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.

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