You will then create the main program MyPlaylist. The main program has the following interface and functionality as illustrated in the following sample run. You should implement the interface and the functionality in the main method by invoking appropriate methods of the classes modelled in the UML class diagrams. (User input is in red colour, the output of the playlist content
in blue colour and prompt lines in black colour. Highlights in colours in this paper are for readability only.)
$java MyPlaylist
Welcome to my playlist!
1 - Add a new song
2 - List all songs
3 - Display total playtime
4 - exit
Please enter your choice:1
Title of the song:
Closer
Name of the artist:
Chainsmokers
Duration (seconds):
240
1 - Add a new song
2 - List all songs
3 - Display total playtime
4 - exit
Please enter your choice:1
Title of the song:
Heathens
Name of the artist:
Twenty One Pilots
Duration (seconds):
210
1 - Add a new song
2 - List all songs
3 - Display total playtime
4 - exit
Please enter your choice:1
Title of the song:
Cold Water
Name of the artist:
Major Lazer
Duration (seconds):
183
1 - Add a new song
2 - List all songs
3 - Display total playtime
4 - exit
Please enter your choice:2
Title: Closer Artist: Chainsmokers Duration(seconds): 240
Title: Heathens Artist: Twenty One Pilots Duration(seconds): 210
Title: Cold Water Artist: Major Lazer Duration(seconds): 183
1 - Add a new song
2 - List all songs
3 - Display total playtime
4 - exit
Please enter your choice:3
Total play time: 633
1 - Add a new song
2 - List all songs
3 - Display total playtime
4 - exit
Please enter your choice:4
Thank you. Bye!
When you are developing your program, you can run your program as follows to redirect the input
file, input.txt, to the standard input for rapid testing.
$java MyPlaylist < input.txt
You need make sure your program can run properly with the provided input file redirected to the
standard input as above.
Program 2: BlackJoker game
You will create a card game called BlackJoker, which is not Blackjack.
The game:
The cards:
The rules:
1,212,718Orders
4.9/5Rating
5,063Experts
Turnitin Report
$10.00Proofreading and Editing
$9.00Per PageConsultation with Expert
$35.00Per HourLive Session 1-on-1
$40.00Per 30 min.Quality Check
$25.00Total
FreeGet
500 Words Free
on your assignment today
Get
500 Words Free
on your assignment today
Request Callback
Doing your Assignment with our resources is simple, take Expert assistance to ensure HD Grades. Here you Go....