Lab 4Lab 4Name:To be completed in the lab on Friday 10/23/09 or next Friday 10/30/09. Copy the file lab_4.zip from our course website:http://www.cs.drexel.edu/~knowak/cs265_fall_2009/cs_265_links.htmto your desktop and unzip it. Open a SSH connection with dunx1. Use SSH file transferwindow to copy Lab 4 files into your cs265_fall_2009 directory on dunx1. In order toachieve this task drag the lab_4 file icon from your desktop into yourcs265_fall_2009 directory on dunx1. All files and subdirectories will be automaticallycopied. Compile and run all the programs prepared for Lab 4. Describe briefly the target of each of the programs.Prepare and run a Java program, which takes integer arguments from the command line and prints out their cubes.Ask the instructor/TA to verify your work.Instructor/TA’s initials: _____Prepare and run a Java program, which prompts the user for input strings and prints out their reversals. You may find it convenient to access the documentation of String class while working on this task: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.htmlAsk the instructor/TA to verify your work.Instructor/TA’s initials: _____Run the Java program you prepared for Lab 4. Your program should follow the stages: - Takes an input integer n as a command line argument.- Creates a random integer array of size n and performs sorting by twoversions of the Quick-Sort method: the first one should be based on comparing numbers with the relational operator <, and the second one should make use of theinterface Cmp.- Times both sorting procedures.- Reports timing result.Ask the instructor/TA to verify your work.Instructor/TA’s initials:
View Full Document