/    Sign up×
Community /Pin to ProfileBookmark

javascript miles per gallon code

a javascript program that will take as input the miles driven and gallons used (both as integers) for each tankful.program should calculate and outpul xhtml text that displays the number of miles per gallon obtained for each tankfull and prints the combined number of miles per gallon obtained for all tankfuls up to this point. must use prompt dialogs to obtain data from user…thanks in advance for your help!!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMar 10.2006 — This seems like a school assignment. Is it? If so, then if you don't understand how to do your school assignments, you should be asking your teacher for this kind of help. You will benefit in the long run.

If not an assignment, then post some JavaScript and HTML code to show what you're working on.
×

Success!

Help @mvstud 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...