Raj is the manager of a medical store. To keep track of sales records, he has…
Raj is the manager of a medical store. To keep track of sales records, he has created a CSV file named Sales.csv that stores the details of each sale.
The columns of the file are:
Product_ID, Product_Name, Quantity_Sold, Price_Per_Unit
Write Python functions to perform the following tasks:
Accept() – Accept a sales record from the user and add it to the file Sales.csv.
CalculateTotalSales() – Calculate and return the total sales amount based on Quantity_Sold × Price_Per_Unit.
Attempted by 47 students.
Sign up free to check your answer
Sign up freeLoading lesson…

