Question: Q 4 . Write a python program to create a file with name customer.txt with the following content ( 1 0 M ) Customer name
Q Write a python program to create a file with name customer.txt with the following content
Customer name amount spent
tableRohithRamuMohith kumar,Rengarajan
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
Minimum amount spent by the customer is
Total amount spent by all the customer is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
