INSY 5336 PYTHON PROGRAMMING ASSIGNMENT- University of Texas, Arlington.
The following guidelines should be followed and will be used to grade your project work:
• All code to be implemented and submitted as a jupyter notebook (.ipynb) file.
• This is an individual homework assignment, no group submissions will be accepted. If you discuss in groups, please write your code individually and submit.
• Sample runs shown in the question should be used as a guide for implementation. However extensive testing needs to be done on your code to deal with all test cases that might possibly be executed.
• The instructions for running of each cell and the expected results should be documented in the cell preceding the code using markdown language.
• Every code segment in the jupyter notebook cells should be well documented with comments. Use # in the code to provide comments and they should explain the algorithm and what the code segment is doing.
• Error checking in your code is very important and differentiates a high quality programmer from a low quality one. Hence you should account for invalid user inputs, infinite loops, out of range results, etc. and resolve them by appropriate error messages. The homework will be graded for robustness of your code.
• Read each assignment carefully. Note that you need to test your code with example input files. I will be using my own test input file to test your code. DO NOT hard code file names in your program.
This is a project to scrape data from the web and store the results in a text file.
1. The CNN Money's Market Movers website tracks the most active stocks on a real time basis. Specifically, the most active, the top gainers and top losers are listed at any instance in time. You will first write Python scripts that collect the list of most actives, gainers and losers from the above website. Next, your programs should take the ticker symbols and names of these companies (and categories) and build a csv file (called stocks.csv) with data about each stock from the yahoo finance website which gives the quote for ticker symbol AMD as an example. The data to be collected from the Yahoo Finance site should include:
OPEN price
PREV CLOSE price
VOLUME
MARKET CAP
Your code should also list the names of the companies in the order and categories listed in the CNN Money website and ask the user to choose a company to get the data on. Once the user chooses the company of interest, your program should display its corresponding data (Open, Prev Close, Volume and Market Cap).
Format your assignment according to the following formatting requirements:
1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.
2. The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.
3. Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.