Download the file 'AAPL.txt', which contains the volume of
traded Apple stocks during February and March 2022. The dates are
in ascending order with their respective trade volumes.
Input: Write a Python program that reads the data of the dates
and stock volumes into two separate lists.
Output: The program must display the dates having the maximum
and minimum trading volume of each month. In addition, the program
must display the whole trade volume, average trade volume for each
month and shows the month that Apple has a higher trading
volume.
Sample Output:
___________ has the maximum trade volume of ______________ in
February.
___________ has the minimum trade volume of ______________ in
February.
___________ has the maximum trade volume of _____________ in
March.
___________ has the minimum trade volume of ______________in
March.
The whole trade volume of these two months is
______________.
The average trade volume of February is ______________.
The average trade volume of March is ______________.
AAPL has higher trading volume in ______________.
Coding requirements:
The program must use lists, strings and built-in list
functions to complete the task.
The program should include user defined functions to
modularize the code.
The program must include exception handling to handle IOError
exception.
Download the file 'AAPL.txt', which contains the volume of traded Apple stocks during February and March 2022. The dates
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Download the file 'AAPL.txt', which contains the volume of traded Apple stocks during February and March 2022. The dates
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!