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 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

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?