Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Can anyone please help me with this assignment? The JavaScript program - Banking Transactions Requirements: The bank that needed the flowchart and pseudocode for calculating

Can anyone please help me with this assignment? The

JavaScript program - Banking Transactions Requirements:

The bank that needed the flowchart and pseudocode for calculating the final balances after transactions were processed, has given you the responsibility of creating a program for that purpose.

-Deposit: all deposits up to $3,000 dollars will be credited immediately. Deposits greater than $3,000 will receive a bonus of 5% of the portion of the deposit above $3,000. This amount and the bonus will be marked as Pending.

-Withdrawal: all withdrawal amounts that exceed the current balance will be rejected. In addition, any withdrawal that would result in a balance of $300 or less will be marked as Warning: Low balance.

-Balance: This transaction will simply display the current balance in the clients account.

- The input for any transaction will be the initial balance, a letter code (D, W or B) and the amount (for codes D and W). The output will be the current balance plus any special message or warning if any for codes D and W.

Requirements:

- You will enter a comment on the head section with your name on it.

- You will utilize prompt() functions to request input from the customer.

- You will utilize the alert() function to display your output as a clear and understandable message to the customer.

- Variable names should be descriptive. For example, if a program is calculating the tip given at a restaurant, an appropriate variable name may be tipAmount.

-The interaction with the user should be similar to that provided on the video example.

- The video attached on the Assignments webpage shows input numbers that may be used to test your program. Additional Information:

-Since the content of a text box - which is what the prompt() function generates - is going to be used in mathematical operations, use the function parseInt() to ensure that the numeric input is treated as numeric data. Syntax example: numericVariable = parseInt(numericVariable)

-To simplify the comparison of text data entered by the user, it is often easier to convert this text to upper case using the notation below. Syntax example: textVariable = textVariable.toUpperCase(); (See https://www.w3schools.com/jsref/jsref_toUpperCase.asp for additional example.)

- Syntax example for prompt function: var myName = prompt(Enter your name);

- Syntax example for alert function: alert(My name is + myName);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions