+ 1
I try to solve this question but still I fail to work it out I need help pls
When you go out to eat, you always tip 20% of the bill amount. But who’s got the time to calculate the right tip amount every time? Not you that’s for sure! You’re making a program to calculate tips and save some time. Your program needs to take the bill amount as input and output the tip as a float. Sample Input 50 Sample Output 10.0
2 Antworten
+ 4
part/whole = 20%
part/50 = 20/100
part = 50 * (0.2)
part = 10.0
Note:
part is the tip.
whole is the bill amount.
20% is tip percentage.
I hope this helps.
+ 1
RKK provided you the hint for more hints. Post your attempt too