Write c++ program- keeps track of an array of person objects

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

Write a C++ program that keeps track of an array of Person objects and handles basic commands.

The Person object contains the following fields:

FirstName{ string }
LastName{ string }

INSERT - inserts a Person into the array based on user input, sorts the array by last name, and prints out all of the entries in the array. (Format: INSERT - LastName, FirstName)

If a given Person already exists in the array, then the program will return an error message to the user.

If the user input does not follow the LastName, FirstName format, then the program will return an error message to the user.

Example:

Input - INSERT - Smith, John
Output
Doe, Jane
Smith, John

VIEW - prints out the current array. (Format: VIEW)

Example:

Input - VIEW
Output
Doe, Jane

Smith, John

DELETE - deletes a person from the array based on user input, sorts the array, and prints out all of the entries in the new array. (Format: DELETE - LastName, FirstName)

Example:

Input - DELETE - Smith, John
Output
Doe, Jane

If the Person to be deleted from the array does not exist in the array, then the program will return an error message to the user.

If the user input does not follow the LastName, FirstName format, then the program will return an error message to the user.

Utilize functions, loops, and pointers where applicable, and remember to include error handling to let the user know if something went wrong during your program.

Reference no: EM131081867

Questions Cloud

Shareholder theory versus stakeholder theory : Explain the basics of stakeholder theory as if you are talking to a friend. Should a corporation care about the interests of people other than shareholders? How would a corporation behave differently if it accepted a shareholder theory versus a stake..
Social media usage differences around the world : Can you find the services that are most popular in Russia and Middle Eastern countries? Based on the information you find, what can you conclude about social media usage differences around the world?
Describing individuals socioeconomic status : America is stratified into levels describing individuals’ socioeconomic status: upper class, middle class, working class, and the poor. Describe characteristics of each class and, when appropriate, the sub-classes.
Calculate the compound growth rate in sales and earnings : Develop some additional financial data which will further illustrate the companys condition - calculate the compound growth rate in sales and earnings for the company.
Write c++ program- keeps track of an array of person objects : Write a C++ program that keeps track of an array of Person objects and handles basic commands.
Would you like to play this game every day : Would you like to play this game every day?
Consumer prepurchase expectations : The disconfirmation paradigm is used to study two variables: consumer prepurchase expectations and _____. A. consumer behaviors related to the buying process B. decision-making roles within the purchase process C. the relationship between product kno..
Searching textual documents : Your company has been hired to design a product that will provide searches of textual documents and database querying. Your design team has not developed a product like this before.
Understate productive contributions of women relative to men : GDP does not count productive services, such as child care, food preparation, cleaning, and laundry, provided within the household. Why are these things excluded? Is GDP a sexist measure? Does it understate the productive contributions of women relat..

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