Assignment 2Due Aug 27 on line
Part of
the homework for CS:2820, Fall 2020
|
As with assignment 1, this is an all or nothing problem. Completing it is worth 2 points (we are ramping up to full point values as we move forward through "getting started" material.
Here is a Java program:
public class Hw2 { static final String section = "xxxx"; static final String user = System.getenv( "USER" ); public static void main(String[] args) { try { Process p = Runtime.getRuntime().exec( new String[] { "/mnt/nfs/clasnetappvm/fs3/dwjones/2820hw2", section, user, }, null, null ); } catch (Exception e) { System.out.println( "oops: " + e ); } } }
Open a shell window under fastx.divms.uiowa.edu and create a new Java program holding this text, with your discussion section of CS2820 replacing the xxxx in the declaration of the string named section.
Before you run the program, run this shell command (replacing xxxx as above):
~dwjones/2820check2 xxxxIt should tell you that there is "no entry for HawkID" (using your HawkID), verifying that you have yet to solve the assignment.
Compile and run your edited version of the program. It should produce no output. (If it says "oops" something is wrong.) Then, run the same shell command shown above. It should tell you "problem solved correctly."