Question: Description There are two parts to the programming question. Create the interface and partial implementation of a Socialite class according to the class specification below.
Description
There are two parts to the programming question.
Create the interface and partial implementation of a Socialite class according to the class specification below. The interface and implementations must be in separate files. The implementation will be upgraded in the next question.
Write a main program (separate file) to test the Socialite class. The main program must test all methods.
Specification for Socialite class:
Attributes
last name (string containing the user's last name)
first name (string containing the user's first name)
userid(string containing a unique userid although you will not do anything to enforce uniqueness)
picture (string containing the name of an image file)
website to share (string containing a URL)
website description (string containing a brief description of the website)
Methods
default constructor (set all string fields to the empty string)
set methods for each attribute (mutators)
get methods for each attribute (inspectors)
text output - outputs values of attributes in text format. This method should take a generic ostream reference as input and write to it. This way a user can pass in a console or file output stream and have the method write to it.
HTML output - outputs values of attributes as an HTML file. (See attached examples.) This method should take a generic ostream reference as input and write to it. This way a user can pass in a console or file output stream and have the method write to it. The layout of the text output and the HTML output is up to you. However all the attributes should be output. Main Program (Driver)
Have your program create 5 Socialites, using the constructor(s) and/or set mutators. One Socialite should be yourself, while the others should include an entertainer/sports figure, a political figure, a cartoon character and someone else. (Note: don't use a president, nor presidential candidate, for your political figure there is too great an opportunity for duplication).
For each Socialite populate its attributes (via constructors and/or mutators).
Call the text output and HTML output methods on each Socialite to output the Socialite's info to a file (for testing purposes you may want to pass in the output stream, but for your submission you'll want to pass in file output streams).
Note: Socialites can be hardcoded in for rather then require user input.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
