Consider your tip.html page . If you enter a check amount of $17.73 and select a 15% tip, the page will report 'You should tip $2.6595.' While mathematically accurate, this amount of precision is overkill. When dealing with dollars and cents, you really want the answer rounded up to two decimal places. In this case, $2.66.
Modify your tip.html page so that the tip amount is rounded up to two decimal places. Note that to round up, you will need to use the Math.ceil function instead of Math.round (which can round either up or down, depending on which integer value is closer.
```
Tip Calculator
Enter the check amount: $
Enter the tip percentage: %
```
You might also like to view...
Object-oriented programming is a way of designing and coding applications such that interchangeable software can be used to build larger programs.
a. controls b. structures c. components d. languages
To maintain optimal performance, one typical recommendation suggests that when the memory usage associated with a particular CPU-based system averages __________% or more over prolonged periods, you should consider adding more memory.
A. 40 B. 60 C. 10 D. 100
The interface is the part of a method that the method's client does not see.
Answer the following statement true (T) or false (F)
Which key is used to step over a function?
A. F5 B. F10 C. F11 D. Ctrl-F10