Define a class extpersontype

Assignment Help Basic Computer Science
Reference no: EM131355470

In C++, Using classes, design an online address book to keep track of the names, addresses, phone numbers, and dates of birth of family members, close friends, and certain business associates. Your program should be able to handle a maximum of 500 entries.

a. Define a class, addressType, that can store a street address, city, state, and zip code. Use the appropriate functions to print and store the address. Also, use constructors to automatically initialize the data members.

b. Define a class extPersonType using the class personType (as defined in Example 1-12, Chapter 1), the class dateType (as designed in Programming Exercise 2 of Chapter 2), and the class addressType. Add a data member to this class to classify the person as a family member, friend, or business associate. Also, add a data member to store the phone number. Add (or override) the functions to print and store the appropriate information. Use constructors to automatically initialize the data members.

c. Derive the class addressBookType from the class arrayListType, as defined in this chapter, so that an object of type addressBookType can store objects of type extPersonType. An object of type addressBookType should be able to process a maximum of 500 entries. Add necessary operations to the class addressBookType so that the program should perform the following operations:

i. Load the data into the address book from a disk.

ii. Search for a person by last name.

iii. Print the address, phone number, and date of birth (if it exists) of a given person.

iv. Print the names of the people whose birthdays are in a given month or between two given dates.

v. Print the names of all the people having the same status, such as family, friend, or business.

vi. Print the names of all the people between two last names.

Reference no: EM131355470

Questions Cloud

How many enrolled members are there in the tribe : Select an official Native American group (one on the official federal list). Where are they located in the U.S. today?Were they forcibly removed from their ancestral lands? How?Do they have a reservation today?
Delay and loss performance of the low-priority traffic : 1. Consider the head-of-line priority system.  Explain the impact on the delay and loss performance of the low-priority traffic under the following conditions:
Calculate the minimum angle : Assume that the rope is removed from the base of the ladder in Problem 6.43 . Calculate the minimum angle at which the ladder will stand without slipping to the left.
Why rodin had such an important influence on modern art : Explain why Rodin had such an important influence on modern art. Your initial post should be 75-150 words in length. Then, make at least two thoughtful responses to your fellow students' posts.
Define a class extpersontype : Define a class extPersonType using the class personType (as defined in Example 1-12, Chapter 1), the class dateType (as designed in Programming Exercise 2 of Chapter 2), and the class addressType.
Discuss about the post given below : This exercise gives you the chance to examine an age old social science dispute: whether hitting or pitching wins ball games. Help shed light on this dispute by, again, turning to a recent almanac, this time to collect winning percentages, team ..
What types of behavior does fin-de-siecle describe : How did the subject matter of Symbolist art diverge radically from Realism? What types of behavior and interests does fin-de-siècle describe? What did Art Nouveau try to synthesize?
Discuss about the post given below : Are community gardens attracted to a limited population? I mean....not everyone wants ' to garden' so the very nature of the population will be limited to those who have an inkling too, correct? The information available is very scanty thus making ..
Show that the variance of the weight is finite : Show that the variance of the weight is finite when the likelihood is bounded.- Compare the previous choice with choosing (θ|x) as the instrumental distribution when the likelihood is proportional to a density.

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  Calculate the maximum heat flux attainable in nucleate

Calculate the maximum heat flux attainable in nucleate boiling with saturated water at 2 atm pressure in a gravitational field equivalent to one-tenth that of the earth.

  Identify a policy procedure or standard from

Identify a policy, procedure or standard from your current/former workplace or school that would be applicable to each of the three supporting mechanisms.

  Create a powerpoint presentation to present the findings

Create a PowerPoint presentation to present the findings of your research to the widget company that has hired you as a consultant. Use five or more slides that detail the recommendations you are making to the company executives.

  Do any other calls block? now let the first client exit

Do any other calls block? Now let the first client exit. What happens? Try this with the server value MAX PENDING set to 1 as well.

  Explain one 1 way in which a gui can take merits of

gui and multithreading please respond to the followingbull describe one 1 way in which a gui can take advantage of

  College of engineering and information sciences

What interests you about the college of Engineering and Information Sciences? What area of IS interests you the most? Did something or someone inspire you? Or, are you here to test the waters?

  The state of maryland is developing a web-voting interface

1. The State of Maryland is developing a web-voting interface. For selecting the candidates, one design (RB) is a set of radio buttons and another is (CB) a combo-box (drops down when selecting the scroll arrow icon), both using standard fonts at 10-..

  Discuss three standard configuration and security

In addition, discuss three standard configuration and security tools each OS provides. Search the web and describe two third-party or open source tools that can help with managing your OS's security configuration. In what ways do these third-party to..

  Layouts and access

Envision that you have been asked to create a Website for a bookstore that sells e-Books. Taking into consideration how customers might log in to shop, determine the type of layout you would use. Explain how you came to this decision.

  What are php auto-global variables

What are PHP auto-global variables?

  Explain how the web user interfaces help donors

Explain how the Web user interfaces help donors to make decisions and relate the emotional thread demonstrated in the case study to the emotional design model as discussed in Chapter 5 of the textbook.

  Relationship between an employee and another employee

The Supreme Court said in the Vinson case that voluntary relationships may still be "unwelcome" and therefore may constitute sexual harassment. Why do you think the Supreme Court ruled this way?

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