-
Notifications
You must be signed in to change notification settings - Fork 0
/
cnit133_hw3_part1.html
110 lines (105 loc) · 5.08 KB
/
cnit133_hw3_part1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<title>CNIT 133 - Homework 3 - Functions</title>
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script language="javascript" src="js/jquery-3.1.0.js"></script>
<script language="javascript" src="js/cnit133_hw3_part1.js"></script>
</head>
<body id="homework-3-part-1">
<div class="container">
<header>
<h1>CNIT 133 Homework Page</h1>
<nav id="main-nav">
<ul>
<li><a href="cnit133_hw1.html">HW1</a></li>
<li><a href="cnit133_hw2.html">HW2</a></li>
<li class="active"><a href="cnit133_hw3.html">HW3</a></li>
<li><a href="cnit133_hw4.html">HW4</a></li>
<li><a href="cnit133_hw5.html">HW5</a></li>
<li><a href="cnit133_hw6.html">HW6</a></li>
<li><a href="cnit133_hw7.html">HW7</a></li>
<li><a href="cnit133_hw8.html">HW8</a></li>
</ul>
</nav>
</header>
<main>
<header>
<h1>Homework 3 - Functions</h1>
</header>
<main>
<aside class="sub-menu">
<ul>
<li class="active"><a href="cnit133_hw3_part1.html">Part 1 - Student's final average</a></li>
<li><a href="cnit133_hw3_part2.html">Part 2 - Salesperson report</a></li>
<li><a href="cnit133_hw3_part3.html">Part 3 - Customer credit limit</a></li>
<li><a href="cnit133_hw3_part4.html">Part 4 - Palindromes</a></li>
<li><a href="cnit133_hw3_part5.html">Part 5 - Celsius / Fahrenheit conversion</a></li>
<li><a href="cnit133_hw3_part6.html">Part 6 - Learn multiplication</a></li>
<li><a href="cnit133_hw3_extracredit.html">Extra Credit - Craps</a></li>
</ul>
</aside>
<article id="main-content">
<h1>Student Grades</h1>
<button id="show-instructions">Click to Show/Hide Instructions</button>
<div id="instructions" style="display:none;">
<p>'The following webpage contains the heading, Student Grades, and uses a script that inputs a student's homework average, mid-term exam score, final exam score, and ACR (all as integers)'. Calculate the student's final average according to the formula: final average = (.5 hwAvg) + (.2 midExam) + (.2 finalExam) + (.1 ACR).</p>
</div>
<table>
<thead>
<tr>
<th>Points</th>
<th>Grade</th>
</tr>
</thead>
<tbody>
<tr>
<td>90-100</td>
<td>A</td>
</tr>
<tr>
<td>80-89</td>
<td>B</td>
</tr>
<tr>
<td>70-79</td>
<td>C</td>
</tr>
<tr>
<td>60-69</td>
<td>D</td>
</tr>
<tr>
<td>0-59</td>
<td>F</td>
</tr>
</tbody>
</table>
<form name="myform">
<input type="button" onclick="process()" value="Calculate Student Final Average">
<input id="result" type="text" placeholder="result" name="result" disabled>
</form>
</article>
</main>
</main>
<footer>
<p id="last-modified">
<script type="text/javascript">
// I've just used the script from the teacher sample as it's pretty straight forward.
// Save the document property lastModified in a variable
var dateModified = document.lastModified;
// Removing second from String dateModified ( :ss )
mydate = dateModified.slice(0, 16);
// Printing last updated date to document
document.write("Last updated: " + mydate);
</script>
</p>
<div id="validations">
<a target="_blank" href="https://validator.w3.org/check?uri=referer"><img src="./assets/html5a.jpg" alt="HTML5"></a>
<a target="_blank" href="https://jigsaw.w3.org/css-validator/check/referer"><img src="./assets/vcss-blue.gif" alt="Valid CSS!"></a>
</div>
</footer>
</div>
</body>
</html>