4. write("College of computing and informatic"),nl,
write("Department of information techology"),nl,
write("Group six memeber"),nl,
write("1. Yihunie ayalew"),nl,
write("===================================
======="),nl,
write("Write one of information tecnology stuent
name?"),nl,
read(X),nl,
department(X,Y),nl,
year(X,Z),nl,
result(X,Q),
id(X,W),
write("will come:"),
write(X),nl,
write("your Id Number Is:-"),
write(W),nl,
write("your department Is:-"),
write(Y),nl,
write("Bach:-"),
write(Z),nl,
write("your Grade is:-"),
write(Q),nl,
5. write("Write computer science stuent name?"),nl,
read(A),nl,
department(A,B),nl,
year(A,C),nl,
result(A,F),
id(A,E),
write("will come:"),
write(A),nl,
write("your Id Number Is:-"),
write(E),nl,
write("your department Is:-"),
write(B),nl,
write("Bach:-"),
write(C),nl,
write("your Grade is:"),
write(F),nl,
write("Write information science stuent name?"),nl,
read(G),nl,
department(G,N),nl,
year(G,K),nl,
7. write("the first student is the best grade you have");
Q<F,nl,
write("the second student is the best grade you have");
Q=:=F,nl,
write("both of have the some result you have ").
compare(Q,S).
compare(Q,S):-
Q>S,nl,
write("the first student is the best grade you have");
Q<S,nl,
write("the second student is the best grade you have");
Q=:=S,nl,
write("both of have the some result you have ").
////////////////////////////////////////////////////////////////////////////////
student:-
repeat,
8. write("nwell come to student information
system"),
write("n0.Exit"),
write("n1.Enter student data"),
write("n2.Search by Name"),
write("n3.Search by Phone number"),
write("n4.Show all Student Data"),
write("nEnter your choice::"),
read(X),
selectItem(X),
X=0.
selectItem(0).
selectItem(1):-
studentData,
fail.
selectItem(2):-
write("nEnter your name::"),
read(Name),
searchByName(Name),
fail.
selectItem(3):-
write("nEnter the phone no::"),