17 Aug The number of each type of fruit in descending order
For the below task please give answer with detailed explantion. I have to explain how i did the task.
In the programming language of your choice, you will be building a simple application that
allows a user to request a file (basket) – which will be provided. The submission should include
the source code, contain instructions for running the application, and be clear and easy to
understand.
1. Total number of fruit
2. Total types of fruit
3. The number of each type of fruit in descending order
4. The characteristics (size, color, shape, etc.) of each fruit by type
5. Have any fruit been in the basket for over 3 days
The executable program should accept a file (of fruits) as a run time parameter. See basket.csv
as a sample.
For example: python solution.py basket
Total number of fruit: 123
Types of fruit: 7
The number of each type of fruit in descending order
apple: 33
pear: 23
orange: 22
grapefruit: 21
pineapple: 15
watermelon: 7
peach: 2
The characteristics (size, color, shape, etc.) of each fruit by type
4 apples: sweet, red
5 oranges: round, sweet
10 grapefruits: bitter, yellow
3 pineapple: prickly, sweet
Have any fruit been in the basket for over 3 days
4 oranges and 5 pineapples are over 3 days old