More Printing
Let's get used to printing. Write a program that prints and ATM receipt for Evil Bank. An example is below. Your can look slightly different but try to line up the borders and the margins of the text as much as possible
The borders of the receipt are made up of the dash which is between the 0
and =
keys. And the |
pipe character which is above the [Enter]
key. You create a |
by holding [shift]
+ \
.
Your receipt will line up if you use only spaces. Tabs are handled differently by the editor (Eclipse) so just use spaces to make it easy on yourself. Eclipse will move the cursor 4 positions when you press [TAB]
. The tab character will be replaced by 8 spaces when the program executes.
+--------------------------------------+ | Evil Bank ATM Receipt | | Wednesday, December 2, 2015 | | ATM Location # 666 | | | | | | Account Number: 1234567 | | Customer: John Q. Public | | Transaction Type: Deposit | | Transaction Amount: $500.00 | | Account Balance: $1,500.00 | | | | Thank you for banking with us | | Have an evil day | | | +--------------------------------------+