This is for the coding of a script to calculate the cost of smoking over specific periods.
Tell us how you will do this.
The currency for this is to be UK Sterling.
The user will be asked to enter the following information:
Age when started smoking
No of cigarettes smoked daily
Cost of a packet of cigarettes (format 0.00)
Which will then display the following spending summary information:
Life time (assuming they will live to age 70)
Then second portion of calculator takes the above figures and calculates Potential Savings based on an annual rate of return that the customer will enter:
Annual rate of return %
You could have saved in a year
You could have saved to date
You could have saved in a life time
And the above saving summary will be summarised in an interactive graph.
Ajax seems to be the logical technology for this.