Class ATM
Public balance As Double
Public pin As Integer
Public Sub New(p As Integer)
balance = 10000 'Assume you have 10000 in your account
pin = p
End Sub
Public Function login()
Dim p As Integer = 1234 'stored pin of your account & can
change if want
Dim status As Boolean
If (p = pin) Then
status = True
Else
status = False
End If
login = status
End Function
Public Sub deposit(amount As Double)
balance = balance + amount
End Sub
Public Sub withdraw(amount As Double)
balance = balance - amount
End Sub
Public Sub showBalance()
Console.WriteLine("Balance : " & balance)
End Sub
Public Sub logOut()
Console.WriteLine("Thank you !!")
Console.ReadKey()
End
End Sub
End Class
Module Module1
Sub Main()
Dim pin As Integer
Console.Write("Enter Pin : ")
pin = Convert.ToInt32(Console.ReadLine())
Dim bank As New ATM(pin)
Dim choice As Integer
If (bank.login() = True) Then
Console.WriteLine("1. Deposit")
Console.WriteLine("2. Withdraw")
Console.WriteLine("3. Balance")
Console.WriteLine("4. Logout")
While (True)
Console.Write("Enter your choice : ")
choice = Convert.ToInt32(Console.ReadLine())
Select Case choice
Case 1
Dim amount As Integer
Console.Write("Enter amount to deposit : ")
amount = Convert.ToInt32(Console.ReadLine())
bank.deposit(amount)
Case 2
Dim amount As Integer
Console.Write("Enter amount to withdraw : ")
amount = Convert.ToInt32(Console.ReadLine())
bank.withdraw(amount)
Case 3
bank.showBalance()
Case 4
bank.logOut()
Case Else
Console.WriteLine("Please enter valid option ")
End Select
End While
Else
Console.WriteLine("Wrong pin")
End If
Console.ReadKey()
End Sub
End Module
Create a ATM Machine. It will have all the basic functions of a ATM like a login, balance, deposi...
Create a application ATM basic application in Visual Basic.. Create a ATM Machine. It will have all the basic functions of a ATM like a login, balance, deposit, withdraw, continue to deposit, and to log out.
how can i code this only using a textbox for results Create Windows Forms applications called ATM Project that allows the customer to deposit the initial amount and enter the amount to be withdrawn. You need to display the total amount in the account, dispenses the money to the customer, and debits the account by the amount withdrawn including any service charges. The ATM allows a customer to withdraw a maximum of $500 per transition in $20 increments. If a...
Create any Application which have the following features:- - Register and Login - Use any 2 Jquery Plugin - Provide a link to a Basic calculator - Pattern Validation -Reading Data from Json File
BANK ATM application program in JAVASCRIPT, that allows the user to manage transaction data. like withdraw,deposit,etc. Make sure it produces tabular feedback to the user. (meaning user should be able to enter a quanity let's say $20 withdrawal and balance of $100, so it's balance will be $80..As well to deposit money and add the balance to that deposit. Finally to show (-) signs if balance is overdraw,,,Program reads input from the user though the web page., any help is...
If you could please assist me with this C# assignment. Screenshots would be greatly appreciated! Create a Windows application using C# visual studio that functions like a banking account register. The graphical user interface should initially allow the user to input the account name, number, and initial balance. Ensure that the full name is entered for the customer and that only numeric values are entered for number fields when the Create Account button is selected. Separate the business logic from...
Purpose: Demonstrate the ability to create and manipulate classes, data members, and member functions. This assignment also aims at creating a C++ project to handle multiple files (one header file and two .cpp files) at the same time. Remember to follow documentation and variable name guidelines. Create a C++ project to implement a simplified banking system. Your bank is small, so it can have a maximum of 100 accounts. Use an array of pointers to objects for this. However, your...
Project 9-2: Account Balance Calculator Create an application that calculates and displays the starting and ending monthly balances for a checking account and a savings account. --->Console Welcome to the Account application Starting Balances Checking: $1,000.00 Savings: $1,000.00 Enter the transactions for the month Withdrawal or deposit? (w/d): w Checking or savings? (c/s): c Amount?: 500 Continue? (y/n): y Withdrawal or deposit? (w/d): d Checking or savings? (c/s): s Amount?: 200 Continue? (y/n): n Monthly Payments and Fees Checking fee: $1.00 Savings...
Question #1 Write a javascript for an ATM withdrawal application. The ATM machine will only accept a transaction if the withdrawal amount X is a multiple of 20, and account has enough balance to perform withdrawal transaction (including bank charges) For each successful withdrawal the bank charges 0.50$. The account will have an initial balance of 500$. A) You have to declare an input type and a button in your HTML form with input type having a placeholder Enter withdrwal...
Question 3.1 Draw the class diagram for the ATM program in Question 2.1. Please find attached the scenario in the photos. this is for programming logic and design Scenario A local bank intends to install a new automated teller machine (ATM) to allow users (i.e., bank customers) to perform basic financial transactions (see below figure). Each user can have only one account at the bank. ATM users should be able to do the following; View their account balance. Withdraw cash...
USE RAPTOR PLEASE Could you please help me to create a FLOWGORRITHM for the following information? I need only FLOWGORRITHM showing flowchart with PICTURES (STEPS). Please help me You are writing a FLOWGORRITHM program that will act like an ATM machine. In order to access the ATM, the customer must enter their user name and their passcode. The list of legitimate users along with their user ID, passcode and account balance is provided to you below. There are only 3...