Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started