Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a banking program with html and javascript must have javascript and html in the code must have javascript and html in the code Your

create a banking program with html and javascript

must have javascript and html in the code

must have javascript and html in the code

Your supervisor has asked you to create a simple bank transaction web page so that customers can do online banking. You remember you learn about the forms and arrays. So you decided to use forms and arrays. See the array discussion in Helpful Hints.The HTML page will use HTML controls to facilitate user input. The web page has three main sections. They are Account Info, Transactions and View Transactions. The Account Info section get user name and account type (saving or checking). The Transactions section allows user to deposit, withdraw, transfer or view the transactions. The View Transactions section displays user transactions. See the sample outputs for more info. The required user inputs are: ? Account Info o Name: User inputs their name in a textbox. o Account Type: User select either Saving or Checking radio button. Default to Saving. ? Transactions: o Amount: User enters amount value in a textbox. o Transfer From and Transfer To: Drop down menu. The list contains the following. The user must select either Saving or Checking. No default value. ? Saving ? Checking o There are four buttons in this section ? Deposit. Clicking this button adds the value in Amount textbox to the selected Account Type. If user did not enter proper data, a popup error message appears. ? Withdraw: Clicking this button subtract the value in Amount textbox to the Account Type. If user did not enter proper data, a popup error message appears. ? Transfer: Clicking this button transfer the value in Amount textbox from the Transfer From account to the Transfer To account. The Transfer From account must be different from Transfer To account, ie, either from saving to checking or checking to saving. If the Transfer From account is same as the Transfer To account, a popup error message appears. ? View Transaction: Clicking this button displays the transactions in table form in the View Transactions section of the web page. The View Transactions section displays the transactions in table form. See the sample outputs. Action Items/Programming Requirements ? The solution must use and deliver both an HTML and at least one JS file. ? The JS file(s) must be referenced in the tag of the HTML document using the (script) tag to load your function so it can be called later on. ? The solution should not use a (script) in the of the HTML. The HTML page should use HTML controls, and call functions in the JS file(s) via event handlers. ? The prompt() function should not be used to gather information from the user. ? The JS file must not contain any prompt() functions, and must not contain any document.write, document.writeln or any other code that puts text to the HTML page. The JS file(s) is to place dynamic HTML in a div on the HTML page. ? Use the attached util.js JavaScript form utilities to help with the form manipulation. See the util.js discussion in Helpful Hint section. ? Put the HTML and JS files in the same folder. ? Try to make your solution look similar to the screen shots. ? Put identifying information in your files: your name, assignment name/number term/class. ? Example for HTML: ? ? Example for JS: /** * @author YourName * Lab 3 - 2016-FA-ITEC 136 */

must have javascript and html in the code

must have javascript and html in the code

what it should look like is below

image

image

Lab 3-Bank 127.0.0.1:8020/Lab/lab3_bank.html Search Welcome to Simple Bank where we make banking simple! Account Info Name: testuser Transactions Account Type: Saving Checking Amount: Deposit View Transactions Name: testuser Transfer From: Transfer To: Withdraw Transfer View Transactions Account: Saving Initial Balance: $1000.00 Description Amount Balance Transfer To Checking $-500.00 $500.00 Withdraw $-23.33 $476.67 Deposit $102.20 $578.87 Transfer From Checking $234.00 $812.87 x

Step by Step Solution

3.42 Rating (146 Votes )

There are 3 Steps involved in it

Step: 1

Sample code html file Title of your page script srcscriptjs script Welcome to Simple Bank where we make banking simple Account Info Name Account Type Saving Checking Transactions Amount Transfer From ... 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

Step: 3

blur-text-image

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

College Accounting

Authors: Tracie Nobles, Cathy Scott, Douglas McQuaig, Patricia Bille

11th edition

978-1111528300, 1111528128, 1111528306, 978-1111528126

More Books

Students also viewed these Electrical Engineering questions

Question

Propose a reasonable mechanism for the following reaction. OH

Answered: 1 week ago