Hi all, this question is for liberty basic (not sure if its the same or simmiler) but i am desperate for help :cry: it opens a txt file and reads the records the layout of the file is like this :
HEN01023025,Jane Henderson,10/02/1982,Maths,67
HEN01023025,Jane Henderson,10/02/1982,Science,24
i have started a program that needs to do the following "this option should print out the name of the student who has attained the highest mark in a single exam. it should show their name, the subject and the mark attained"
i have been able to get the highest gade but i need help to get the subject and grade in a print statement i.e
Print "Congratulations "; Name$; " Has attained "; Grade; " In "; Subject$
if Grade > Result$ then
Grade = Result$
print Grade
end if
i can do the Highest mark but i dont know how to make it so that the Name of the student and the subject that they had the mark in show up
but im stuck i have to print the information like this:
Print "Congratulations "; Name$; " Has attained "; Grade; " In "; Subject$
Thanks alot in advance :D hope you guys can help
p.s sorry that its LB not VB but i cant find a forum for it :(