subject

CIS385 Final function openAccount() {
/*
- get the account and initial amount values
- check that all necessary information is provided
- call the setCookie function to create account
*/
}

function Deposit() {
/*
- get the account and amount values
- check that all necessary information is provided
- alter cookie with current amount of deposit
*/
}

function Withdraw() {
/*
- get the account and amount values
- check that all necessary information is provided
- alter cookie with current amount of withdraw
*/
}

function details() {
var cookievalue = "", str = document. cookie;
var total_bank = 0;
var prod_id = 1;
var cookie_array = str. split(";");
var x = " ";
x += " Bank Accounts ";
x += " " +
" Account " +
" Balance " +
" Actions ";
if (document. cookie. length !== 0) {
for (var i = 0; i < cookie_array. length; i++)
{
var B = cookie_array[i].split("=");
var Bname = B[0].toString();
x += " " + B[0] + " ";
x += " " + B[1] + " ";
x += " ";
x += " ";
total_bank += parseInt(B[1]);
}
}
x += " " + total_bank + " ";
x += " ";
document. getElementById("accounts").innerHTM L = x;
}

function eraseCookie(name) {
alert("Deleting Account: " + name);
setCookie(name, "", -1)
details();
}

function setCookie(cname, cvalue, exdays) {
var d = new Date();
d. setTime(d. getTime() + (exdays * 24 * 60 * 60 * 1000));
var expires = "expires=" + d. toUTCString();
document. cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}

function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document. cookie);
var ca = decodedCookie. split(';');
for (var i = 0; i < ca. length; i++) {
var c = ca[i];
while (c. charAt(0) == ' ') {
c = c. substring(1);
}
if (c. indexOf(name) == 0) {
return c. substring(name. length, c. length);
}
}
return "";
}

BMCC E-BANK

Account:

Balance:

Account:

Amount:

Account
Transaction
Previous Balance
Amount
New Balance

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
question
Computers and Technology, 22.06.2019 12:00
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
You know the right answer?
CIS385 Final function openAccount() {
/*
- get the account and initial amount values
Questions
question
Mathematics, 26.09.2019 07:30
question
Social Studies, 26.09.2019 07:30
question
Mathematics, 26.09.2019 07:30
Questions on the website: 13722361