← Back

Code Challenge 5 - Tip Calculator


Introduction

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.

Terms

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.

Examples

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