PHYS 27/193: Homework 2

This assignment is due on Friday 25 by 10am.

  1. The first assignment is to install jEdit on your computer. If it is already installed (if you are using the sunray for your scientific computer, then you are already done with this one).

    You can email me with questions, but please try to install the program using the Installation Instructions which are lower down on the download page. If you have trouble, write down exactly what the error is so that I can help you.

    Note that you may need both a Java Runtime Environment (JRE) as described above, in addition to jEdit's installer from the jEdit site. On the other hand the JRE may already be installed on your computer.

    jEdit is installed correctly when the splash icon comes up as it's starting up (a box that says jEdit), and the editor window comes up after.

  2. Create and save a file called "NAMEtext.txt" (where NAME is your last name) which has the lines:
           This is my first ASCII text file using __jEdit__ (substitute editor).
           Physics is the Mother of All Sciences.
           I'm really __enjoying__ (substitute adjective) PHYS 27/193.
           
  3. Visit the following webpage at the US Census Bureau:
    Urban and Rural Populations: 1900 to 1990

    This data is formated in text columns like the following excerpt:

                                       1990         total        total      1990    1990         1980         total        total...
                                       total        urban        rural    percent percent        total        urban        rural...
                                    population   population   population   urban   rural      population   population   population...
    
            UNITED STATES           248,709,873  187,053,487   61,656,386    75.2%   24.8% r  226,542,199  167,050,992   59,494,813...
    
        Northeast Region             50,809,229   40,091,737   10,717,492    78.9%   21.1% r   49,136,816   38,905,545   10,229,738...
        New England Division         13,206,943    9,829,175    3,377,768    74.4%   25.6% r   12,348,920    9,269,249    3,079,244...
          Maine                       1,227/193,928      547,824      680,104    44.6%   55.4% r    1,125,043      534,072      590,588...
          New Hampshire...
           ...
    
    This data shows the Total US population, breakdowns by Urban and Rural amounts and percentages of the total, and breakdowns by region and state.

    Make a text file called "NameCaPop.dat" with the following data in columns, as shown below.

    Year       Total US            Total California
    1900       76,212,168          1,485,053
    1910       92,228,496          2,377,549
    1920      106,021,537          3,426,861
    etc...
    
    You are to gather population data by year for the Total US population and the total California population in 3 columns. We will use this data in a future assignment.

  4. Visit the following weboage:
    Vertical Visions

    Using jEdit type the data into a text file called "NAMEfreefall.dat" in the following format:

    Time     Speed     Distance
    (sec)	 (mph)      (feet)
    1        10.91       16
    2        31.36       62
    3        51.81      138
    etc...
    
    We will use this data in the next part of our course.

  5. Upload these files into the Digital Dropbox on BB. Note that they need to have your last name (or some abreviation of it) in the filename so that I can credit you.