Question
In C#, Write a program that can be used to determine the tip amount that should be added to a restaurant charge. Allow the user
In C#, Write a program that can be used to determine the tip amount that should be added to a restaurant charge. Allow the user to input the total, before taxes and the tip percentage (15% or 20%). Produce output showing the calculated values including the total amount due for both the 15% and the 20% tips. Tax of 9% should be added to the bill before the tip is determined. Write appropriate methods for your solution.
1) Create Only 4 methods GetTotal, CalculateTaxDue, CalculateTip, and Display Totals.
2) Using proper naming conventions for constants (UPPER_CASE), variables (camelCase) and
methods (PascalCase).
3) Output should be formatted properly.
4) Visual Studio should display output:
Total Before Taxes and Tip: $50.00
Tax(9.00%): $4.50
Tip(15.00%): $7.50
Total including taxes and with 15% tip: $62.00
Tip(20.00%): $10.00
Total including taces and 20% tip: $64.50
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started