Reference no: EM131965381
Assignment
They want to give you access to their user database, so that users can log in, check their balances, and transfer money from checking to savings and back. For this assignment, you will need to create at least two pages: a login page, and an account balances page.
For this assignment, you will build upon your prior assignment 2. Using the style and pages of your assignment 2, you need to create a login and accounts page. The login page must be able to validate the valid logins, provided in this assignment. A valid login consists of only lowercase alpha characters. You are welcome to use a hard-coded array, CSV, or MySQL database to create your login page.
The account balance page must display both the savings and checking account balances. A transfer button should be readily accessible that lets a user transfer balances between the two. A fee of 1% is applied when transferring from savings, but there are no fees to transfer to savings. For example, if I have $100 in my checking account and $20 in my savings, and wanted to move all $100 to savings, I should be able to do so, resulting in $120 in savings. If I wanted to move all of the money back to checking, then the total amount should be $118.8.
You are welcome to use an external CSV or MySQL database for this assignment, but the following accounts must be present in the PHP files:
· User: tstark, pass: FEman, checkingBalance: $1,000,000,000, savingsBalance: $0
· User: bwidow, pass: gunsgunsgunsguns, checkingBalance: $420.00, savingsBalance: $1337.37
· User: spiderman, pass: doeswhateveraspidercan, checkingBalance: $5.92, savingsBalance: $12.00
· User: rastley, pass: NEVERGONNAtellaLIE, no account info
The functional requirements for this assignment include:
· At least two new pages are required: login, and accounts
· Only valid users should be able to login
· Input must be validated at login.
· Transfers must work between both accounts.
· Transfer amounts must be validated. Consider what happens if we try to transfer -$100.
· Transfer fees from savings must be applied.
· All inputs must be validated. A reminder: if your Javascript or PHP is broken, the resulting grade will be a zero. If your input results in an error that is not of your own creation, your resulting grade will be a zero. If you submit incomplete or empty PHP or Javascript, your resulting grade will be a zero.