Write a C++ program called "assignmentlcpp" that will calculate the tip to leave at a restaurant
Write a C++ program called "assignmentlcpp" that will calculate the tip to leave at a restaurant. Your
program must ask the user for the amount of the bill (this could contain decimals), and the percent they
want to tip. The user will enter the percent they want to tip as an integer, e.g. 15 for 15. Your code should include- – Comments explaining the main parts of the code (Getting input, calculating results, etc)
. Descriptive variable names with appropriate types
– Appropriate indentation between braces For this and all subsequent assignments, provide a heading {in comments) with the course information,
your name, and assignment number. Sample Output Below is sample output with input in bold. Your output does not need to match directly.
Sample 1 Enter the bill amount: $100.00 What percent would you like to tip: 15
Tip Amount: $15.00 Total amount with tip: $115.00 Sample 2 Enter the bill amount: $15.50
What percent would you like to tip: 10 Tip Amount: $1.55
Total amount with tip: $17.05
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
