Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help needed to build this c++ program with visual studio . Thanks! Client Class - Class Composition (Aggregation) Create the new project AssignO5-ClientComposition. Click the

Help needed to build this c++ program with visual studio . Thanks! image text in transcribed
image text in transcribed
Client Class - Class Composition (Aggregation) Create the new project AssignO5-ClientComposition. Click the Project tab and select Add Class.. Click C++ Class and then the Add button to add class files to the project. Create simple classes Name and Addr. Code the .h header files and.cpp implementation modules for these two classes: Use this class description (public function prototypes and private functions and data members) for Name.h: Name.h class header #pragma once #include using namespace std; class Name public: Name(); Name(string 1, string f, string m) void setName(string 1Name, string fName, string mid); void displayName) cost; l display first middle last name string to cout private: string last; string first; string middle; Code the Addr class using this Addr.h specification: #pragma once #include using namespace std; class Addr Addr.h class header public: Addr); Addr(string strAddr, string city, string state, string zip): construct 4-part address informatio void setAddr(string a, string c, string s, string z); I/set streetAddr, city, state, zip void displayAddr) const; / default constructor /l display address info on two lines private: string string string string streetAddr; city; state; zip; I/ street Addr- number and street (plus direction and qualifiers - like Ave. Rd. Blvd.) / 5-digit zip code 1881 rtha L. Barton Kansas City, MO 64118 larold Engle output of displayClient () 11 E. 68th St ansas City, HO 64129 ClientComposition.cpp Durton Ray Worthinyton 35 Be1lefontaine Add Client class .h and.cpp files to the project The Client class is comprised of a numeric identifier, plus the aggregated contents of an instance of the Name and Addr classes. Kansas City. NO 64189 1081 o addpress no city. no state Press any hey to continae

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

Students also viewed these Databases questions