Question: python I need help there is an example can you cods similar to that would be appreciated Sales Tax Program Write a program that will

 python I need help there is an example can you cods

similar to that would be appreciated Sales Tax Program Write a program

that will prompt the user for a name and the total amount

python I need help

there is an example can you cods similar to that would be appreciated

Sales Tax Program Write a program that will prompt the user for a name and the total amount of products purchased, and then will calculate the sales tax they owe based on a 73 tax bracket and the next grand total. Note: Must use constants. Must use f formatting to do output for subtotal Algorithm: #Name: #Date: #Description: This program will prompt the user for a name #and the total amount of products purchased, and then will calculate #the sales tax they owe based on a 74 tax bracket and the next grand total. # Define the main function # Declare constant for sales tax of 74 (use a decimal) #Declare and initialize a string variable for name + and real variables for subtotal, sales tax owed, and grand total #Display "WELCOME TO THE SALES TAX GENERATOR!!" and a blank line #Prompt for name by displaying "Please enter your name: #Display a blank line #Prompt for subtotal by displaying "What is the total of the products you are purchasing today 'name'?" #Set sales tax owed = subtotal sales tax # Display a blank line #Display 12 's "Sales Receipt" and then 12 more *'s Display "Subtotal:" then 3 tabs and the subtotal amount make sure it is formatted to show a comma and 2 decimal places) Display "Sales Tax:" then 3 tabs and the subtotal amount (make sure it is formatted to show a comma and 2 decimal places) #Displey "Grand Total:" then 3 tabs and the subtotal amount (make sure it is formatted to show a comuna and 2 decimal places) #Display a blank line Display "Thank you 'name' for shopping with us. Have a wonderful day!" Sample output below. (Means make yours look like this) WELCOME TO THE SALES TAX GENERATOR!! Please enter your name: Bob What is the total of the products you are purchasing today Bob? 1449.99 **** Sales Receipt **** Subtotal: $1,449.99 Sales Tax: $101.50 Grand Total: $1,551.49 Thank you Bob for shopping with us. Have a wonderful day! Grading Rubric: (10) CONSTANTS created and used in the program (10) VARIABLES declared and initialized to the correct data type (10) Input (asks for and stores correct data type for name and sales) (10) Calculations done properly in python (numbers cannot be typed in prints, math correct) (15) Code is readable (white space) & contains header comments and pasted algorithm (15) Output matches above, uses tabs for indents and between words and money, and uses format example from class to make money look like sample output. #define main function def main() : #Dclare constant to store conversion conversion = 0.6214 S. 1111 0 #Declare and intialize string variabi name #Declare and intialize real variable kilometers = miles = 0.0 #Display introduction print("welcome to my miles conversion print("i will ask for a number of kil print("display the number of miles yo V #prompt user for name name = input ("what is your name?") #prompt user for kilometers traveled kilometers = float (input ("how many kilomete #set miles kilometers * conversion miles kilometers * conversion Display name and miles to user #user coramas in print print("great job", name, your've traviled #now use concatenation print("great job" + name + your've travila 11 11 #. format method is newer, but sill not the print("great job", name, "you've traveled If mormatting is the way to go print (f"great job (name), you've traveld mi #Display outro print(" thanks you for using my program!")

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 Databases Questions!