Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# SOURCE CODE (NOT C++ OR JAVA) Assignment3C: Party of 6? Have you noticed that if you're dining in a restaurant with a group of

image text in transcribed

C# SOURCE CODE (NOT C++ OR JAVA)

Assignment3C: Party of 6? Have you noticed that if you're dining in a restaurant with a group of 6 or more people, that an extra 18% gratuity will be added to the bill? This is to ensure that your party doesn't leave without leaving a tip. Write a program that asks the user to input the number of people in their group and the cost of the bill. If the group has 6 or more people, the program will add 18% gratuity to the bill and ask the user if they want to leave an additional tip. If the user answers yes, the program will prompt the user to enter an additional tip and the program will print the total bill. If the user answers no, then the program just prints the total bill. If the group has less than 6 people, the program will ask for a tip, then calculates the total bill. You need to use the float data type for your variables. Sample Output #1: How many people in your party? 6 What is the total cost of your bill? 200 Your bill is $236 Would you like to include an additional tip (Y/N)? Y How much? 25 Total bill is: $261 Sample Output #2: How many people in your party? 4 What is the total cost of your bill? 300 Your bill is $300 How much for the tip? 25 Total bill is: $325

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

What tools might be helpful?

Answered: 1 week ago