Assignment Instructions
This assignment involves building, testing and debugging Java programs, that create and manipulate composition of classes that model simple types of object; and that employ the full gamut of implementing technologies: fields, constructors, methods and access modifiers.
Exercise 1
Your first task is to develop a TimePeriod class of object that meets the following specification
How are you to evaluate your work? There are two possibilities: (i) write a test program, or (ii) use the jGrasp interactive feature.
Exercise 2
Your next task is to develop a ParkingTariff class. The primary objective is actually to develop a TariffTable, however, there’s a design issue that must be solved first.
A TariffTable must store a series of parking tariffs. Each is an association between a time period and a cost. You could implement a TariffTable by using two arrays, one containing TimePeriod objects and the other containing Money objects, where the TimePeriod at index i in the first array is associated with the Money object at index I in the second array.
That’s not a particularly nice solution since there’s nothing in the resulting variable declarations to indicate the relationship, and there’s potential for mismatch. A better solution is to have a TariffTable contain a collection of ParkingTariff objects, where each ParkingTariff object stores a TimePeriod and Money.
Develop a ParkingTariff class of object.
• Your class will have instance variable(s), constructor(s), and method(s).
• You should aim to move beyond simple get and set methods to ones that offer greater functionality.
Exercise 4
The CarParkSim class contains the main program method. It creates the Register, Clock and TariffTable objects, and handles user input/output.
Extending the CarParSim solution that you constructed for the previous assignment, you need to:
• Add code to create and populate a TariffTable object.
• Extend the code for the ‘depart’ command to include printing the tariff that applies to a stay of that duration.
• Add code for an additional ‘tariffs’ command: When the user enters the ‘tariffs’ command, a list of parking tariffs will be printed.
MyAssignmenthelp.com has achieved the status of the best essay writing service because of an unbreakable record of delivering high-class service. Our efficient team of essay writers are based in different countries including the USA, UK and Australia. We have build teams of native essay writers to deliver country-specific, universities' requirement based custom essay help. Other than making sure that students get customised solutions. We deliver requirement based solutions and ensure that the price remains reasonable so that students can readily access our services. Because of our flexible approach, students who search the internet with search terms like write my essay at a cheap rate, find our service most in sync with their demands.
Just share requirement and get customized Solution.
Orders
Overall Rating
Experts
Our writers make sure that all orders are submitted, prior to the deadline.
Using reliable plagiarism detection software, Turnitin.com.We only provide customized 100 percent original papers.
Feel free to contact our assignment writing services any time via phone, email or live chat. If you are unable to calculate word count online, ask our customer executives.
Our writers can provide you professional writing assistance on any subject at any level.
Our best price guarantee ensures that the features we offer cannot be matched by any of the competitors.
Get all your documents checked for plagiarism or duplicacy with us.
Get different kinds of essays typed in minutes with clicks.
Calculate your semester grades and cumulative GPa with our GPA Calculator.
Balance any chemical equation in minutes just by entering the formula.
Calculate the number of words and number of pages of all your academic documents.
Our Mission Client Satisfaction
It was delivered in time and I have had a good mark. I recommend this site and I am getting more assignments from them
Australia
Awesome! If you could please provide me with accessible links for references because the ones were provided need to create an account. Regards
Australia
Within a short time, the expert manages to complete the assignment beautifully! I scored well and I am very happy with it. Thanks
Australia
It's amazing solution and still I will apply it in university system, hopefully it's got high score Thanks
Australia