Java Assignment 7 - iTunes Objects

Feb 3rd, 2012
Studypool Tutor
Price: $15 USD

Tutor description

An iTunes entry in music library is a descriptor that summarizes information about the tune that it describes. (It is not the actual tune, which is contained in a large music data file.) For each iTunes entry in your own music library file (which is in XML format, but we won't go there) there are between 20 and 50 fields -- i.e., members. If you were to look at the file on your system, you would find that the fields have names like Genre, Track ID, Name, Artist, Bit Rate, Sample Rate, Track Type, and so on. We will consider a simplified iTunes class, that stores these iTunes entry objects, with only the following four members for each object: Name (the title of the song) Artist (the performing musician or group) Bit Rate (the number of kilobits per second that the iTunes object streams at or plays at -- higher for better quality, lower for smaller data file size) Total Time (the playing time of the iTunes object, represented in milliseconds, i.e., 36500 would stand for 36.5 seconds).

Word Count: 458
Showing Page: 1/3
/** * Created by e7006722 on 16/07/2014. */public class Foothill { public static void main(String[] args) { iTunes it1 = new iTunes(); iTunes it2 = new iTunes("You Were Never Mine", "Janiva Magness", 128, 1002); iTunes it3 = new iTunes("Dark Horse", "Juicy J", 128, 1004); System.out.println("Initial state of it1"); it1.display(); it1.setName("Bailando"); it1.setArtist("Enrique Iglesias"); it1.setBitrate(326); it1.setTotalTime(1020); System.out.println("after mutation state of it1"); it1.display(); System.out.println("Initial state of it2"); it2.display(); it2.setBitrate(326); System.out.println("after mutation state of it2"); it2.display(); System.out.println("Initial state of it3"); it3.display();

Review from student

Studypool Student
" Good stuff. Will use again. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1826 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors