Em Andamento

Small java task

Two parts explained below, must provide javadoc(explanation in the code) and junit test

Part 1: Create a class Person with the three field variables String name, String gender, andint age. Build a recursive structure DoublyLinkedList of persons with corresponding constructors, getters (in particular left() and right() returning the left and the right sub-list, respectively), setters, a toString method, and an equals method. When you add elements to a doubly linked list put them always to the front, that is, write a method so that cons(tom, cons(ann, cons(joe, cons(mary, cons(tim, empty()))))) gener- ates the list displayed above (with appropriately generated objects such as Person tom = new Person("Tom", "M", 22);.) Write a method that checks for an element in the dou- bly linked list whether all their neighbours are of the opposite gender (i.e. for inner list members whether the left and the right neighbours are, and for the leftmost/rightmost whether the right/left neighbour is, respectively).

Part 2: Use the Person class from the previous exercise and build a binary search tree of persons ordered by the name (in a class BinarySearchPerson). That is, when a new person is inserted into an empty tree then it should be put as the value, if the element is smaller than the value it should be inserted into the left sub-tree, if it is equal to the value it should be ignored, and if it is bigger than the value it should be inserted into the right subtree. The tree should be built following the lexicographical order of the String representing the name of the Person. Note, however, that you should not insert strings into the tree, but objects of type Person.

Two strings can be compared with respect to the lexicographical order by the compareTo method. For two strings str1 and str2 we have [url removed, login to view](str2) returns an int less than 0 if str1 comes before str2 in the lexicographical order; it is equal to 0 if the strings are equal; and it is bigger than 0 if str2 comes before str1 in the lexicographical order. (E.g., "abc" comes before "xyz", likewise "abc" before "abxy". Shorter strings with the same start before longer ones, e.g., "ab" before "abc". It is the order that is used in a lexicon.)

Write a method lookupAge(String name) which searches in the binary search tree for a person with name name and returns their age if such a person is found. It should return-1 if no such person is found.

Habilidades: Java

Ver mais: use of binary search tree, type of binary tree, tree insert, tree binary search, search in binary tree, search binary tree, search binary search tree, recursive tree method, recursive binary search c, parts tree, order of tree, order of binary tree, order of binary search, note value tree, list binary search, linked int, java binary search method, java binary search code, java binary search, is binary search tree, insert in binary tree, code for binary search in c, code for binary search, c code for binary search, c binary search code

Acerca do Empregador:
( 20 comentários ) Plymouth, United Kingdom

ID do Projeto: #6823247

Premiar a:

vano101

Hello. It's easy thing and it can be done in few hours ......................................................

$30 USD em 1 dia
(141 Avaliações)
5.2

16 freelancers estão ofertando em média $101 para este trabalho

krylenkom

A proposal has not yet been provided

$30 USD em 1 dia
(82 Comentários)
6.1
wbslivera

Hello, I am Oracle certified professional java programmer and have [url removed, login to view], Ready to help you, thanks

$66 USD in 2 dias
(122 Comentários)
5.8
urmate

HI Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif

$100 USD in 2 dias
(94 Comentários)
5.8
nani01029x

Dear sir, I have done many projects in java for student around the world and got some positive feedback from clients. You can check my profile for more information. Let me help you. I'm ready to get started right no Mais

$50 USD em 1 dia
(64 Comentários)
5.3
gokulanand

Hello, I can get you both the programs done with proper Java Doc and Junit testcase. I can gurantee you to deliver the work within 24 to 48 hours. Let me know if you are interested. Thanks

$110 USD in 2 dias
(32 Comentários)
5.1
cleanCode

Hello, I can deliver this project in 2-3 dayx max. I am confident that I will provide the best source code quality in time. If you are interested, please ping me before award. Best, Alex

$150 USD in 3 dias
(18 Comentários)
4.6
Omar112

Aucune proposition n'a encore été fournie.

$155 USD in 3 dias
(17 Comentários)
4.4
aitgallon

hello........i have read the requirements.......i have very good knowledge............i can complete your work on time..........message me...waiting for your response...........thanks & regards

$155 USD em 1 dia
(25 Comentários)
4.3
samr14

hi.. i can implement the program as mentioned. i can complete it by my tomorrow night. thanks

$60 USD in 2 dias
(10 Comentários)
3.7
nittilegupta

Hi, I have previously worked with many java projects. I am sure to meet the requirements mentioned. Looking forward for your reply, regards, Nittile Gupta

$157 USD in 3 dias
(3 Comentários)
3.8
VnBestSolutions

Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Mais

$294 USD in 3 dias
(1 Comentário)
2.5
khangcnttit92

i can help you . with more than 5 year for java . if you need my help . please contact me via mail or direct here . Thanks

$40 USD in 3 dias
(5 Comentários)
2.3
KathrynFMurphy

hi there, I love your project. I usually code with well comment (as javadoc) but many client dont care about that. They dont know that is one way to "detect" which one is a good code.:) So can you let me do thi Mais

$166 USD in 3 dias
(2 Comentários)
1.2
crispwriter

A proposal has not yet been provided

$150 USD in 3 dias
(0 Comentários)
0.0
deepakmishra1988

Hello, I've understood your requirement for the assignment. I'm a M.S. in software engineering. Have worked on several college projects. 7 years experience in java development. I'm new to this site and hence Mais

$35 USD in 3 dias
(1 Comentário)
0.0
avetech2013

Java professional for the past 10 years. I am well versed on technologies like JSP, servlet, J2EE, Struts2, Spring , Hibernate, Servlet, JPA,JMS, JTA, AJAX, java script. I can solve the problems along with javadoc Mais

$30 USD in 3 dias
(0 Comentários)
0.0