Question

In: Computer Science

Develop a Domain Class Model with proper annotation on paper. Music An album has a name...

Develop a Domain Class Model with proper annotation on paper.

Music

An album has a name and a release date. An album has a collection of 1 or more songs. And a song may be on one album, but does not have to be (that is a song can exist whether it is on an album or not). A song has a title and a length in seconds. A song is created by one artist. All artists have a name. There are different kinds of artists. An artist can be an individual person. That is a person is an artist. A group is also an artist. A person has a birth date and a favorite color. And a group has a date that it was established. An artist can perform one or more songs.

Examples:

Lizzo is a person who is an artist. Lizzo was born on April 27, 1988 and her favorite color is orange. Lizzo sings songs like Good as Hell (2 min 38 seconds) and Truth Hurts (2 min 53 seconds). Truth Hurts is on the album Cuz I Love You (2019). Good as Hell is on Coconut Oil (2016).

The Revivalists are a group that is an artist and was established in 2007. The Revivalists have four studio albums: Vital Signs (2010), City of Sound (2014), Men Amongst Mountains (2015) and Take Good Care (2018). The song Wish I knew You is on the album Men Amongst Mountains, and is 4 min 34 seconds.

Solutions

Expert Solution

Domain Class Diagram for the given requirement is:

No of Classes :

  • 1. Album Class
  • 2. Song Class
  • 3. Artist Class
  • 4. Individual Class
  • 5. Group Class

Relationship:

  • There are collect relationship between Album class and Song class
  • There are Created By relationship between Songs class Artist class
  • There are generalization between Artist class, Individual class and Group class

Multiplicity :

  • There are 1:M multiplicity between Album class and Song class
  • There are M:1 multiplicity between Songs class Artist class

Diagram :


Related Solutions

Design a class that holds the following data regarding a music album: artist, title, number of...
Design a class that holds the following data regarding a music album: artist, title, number of tracks, and year released. Write appropriate accessor and mutator methods. Also, write a program that creates three instances of the class. Each instance will hold information about a different music album. Make sure to display all of the information for all three albums to the screen in an organized manner. **Using python**
Develop the following class: Class Name: ImprovedArrayBasedStack Access Modifier: public Implements: ImprovedStackInterface Instance variables Name: top...
Develop the following class: Class Name: ImprovedArrayBasedStack Access Modifier: public Implements: ImprovedStackInterface Instance variables Name: top Access modifier: private Data type: int Name: stack Access modifier: private Data type: T[] (an array of parameterized type) Constructors Name: ImprovedArrayBasedStack Access modifier: public Parameters: none (default constructor) Task: sets the value of top to -1 sets the stack to refer to an array of Objects with 100 elements which are type cast to T[] Name: ImprovedArrayBasedStack Access modifier: public Parameters: size (data...
C++ Design a class named TermPaper that holds an author's name, the subject of the paper,...
C++ Design a class named TermPaper that holds an author's name, the subject of the paper, and an assigned letter grade. Include methods to set the values for each data field and display the values for each data field. Create the class diagram and write the pseudocode that defines the class. Pseudocode help please
Develop a java program with a class named friend with data members like name, phno and...
Develop a java program with a class named friend with data members like name, phno and hobby. Use Parameterized constructor to create two friend objects and invoke checkhobby method which takes only one parameter, to find whether they have same hobby or different hobbies
Develop a program, in which you'll design a class that holds the following personal data: name,...
Develop a program, in which you'll design a class that holds the following personal data: name, address, age, and phone number. As part of the program, you'll then create appropriate accessor and mutator methods. Also, set up three instances of the class. One instance should hold your information, and the other two should hold your friends’ or family members’ information. Input: data for the following attributes of 3 instances of the  Personal Information Class: name, address, age, and phone number NOTE:...
IN JAVA ECLIPSE PLEASE The xxx_Student class A Student has a: – Name - the name...
IN JAVA ECLIPSE PLEASE The xxx_Student class A Student has a: – Name - the name consists of the First and Last name separated by a space. – Student Id – a whole number automatically assigned in the student class – Student id numbers start at 100. The numbers are assigned using a static variable in the Student class • Include all instance variables • Getters and setters for instance variables • A static variable used to assign the student...
This question concerns writing a Student class to model a student's name, composed of a first...
This question concerns writing a Student class to model a student's name, composed of a first name, middle name and last name. The Student class should meet the following specification: Class Student A Student object represents a student. A student has a first name, middle name and last name. Methods public void setNames(String first, String middle, String last) // Set the first, middle and last names of this Student object. public String getFullName() // Obtain the full name of this...
USE JAVA PLEASE A Phone class has 4 instance variables Model name ("iPhone12","Galaxy") RAM (number of...
USE JAVA PLEASE A Phone class has 4 instance variables Model name ("iPhone12","Galaxy") RAM (number of gigs such as 8 and12) Storage (number of gigs such as 128 and 512) Screen of type class Screen as described below.    A Screen has 3 instance variables: Screen type ("AMOLED", "LCD") Screen size (decimal number such as 6.2 and 10.1) Screen ppi (448, 630, 300)    Q1) Code two class-shell for both classes. The names and types of the instance variables have...
Using C#: Write a class named Employee that has the following properties: Name - The Name...
Using C#: Write a class named Employee that has the following properties: Name - The Name property holds the employee's name IdNumber - The IdNumber property holds the employee's ID number Department - The Department property holds the name of the department in which the employee works Position - The Position property holds the employee's job title The class should have the following overloaded constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate...
Write a program that utilizes a Professor class. A professor has a first name, last name,...
Write a program that utilizes a Professor class. A professor has a first name, last name, affiliation, easiness grade, and a helpfulness grade. Grades range from 1 (lowest) to 5 (highest). The Professor class has two constructors. The first constructor initiates the object with just the first name, the last name, and the affiliation. The default value for easiness and helpfulness grade is 3. The second constructor initiates the object using the first name, the last name, the affiliation, and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT