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

  Program to randomly select three numbers

Write a program to randomly select the numbers of 3 finalist to recieve a prize. Make sure not to pick the same number twice.

  Design a single-precision floating-point adder

You may consider positive numbers only and use round toward zero (truncate). You may also ignore the special cases given in Table 5.2.

  Establish a maximum flow in the undirected network

Use the labeling algorithm to establish a maximum flow in the undirected network shown in Figure 6.23. Show the residual network at the end of each augmentation and specify the minimum cut that the algorithm obtains when it terminates.

  Capability and features of three well-known nms

This week, you will prepare a research report summarizing the capability and features of three well-known NMSs.

  Consider a router that interconnects three subnets

Consider a router that interconnects three subnets

  Automata theory, grammars and languages ip

Task Background: This assignment involves solving problems by using various discrete techniques to model the problems at hand. Quite often, these models form the foundations for writing computer programming code that automate the tasks. To carry ..

  Select appropriate variable

1. (TCOs 1-8) NOTE: YOU DO NOT have to compile/run this code in eclipse. You are writing the code here only. Write a class called point that has attributes and methods to model an (x,y) coordinate in a 2-D environment. Select appropriate variable(s..

  Show that it is the transpose of one of identities

The identities of Eqs.(14.47) through (14.49) follow from equating corresponding terms in the two sides of Eq. (14.46).There is actually a fourth identity to be considered. Find this identity and show that it is the transpose of one of the identit..

  Create a visual basic

Create a Visual Basic form like the one below that allows the user to press buttons to change the background and foreground colors of the textbox.Your form should have 4buttons, 2labels, and 1textbox.

  Watch the film pi

The film "Pi" has a math- computer - numerology theme, and is an early effort by Darren Aronofsky, who is famous for "The Black Swan". If you have seen "The Black Swan", I think you will recognize "Pi" as Anonofsky's work.

  Print the file path and the number of lines in the file

Run my script on a weekday, redirecting your output to the file my_save and append a copy of my script.

  Create a report message to report error in an ip datagram

Explain why the Internet does not create a report message to report the error in an IP datagram that carries an ICMPv4 message.

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