Question: Output eachfloating - point value with two digits after the decimal point, which can be achieved as follows: print ( f ' { your -

Output eachfloating-point value with two digits after the decimal point, which can be achieved as follows:
print(f'{your-value:.2f}')
1) Prompt the user to input a food item name, price, and quantity. Hot dog, $2, and 5. Output an itemized receipt.
2) Extend the program to prompt the user for a second item. Ice cream, $2.50, and 4. Output and itemized receipt.
3) Extend again to output a third receipt that adds a mandatory 15% gratuity to the total cost. Output the total cost, the cost of gratuity, and the grand total.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!