202: Data Viz

Data Viz: Read a File of Numbers and Generate Statistics and a Visualization

1. Come to class as there may be corrections, changes and additions.
2. Code for READABILITY (significant reduction if not done)
3. Follow these directions to create a C# WINDOWS program.
4. Follow these directions to SUBMIT a folder called "DATAVIZ" to your class account
TABS ANCHOR

Uses tabControls, listboxes, files, arrays, graphics, loops, branches, bools and methods.


        Visualization is a technique that will expose information that might be hidden within data. While 
        statistics can represent certain aspects of data, visualization exposes more subtle relationships 
        such as trends and  relationships. 
        
        Your task is to read and display a simple bar graph visualization of a file that contains an 
        unspecified number of data elements. 
        
        Anchor the tab control to the form on all four sides so the display will scale when re-sized.
        Read the file into an array of ints.
                     int[]data = new int[1000]; // use the 1000 line file I provided

        Calculate the average, min and max values using the data in the array (loop)
        Calculate the x,y,w,h for each rectangle that will represent each data element.

        Draw the graphic on one tab of the tab control.
            The height of the rectangle will represent its value.
            Color rectangles green if above average and red if below average.
            Show the average value as a horizontal line and use unique colors for min and max values.

               (1000 line example file)  
               (2000 line example file)  
               (3000 line example file)