/    Sign up×
Community /Pin to ProfileBookmark

Simple flowchart, need help.

Hey guys. I’m totally new to Javascript. I was given a flowchart in order to write a very simple javascript program.

Can any of you help me? I don’t even know where to start honestly. It seems like most of you would be able to write this program in seconds.

Anyways here is the image: [url]http://nxdesigns.net/temp/bank.gif[/url]

Thank you for your time.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@VladdyNov 18.2005 — Start with attending and paying attention in your classes
Copy linkTweet thisAlerts:
@powerauthorNov 18.2005 — I have been attending and paying attention in classes.

I missed my lab on that one day due to my family needing to see me concerning urgent issues.

From my understanding, the A.I. in our course that day gave us extra instructions that would've helped very much. I have been looking at this for 2 hours now and am not sure how to adequately lay out the variables I need to use.
Copy linkTweet thisAlerts:
@powerauthorNov 18.2005 — This is what I have so far: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<SCRIPT LANGUAGE='Javascript'>

var sInput;

var input;

var accountbalance;

var difference;

accountbalance=1000

difference = 1000 - (input * 10)


sInput = prompt("How much would you like to withdraw in groups of 10?","");

input = parsInt(sInput);

if (input * 10 <= accountbalance)

document.write ("You have " diff" dollars left!")

else (input * 19 <= accountbalance)

document.write ("You do not have enough money!")
×

Success!

Help @power spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...