00:01
Hello student, to create a python program that meets the requirements specified so you can use the following code as a starting point.
00:09
So this python program does the following thing.
00:11
1.
00:12
Takes user input for the number of sales item, item price and sales tax percentage.
00:20
So this input will be taken from the user.
00:24
Calculate the sales total, sales tax and grant total.
00:28
Print the formatted output with a border around it.
00:32
Allow the user to run the program again by pressing the enter key.
00:37
So here enter key must be included.
00:39
So now python code.
00:42
Program name here is sales calculator.
00:46
Author name that can be your name.
00:48
Purpose calculate sales total, sales tax and grant total for the list of the item.
00:54
Now i have taken the function calculate underscore totals.
00:59
So here i am sending the argument items count item underscore count prices and tax underscore percentage.
01:06
So these will be provided by the user.
01:08
Now sales underscore total.
01:10
This will be the sum of the prices.
01:13
So sum is the function which will take the argument as a price.
01:18
So it will calculate the sum.
01:20
Sales underscore tax sales underscore tax is calculated by sales underscore total.
01:25
What are the total sales into text percentage divided by 100.
01:31
Grant total will be the sales total which is sum of the prices plus the sales tax and return what will be the return sales total.
01:40
This one's sales total and the grant total.
01:44
So sales tax and grant total.
01:46
These will be returned.
01:47
Now main function is also taken.
01:51
Its name is main.
01:52
It is defined print sales calculator.
01:55
Now i have to print the message sales calculator.
01:59
Now it is user prompted enter the number of the sales item...