Question: Please follow directions and write the code. A simple sales tax calculator. Write a Python program that: 1. Prompts the user for his name. 2.
A simple sales tax calculator. Write a Python program that: 1. Prompts the user for his name. 2. Displays a welcome message using his name. 3. Prompts the price of an item. 4. Computes the sales tax to be charged. 5. Computes the total cost 6. Prints the sales tax to be charged and the total cost. Thank the user for using the program. Create a constant variable which has the sales tax rate of Cupertino, CA. In 2019 the tax rate is 9%. Valid input: You may assume that the input is valid - the price entered by the user is a valid non-negative number. Rounding: Make sure you round the amounts to two decimal numbers. Testing: Once you complete your program, you may test it as shown in the sample run below. If the code has a syntax error, you will get a zero. Please enter your name: Bob Miller Welcome, Bob Miller to the tax calculator program Please enter the price in $: 10 Sales Tax: $0.9 Total Cost: $10.9 Thank you, Bob Miller for using the tax calculator program Extra credit: bonus points added when the solution is creative, documentation is extra informative, or code is exceptionally easy to read
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
