Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

starting out with java from control structures through objects: chapter 9 progra

ID: 3638906 • Letter: S

Question

starting out with java from control structures through objects: chapter 9 programming challenge 8. please help! for this assignment you will design a set of classes that work together to simulate a police officer issuing a parking ticket. you should design the following classes: the parkedcar class: this class should simulate a parked car. the class's responsibilities are as follows: - to know the car's make, model, color, license number, and the number of minutes that the car has been parked. the parkingmeter class: this class should simulate a parking meter. the class's only responsibility is as follows: - to know the number of minutes of parking time that has been purchased. the parkingticket class: this class should simulate a parking ticket. the class's responsibilities are as follows: - to report the make, model, color, and license number of the illegally parked car - to report the amount of the fine, which is $25 for the first hour or part of an hour that the car is illegally parked, plus $10 for every additional hour or part hour that the car is illegally parked, plus $l0 for every additional hour or part of an hour that the car is illegally parked - to report the name and badge number of the police officer issuing the ticket the policeofficer class: this class should simulate a police officer inspecting parked cars. the class's responsibilities are as follows: - to know the police officer's name and badge number - to examine a parkedcar object and a parkingmeter object, and determine whether the car's time has expired - to issue a parking ticket (generate a parkingticket object) if the car's time has expired write a program that demonstrates how these classes collaborate.

Explanation / Answer

Hi! Cramster Terms & Conditions were changed recently (I hope you have read them). Now, experts have to send the answers to askers' inbox after you rate them. That is because of people copying from older threads which have public answers. Hence we can only send the answer after you rate. So please give me a Lifesaver rating and I'll send the solution to your inbox or e-mail. You've got no other option to get the answer, because no one can give you the answer over here. Even you might be banned for rating a user that gave the answer directly on your question. You need not worry as I have the solution ready in my notebook. Hope you rate me :)