ATM Terminal App
Challenge
Create an ATM application
- Set up a variable to hold a balance of 100
- Create a method to withdraw 20 and display balance
- Create a method to deposit 20 and display balance
- Ask the user whether they want to withdraw or deposit 20 from their bank account. Call the correct method depending on what the user enters
- loop over the users input 10 times
- Extra: determine how much was withdrawn or deposited
This app is written in Ruby.
Save the .rb file to your computer. To launch the ATM terminal app, enter 'ruby atm_terminal_app.rb' in terminal.