Skip to content

🏧 Simple ATM Simulator (Java) A beginner-friendly Java console app that simulates basic ATM operations. Great for practicing variables, loops, conditionals, and methods.

Notifications You must be signed in to change notification settings

jxwatson251/Simple-ATM-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here's a beginner-friendly Java problem that helps you practice basic concepts like variables, loops, conditionals, and methods:

Problem: Simple ATM Simulator

Write a Java program that simulates a basic ATM. The program should:

  1. Start with a balance of $1000.
  2. Show a menu with the following options: Check Balance Deposit Money Withdraw Money Exit
  3. Allow the user to choose an option using a number input.
  4. Perform the selected operation and repeat the menu until the user chooses to exit.

*Example:

Welcome to the ATM!

  1. Check Balance

  2. Deposit Money

  3. Withdraw Money

  4. Exit Enter choice: 2 Enter amount to deposit: 500 Deposit successful!

  5. Check Balance

  6. Deposit Money

  7. Withdraw Money

  8. Exit Enter choice: 1 Current Balance: $1500

To run our project:

  1. Clone the repo
  2. Open in your IDE (VS Code for example)
  3. Run the main class or unit tests

To run our project CLI

  1. Open Terminal in VS Code
  2. Run from the root app/src/main/java
  3. Run command javac q1/team1/*.java
  4. Run command java q1.team1.CartCLI (To initiate interactive Terminal)

About

🏧 Simple ATM Simulator (Java) A beginner-friendly Java console app that simulates basic ATM operations. Great for practicing variables, loops, conditionals, and methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages