Skip to content

ethankhoa/CFA-Ruby-ATM-terminal-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

CFA-ATM-terminal-app

ATM Terminal App

Challenge

Create an ATM application

  1. Set up a variable to hold a balance of 100
  2. Create a method to withdraw 20 and display balance
  3. Create a method to deposit 20 and display balance
  4. 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
  5. loop over the users input 10 times
  6. 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.

About

ATM Terminal App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages