percent_of_work_done = 0;
for(hour time = 8am; time < midnight; start++) {
if ( progress at time )
increment percent_of_work_done;
}
return percent_of_work_done;
}
main ( ) {
if ( Productivity() > 50 % )
print("Success! Happy Friday");
else
print("Failure. Happy Friday Anyway!");
}