You are working on an app to calculate tips. Given 2 ints:
a, for the purchase amount in cents, and
b, for the quality of service received, can you calculate the tip in cents? Round the answer down to the nearest cent. Calculate the tip according to the following table:
Given an input of
1000 3, return
There was a rating of
3 which according to the above table means you should give a tip of 15%.
1000 * 0.15 = 150.
Java Casting Types