Question: A . Design a complete Artist class. a . Each Artist has a first and a last name. b . Include a constructor. c .
A Design a complete Artist class.
a Each Artist has a first and a last name.
b Include a constructor.
c Getters and setters
d A method which will return the last name and the first character of the first name.
B Design a complete Song class.
a Each object of the class Song can hold the following information about a song: title,
up to three artists, lyricist, unique songID, duration in seconds rating and one extra
kind of information of your choice, like genre. It is recommended that you use an
enumerator.
b Include the member functionsmethods to perform the various operations on objects
of type Song. For example, the usual operations that can be performed on the song
are
i Add the appropriate constructors and a destructor if one is needed
ii Create getters and setters for the title, lyricist, duration should be positive and
nonzero numbers genre
iii. Create a functionmethod to add artists to the song eg on a live show
iv Create a functionmethod toString which will return all song information
formatted.
v Check whether a Song is the same as another Song by using the songID.
The rules of academic ethics apply when taking this assessment, including the requirement
that you produce work without improper or unauthorized assistance from anyone.
Information Technology
C Write a main program called: Playlist, that uses the Song class and tests various
operations on the objects of the class Song. Your program should be user driven,
validate inputs and
a display a menu so that the user will be able to
i add new songs,
ii search for songs,
iii update the rating increase or decrease the value by a number
iv update the duration for a new version of the song
b store the information in a file, so that next time the program executes the information
is not lost.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
