Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a function to keep track of your college work, by semester, instituion, na

ID: 1858990 • Letter: W

Question

write a function to keep track of your college work, by semester, instituion, name of class,#units , letter grade, grade points, and cumulative gpa. The function should creat a a.txt file called my transcropt.txt with the data in it (example below)


use the standard grade pointsA=4,B=3,C=2 etc

Cumulative GPA (col7)is defined as the sume of all the grade points(col6) divided by the sume of all units(col4)


spring 12 laney college Eng 22 3 A 12 4

Spring 12 Berkeley City History 2 B 6 3.6

Spring 12 Laney college Physics 4 A 16 3.78



Explanation / Answer

fid=fopen('transcopt.txt','w');

fprintf(fid,'%s %d %s %s %d %s %d %d ','spring',12,'laney college','Eng 22',3,'A',12,4);

fprintf(fid,'%s %d %s %s %d %s %d %d ','spring',12,'Berkeley City','History',2,'B',6,3.6);

fprintf(fid,'%s %d %s %s %d %s %d %d ','laney college','Physics',4,'A',16,3.78);