Answered step by step
Verified Expert Solution
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
Autoimplemented property
Last Name text
Autoimplemented property
Email text
Autoimplemented property
Create a constructor that takes no input
set all 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 Example:
Id length should be
Title text
Autoimplemented property
ArtistInfo Artist
Autoimplemented 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
Display
Display id title and artists first name, last name
Song id : TitleSong : 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 has been added to Album Album
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 has been removed from the Album Album
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 :
Song id : TitleSong : Artistname Elvis Presley
Song id : TitleSong : Artistname Taylor Swift
Song id : TitleSong : Artistname Taylor Swift
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started