Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 functions/methods 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
non-zero numbers), genre
iii. Create a function/method to add artists to the song (e.g. on a live show).
iv. Create a function/method (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

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_2

Step: 3

blur-text-image_3

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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

1. Define the nature of interviews

Answered: 1 week ago

Question

2. Outline the different types of interviews

Answered: 1 week ago