Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions Create a class called Artist Create the following properties: First Name ( text ) Auto - implemented property Last Name ( text ) Auto

Instructions
Create a class called Artist
Create the following properties:
First Name (text)
Auto-implemented property
Last Name (text)
Auto-implemented property
Email (text)
Auto-implemented property
Create a constructor that takes no input
set all 3 fields first name, last name and email to "Unknown"
Create a constructor that takes first name, last name as input.
Set Email to Unknown
Create the following method
Display() Display the artist first name, last name
Create a class called Song.
Create the following properties:
Id (string)
Length should be exactly 10. Example:
Id length should be 10
Title (text)
Auto-implemented property
ArtistInfo (Artist)
Auto-implemented property
Constructors
Create a constructor that takes no parameters
Create a constructor that takes id, title.
Create the following methods:
AddArtistInfo
Method gets Artist as input parameter
Method adds Artist to ArtistInfo and will display a message to console
Method does not return a value
Artist Taylor Swift added to Song Song 1
Display()
Display id, title and artists first name, last name
Song id =1111111111 : Title=Song 1 : Artistname = Taylor Swift
Create a class called Album
(Include using System.Collections.Generic; on the top of your code when you use lists)
Create the following properties:
Title (text)
List of Songs
Create a constructor that takes one parameter - Title
Create the following methods:
AddSongs()
Method takes Song object as input parameter
Method does not return any output
Add the Song to the list of songs and display a message
Song Song 2 has been added to Album Album 1
RemoveSong()
Method takes Id as input parameter (Id is the Song id)
Method does not return any output
Remove the song that matches the Id from the list and display a message
Song Song 4 has been removed from the Album Album 1
DisplaySongs()
Method does not take any input parameters
Method does not return any output
Then method displays the following for all the songs in the list (See screenshot below) the Album.
Songs from Album Album 1:
Song id =2222222222 : Title=Song 2 : Artistname = Elvis Presley
Song id =3333333333 : Title=Song 3 : Artistname = Taylor Swift
Song id =1212121212 : Title=Song 4 : Artistname = Taylor Swift

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

Step: 3

blur-text-image

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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

Personal knowledge of and contact with each appraised individual

Answered: 1 week ago

Question

8. What are the basic concepts of household wiring and explain?

Answered: 1 week ago

Question

9. Explain the various methods of electrical wiring system.

Answered: 1 week ago

Question

What is the use of bootstrap program?

Answered: 1 week ago

Question

What is a process and process table?

Answered: 1 week ago

Question

What is Industrial Economics and Theory of Firm?

Answered: 1 week ago