Question: 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

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

B) Javascript has 2 functions validateAmount.js and withdrwawAmount.js a. validateAmount: Make sure the amount entered is numeric, alert a message Please enter numeric value otherwise. b. withdrawAmount: Process transaction and alert one of the following three messages depending on the withdrawal amount i. Not multiple of 20: Incorrect withdrawal amount ii. Insufficient funds iii. Successful transaction! Current Balance is: + balance

Write a javascript for an ATM withdrawal application. The ATM machine will

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 500s. A) You have to declare an input type and a button in your HTML form with input type having a placeholdeir Enter withdrwal amountSubmit B) Javascript has 2 functions validateAmount.js and withdrwawAmount.js a. validateAmount: Make sure the amount entered is numeric, alert a message "Please enter numeric value" otherwise. b. withdrawAmount: Process transaction and alert one of the following three messages depending on the withdrawal amount i. Not multiple of 20: "Incorrect withdrawal amount" ii."Insufficient funds" iii. "Successful transaction! Current Balance is: " + balance 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 500s. A) You have to declare an input type and a button in your HTML form with input type having a placeholdeir Enter withdrwal amountSubmit B) Javascript has 2 functions validateAmount.js and withdrwawAmount.js a. validateAmount: Make sure the amount entered is numeric, alert a message "Please enter numeric value" otherwise. b. withdrawAmount: Process transaction and alert one of the following three messages depending on the withdrawal amount i. Not multiple of 20: "Incorrect withdrawal amount" ii."Insufficient funds" iii. "Successful transaction! Current Balance is: " + balance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!