(c++) can you please just make classes and the main as suggested. Using classes, design an address book. Each contact in

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

(c++) can you please just make classes and the main as suggested. Using classes, design an address book. Each contact in

Post by answerhappygod »

(c++) can you please just make classes and the main as
suggested. Using classes, design an address book. Each contact
in the address book must be able to store the following
information:
To do so, you are going to create two classes. The first class,
called Contact, will store information for 1 contact. This class
should have attributes that can store information for the data
mentioned above, as well as a means of accessing/modifying
attribute data (i.e., getters and setters).
Next, you are going to create another class called
ContactDirectory, which will store a collection of Contact objects
via an array or vector(your choice). This class should support the
following operations:
Once you are finished designing the class, create a Contact
Directory object and add the following people to the directory:
Note that you may be creative with the rest of the
information(address, age, phone number). Call the appropriate
operator to output the Contact Directory.
Compress your solution to a ZIP folder and upload it as your
answer to your question. Be sure to include a header comment above
each file your create stating your name and description of the
contents of the file(like you do in the programming
assignments).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply