I hate tipping when out to eat...need a calculator I want a program that will calculate and display how much I am suppose to tip when I’m out to eat. Make sure I will have the ability to change the percentage used for gratuity Required: 1. First 3 lines of code will be three comment lines a. Name of the cpp file b. Your name c. Why you are doing this program 2. Summary of the program on the screen 3. Ask the user for the meal amount 4. Ask the user for gratuity percentage 5. Formatted output a. Title for the output b. Money amount have 2 decimal point places c. Money amount to be aligned d. Boarder around the output 6. Documentation of the code (i.e. comment lines)
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Use C++
Problem:
I hate tipping when out to eat...need a calculator
I want a program that will calculate and display how much I am suppose to tip when I’m out to eat. Make sure I will
have the ability to change the percentage used for gratuity
Required:
1. First 3 lines of code will be three comment lines
a. Name of the cpp file
b. Your name
c. Why you are doing this program
2. Summary of the program on the screen
3. Ask the user for the meal amount
4. Ask the user for gratuity percentage
5. Formatted output
a. Title for the output
b. Money amount have 2 decimal point places
c. Money amount to be aligned
d. Boarder around the output
6. Documentation of the code (i.e. comment lines)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images