ECE 538 Assignment 2

Do the following exercises in the object-oriented language of your choice: C++, Java, or Python.

You should submit a document summarizing your work and reporting validation tests. You should also submit source files and other files helpful in reconstructing or verifying your work.

Download asgn2.zip for supporting material.

  1. Modify wrap.cpp to personalize it (use your name instead of mine). Demonstrate its use in the following problems.

  2. Write a program to read a text file containing url links and convert it to an HTML file. Use asgn1.txt as an example.

  3. Write a program to convert a numeric string (with suffix) into a floating-point double and vice versa. Accept input from the command line. For example,
      convert 0.001ms  5000n
    
    should identify 0.001 m and 5000 n as the inputs, convert to 1e-6 and 5e-6 and finally to 1u and 5u.

  4. Write a program to parse a comma-separated-file such as asgn2.csv. Output a table of values. Use tabs to align the columns.


Maintained by John Loomis, last updated 20 May 2010