Question: HELLO EVERTHING CAN BE EDITED EXCEPT MAIN.CPP MAIN.CPP CAN'T be Edited IN C++ please Given main(), complete the Artist class (in files Artist.h and Artist.cpp)

HELLO EVERTHING CAN BE EDITED EXCEPT MAIN.CPP

MAIN.CPP CAN'T be Edited

IN C++ please

HELLO EVERTHING CAN BE EDITED EXCEPT MAIN.CPP MAIN.CPP CAN'T be Edited INC++ please Given main(), complete the Artist class (in files Artist.h andArtist.cpp) with constructors to initialize an artist's information, get member functions, anda PrintInfo 0 member function. The default constructor should initialize the artist'sname to "None" and the years of birth and death to 0.PrintInfo() should display Artist Name, born XXXX if the year of deathis -1 or Artist Name (XXXX-YYYY) otherwise. Complete the Artwork class (infiles Artwork.h and Artwork.cpp) with constructors to initialize an artwork's information, getmember functions, and a PrintInfo 0 member function. The constructor should by

Given main(), complete the Artist class (in files Artist.h and Artist.cpp) with constructors to initialize an artist's information, get member functions, and a PrintInfo 0 member function. The default constructor should initialize the artist's name to "None" and the years of birth and death to 0. PrintInfo() should display Artist Name, born XXXX if the year of death is -1 or Artist Name (XXXX-YYYY) otherwise. Complete the Artwork class (in files Artwork.h and Artwork.cpp) with constructors to initialize an artwork's information, get member functions, and a PrintInfo 0 member function. The constructor should by default initialize the title to "None", the year created to 0 . Declare a private field of type Artist in the Artwork class. Ex. If the input is: Pablo Picasso 1881 1973 Three Musicians 1921 the output is: Artist:PabloPicasso(1881-1973)Title:ThreeMusicians,1921 If the input is: Brice Marden 1938 -1 Distant Muses 2000 DistantMuses2000 he output is: Artist: Brice Marden, born 1938 Title: Distant Muses, 2000 57692.3265426.q3zqy7 \begin{tabular}{l|l} LAB & 15.39.1: LAB: Artwork label (classes/constructors) \\ ACTIVITY & 15. \end{tabular} 0/10 File is marked as read only Current file: main.cpp File is marked as read only Current file: main.cpp - 8910111213141516171819202122232425stringuserTitle,userArtistName;.intyearcreated,userBirthYear,userDeathYear;getline(cin,userArtistName);cin>>userBirthYear;cin.ignore();cin>>userDeathYear;cin.ignore();getline(cin,userTitle);cin>>yearcreated;cin.ignore();ArtistuserArtist=Artist(userArtistName,userBirthYear,userDeathYear);ArtworknewArtwork=Artwork(userTitle,yearcreated,userArtist);newArtwork.PrintInfo(); Current file: Artist.h - Load default template... Current file: Artist.h Load default template... Current file: Artist.cpp - Load default template... Current file: Artwork.h Load default template... \begin{tabular}{l|l} 10 & Artwork (); \\ 11 & Artwork(string title, int yearcreated, Artist artist);| \\ 12 & string GetTitle(); \\ 13 & \\ 14 & \\ 15 & int GetYearcreated(); \\ 16 & \\ 17 & void PrintInfo(); \\ 18 & \\ 19 & private: \\ 20 & // TODO: Declare private data members - title, yearcreated \\ 21 & \\ 22 & \\ 23 & // TODO: Declare private data member artist of type Artist \\ 24 & \\ 25 & 3; \\ 26 & \end{tabular} Current file: Artwork.cpp Load default template

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!