Computers and Technology, 26.02.2020 03:56 arionaking59p71cfc
Write a Python program to calculate tax and tip. Ask the user for a check amount, and calculate the tax and tip, providing tip amounts for stingy, regular, and generous customers. Use the following steps:
Prompt the user for a check amount and store it in a variable called check_amount_str.
Convert check_amount_str to a floating point number and store it in a variable called check_amount.
Calculate tax amount (7%) and three tip amounts (10%, 15%, and 20%), storing each result in a separate variable.
Calculate total for regular customers including 7% tax and 15% tip. Print the results to the console like in the example below, including the base cost of the meal, tax, three tip levels, and total for regular customers.
The expected output from your program should look like the following:
Please enter check amount: $ 20
Base cost: $ 20.00
Tax (7 %): $ 1.40
Tip for stingy customers (10 %): $ 2.00
Tip for regular customers (15 %): $ 3.00
Tip for generous customers (20 %): $ 4.00
Total with tax and tip for regular customers: $ 24.40
Note: that it’s okay for now if you have more decimals, e. g. your total might look like $ 24.40000001. We will learn how to format your output later.
Answers: 2
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
Computers and Technology, 23.06.2019 18:00
Apunishment or the threat of punishment used to enforce conformity. select the best answer from the choices provided t f
Answers: 1
Write a Python program to calculate tax and tip. Ask the user for a check amount, and calculate the...
History, 08.10.2019 10:30
History, 08.10.2019 10:30
World Languages, 08.10.2019 10:30
Geography, 08.10.2019 10:30
History, 08.10.2019 10:30
Mathematics, 08.10.2019 10:30
Mathematics, 08.10.2019 10:30
Social Studies, 08.10.2019 10:30
Mathematics, 08.10.2019 10:30
Mathematics, 08.10.2019 10:30
Mathematics, 08.10.2019 10:30