-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchangeLab.html~
More file actions
65 lines (52 loc) · 1.56 KB
/
Copy pathchangeLab.html~
File metadata and controls
65 lines (52 loc) · 1.56 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/xml; charset=utf-8" />
<title>Change Maker Lab</title>
<link rel = "stylesheet"
type = "text/css"
href = "../ajhStandard.css" />
<style type = "text/css">
dt {
float: left;
width: 10em;
clear: left;
}
</style>
</head>
<body>
<h1>Change Maker Lab</h1>
<div class = "singlePanel">
<h2>Objectives</h2>
<p>
Create a program that calculates change after a purpose. This
will be a <em>sequential</em> algorithm, which is one of the
simplest programming patterns. Your solution requires no
branching or looping. Simply write a series of statements that
will execute in order.
</p>
<h2>Discussion</h2>
<p>
The program should ask for a purchase price and the amount of
cash tendered. It should then determine how many of the
following denomininations should be returned:
</p>
<dl>
<dt>penny</dt>
<dd>$0.01</dd>
<dt>nickel</dt>
<dd>$0.05</dd>
<dt>dime</dt>
<dd>$0.10</dd>
<dt>quarter</dt>
<dd>$0.25</dd>
<dt>dollar</dt>
<dd>$1.00</dd>
<dt>five</dt>
<dd>$5.00</dd>
<dt>ten</dt>
<dd>$10.00</dd>
<dt>twenty</dt>
<dd>$20.00</dd>
</dl>