Create a program in C++ language. 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. 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 member variables. Define a class extPersonType using the class personType (as defined in Example 10-10, Chapter 10), the class dateType (as designed in this chapter’s Programming Exercise 2), and the class addressType. Add a member variable to this class to classify the person as a family member, friend, or business associate. Also, add a member variable to store the phone number. Add (or override) the functions to print and store the appropriate information. Use constructors to automatically initialize the member variables. Define the class addressBookType using the previously defined classes. An object of the type addressBookType should be able to process a maximum of 500 entries. The program should perform the following operations: Load the data into the address book from a disk. Sort the address book by last name. Search for a person by last name. Print the address, phone number, and date of birth (if it exists) of a given person. Print the names of the people whose birthdays are in a given month. Print the names of all the people between two last names. Depending on the user’s request, print the names of all family members, friends, or business associates.

Question

Create a program in C++ language.

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.

  1. 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 member variables.

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

  3. Define the class addressBookType using the previously defined classes. An object of the type addressBookType should be able to process a maximum of 500 entries.

    The program should perform the following operations:

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

    2. Sort the address book by last name.

    3. Search for a person by last name.

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

    5. Print the names of the people whose birthdays are in a given month.

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

    7. Depending on the user’s request, print the names of all family members, friends, or business associates.

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Compare and contrast SaaS, PaaS, and IaaS technology concepts.

A: Mainly three types of cloud services are : SaaS or Software as a Service PaaS or Platform as a ...

