Tipping Etiquette: It is customary in the United States to include a tip when purchasing a meal
Question:
Tipping Etiquette: It is customary in the United States to include a tip when purchasing a meal (or having one delivered). Recommendations for how much of a tip vary depending on who you ask, but the general range is somewhere between 10% on the low end and 20%. Since not everyone is great at calculating in their head, we're going to build a small program to show us the price with either a 10% or 20% tip applied. You will prompt the user to enter the following information: Total Price of the Meal Tax Rate (as a decimal value, not percentage) Delivery Fee You will store these values in appropriate variables, and use them to produce the following intermediate values: Total Tax (Total Price of the Meal * Tax Rate) Subtotal (Total Price of the Meal + Delivery Fee) 10% Tip (Subtotal * 10%) 20% Tip (Subtotal * 20%) Total, 10% Tip (10% Tip + Subtotal + Total Tax) Total, 20% Tip (20% Tip + Subtotal + Total Tax) You will then print the results to the user.
International Marketing And Export Management
ISBN: 9781292016924
8th Edition
Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr