CSCE 1030 Homework 4: Java Programming Assignment - Prof. Ryan M. Garlick, Assignments of Computer Science

A java programming assignment for csce 1030 students. The assignment involves calling static methods in the integer class, performing calculations, and potentially visiting a specific location for bonus points. No dangerous activities are required.

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-mrw
koofers-user-mrw 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSCE 1030 Homework 4 DUE: on or before Tuesday, April. 7 at start of class
Late assignments will be shredded and flushed
READ AND UNDERSTAND THIS ENTIRE ASSIGNMENT BEFORE PROCEEDING.
You must write a Java program that does the following:
1. In the Integer class is a static method called ‘lowestOneBit’. Call this method and pass it the int 3840.
2. Pass the result of step 1 to the function ‘numberOfTrailingZeros’ in the Integer class.
3. Take the result of step 2 and multiply by 27.
4. The result of step 3 is your key number. Make sure you are exact.
N 33° 15.234 W 97° 09.228
IMPORTANT - Subtract your key from each underlined number above.
Do not do anything dangerous. You do not have to climb anything, cross any major streets, trespass, etc. If it feels like
you are in the wrong location, stop and re-do your calculations above.
rot13: gurfrnertcfpbbeqvangrfglcrgurzvagb zncf.tbbtyr.pbz vslbhqbagunirntcfqrivpr.
unirnfrnghaqregurgragfnggurzvqqyrgnoyr.gnxrncvpgherbslbhnggurgnoyr.gnxrgurehooreonaqhaqregurgnoyrhayrfffbzrba
rtbgvgsvefg
Print the picture (must have you and the distinguishing landmark in the photo). Write your name on the printout.
If you are the first person to the landmark, take the item that you find there. You will receive fabulous prizes and 5
points on the exam.
If you like this, you should visit Geocaching.com

Partial preview of the text

Download CSCE 1030 Homework 4: Java Programming Assignment - Prof. Ryan M. Garlick and more Assignments Computer Science in PDF only on Docsity!

CSCE 1030 Homework 4 DUE: on or before Tuesday, April. 7 at start of class Late assignments will be shredded and flushed READ AND UNDERSTAND THIS ENTIRE ASSIGNMENT BEFORE PROCEEDING. You must write a Java program that does the following:

  1. In the Integer class is a static method called ‘lowestOneBit’. Call this method and pass it the int 3840.
  2. Pass the result of step 1 to the function ‘numberOfTrailingZeros’ in the Integer class.
  3. Take the result of step 2 and multiply by 27.
  4. The result of step 3 is your key number. Make sure you are exact. N 33° 15. 234 W 97° 09. 228

IMPORTANT - Subtract your key from each underlined number above.

Do not do anything dangerous. You do not have to climb anything, cross any major streets, trespass, etc. If it feels like you are in the wrong location, stop and re-do your calculations above. rot13: gurfrnertcfpbbeqvangrfglcrgurzvagb zncf.tbbtyr.pbz vslbhqbagunirntcfqrivpr. unirnfrnghaqregurgragfnggurzvqqyrgnoyr.gnxrncvpgherbslbhnggurgnoyr.gnxrgurehooreonaqhaqregurgnoyrhayrfffbzrba rtbgvgsvefg Print the picture (must have you and the distinguishing landmark in the photo). Write your name on the printout. If you are the first person to the landmark, take the item that you find there. You will receive fabulous prizes and 5 points on the exam. If you like this, you should visit Geocaching.com