Graphing data, Python Programming

Write a program that will take price data for stocks and print it graphically to the screen. Your program should begin by asking the user for the file name. It should then create a graphics window and plot the date versus price. You may assume that the file has the following format:

"date","close","volume","open","high","low"
"16:00","720.11","1,919,799","720.71","723","716.68"
"2012/12/19","720.1100","1918493.0000","720.7100","723.0000","716.6800"
"2012/12/18","721.0700","3004838.0000","716.6000","729.1000","715.0500"
"2012/12/17","720.7800","3034558.0000","705.5000","738.2800","704.0200"
"2012/12/14","701.9632","2129893.0000","699.1700","707.8200","698.4300"
"2012/12/13","702.7000","3443866.0000","715.9200","716.4750","699.5500"
"2012/12/12","697.5600","2425774.0000","699.2300","703.5100","693.4800"


where the first line describes the columns and each subsequent line of the file describes the stock price on a given day, separated by commas. Note that the historical data (from Nasdaq) lists the information in reverse chronological order, while graphs of financial data always start with the oldest date first. Your graph should have the oldest date on the left, progressing to the newest date on the right.

Hint: You may assume that the price of any stock is positive and below $1000, so, the y-coordinates of your window should between 0 and 1000. You may also assume that you are graphing data from one year. There are at most 52 weeks * 5 business days/week = 260 days per year, so your x-coordinates should range from 0 to 260 (or a bit extra to make it look nice).
Posted Date: 3/26/2013 3:27:48 PM | Location :







Related Discussions:- Graphing data, Assignment Help, Ask Question on Graphing data, Get Answer, Expert's Help, Graphing data Discussions

Write discussion on Graphing data
Your posts are moderated
Related Questions
For this assignment, you are to: 1.    Modify the output format of your Python script from Assignment 1 to match the input format of your C program from Assignment 2. 2.    W

Suppose the cover price of a book is $24.95, but bookstores get a 40% discount. Shipping costs $3 for the first copy and 75 cents for each additional copy. What is the tota

Write a program that will take price data for stocks and print it graphically to the screen. Your program should begin by asking the user for the file name. It should then create a

What if you had a list of integer values, and you need to add  them  up and give the sum?  Here are a number of different types of doing  it. First,  here  is a type in a style

Tower of Hanoi game that you can let a player to move discs between the towers using a mouse. Moreover, you are required to do the followings: •Graphically represent any state in t

Range Very frequently, we will want to iterate through a list of integer values, often as indices.  Python gives a useful function, range, which gives lists of integers. It ma

Write a Python program to accomplish the following. Use modular design. Include at least 3 functions: one that returns zero values, one that returns one value, and one that retu

#question.Program 10 Assignment (Banking Objects – Savings/Checking Accounts) Create a program named 10.py that performs the following: Create a class named ChkAcct, and a class n

Write a program that asks the user to enter a number of seconds. The responses of the program will vary depending on the length of seconds: • If the number of seconds is under 60

program on damped lcr cicuit