Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

java assignment

syedsadetali
syedsadetali 


Implement a Binary Tree data structure capable of holding Patient Records, where a Patient Record is a collection of details about a patient including First Name, Last Name, and Age. Your binary tree should place Patient Records based on their Age where smaller ages are to the left of the root node and larger ages are to the right of the root node. Test this by generating 100 Patient Record objects with random ages between 5 and 85. Then add these Patient Record Objects to your Binary Tree. In the end, your program should display the Patient Record in the lower left of your tree, the Patient Record at the root node of your tree, and the Patient Record in the lower right of your tree. Submit your source code as well as a screen shot of your program’s output. IMPORTANT***:Small Questions for the expert after the assignment is completed: 1) Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it. Give me as much detail as possible such that I may award partial credit where it is due. 2)what would you do differently if you could do this assignment again? Attachments
Tags
Clarifications

Answers

Advance pay

sudheer488
sudheer488 



Advance pay Attachments
Screenshots
Purchase Answer

Binary Tree Assignment

sudheer488
sudheer488 



Binary Tree Assignment Attachments
Capture.PNG (34 K) Download Preview

binary tree.rar (1 K) Download
Preview
java.util.ArrayList; import java.util.Scanner; public class Btree { int n=0;int n1=0;int rootnum=0; ArrayList al=new ArrayList(); ArrayList al1=new ArrayList(); public static void main(String[] args) { new Btree().run(); } static class Node { Node left; Node right; int

Preview
fname;String lname; int age; ArrayList al=new ArrayList(); public ArrayList patientrecord(){ Random rand = new Random();

answers.txt (1 K) Download Preview
to get the parent node patient record. I got the lower left node values and right lower node values. I tried to get the node parent values.

Screenshots
Screenshot
Purchase Answer