← Back

Code Challenge 5 - Tip Calculator


Let’s be honest, you’re probably a cheapskate. You need a program that allows you to calculate how much you are supposed to tip.


Bill/Subtotal - How much your food and drink cost

Tip/Gratuity - How much money you would like to give your server. Usually 18% - 20% of the subtotal.

Total - Final cost: bill + tip.


Skills to Practice

Challenge Tasks

  1. Create a console project named CodeChallenge5TipCalculator.
  2. Complete the folowing tasks:
  3. Prompt the user to enter their bill amount.
  4. Prompt the user to enter their tip percentage as a whole number. For example, 20 means 20%.
  5. Calculate how much the user should tip and the total.

Sample Output