Design comparison
Solution retrospective
you're welcome to post ur suggestions on this solution... Ty
Community feedback
- @MuriWolfPosted over 2 years ago
Hi bro! whats up?
Congrats for finishing this challenge!
I just wanna give you some advices, then you can fix it. First, you layout looks great! But the math part is not doing well, for me just worked after i press the reset button, but the math is not 100% correct. In the tip amount, you could use: (bill * percentage / 100) / people, and for the total: (bill * percentage / 100) + bill) / people. (The percentage is the 5%, 10%, 15%... and you could execute the math when the user clicks in the percentage, then the program gets the two inputs, do math and show the results.)
If you have some question or anything, please do! I will try to help you.
1@KruzadeR-VictoRPosted over 2 years agoTy @MuriWolf , i really appreciate your suggestions.
firstly, regarding the calculation i think it is supposed to be calculated for the bill genarated including the tip percentage for each person like let's say the bill is $100 and the tip amount is 5% and there's 2 people then total tip is ($100*5/100) = $5 and for each that will be 5/2 = $2.5 tip . And splitting the base amount which is $100 for each will be $100/2 = $50.00 .And the total amount to be paid by each person her becomes $50 + $2.5 =$52.50 . That was my calculation.I hope i'm not getting the objective wrong.
secondly i'm really glad that you pointed out the percentage part, i missed that one but i've updated my solution you can check it out .
Thank you once again :)
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord