Question: Q 4 . Write a python program to create a file with name customer.txt with the following content ( 1 0 M ) Customer name

Q4. Write a python program to create a file with name customer.txt with the following content
(10M)
Customer name amount spent
\table[[Rohith,1500],[Ramu,3045],[Mohith kumar,5045],[Rengarajan,4580]]
And also write the logic to find and print how many customer details are available in the given file, the maximum, minimum and total amount spent by customers in the given file.
Sample input:
Enter the file name to create and write the customer details: customer.txt
Sample output:
Maximum amount spent by the customer is 5045
Minimum amount spent by the customer is 1500
Total amount spent by all the customer is 14170
 Q4. Write a python program to create a file with name

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!