Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions