Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Java, program a virtual ATM machine for the IIT Bank and Trust Company. The c

ID: 3833736 • Letter: I

Question

In Java,

program a virtual ATM machine for the IIT Bank and Trust Company. The client wants a GUI for its virtual ATM. The program will allow a user to enter their personal pin number (only 4 numbers allowed from 0001 to 9999). The user then must choose which account they would like to make a transaction: Savings Account or Checking Account, or Loan Payment (such as a mortgage, a car loan, or a student loan). If the user chooses a savngs account, then the allowed transactions are either to add money to the saving account or to withdraw money from the savings account. A balance must be given to the user at the end of the transaction. Assume that the user has a starting balance of $4000 in each of their checking and savings accounts. Error trapping: if a balance goes below $200, then an alert to the user will be issued.

For the loan payments, the user is to choose whether the loan is for a mortgage, a student loan, an auto loan, or a personal loan. For Mortgage: assume $350,000 balance and payment of $3500 per month; For Student Loan: assume $75,000 balance and payment of $250 per month; For Auto Loan, assume $35,000 balance and payment of $500 per month; For Personal Loan, assume $5,000 and payment of $1000 per month.

Explanation / Answer

hi, Find the Pseudo little working example for the commandline Java code. Please add the code required for calculations. 1.import java.util.Scanner; public class ATM_Transaction { public static void main(String args[] ) { int balance = 4000, withdraw, deposit; Scanner s = new Scanner(System.in); while(true) { System.out.println("Automated Teller Machine"); System.out.println("Choose 1 for Withdraw"); System.out.println("Choose 2 for Deposit"); System.out.println("Choose 3 for Check Balance"); System.out.println("Choose 4 for EXIT"); System.out.print("Choose the operation you want to perform:"); int n = s.nextInt(); switch(n) { case 1: System.out.print("Enter Loan to be withdrawn:"); System.out.println("Choose 1 for Mortagae"); System.out.println("Choose 2 for Auto loan"); System.out.println("Choose 3 for Student loan"); System.out.println("Choose 4 for Personal Loan"); System.out.print("Choose the operation you want to perform:"); int loansel = s.nextInt();                     switch(loansel)                   {                               case 1:                                                break;                               case 2:                                                break;                               case 3:                                                break ;                               case 4:                                                break; withdraw = s.nextInt(); if(balance >= withdraw) { balance = balance - withdraw; System.out.println("Please collect your money"); } else { System.out.println("Insufficient Balance"); } System.out.println(""); break;           } case 2: System.out.print("Enter money to be deposited:"); deposit = s.nextInt(); balance = balance + deposit; System.out.println("Your Money has been successfully depsited"); System.out.println(""); break; case 3: System.out.println("Balance : "+balance); System.out.println(""); break; case 4: System.exit(0); } } } }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote