Hack Project Part III (ATM)

Hello it’s Niko today is the day I will show you the ATM program I have created in Hack. I initially designed in Java a few weeks ago to take user input. However, I realize Hack, a back end web language does not take user input how most languages we are familiar with but rather takes user input from an HTML form. For this project I wanted the Hack language to be the center focus , so I have will not be providing input when I run the ATM but rather it will be provided in the source.

 

First I’ll show you the accounts in the bank then we’ll start with the demonstration.

Accounts on File
The accounts of Niko and George are added to the accounts of the bank.

I am showing you this code so there isn’t questions of why is the balance this and not . It’s because I decided to make this problem kind of real and gave this guy Niko an initial balance of $5.

Now to demonstrate I will login into Niko’s Account ,make a deposit and a withdrawl.

Setup Deposit
We are making deposit of $25 into our
Account Operations
Account Operations to apply to our account

This was an interesting project to work on.

Leave a comment