C# Practice: Making a Tip Calculator

  1. A variable representing the bill of $40.
  2. A variable representing the percentage of the tip. (The user has the option of adding what they want. Default would be 20%)
  3. A variable that represents the percent in the form of a decimal. (C# doesn’t know what a percent is, we have to tell it what it is.)
  4. A variable that represents how much the tip actually is.
  5. A variable that is the sum of the bill and the tip.
I also previously declared a variable for tipTotal and finalBill

--

--

--

Currently learning to code with the help of GamedevHQ in order to someday my my game ideas come to life!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Cypress — a genuine alternative to Selenium at last?

Interleaved and Concurrent NAND Operations — SSD Firmware Development — Part 7

Search Google Like a Pro

All About Docker Using Virtualization

A practice for gaining better feedback from Sprint Review

Easily load data into your Scratch Org (or Sandbox): Part 2

Domain anemia

The Unstake Option for Stakers  is Also Available in the COTI MainNet Wallet

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sabrina Windsor

Sabrina Windsor

Currently learning to code with the help of GamedevHQ in order to someday my my game ideas come to life!

More from Medium

C# Refreasher: Enums!

Four Variable Types

How to Use Git with Unity

Day 8 of Game Dev: The importance of naming variables and writing pseudo code!