Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Final Exam: • You have been given a Start Class and a Car class

Final Exam: • You have been given a Start Class and a Car class

Computer Science

Final Exam: • You have been given a Start Class and a Car class. Take a look at them. • You have been given the Persistable interface. • Make Car implement Persistable. • The deflateObjectForSavingToDisk method should return a String representation of the Car object in the following format: o , o For example, a blue car with the license plate of ABC123 should return: o • You have been given a Class called Song. Take a quick look. • You are to write a class called PlayList that can store unlimited Song objects. o The constructor of Playlist should take a String representing the name of the playlist o Write a method called addSong which takes a Song object and adds it to the playlist. o Have Playlist implement Persistable o The format for deflateObjectForSavingToDisk of this class should be: • Write a class called PersistanceManager that has: o A method called persistObjectToDisk. This method returns Boolean and accepts a File and a Persistable object. o In other words, any class that implements Persistable can be passed to persistObjectToDisk. This method will write the contents of the Persistable object to disk, storing it in the File pointed to by the File argument. If everything works as expected, persistObjectToDisk should return a true. Any situation that results in the file not being correctly written should result in a false being returned. Be sure you cover all of the problems that could occur. o If you have written your code correctly, the code in the Start class should yield a file called CarFile.txt that contains: o o And a file called Playlist.txt that contains: o Bonus points may be given for particularly well-written code and up to 20% may be deducted for sloppy (code-smells) code. When you have completed your code, zip the FinalExam folder, upload it to the Final Exam dropbox, and copy and paste all of the classes that you written code for to the comments section before submitting. TO BE VERY CLEAR, you will zip the folder called FinalExam and submit FinalExam.zip

Option 1

Low Cost Option
Download this past answer in few clicks

22.99 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions