Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a JavaScript file named as your student ID (101010101.js) and perform the followings: Create a variable that contains the first four digits of your

Create a JavaScript file named as your student ID (101010101.js) and perform the followings:

Create a variable that contains the first four digits of your student ID as number (this will represent users account balance)

Output users account balance on the screen (in the h3 element created above)

i.e: Your account balance is: $1010 (10%)

Prompt user to enter one of the following options: (2 or d or D, 3 or w or W) (10%)

If (2 or d or D) is entered? --- user would like to do a deposit (20%)

prompt user to enter the amount they would like to deposit:

If a valid number, greater than zero is entered, add that to the original account balance and display new balance on the screen (in h3 element created above)

i.e: User enters 5.75 you would display: Your current balance is: $1015.75

Otherwise (invalid value is entered), display following message in an alert dialog box:

You did not enter a valid number!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

Students also viewed these Databases questions

Question

How can we visually describe our goals?

Answered: 1 week ago

Question

What metaphors might describe how we work together?

Answered: 1 week ago

Question

What are some of the possible scenes from our future?

Answered: 1 week ago