Question: I need run this code with java please #include class student { public: int academic _ number; string name; int level; string major; int academic
"I need run this code with java please
#include
class student
public:
int academicnumber;
string name;
int level;
string major;
int academicyear;
int registered;
student left;
student right;
student
leftNULL;
rightNULL;
;
insert function
void insertstudent rootint astring nint lstring mint ayint re
ifroot if the list is empty then blindly insert at first position
student nodenew student;
nodeanoa;
nodenamen;
nodelevl;
nodemajm;
nodeayearay;
noderegre;
elseselect an appropriate position to insert a node based on Ano
student temproot;
student temproot;
whiletempanoa
temptemp;
temptempright;
tempnew student;
tempanoa;
tempnamen;
templevl;
tempmajm;
tempayearay;
tempregre;
temprighttemp;
templefttemp;
void displaystudent rootdisplaying student details
ifroot
coutno student records"";
else
student temproot;
whiletemp
coutacademic number:""anonamelevmajayearright;
void searchint ano,student root
ifroo XS t
coutno deatils found"";
node temproot;
int flag;
whiletemp
iftempanoano
flag;
break;
else
flag;
temptempright;
ifflag
coutnot found"";
else
couotfound;
int main
student rootNULL;
int n;number of students
cinn;
int Ano;
string name;
int lev;
string maj;
int ayear;
int rno;
int reg;
forint i;ianonamelevmajayearrno;
forint i;iregi;
insertrootanoname,lev,maj,ayear,reg;
forint i;iano;
searchano;
return ;
Here is the b
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