Q: Create reversit class andWrite a function called reversit () that reverses a C-string (an array of c...

A: PROGRAM: //Adding the required header files #include <iostream> #include <cstring>   //U...

Q: Discuss about CSMA/CA and CSMA/CD explain the purpose each of these, for what type of network it is ...

A: CSMA (Carrier Sense Multiple Access) is a MAC layer (Media Access Control) protocol used to control ...

Q: Create a class reversstring in c++andWrite a function called reversit () that reverses a C-string (a...

A: C-string : A cstring is similar to a string that stores the characters in an array starting from the...

Q: Using a conditional expression, write a statement that increments numUsers if updateDirection is 1, ...

A: As the whole program is already designed We will use the conditional statement i.e (if else) to desi...

Q: Select one vendor/firm/platform example for each: SaaS, PaaS, and IaaS providers and provide a brief...

A: Cloud computing is a quickly developing industry which permits organizations to move beyond on-premi...

Q: -9 is negative. 1 import java.util.Scanner; 2 1 pa 3 public class NegativeOrPositive { public static...

A: The explanation of the expression is mentioned in the screenshot.

Q: Explain in detail different approaches of stopping OS intruders.

A: Intrusion: An intrusion refers to an action that breaks data security of the network to gain unautho...

Q: Choose the right answer with explaining

A: The shortest common supersequence refers to a sequence in which each data item of both of the specif...

Q: How learners use Edmodo by Internet Browsing.

A: Edmodo Edmodo is an educational website which takes the ideas of a social network refining them and...

Q: Discuss two advantages and disadvantages of Integrated Enterprise Information Systems. Illustrate yo...

A: Integrated Information System(IIS): It is the collection of multiple information sets that are organ...

Q: With a fancy calculator, finding square roots is easy. But what if you only had a basic four-functio...

A: Algorithm: The algorithm is a step by step process, defining a series of directions to be carried ou...

Q: #oop Choose the right answer

A: In the program a class with name test is created with 2 public variables x and Y. In the main method...

Q: 工。 A function named pFile() is to receive a filenarme as a reference to an ilstream object. What dec...

A: Objective: We need to mention the declaration for the function pFile() having a parameter as a refer...

Q: Answer the following sentenceswith "TRUE" or "FALSE"4-In windows operating system the number of star...

A: Actually, 1st vesion of start:  The Start menu was introduced in Windows 95 and Windows NT 4.0 but i...

Q: What are QoS metrics? Why are QoS metrics important?

A: Qos is a  measurement  of overall performance and it is a set of technologies that work on a network...

Q: you have to use "Kaniz Fatema" as name. And middle initial will be "S"

A: Note: Programming language is missing in the question. So we will answer this program in C++ languag...

Q: Please provide a description of what is the difference between Frequency Division Multiplexing FDM a...

A: Multiplexing:- Multiplexing is the method of integrating multiple signals over a single medium, into...

Q: if a flow chart or psuedocode contains a conditional test, the results may vary, why?

A: Flowchart: Flowchart is basically a visual representation of the flow and states of any program. In...

Q: Discuss the reasons of home and business users create a network. Identify how networks facilitate th...

A: Home and business users creating a network People can communicate easily and efficiently using a ne...

Q: x= 99; if (x++ < 100 ) t <<" it's true \n "; cout www else cout t <<" it's false ";

A: Output : it's true.

Q: The operating system of Windows 10 controls essential internal computer system. T F Any work station...

A: Multiple questions are asked at once so we will provide you the answer to the first three questions ...

Q: How teachers assess learners using Endmodo?

A: Teachers assessing learners Edmodo is an educational website which takes the ideas of a social netw...

Q: C++ Program Come up with an a real life idea for your own "object" and list five physical attributes...

A: EXPLANATION: - The Person class of five attributes namely age, name, gender, profession, and countr...

Q: Which of the following will cause an interrupt for the CPU? -Memory Reference to the Kernel Space -S...

A: The answer is all of the above An interrupt is a signal emitted by hardware or software when a proc...

Q: Computer Science Question

A: Program Explanation: Include the essential header files. Define the main function. Define ifstreamc...

Q: Please answer the Related problem question

A: Click to see the answer

Q: In Racket, What primitive should  be used when writing a functionthat consumes (For example, has as ...

A: Function Definition with parameters in Racket: A. define-struct: It can be used to define a function...

Q: ITEC 3100 – Introduction to NetworksWiFi Lab:   Q1.  Google the Linksys EA9500 AC5400 WiFi Router.  ...

A: Hey, since multiple questions posted, we will answer first question according to our policy. If you ...

Q: Identify three specific smartphone applications that would be of significant help to you in your cur...

A: Many smartphone applications are available nowadays that increase your productivity in the job. You ...

Q: 6  a.write aC++ program that opens a file and displays it's contents with the first line ,print the ...

A: Below program will read the file name and stores in to the variable. It opens the specified file. It...

Q: Please enter the numeric value for each of these C++ operations.Round answers to the nearest 3 decim...

A: Below program uses POW function to get the exponential value. #include &lt;math.h&gt; has been used ...

Q: It contains data for one movie on each line.Each Movie contains the following data items:Title(Strin...

A: Program firstly gets the local directoty path. The source file path has been stored into a variable ...

Q: It's a very nice application of stacks. Consider that a freight train has n railroad cars. Each to b...

A: I will be using Jupyter Notebook to illustrate the code:

Q: Why and how do we break the problem of networking into layers? Why into sublayers? Illustrate this c...

A: Why layering: Layering is often used when there are big problems. Big problem can be easily solved w...

Q: I need help coding this in python!

A: Please find python code in the following step.

Q: explain what it is in relationship to cloud and fog computing.

A: Cloud Computing: - It is a network of multiple devices like computers and servers connected to each...

Q: SELECT ASSIGN_NUM, EMP_NUM, PROJ_NUM, ASSIGN_CHARGE, ASSIGN_CHG_HR * ASSIGN_HOURS AS CALC_ASSIGN_CHA...

A: Explanation: One can use the Round() to round the decimal values. Syntax: Round(column_name, number...

Q: 1) What are the three key differences between NFA and DFA.

A: NFA stand  for Nondeterministic Finite Automata.  DFA stands for Deterministic Finite Automata. A DF...

Q: Please solve this problem

A: // Following C Program will give required Output    #include &lt;stdio.h&gt;int reverse(int n){   in...

Q: Here is my question that my professor gave to me as a homework from my algorithm's class. Use asympt...

A: The following table depicts the rum time analysis: Line number Statement Description 1 i = 1 Th...

Q: Answer to point no 2 and point no 3. Thanks

A: Part (2): PROGRAM STRUCTURE: Include all the required header files. Initialize all the required var...

Q: When is Excel acceptable to build a table in Word instead of using a spreadsheet tool like Excel? Wh...

A: Building a table in word A table created in word is used when there is a need to use several words ...

Q: Assume that we compile a program with two different compilers for the same ISA, then run the two exe...

A: Click to see the answer

Q: Set hasDigit to true if the 3-character passCode contains a digit.

A: Programming approach Here, we will use the built-in method isDigit() to determine whether a characte...

Q: You have 2.5” hard drives on hand and need a replacement drive for a desktop system. The documentati...

A: You are provided with 2.5” hard drives. Also, there are 6 SATA 3 GB/s connectors and one IDE connect...

Q: Allow the user to enter the names of several local businesses. Sort the business names and display t...

A: There are four method defined in the program , they are swap Stringsort print_strings main Swap wi...

Q: Define a python function ‘australian_tennis(d)’ which reads a dictionary of the following form and i...

A: Program code: #method to find the highest scorer    def australian_tennis(test_list):    highScore =...

Q: Highlight five typical operations that file systems allow users or applications to carry out on file...

A: Basic file operations that file systems permit users or applications to carry out on files are as fo...

Q: Which of the following is saved as part of the Process State during a Context Switch?  (Saved in the...

A: Answer :  All of the above Explanation :  Program Status Word (PSW) :  When a Context Switch occurs,...