-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbanking.html
50 lines (36 loc) · 2.36 KB
/
banking.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CST-171 Project Topics</title>
<!-- Bootstrap core CSS -->
<link href="https://v4-alpha.getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
.bold-italic { font-weight: bold; font-style: italic;}
</style>
</head>
<body>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1 class="display-3">Banking/Finance</h1>
<p>Examine a hypothetical savings account and implement the "Keep the Change" program.</p>
</div>
</div>
<div class="container">
<!-- Example row of columns -->
<p>Keep the Change is a program offered by Bank of America. In this project, you're asked to create a Python program that implements the program on sample bank account data.</p>
<p>Here's how Keep the Change works. Each purchase is rounded up to the nearest dollar and the difference is moved from your checking account to your savings account. For example, if you buy a coffee for $2.50 using your debit card, the purchase is rounded up to the nearest dollar (in this case $3) and the difference ($3 - $2.50 = 50 cents) is moved from your checking account to your savings account. Bank of America says that most people don't actively contribute to their own savings accounts. Keep the Change helps you save money without thinking about it.</p>
<p>In this project, you'll be given a sample checking account statement listing all the purchases made over one year. Your task is to create a Python program that:</p>
<ul>
<li>Reads the data from the provided text file</li>
<li>Each line of the text file contains the date the purchase was made and the amount. You are asked to split each line apart and store the date and amount in separate variables</li>
<li>For each purchase, compute the change the change that should be moved to the savings account</li>
<li>Keep a running total of how much has been moved to the savings account</li>
<li>Print to the screen the total amount of money moved to the savings account</li>
<li>Create and write to an output file where you store how much was moved on each date as well as the grand total</li>
</ul>
<hr>
</div> <!-- /container -->
</body>
</html>