Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

complete the following in c# , Instructions Create a class called Artist Create the following properties: First Name ( text ) Auto - implemented property

complete the following in c#,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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

a round or oval object that may contain a baby animal.

Answered: 1 week ago

Question

Differentiate tan(7x+9x-2.5)

Answered: 1 week ago

Question

Explain the sources of recruitment.

Answered: 1 week ago

Question

Differentiate sin(5x+2)

Answered: 1 week ago

Question

Compute the derivative f(x)=1/ax+bx

Answered: 1 week ago