Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

Explain the market segmentation.

Answered: 1 week ago

Question

Mention the bases on which consumer market can be segmented.

Answered: 1 week ago

Question

Explain consumer behaviour.

Answered: 1 week ago