+ 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

4th May 2021, 4:23 PM
Aminu Ibrahim
Aminu Ibrahim - avatar
2 Respostas
+ 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.
4th May 2021, 4:47 PM
minirkk
minirkk - avatar
+ 1
RKK provided you the hint for more hints. Post your attempt too
4th May 2021, 6:39 PM
Atul [Inactive]