# Atm Projest for Cmis110 Essay

319 Words2 Pages
Declare variables Balance, Withdraw, Option, Deposit, Continue Start Output welcome message Set Balance = Floor (Random * 1000) + (Floor (Random *100) / 100) Output “What would you like to do? 1-Check Balance, 2-Withdraw, 3-Deposit Input Option Value of Option Output “Your balance is \$ ” + Balance Output “How much would you like to deposit?” Output “Insufficient funds” Input Deposit Output “How much would you like to withdraw? Balance = Balance + Deposit Input Withdraw Balance = Balance - Withdraw Value of Balance Output “Your new balance is \$” + Balance Output “Would you like to make another Transaction?” Input Continue End Value of Continue //ATM Machine Program v2.0 //Programmer: Michael Kissiah //Date: 20130811 //Class: CMIS 102 Main Module Declare Balance As Float Declare Withdraw As Float Declare Deposit As Float Declare Option As Integer Declare Continue As Integer //Begin program setting random balance 0-1000 Balance = = Floor (Random * 1000) + (Floor (Random *100) / 100) Write “Welcome to the MK Bank and Loan.” Call Welcome_Module End Program Welcome Module Write “What would you like to do today?” Write “1- Check Balance, 2-Withdraw, 3-Deposit” Input Option Select Case of Option Case 1: Call Balance_module Break Case 2: Call Withdraw_module Break Case 3: Call Deposit_module Break Default: Write “Invalid selection. Please try again.” Break End Case Write “Would you like to perform another transaction?” Write “1- Yes, 2-No” Input Option Select Case of Option Case 1: Call Welcome module Break Case 2: Write “Thank You! Have a nice day.” Return Default: Write “Invalid selection. Please try again.” Break End Case Balance module Write “Your balance is \$” + Balance Withdraw module Write “How much would you like to