
fp=fopen('student.data','rt');

for ii=1:80
    
    student.name=fscanf(fp,'%s',1);
    ...
    ...
    ...
    
end

menu..


while(~strcmp(option,'q'))
    
ask for student name
find the index using a function
index=findindex(name,student)

switch (option)
    
   
    case 'a'
        
        lavg=lab_average(student(index).lab);
        fprintf('The lab average of the student %s is %4.2f\n',name,lavg)
    
    case 'b'
        
        pavg=....
            
    
    otherwise
        
        
end
menu which asks for option from the user


end