ASSIGNMENT 3 Assignment 3 tests your knowledge of trees (Chapters 25 and 26), hashing structures (Chapter...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
ASSIGNMENT 3 Assignment 3 tests your knowledge of trees (Chapters 25 and 26), hashing structures (Chapter 27) and graphs (Chapters 28). You can and should start with the examples from the textbook/presentation and adapt them to the assignment at hand and use the appropriate names and requirements bellow. Design a program/project/driver class YourNameAssignment3 and the following classes (with exact² names, replace YourName_with your actual name or the name you go by, no spaces): Class Exact Name Description YourNameBinarySearch Tree The complete version of user-defined binary search tree BST class from Chapter 25. YourNameAVLTree YourNameMap YourNameHashMap YourNameHashSet YourNameGraph The complete version of the user-defined self-balancing binary search tree AVLTree class from Chapter 26 that uses YourNameBinarySearchTree instead of the BTS. The complete version of the user-defined MyMap from Chapter 27. The complete version of the user-defined MyHashMap from Chapter 27 that uses the YourNameMap instead of the MyMap. The complete version of the user-defined MyHashSet from Chapter 27 The complete version of the user-defined Graph from Chapter 28. YourNameUnweightedGraph The complete version of the user-defined UnweightedGraph from Chapter 28 that uses the YourNameGraph instead of the Graph. YourNameAssignment3 The driver class main method processes the Assignment3DataFile.txt file (line format is: "City1 City2 Distance" separated by tabs; representing the distance between City 1 and City2 and City2 and City1) and build instances of the classes above as requested bellow: Read the Distance part of the Assignment3DataFile.txt file and build instances of the user- defined YourNameBinarySearch Tree and YourNameAVLTree above called MyYourNameBST and MyYourNameAVLT and test/demonstrate ALL functionality/methods for both (meaning it will call all methods to show that they work correctly). Read the City1 part of the Assignment3DataFile.txt file and build an instance of the user- defined YourNameHashSet class above called MyYourNameHS and test/demonstrate ALL functionality/methods for it. Read the City2 and Distance part of the Assignment3DataFile.txt file and build an instance of the user-defined YourNameHashMap class above called MyYourNameHM and test/demonstrate ALL functionality/methods for it. ■ Read the City1 and City2 part from the Assignment3DataFile.txt file and build instance of the user-defined YourName UnweightedGraph class above called MyYourNameUG and test/demonstrate ALL functionality/methods for it. You can optimize this method and build all the structures in one reading of the file. I do ask for exact names and exact/precise spelling of the classes and instances (that include your actual name in them) to show me that you understood and wrote the classes and methods, and you did not just type, or copied and pasted them from somewhere. Thus, if you do not name them accordingly and your actual name is not in the name of classes and instances, you are not going to earn credit for them. Create a Microsoft Word screenshots document called YourNameAssignment3-Screenshot.docx (replace YourName with your actual name) that contains screenshots of the entire JAVA source code files in the editor window for each one the classes and the entire output (from the driver class). If the entire class JAVA source code or the output does not fit in one screenshot, create multiple screenshots, and add them to the document. Please add the screenshots in order, to make reading and understanding your work easier and earn full credit for your work. ASSIGNMENT 3 Assignment 3 tests your knowledge of trees (Chapters 25 and 26), hashing structures (Chapter 27) and graphs (Chapters 28). You can and should start with the examples from the textbook/presentation and adapt them to the assignment at hand and use the appropriate names and requirements bellow. Design a program/project/driver class YourNameAssignment3 and the following classes (with exact² names, replace YourName_with your actual name or the name you go by, no spaces): Class Exact Name Description YourNameBinarySearch Tree The complete version of user-defined binary search tree BST class from Chapter 25. YourNameAVLTree YourNameMap YourNameHashMap YourNameHashSet YourNameGraph The complete version of the user-defined self-balancing binary search tree AVLTree class from Chapter 26 that uses YourNameBinarySearchTree instead of the BTS. The complete version of the user-defined MyMap from Chapter 27. The complete version of the user-defined MyHashMap from Chapter 27 that uses the YourNameMap instead of the MyMap. The complete version of the user-defined MyHashSet from Chapter 27 The complete version of the user-defined Graph from Chapter 28. YourNameUnweightedGraph The complete version of the user-defined UnweightedGraph from Chapter 28 that uses the YourNameGraph instead of the Graph. YourNameAssignment3 The driver class main method processes the Assignment3DataFile.txt file (line format is: "City1 City2 Distance" separated by tabs; representing the distance between City 1 and City2 and City2 and City1) and build instances of the classes above as requested bellow: Read the Distance part of the Assignment3DataFile.txt file and build instances of the user- defined YourNameBinarySearch Tree and YourNameAVLTree above called MyYourNameBST and MyYourNameAVLT and test/demonstrate ALL functionality/methods for both (meaning it will call all methods to show that they work correctly). Read the City1 part of the Assignment3DataFile.txt file and build an instance of the user- defined YourNameHashSet class above called MyYourNameHS and test/demonstrate ALL functionality/methods for it. Read the City2 and Distance part of the Assignment3DataFile.txt file and build an instance of the user-defined YourNameHashMap class above called MyYourNameHM and test/demonstrate ALL functionality/methods for it. ■ Read the City1 and City2 part from the Assignment3DataFile.txt file and build instance of the user-defined YourName UnweightedGraph class above called MyYourNameUG and test/demonstrate ALL functionality/methods for it. You can optimize this method and build all the structures in one reading of the file. I do ask for exact names and exact/precise spelling of the classes and instances (that include your actual name in them) to show me that you understood and wrote the classes and methods, and you did not just type, or copied and pasted them from somewhere. Thus, if you do not name them accordingly and your actual name is not in the name of classes and instances, you are not going to earn credit for them. Create a Microsoft Word screenshots document called YourNameAssignment3-Screenshot.docx (replace YourName with your actual name) that contains screenshots of the entire JAVA source code files in the editor window for each one the classes and the entire output (from the driver class). If the entire class JAVA source code or the output does not fit in one screenshot, create multiple screenshots, and add them to the document. Please add the screenshots in order, to make reading and understanding your work easier and earn full credit for your work.
Expert Answer:
Answer rating: 100% (QA)
In the context of the assignment requirements provided the correct answer option C YourNameBinarySearchTree is the class that should be used in the AV... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Identify each of the following items relating to sections of a balance sheet as Current Assets (CA), Property and Equipment (PE), Current Liabilities (CL), Long-Term Liabilities (LTL), or Owners...
-
Currently, an average of 7 residents of the village of Westport (population 760) die each year (based on data from the U.S. National Center for Health Statistics). a. Find the mean number of deaths...
-
What is the relationship between a companys product development policies and its implementing a product positioning strategy?
-
A beetle that has an inertia of \(4.0 \times 10^{-6} \mathrm{~kg}\) sits on the floor. It jumps by using its muscles to push against the floor and raise its center of mass. (a) If its center of mass...
-
A friend of yours is trying to value the equity of a company and, knowing that you have read this book, has asked for your help. So far she has tried to use the FCFE approach. She estimated the cash...
-
Stars Exports Inc. has a beta of 1.49, the market risk premium is 8%, and T-bills are currently yielding 3.92%. What is the cost of equity capital using the CAPM approach?
-
11. Andrew Brinkmoeller receives a regular wage of $15.20 per hour. He worked 8 hours overtime. He has $115 deducted from each paycheck for health insurance and $50 deducted for his 401K. His marital...
-
Heedy Sparacia Winery accumulates the costs incurred in the labeling process in an activity cost pool. Costs for the labeling process are estimated to be $340,000, and the winery expects to generate...
-
Jimmy invests $16,000 in an account that pays 5.90% compounded quarterly. How long (in years and months) will it take for his investment to reach $21,000? ___years and ___months
-
CFO Mr. Cruz embezzled P10million from XYZ Corporation. Mr. Cruz has the obligation to: (1) Return the P10million to XYZ Corporation; (2) Pay the salaries of XYZ Corporation employees for one fiscal...
-
Which is an example of a debt danger sign? a. I list down all debts that I have on a notebook. b. I regularly check my credit report and report errors in it. c. I always max out my credit cards when...
-
Trade&Ahead is a financial consultancy firm who provide their customers with personalized investment strategies. They have hired you as a Data Scientist and provided you with data comprising stock...
-
[3] A typical human body produces about 100 W of heat. Estimate the increase in entropy of the universe produced by a single human body over the course of a spring day where the temperature is 70F...
-
An interest bearing promissory note for 90 days at 5.6% p.a. has a face value of $120,000. If the note is discounted 20 days after the issue date at a rate of 6.8% p.a., calculate the amount of...
-
Patty Bayan is a single taxpayer living at 543 Space Drive, Houston, TX 77099. Her Social Security number is 466-33-1234. For 2012, Patty has no dependents, and her W-2 from her job at a local...
-
Yolanda earns $112,000 in 2012. Calculate the FICA tax that must be paid by: Yolanda:.....................Soc.Sec..................$__________...
-
Kent Pham, CPA, is a 45-year-old single taxpayer living at 169 Trendie Street, La Jolla, CA 92037. His Social Security number is 865-68-9635. In 2012, Kent's W-2 as the controller of a local...
-
If someone is in the 22 percent marginal tax bracket, is that persons entire income taxed at 22 percent? Why or why not?
-
What are the major categories of adjustments to gross income? For a taxpayer in the 22 percent marginal tax bracket, how much would adjustments totaling $10,000 save in taxes?
-
Although the basic principles of personal finance are the same for men and women, what are the social and demographic factors that make these decisions especially important for women?
Study smarter with the SolutionInn App