What if the ATM.html is the following:<form action="debit" method="POST"> <p><strong>Please select the amount that you want to withdraw from your account?</strong></p> <dl> <dd><input type="radio" name="Amount" value="1">1 </dd> <dd><input type="radio" name="Amount" value="10">10</dd> <dd><input type="radio" checked name="Amount" value="100">100</dd> <dd><input type="radio" name="Amount" value="1000">1000</dd> </dl> <p><input type="submit" value="Submit"> </p> </form> <form method="POST" action="credit"> <p><strong>Please select the amount that you want to deposit in your account?</strong></p> <dl> <dd><input type="radio" name="Amount" value="1">1 </dd> <dd><input type="radio" name="Amount" value="10">10</dd> <dd><input type="radio" checked name="Amount" value="100">100</dd> <dd><input type="radio" name="Amount" value="1000">1000</dd> </dl> <p><input type="submit" value="Submit" name="B1"></p> </form> <form method="GET" action="checkBalance"> <p><input type="submit" value="Check Balance" name="B1"></p> </form>
Question
What if the ATM.html is the following:<form action="debit" method="POST"> <p><strong>Please select the amount that you want to withdraw from your account?</strong></p> <dl> <dd><input type="radio" name="Amount" value="1">1 </dd> <dd><input type="radio" name="Amount" value="10">10</dd> <dd><input type="radio" checked name="Amount" value="100">100</dd> <dd><input type="radio" name="Amount" value="1000">1000</dd> </dl> <p><input type="submit" value="Submit"> </p> </form> <form method="POST" action="credit"> <p><strong>Please select the amount that you want to deposit in your account?</strong></p> <dl> <dd><input type="radio" name="Amount" value="1">1 </dd> <dd><input type="radio" name="Amount" value="10">10</dd> <dd><input type="radio" checked name="Amount" value="100">100</dd> <dd><input type="radio" name="Amount" value="1000">1000</dd> </dl> <p><input type="submit" value="Submit" name="B1"></p> </form> <form method="GET" action="checkBalance"> <p><input type="submit" value="Check Balance" name="B1"></p> </form>
Solution
This HTML code represents three forms on a webpage, likely for an online banking system.
-
The first form is for withdrawing money from an account. The user can select the amount they want to withdraw by choosing one of the radio buttons. The options are 1, 10, 100, and 1000. The form uses the POST method to send the data to the 'debit' action.
-
The second form is for depositing money into an account. The user can select the amount they want to deposit by choosing one of the radio buttons. The options are the same as the first form. This form also uses the POST method to send the data, but to the 'credit' action.
-
The third form is for checking the balance of the account. It doesn't require any user input other than clicking the 'Check Balance' button. This form uses the GET method to request data from the 'checkBalance' action.
Each form has a submit button that the user can click to send the form data.
Similar Questions
Draw the Sequence Diagram to Withdraw the Money from ATM
Design a logic circuit for an ATM system. The ATM has three options: print a statement, withdraw money, or deposit money. The ATM will charge a $1 fee to: ● Withdraw money ● Print a statement without depositing money / Withdraw money ‘1’, ● Print statement w/o depositing money ‘1’ ● State of the ATM is ‘1’ when it charges $1.
You are required to prepare the sequence diagram for withdrawing the money from the ATM for the following sequence of the events: The customer is able to make withdrawal of Money from the Bank ATM. The system employs the standard procedure for withdrawal of money by validating the card and account holder password. Assume that the main objects in this case are Customer and ATM.
0.(Complusory) Create three servlets, namely CreditServlet.java, DebitServlet.java, andCheckBalanceServlet.java, so that a user accessing ATM.html can credit money, debit money, andcheck the balance of his/her account. Note that the servlets need to share a session-based object tokeep track of the balance in the account.1. After clicking “Check Balance” 2. After crediting $1003. After debiting $1000
Prepare a PL/pgSQL block that simulates an ATM transaction system.•If the withdrawal amount is less than or equal to 0, the block should display an "Invalid withdrawal amount" message.•If the withdrawal amount is greater than the account balance, the block should display an "Insufficient funds" message.•If the withdrawal amount is up to Rs. 20000, the block should perform a withdrawal and deduct the amount from the accountbalance.•If the withdrawal amount is up to Rs. 40000, the block should perform a withdrawal, deduct the amount, and apply a transactionfee 5%.•For withdrawal amounts greater than Rs. 40000, the block should perform a withdrawal, deduct the amount, and apply a highertransaction fee 18%.The block should also display the current account balance after each scenario
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.