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

BANK ATM application program in JAVASCRIPT, that allows the user to manage trans

ID: 3776321 • Letter: B

Question

BANK ATM application program in JAVASCRIPT, that allows the user to manage transaction data. I need to withdraw,deposit,etc, enter a 4 digit code if possible before any transaction.. Make sure it produces tabular feedback to the user. (meaning user should be able to enter a quantity in a box 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 appraciate it. thanks alert('Welcome to myATM!', 'Automatic Teller Machine'); 'How much would you like to deposit?' How much would you like to withdrawal? Please take your money now..Thanks for your using my ATM, Program uses two or more JavaScript library objects Program reads input from the user though the web page, Program uses two or more JavaScript library objects One or more of the program’s user-defined methods accept one or more arguments, or returns a value Problem statement clearly describes the program to be developed, states its benefits, and explains the programming concepts needed to build the program...

----EXAMPLE BUT NEEDS TO BE AN ATM NO A CALCULATOR-------------------------------------------------------------------------------------------------------------

ATM                  ( box to enter input)

DEPOSIT                (box to enter input)

WITHDRAW              ( box to enter input)

BALANCE               ( box to enter input)

Hours worked oo Hourly Rate 76.8 6758.40 Calculate

Explanation / Answer

<html>
<head>
<script>
function verify()
   {
   var pin = prompt("Enter your ATM PIN");
   if(pin != "Pass@123")
       {
       alert("Invalid pin. Please try again!");
       verify();
       }
   alert("Authenticated!");
document.getElementById("bal").innerHTML = "100";
   }

function diposit()
   {
   var amount = prompt("How much would you like to deposit?");
   if(amount <= 0)
       alert("Invalid amount. Please try again!");
   else
       {
       alert("Transaction successful. ");
       document.getElementById("msg").innerHTML = "$" + amount + " successfully diposited to your account."
       document.getElementById("bal").innerHTML = parseInt(document.getElementById("bal").innerHTML) + parseInt(amount);
       }
   }
  
function withdraw()
   {
   var amount = prompt("How much would you like to withdrawal?");
   if(amount <= 0)
       alert("Invalid amount. Please try again!");
   else
       {
       alert("Transaction successful. Please take your money now.");
       document.getElementById("msg").innerHTML = "$" + amount + " successfully withdrawn from your account.";
       document.getElementById("bal").innerHTML = parseInt(document.getElementById("bal").innerHTML) - parseInt(amount);
       }
   }

</script>
<body>
Message: <span id='msg'></span><br>
Balance $: <span id='bal'></span><br>
<input type="button" value="Diposit" /> &nbsp
<input type="button" value="Withdraw" />
</body>
</html>