My family goes out to eat every Friday and I am tired ofdoing tip math on my phone at the table. Let me type in thebill and the percent I want to leave, and tell me the tipand the total.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
double.Parse before you can do arithmetic with them.18 / 100.0, not by 18.:F2.Only one-star challenges have this section. If you already know how to begin, skip it — and when you move up to two stars, working out the order yourself is part of the job.
double.Parse.:F2.Bill amount? 42.50Tip percent? 18
Tip: $7.65Total: $50.15Verified in a real run — a 42.50 bill at 18 percent comes to exactly $7.65 in tip and $50.15 total.
Your requirements list and your program file, named cc-tip-calculator.