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

  C assignment of curl library

C Assignment Curl library must be used To be done on linux, it should be compiled using the following command: gcc -Wall -ansi -pedantic NameOfFile.c -lncurses Please make sure it is commented with clarification Variable names in camel case

  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

  Implement database having array of pointers

One way to implement this database is to have an array of pointers pointing to Employee objects. You will obviously require a function named Calculate_salary() which will be different for each employee class. Write code in c++

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

  Convert celsius temperatures to fahrenheit temperatures

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

  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.

  Structured programming using procedural languages

A a program that is called "Playing with Numbers or Letters".

  A hierarchical jpeg encode decoder for greyscale images

This project is to develop a program that implements a hierarchical JPEG encoder/decoder for greyscale images.

  Develop a basic temperature class

You have to develop a basic temperature class

  Write a driver program called testrationalnumber.cpp

Write a driver program called testRationalNumber.cpp to test each of the above functions and overloaded operators in the RationalNumber class.

  Function declare that it can throw an ioexception

Every C++ function that performs file I/O will thus need to either declare that it can throw an IOException, or contain a try-catch-finally block to deal with it. Response?

  Write a matrix multiplication program

Write a C++, matrix multiplication program which you can instrument to monitor and measure execution time as a function of problem size. Make sure it works in Microsoft Visual Studio.

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