Java assignment 6 with class diagram and junit test.

   

PURPOSE OF ASSIGNMENT

The University has a need to develop an Object-Oriented Parking System. Each assignment will build towards creating the parking system.

· The University has several parking lots and the parking fees are different for each parking lot.

· Customers must have registered with the University parking office in order to use any parking lot. Customers can use any parking lot. Each parking transaction will incur a charge to their account.

· Customers can have more than one car, and so they may request more than one parking permit for each car.

· The University provides a 20% discount to compact cars compare to SUV cars.

· For simplicity, assume that the Parking Office sends a monthly bill to customer and customer pays it outside of the parking system.

· Each week you will need to submit an updated Class Diagram along with the other deliverables for the assignment.

The goal of this assignment is to create ParkingOffice and ParkingLot classes that demonstrate the use of Java Generics and Collections. You will also need to lookup the Java Enum type and use it to describe the type of the car.

ASSIGNMENT INSTRUCTIONS

Develop Java code for the ParkingOffice, ParkingLot and Money classes, and the CarType enum, shown in the diagram below. The data attributes and methods are provided as a guide, please feel free to add more as you feel necessary. Explain your choices in the write-up. Note that the ParkingLot and Money classes should be immutable; once created with values they cannot be modified.

Class: Money 

· Data Attributes

o amount : long

o currency : String

Enum: CarType 

· Values

o COMPACT

o SUV

Class: ParkingLot 

· Data Attributes

o id : String

o name : String

o address : Address

· Behaviors

o getDailyRate(CarType) : Money

Class: ParkingOffice 

· Data Attributes

o parkingOfficeName : String

o listOfCustomers : List<Customer>

o listOfParkingLots : List<ParkingLot>

o parkingOfficeAddress : Address

· Behaviors

o getParkingOfficeName() : String

o register(Customer) : void

Create a 500-word write-up that explains your assignment. You may address some of the below questions.

1. What did you find difficult or easy?

2. What helped you?

3. What you wish you knew before?

4. Outline any implementation decisions and the reasoning behind those.

5. Include screenshots of the successful code compilation and test execution.

Submit a zip file that includes Class diagrams, write-up, Source java files, and Unit Test java files. In your write-up include screen shots of successful unit tests.

FORMATTING AND STYLE REQUIREMENTS

· Write-ups should be between 400 and 500 words.

· Where applicable, refer to the UCOL Format and Style Requirements (Links to an external site.) on the Course Homepage, and be sure to properly cite your sources using Turabian Author-Date style citations (Links to an external site.).

·  

·  

·  

·  

·  

·  

Rubric

Programming Rubric

   

Programming    Rubric

 

Criteria

Ratings

Pts

 

This criterion is linked to a   Learning OutcomeCode Functionality and   Efficiency 

The class(es) created meet the design specification and   therefore accomplishes the task at hand. It/they are written with proper OOP   techniques applied. The class(es) are set up with proper interfaces so they   can collaborate with other classes and execute the necessary tasks. The code   compiles without errors.

60.0 pts

 

This criterion is linked to a   Learning OutcomeCode Testing 

The test code is written to test the class(es) and is   designed and implemented properly.

20.0 pts

 

This criterion is linked to a   Learning OutcomeCode Quality 

The code contains only the necessary variables. Variable   names are meaningful. The code is well-formatted, easy to read and   appropriately commented. The code includes proper error and exception   handling.

10.0 pts

 

This criterion is linked to a   Learning OutcomeWrite-Up 

The write-up summarizes lessons learned and any difficulty   the student may have encountered. It also outlines any implementation   decision and reasoning behind those. Screenshots of the successful code   compilation and test execution are included.

10.0 pts

 

Total   Points: 100.0

Get 20% Discount on This Paper
Pages (550 words)
Approximate price: -

Try it now!

Get 20% Discount on This Paper

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Custom Writings Help is a Quality-Oriented Company in Online Writing as a result of hiring exceptional professionals to execute clients' tasks.

Essays

Research Papers

At Custom Writings Help,We understand the struggle of research paper writing, and that is why at Custom WritingS Help, we are all out to help you. We pride ourselves on having a team of clinical writers. The stringent and rigorous vetting process ensures that only the 'BEST' Writers are chosen for the job. We have highly qualified Ph.D. and MA writers working with us; we equally offer these experienced writers specific bonuses and incentives to make them deliver highly original, unique, and informative content at reasonably low prices.

Admissions

Thesis Writing Service

Worlwide, Many Masters Students are struggling with Thesis Completion. A thesis is likely to be the longest and most challenging piece of work a student has ever completed. However, unlike essays and other assignments, a student can pick a particular interest topic and work on their initiative. Fortunately, we are there for you. At Custom Writings Help, you are assured of an authentic, imaginative, informative, linguistically great, and advantageous thesis that adheres to all your needs. So, why continue considering different writers when you have discovered the best in the field?

Editing

Custom Papers

Not a single student can avoid writing custom papers. However, a total lack of experience, skills, and time makes it very hard to produce a superb writing piece. Therefore, if you are seeking professional help, turn to us. Our specialized and experienced writers compose a variety of model papers, including custom essays, college term papers, research papers, book reports, MBA essays, executive summaries, dissertations, Ph.D. theses, admission essays, and research proposals for college and university students at any level.

Coursework

Essay Writing

Most of the students disregard the critical principles of essay writing and compose papers below sensible guidelines. Therefore, with Custom Writings Help, one should not worry about his/her essay. Our Writers compose informative and engaging content on all complexities and topics. We write meaningful and smart essays while prioritizing all aspects that bring about a good grade, such as impeccable grammar, proper structure, zero-plagiarism, and conformance to guidelines.

Coursework

Coourse Work Writing

Don't let the seemingly never-ending onslaught of writing assignments get you down. If you are looking where to get course work assistance online, the writers at Custom Writings Help are here to assist you with all of your writing needs. We undertake to unique delivery of papers that meet the professor's requirements. The content is proofread, edited, and checked plagiarism before submission to customers. No matter how big or small your work is, we will deliver on time. Try US Now! !

Coursework

Dissertation Writing Service

High-Quality Dissertation Writing Services are rare. They require Ph.D. academicians – not easily found. However, are an exception. The years, time, and resources we have invested in the dissertation world has given us a competitive advantage over others. Choose to come to Custom Writings Help; You will find perfect Ph.D. consultants who have written hundreds of dissertations theses ready to help you. Let our dissertation-writing services help you craft your dissertation, for you are assured we will give you the results.