(1) Continue the same program as listed “total and tax” but program needs to now
(1) Continue the same program as listed “total and tax” but program needs to now have 2 functions and a main program. Use one function for calculation and the other for output. Use arguments and parameters where appropriate.
(2) New Program: Let’s say that a store is having a sale. If you spend less than $100 you get a 10% discount. If you spend $100 or more, you get a 15% discount. Input the amount spent. Output the discount and the price after the discount is subtracted. Use the if and the else. You do not have to make function definitions. Have appropriate an prompt, appropriate labels and comments.
Please use notepad for writing the program for submission here, if notepad does not work a word document is okay but no cover page but please make sure python program is accurate and make sure you use a python software to make sure everything is correct. Pythonanywhere is a programming site that I will be using to get graded on.