+ 1
Rewrite so that it uses pennies for all calculations.Code to round x to closest penny and put in in y is y = (long)Math.round(x)
Enter amount: 39.96 (this is an input) GST: $2.00 Total = 41.96 https://code.sololearn.com/cfLBoAW8Iyzd/?ref=app
3 ответов
+ 5
- take a float or a double
- declare a var named gst
- declare a var named sum
- sum= input + gst
+ 1
Please show us your attempt.