Unformatted text preview:

COP 3540 – Data Structures with OOPProject 3 - Fall 2006Due: 1 November 2006Doubly-Linked ListsUsing NetBeans 5.0, you are to write a Java program using OOP principles to accommodate the following functionality Assignment #3Objectives:Provide student with additional experiences with file input output.Provide student with exercises in learning UMLProvide student with exercises in Javadoc and its various formatsProvide student with exercises in building a a doubly-linked list of objects.Provide student with experience in inserting, deleting, and searching the doubly-linked list Provide student with exercises in updating a linear linked listProvide student the use of iterators, which must be used to facilitate good program design..Functionality: Given a sequential file, team.datafile.txt on my web page, you are to build a doubly-linked list from the input file, team.datafile.txt. You are familiar with the formats of the inputs and they are also described below.Task 1: Build the doubly-linked list. The linked list is to be ordered (built) such that all NFC teams appear first (NFC code = 2 and AFC code = 1), and within each conference they are to appear by divisions, 1 through 4 in that order. So, within the AFC,for example, all links are to be AFC links and then East Division (code = 1) teams then North Division (code = 2) etc. Thus, to build the linked list, you will need to examine each input object that you create from the input file (one line – one object as usual) and find the proper place in the linked list. (Within the conferences and then the divisions, the teams do NOT need to be further differentiated in any way, such as alphabetical, region of the country, etc.). the format and attributes of the objects you create may be of your own choosing. But observe the requirements ahead. You may only use attributes directly present in the input records. Task 2: Using the toString method (recall COP 2551) you are to print the linked list in order – from beginning to end. You will need a header on these, and the objects should be left justified. You should not print the codes on the front end. Rather, print the Conference name and the Division name followed by the four teams in each. Skip a line in between divisions within a conference not in between individual teams.Task 3: Update the doubly-linked list. Using the inputs provided to you in newteams.txt, you are to update the linked list. The first character in each record is an ‘A’or a ‘D,’ meaning that you should Add or Delete the indicated team. For simplicity, there are no Changes, nor are there any invalid ‘transaction’ codes. Only As and Ds appear to indicate action to take. There may, however, be other errors. Task4: Print the doubly-linked list as in Task 2 above. Separate each division in each of the two conferences.Task 5: Statistics: After the update in Task 3 is accommodated and the updated linked list is displayed (nicely!!), you are to print the following information:“For Transaction: (show transaction) then advance to the next line:“It took x probes to find the proper location for the new link in the linked list.”Or, alternatively,“For Transaction: (show transaction) then advance to the next line.“It took x probes to learn desired transaction to delete was not found in the linked list.”That’s it!! You have PLENTY of time if you start right away and work slowly and methodically.Procedure:I urge you to tackle this problem incrementally. Using a small sample of the inputfile to test your procedure. Then build the entire linked list. Verify as you go. Use the toString method to your advantage and VERIFY that you are in fact building the doubly-linked list correctly!Do this slowly and methodically. Do not rush, but start right away. Deliverable: Your zipped folder to me MUST include copies of teamdatfile.txt and newteams.txt. I will need these to run your program and to test it. Do not provide me with output your program generates. I will get your program to generate your outputs. As noted, your outputs will be displayed on the screen. You are to zip all files in your P2 as expected and Send them to be via Digital Dropbox using the same naming conventions as in P0. Your zip file is NOT to include your N-number. Rather, it must be project3.youruserid, as project3broggio NOT project2n00010109.GradingSource Code – 30 pointsIndentationInternal commentsScope terminatorsOverall program structureProgram Design – 10 pointsYou are to write a small Word document (a couple of paragraphs at the most) and give me your rationale for your design decisions. Discuss your use of iterators. Javadoc – 10 points - no excuse to not have this wonderful this time!Appropriateness and completeness of commentsALL methods must have Javadoc comments up front that are meaningful, please.UML – 10 points – no excuse to not have this wonderful at this time too. You were presented examples of ‘the right stuff.’Correctness, associations, completeness. This means that the classes you identify are correct, that associations are indicated, and that the attributes and methods are documented within the classes.Outputs – 40 pointsAccuracy and Format. All functionality present!Skip lines in between displayed numbers for readability.Include headers / descriptors as you may feel appropriate, but they need to be respectable by my standards..If your program does not contain all the functionality required,you cannot expect a grade above 60, that is a ‘passing grade.’ Please note that this will be rigidly enforced.Program must run correctly to receive a passing grade and to receive at least partial credits above. If the program does not successfully run to end of job and include all major functional requirements, all bets are off.Start early and do this a little at a time.National Football League Data Base (teamdatafile.txt)Codes: Col 1 - Geographical area of the country. Six regions 1..61 = New England; 2 = Middle Atlantic 3 = South4 = Midwest 5 = Southwest 6 = WestCol 2 - 1 = AFC; 2 = NFC Col 3 - 1 = East Division; 2 = North Division; 3 = West Division 4 = South DivisionAFCE - American Football Conference - East DivisionAFCN - American Football Conference – North DivisionAFCW - American Football Conference - West DivisionAFCS – American Football Conference – South DivisionNFCE - National Football Conference - East DivisionNFCN - National


View Full Document

UNF COP 3540 - Study Notes

Download Study Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Study Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?