My version calulates a daily price and also the total weekly price once the calculate button is pressed.
There may be much better ways to do it as this is an old tutoria.l In any case I have tried a few things such as
d(witem1 + witem2 + witem3 + witem4 + witem5 + witem6 + witem7 + witem8*100)/100;
This would for example produce a leading zero i.e 0.54 rather than 54.05. If I use *1)/1; then this would produce 54.
If I do not use the Math.Round than I get 2 decimal places on occasion but the above would for example be 54.05000000000.
I hope this makes sense. Please advise if I am going about this in the wrong way.
I have attached the calculate.js. Please remember I am learning and I should imagine this is very bloated.