Do you have time for success?
Hours per day calculator
hoursPerDay.htm
—
HTML,
2 kB (2988 bytes)
File contents
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hours Per Day Worksheet</title>
</head>
<body>
<script type="text/javascript">
var num = 11;
var hours = new Array(num);
function calculate() {
var totalHrs = 0;
for (i = 0; i < num; i++){
hours[i] = eval("document.hrsPerDay.hours"+i+".value");
if (hours[i] != "") totalHrs += (hours[i]*1);
}
document.hrsPerDay.total.value = totalHrs;
if (totalHrs > 24) alert("Total hours should be 24.");
}
</script>
<h2> Do You Have Time for Success? </h2>
<p> Consider the following activities. How do you allocate your time on a daily basis? (Estimate what you expect will be true for the Fall.) </p>
<form name="hrsPerDay">
<table>
<tr>
<td width="300"> <h3> Activity </h3> </td>
<td> <h3>Hours Per Day </h3> </td>
</tr>
<tr>
<td >Class Time:</td>
<td><input type="text" name="hours0" size="5" style="text-align: right;" onChange="calculate();" ></td>
</tr>
<tr>
<td>Studying:</td>
<td><input type="text" name="hours1" size="5" style="text-align: right;" onChange="calculate();" ></td>
</tr>
<tr>
<td>Employment (include varsity sports):</td>
<td><input type="text" name="hours2" size="5" style="text-align: right;" onChange="calculate();" ></td>
</td>
</tr>
<tr>
<td>Idle leisure (IM, video games, etc.):</td>
<td><input type="text" name="hours3" size="5" style="text-align: right;" onChange="calculate();" ></td>
</td>
</tr>
<tr>
<td>Social:</td>
<td><input type="text" name="hours4" size="5" style="text-align: right;" onChange="calculate();" ></td>
</td>
</tr>
<tr>
<td>Travel (between classes):</td>
<td><input type="text" name="hours5" size="5" style="text-align: right;" onChange="calculate();" ></td>
</td>
</tr>
<tr>
<td>Eating:</td>
<td><input type="text" name="hours6" size="5" style="text-align: right;" onChange="calculate();" ></td>
</td>
</tr>
<tr>
<td>Grooming:</td>
<td><input type="text" name="hours7" size="5" style="text-align: right;" onChange="calculate();" ></td>
</td>
</tr>
<tr>
<td>Resting/sleeping:</td>
<td><input type="text" name="hours8" size="5" style="text-align: right;" onChange="calculate();" ></td>
</td>
</tr>
<tr>
<td>Recreation:</td>
<td><input type="text" name="hours9" size="5" style="text-align: right;" onChange="calculate();" ></td>
</td>
</tr>
<tr>
<td>Other:</td>
<td><input type="text" name="hours10" size="5" style="text-align: right;" onChange="calculate();" ></td>
</td>
</tr>
<tr>
<td align = right>Total: </td>
<td><input type="text" name="total" size="5" readonly="readonly" style="border: none;
text-align: right; font-weight: bold;"></td>
</tr>
</table>
</form>
</body>
</html>
University of Notre Dame, 2008,
by the Contributing Authors.
This work is licensed under a
Creative Commons License
Cite/attribute Resource.
Schulz, C. (2008, May 01). Do you have time for success?. Retrieved February 12, 2012, from Notre Dame OpenCourseWare Web site: http://ocw.nd.edu/first-year-of-studies/making-the-academic-adjustment-to-college/time_exercise/do-you-have-time-for-success-1.






















