Project #1 Due Dates: Saturday, February 26 at 11:59pm Submit: eLearning Late Policy: 24-hour late period,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Project #1 Due Dates: Saturday, February 26 at 11:59pm Submit: eLearning Late Policy: 24-hour late period, then zero points Instructions: This is an individual assignment. Answers should be your own work. You are expected to code this yourself from scratch by thinking through the requirements and design, then writing the code. Introduction: This project creates a custom linked list structure. It serves as an exercise in working with linked lists and nodes. Overview: Suppose the names "Bob", "Dan", and "Ben", are added, the result is: --- head -->| B -->| Ben -->| Bob |-->| D |-->| Dan If the names "Deb" and "Sarah" are added, it looks like this: head --> B - Ben -->| Bob |-->| D --> Dan --> Deb |--> | S |-->|Sarah| If "Deb" and "Sarah" are deleted, the list should look like the first list again. Details: Create a Java class called Name List (not generic) that stores names and implements the structure shown above. Note that the names are kept in sorted order. Letter nodes are always uppercase. Names may begin with a lowercase letter, but ordering is case insensitive. For example, if Dewy, Donna, Deb, dewitt, Dan are added, they would all be placed in the D list in the order Dan, Deb, dewitt, Dewy, Donna. You may *not* use Java's LinkedList class. You should create your own nodes and link them together as shown in the illustration. Your class should support the following methods. Methods should be implemented efficiently, avoiding unnecessary steps. 20 points add Adds a new name. Names must be at least 2 characters long. Adds the letter node if not already present. 20 points remove - Removes a name. If the name is the last one for a letter, the letter 20 points node should also be removed. removeLetter - Removes a letter and all names for that letter. 20 points find Finds a name by traversing the nodes, returns a boolean. 10 points toString Returns a string of the list formatted as shown below using the first list above as an example: B D Ben Bob Dan 10 points main Demonstrates the methods of your NameList class Submit to eLearning: NameList.java Project #1 Due Dates: Saturday, February 26 at 11:59pm Submit: eLearning Late Policy: 24-hour late period, then zero points Instructions: This is an individual assignment. Answers should be your own work. You are expected to code this yourself from scratch by thinking through the requirements and design, then writing the code. Introduction: This project creates a custom linked list structure. It serves as an exercise in working with linked lists and nodes. Overview: Suppose the names "Bob", "Dan", and "Ben", are added, the result is: --- head -->| B -->| Ben -->| Bob |-->| D |-->| Dan If the names "Deb" and "Sarah" are added, it looks like this: head --> B - Ben -->| Bob |-->| D --> Dan --> Deb |--> | S |-->|Sarah| If "Deb" and "Sarah" are deleted, the list should look like the first list again. Details: Create a Java class called Name List (not generic) that stores names and implements the structure shown above. Note that the names are kept in sorted order. Letter nodes are always uppercase. Names may begin with a lowercase letter, but ordering is case insensitive. For example, if Dewy, Donna, Deb, dewitt, Dan are added, they would all be placed in the D list in the order Dan, Deb, dewitt, Dewy, Donna. You may *not* use Java's LinkedList class. You should create your own nodes and link them together as shown in the illustration. Your class should support the following methods. Methods should be implemented efficiently, avoiding unnecessary steps. 20 points add Adds a new name. Names must be at least 2 characters long. Adds the letter node if not already present. 20 points remove - Removes a name. If the name is the last one for a letter, the letter 20 points node should also be removed. removeLetter - Removes a letter and all names for that letter. 20 points find Finds a name by traversing the nodes, returns a boolean. 10 points toString Returns a string of the list formatted as shown below using the first list above as an example: B D Ben Bob Dan 10 points main Demonstrates the methods of your NameList class Submit to eLearning: NameList.java
Expert 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
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
For each of these utility functions, find the optimal consumption choices z and y for a consumer with budget w = 1, who faces prices pz = 0.05 and Py = 0.3. Are the goods substitutes or complements,...
-
G(y) = 1/(2 + y) for y 0. Find the inverses of each of the above functions. In each case, compute the output of the original function at an input of 1.0, and show that the inverse undoes the action...
-
Neil Orbison, a residenttaxpayer, purchased a propertyon15 July 2021as an investmentwiththe intentionof derivingrentalincome. Forthefollowingtransactions,calculateanyamountsthathewouldbe able to...
-
Consider the gasoline mileage data in Table B.3. Delete eight observations (chosen at random) from the data and develop an appropriate regression model. Use this model to predict the eight withheld...
-
Peyvandi Co., a profit center of California Enterprises, manufactures Product BP3751-9S to sell internally to other company divisions as well as externally. One unit of Product BP3751-9S sells for...
-
1. What is a live load? 2. What is a dead load? 3. What is a dynamic load? 4. What is the best shape for a heavy load?
-
PortaCom manufactures notebook computers and related equipment. PortaCom's product design group developed a prototype for a new high-quality portable printer. The new printer features an innovative...
-
n 1 (2)log 1 2. 3n 3. 4 (5) n! n n 6 log n log(n!) 22 8. 9 (10 In ln n 1 (11 12 13 (14 logn (15) n In n log log n (n+1)! (16 17 2n n log n 18 22" +1 19 5n2 (20 13n + 6 n/logn Reading the long list,...
-
12:17 ANSWER THE FOLOWING QUESTIONS IN YOUR NOTEBOOK WITH WORKINGS CLEARLY SHOWN. Once you finish the worksheet, please pics of your answers and send it to me on Personal Chat along with the EXCEL...
-
According to the organisational policies and procedures of NeoZone, all financial statements must be verified and approved by all three partners. 2.7 Use the following template to prepare an email to...
-
1. The account balances of A-One Travel Service for the year ended August 31, 20Y6, follow: Fees earned Office expense Miscellaneous expense Wages expense Accounts payable Accounts receivable Cash...
-
A company operates a consulting practice. New clients are required to pay the firm in two transactions. First, clients must pay $200 before receiving consulting services. Second, clients must pay...
-
Using the content list, detail any goods and services you would need to complete your plan and detail any criteria for selection of these goods and services.
-
The vapor pressure of the liquid NH, is measured at different temperatures. The following vapor pressure data are obtained. Temperature, K P, mmHg 217.1 223.4 234.7 588.1 Calculate the enthalpy of...
-
Holland at Home is considering introducing a variation of its current breakfast cereal, Zonnatura Regular Muesli Rich. The new cereal will be similar to the old with the exception that it will...
-
TSMC Corporation is considering selling one of its old wafer fabrication machines. The machine, purchased for \($3,000,000\) 5 years ago, had an expected life of 10 years and an expected salvage...
-
Assume that Fiskars Finland plans to invest in a new project that will annually generate revenues of \($2.3\) million. Cash expenses including both fixed and variable costs will be \($950,000,\) and...
An Elementary Introduction To Statistical Learning Theory 1st Edition - ISBN: 0470641835 - Free Book
Study smarter with the SolutionInn App