/    Sign up×
Community /Pin to ProfileBookmark

Creating a table with mathematical equations dependant on variables.

I have a script that works ([URL=http://dempseygraphics.com/calc.html]HERE[/URL] ) and I need to add some more equations to it. Would anyone be able to show me how to create a table with the information depending on variables entered by the user?

This script already calculates: miles per gallon, gallons per day, miles per year, and cost per year.
From the variables of: miles per fill up, gallons per fill up, cost of gas, and days between fill up.

I would like to add a table to this script with: gallons saved per day, cost saved per day and cost saved in a 1, 3, and 5-year span. All of these variables should be based on a reduction of a 5%, 10%, 15%, 20%, 25% gas intake or usage.

If anyone can help it would be much appreciated… I have been slamming my head on this one for a couple of hours now.
Thanks,
-J

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@JMRKERJul 18.2006 — Can you post a small sample of the table (rows, cols, heading, etc) you desire?
×

Success!

Help @redgoat 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,
)...