-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
137 lines (115 loc) · 5.49 KB
/
Copy pathindex.html
File metadata and controls
137 lines (115 loc) · 5.49 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Set the viewport so this responsive site displays correctly on mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Include bootstrap CSS -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Include jQuery library -->
<script src="https://ajax.googleapis.com/ajaxbr/bs/jquery/1.11.0/jquery.min.js"></script>
<title>CS382 Fall 2022 Exam</title>
<style>
p,
table {
margin-left: 50px;
}
.datagrid {
width: 400px;
}
.hrule {
border-top: 1px solid #000
}
.listItem {
padding: 6px;
}
</style>
</head>
<body>
<div class='container-fluid'>
<h3>Problem 1: Compute Net Income</h3>
<form action="problem1.php" method="post">
<table class='table table-bordered datagrid'>
<tr>
<td><label for='income'>Gross Income:</label><input type='text' name="grossIncome"
class='form-control' id="income" required></td>
</tr>
<tr>
<td><label for='dependents'>Number of Dependents: </label>
<select name="dependents" class="listItem" id="dependents">
<option value="-1">-- Select # Dependents</option>
<option value="0">None</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four or more</option>
</td>
</tr>
</table>
<p><input type='submit' name='submit' value="Display Net Income" class='btn btn-primary'>
<input type='reset' class='btn btn-default'></p>
</form>
<hr class="hrule">
</hr>
<h3>Problem 2: Estimate Rental Charge</h3>
<form action="problem2.php" method="post" required>
<p>Select Vehicle Type:<br />
<input type='radio' name="category" value='car'> Car<br />
<input type='radio' name="category" value='suv'> SUV<br />
<input type='radio' name="category" value='minivan'> Minivan<br />
</p>
<p>Number of Days: <input type='number' min="0" name="numDays" placeholder="Enter number of days"
required /></p>
<p><input type='checkbox' name='coverage'> Add collision damage coverage : $20 per day</p>
<p><input type='submit' name='submit' value="Estimate Rental Charges" class='btn btn-primary'>
<input type='reset' class='btn btn-default'></p>
</form>
<hr class="hrule">
</hr>
<h3>Problem 3: Display a list of products (title, price, category) based on the selected product type from the
following list:</h3>
<form action="problem3.php" method="post">
<p>Select product type:</p>
<p>
<input type='radio' name='category' value="HDTV"> Televisions<br />
<input type='radio' name='category' value="Cellphone"> Mobile Phones<br />
<input type='radio' name='category' value="Electronic"> Electronics<br />
<input type='radio' name='category' value="Video-game"> Video games<br />
<button type="submit" class="btn btn-primary">Display Selected Products</button>
</p>
</form>
<hr class="hrule">
</hr>
<h3>Problem 4: Display a list of products (title, price, category) with a price < 500 :</h3> <p><a
href="problem4.php">Expensive Products</a></p>
<hr class="hrule">
</hr>
<h3>Problem 5: Compute the number of containers needed to complete the order</h4>
<form method="post" action="problem5.php">
<table class="table" style="width: 200px">
<tbody>
<tr>
<td>Length(Ft): </td>
<td><input type='number' name="cartLength"
placeholder="Enter the length of the container" required /></td>
</tr>
<tr>
<td>Height(Ft): </td>
<td><input type='number' name="cartHeight"
placeholder="Enter the height of the container" required /></td>
</tr>
<tr>
<td>Distance (Mil): </td>
<td><input type='number' name="distance" placeholder="Enter the distance"
required /></td>
</tr>
</tbody>
</table>
<p><input type='submit' name='submit' value="Estimate Transportation Charges"
class='btn btn-primary'>
<input type='reset' class='btn btn-default'>
</p>
</form>
</div>
</body>
</html>