% Script to create an html file for makr reporting
% Minas Spetsakis, Jan. 2021

Mark = 88.4;
fd = fopen('mark.html','w');
fprintf(fd,'<!DOCTYPE html>\n');
fprintf(fd,'<html>\n');
fprintf(fd,'<head>\n');
% These strings can be written in the following way so that
% special symbols like % are not messing up the formatting
fprintf(fd,'%s\n','<title>Your Mark for EECS1560</title>');
fprintf(fd,'%s\n','</head>');
% Notice that we do not need to use %% in the next instruction
fprintf(fd,'%s\n','<h2>Your mark as percentage (%)</h2>');
fprintf(fd,'<p style="color:red; font-size: xx-large">\n  Your mark is: %6.2f\n',Mark);
fprintf(fd,'%s\n','</body>');
fprintf(fd,'%s\n','</html>');
fclose(fd);
