DOC PREVIEW
DREXEL CS 265 - Lab 4

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Lab 4Lab 4 Name: 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.htm to your desktop and unzip it. Open a SSH connection with dunx1. Use SSH file transfer window to copy Lab 4 files into your cs265_fall_2009 directory on dunx1. In order to achieve this task drag the lab_4 file icon from your desktop into your cs265_fall_2009 directory on dunx1. All files and subdirectories will be automatically copied. 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.html Ask 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 two versions 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 the interface Cmp. • Times both sorting procedures. • Reports timing result. Ask the instructor/TA to verify your work. Instructor/TA’s initials:


View Full Document

DREXEL CS 265 - Lab 4

Download Lab 4
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lab 4 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lab 4 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?