Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA- finished everything about to 3, need the rest to be competed please read carefully thanks! COMP1406-Assignment #6 (Due: Mon. Mar 26th @12 noon) In

JAVA- finished everything about to 3, need the rest to be competed please read carefully thanks! image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
COMP1406-Assignment #6 (Due: Mon. Mar 26th @12 noon) In this assignment, you will simulate an on-line music centre called the MusicExchangeCenter where Users log in and download Songs from other user's computers. It is similar to the operation of the original Napster program that operated a few years ago where users shared songs. You won't be doing any downloading or internet programming Instead, you will just simulate what happens in real life. The assignment will give you familiarity with ArrayLists. (1) The Song/ User Classes Here are simple Song and User classes that represent a song that is available at the Music Exchange Center and a user of the Music Exchange Center that logs in to download music public elass Song I private String private String private int title artist daration: public Song) publie song String t, String a, int , int s) title ta artista daration- 60+ publie string getTitle0 return tiele) publie String getArtistOreturn artise j pablie int getDurationreturn duration J publie int getkinates i return duration/60 publie int getSeconds f return duration % 60/ publia sering costring return+titleby atist (duration/60)+(durationms 60)) FS F7 4 5

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

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions