Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Please Figure 4.4. Contacts Figure 4.4 describes a model [39] for a Contact system. ContactList can derive from or reuse any Qt container that

C++ Please

Figure 4.4. Contacts

image text in transcribed

Figure 4.4 describes a model[39] for a Contact system. ContactList can derive from or reuse any Qt container that you like, as long as it supports the operations listed.

getPhoneList(int category) accepts a value to be compared with a Contact's category member for selection purposes. It returns a QStringList containing, for each selected Contact, the name and phone number, separated by the tab symbol: "\t".

getMailingList() has a similar selection mechanism and returns a QStringList containing address label data.

Write a ContactFactory class that generates random Contact objects.

Contact ContactList category :int firstName QString lastName QString streetAddress : QString zipCode QString city: QString -phoneNumber QString +toString:QString + add(c : Contact) + remove(c : Contact) +getPhoneList(category : int) : QStringList + getMailingList(category : int): QStringList QtContainerClass Contact ContactList category :int firstName QString lastName QString streetAddress : QString zipCode QString city: QString -phoneNumber QString +toString:QString + add(c : Contact) + remove(c : Contact) +getPhoneList(category : int) : QStringList + getMailingList(category : int): QStringList QtContainerClass

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions