Answered step by step
Verified Expert Solution
Link Copied!

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

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

LO4 Provide an overview of four challenges facing HR today.

Answered: 1 week ago