The attached file (customerdata.txt) contains transactional data from a fictitious website. Your assignment is to write a program (preferably in Python) to parse this data and generate a report with the following information:
- How many orders did the site receive?
- What was the total amount of the orders?
- List the names of the customers who ordered once and did not order again.
- Get a distribution of customers who ordered exactly once, exactly twice and so on up to 4 orders and group the rest as 5 orders and above.
Orders | Count of customers
--------|-------------------
1 |
2 |
3 |
4 |
5+ |
python main.py