1. Write a program that will ask the user to enter the amount of a purchase in a retail establishment.
If the sales tax rate is 7.5 percent, the program should calculate and display the amount of the sales
tax as well as the total of the sale including tax. The program should have a main function as well as
three additional functions, one to handle data input, one to handle data processing and one to handle
the display of the answers. (Hint: use .075 to represent 7.5 percent. Also, you may wish to format the
two lines in the output function.)
Here are a couple of examples:
print("Sales tax....:$", format (tax, '7.2f'),sep="")
print("Total........$", format (total, 7.2f'),sep="")
(The format clause was inserted to align the decimals in the output.)
The output may look like the following: