S
S
sbh2015-10-15 08:06:24
Web development
sbh, 2015-10-15 08:06:24

How to write a calculator for calculations?

Actually the question is next, it is necessary to implement a web application for calculating the cost.
The parameters should change depending on what the client chose at step 1.
Those. in 1 window there is only 1 list with a choice, and depending on what the person has chosen, he gets to the next screen where the corresponding fields for entering data.
I think this can be tried to do in the form of a one-pager.
What framework would you recommend to use?
The same question is where to store the parameters for calculations. It is clear that in the database, but what js framework can work with the database? Data for calculations will sometimes need to be corrected.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Foo Bar, 2015-10-15
@sbh

If there are not many parameters, then you can store them in a json file directly on the server. You can edit in a text editor if necessary.
And so we already wrote about Angular above. But you can also write on jQuery + Bootstrap. jQuery can get data from JSON. Screen transitions are simply implemented using Bootstrap tabs. The forms themselves are also quite simple to make on Bootsrap. The logic of calculation on JS can be washed down.
But keep in mind that in this case, the calculation logic will be available to all users who can dig.

K
kapuletti, 2015-10-15
@kapuletti

Yes, it is possible with a framework, it is possible without it. Angular fits exactly. Calculation parameters can be loaded from the server via JSON.

V
vigame, 2015-10-15
@vigame

Basically if the results are not saved enough JavaScript. Check out loan calculators. And so Joomla or WordPress + PHP + JavaScript.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question