<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://rockhopper.monmouth.edu/cs/jchung/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://rockhopper.monmouth.edu/cs/jchung/feed.php">
        <title>Joe Chung&lt;br&gt;Monmouth U. Homepage - cs175</title>
        <description></description>
        <link>http://rockhopper.monmouth.edu/cs/jchung/</link>
        <image rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/_media/wiki/logo.png" />
       <dc:date>2026-05-12T02:22:19+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/accessor_and_mutator_methods_1?rev=1360604753"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/accessor_and_mutator_methods_2?rev=1360610773"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/accessor_and_mutator_methods_3?rev=1360611251"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/adjustfirebot_template?rev=1413236436"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/alice_class_level_and_world_level_methods?rev=1316726811"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/alice_events?rev=1316728410"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/alice_methods_continued_and_properties?rev=1317326566"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_1?rev=1367512819"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_2?rev=1367515126"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_3?rev=1367515642"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_lab_-_magic_8-ball?rev=1417728047"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_lab_-_sum_of_dice?rev=1418158846"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/assignment_operator?rev=1360262883"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/centerbot3_approach?rev=1561176022"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/centerbot3_template?rev=1561176257"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/centerbot_template?rev=1413235539"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/chess_squares_-_noloop?rev=1414557263"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/classes_and_programs_1?rev=1362677672"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_implementation_1?rev=1362079322"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_implementation_2?rev=1362079948"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_methods_1?rev=1362679205"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_1?rev=1361469874"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_2?rev=1362077621"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_2a?rev=1362078286"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_3?rev=1362073763"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/constructors_1?rev=1413915709"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_dice_roll_frequency_class?rev=1721669571"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_fa14_first_robocode_tournament?rev=1414031485"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_magic_eight_ball_class_version_1?rev=1721669611"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_magic_eight_ball_class_version_2?rev=1398270889"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_arrays?rev=1367512902"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_chesssquares_class?rev=1412886090"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_cornerbot?rev=1391806764"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_counter_class?rev=1721774558"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_first_robocode_tournament?rev=1368404563"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_introduction_to_classes?rev=1362679074"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_magiceightball_class?rev=1369400111"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_methodbot?rev=1391806781"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_nearestwallbot?rev=1394469962"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_oddevenscanner?rev=1364857788"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_oddevenscannerloops?rev=1365447684"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_randomturnbot?rev=1360890412"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_randomturnbot_with_randbetween_method?rev=1361467210"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_repetition?rev=1365699127"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_figure_eight_run_algorithm?rev=1391798696"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_figure_eight_run_algorithm_-_robocode_figure_eight_run_algorithm?rev=1360259642"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_select_fire_with_variables?rev=1413210811"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_select_fire_with_variables_-_robocode_select_fire_with_variables?rev=1391801127"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_scanner_input_example?rev=1365446787"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_spiralbot?rev=1394041927"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_strings_input_and_selection?rev=1364838898"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_teamplayerbot?rev=1365168876"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_timeofday_class?rev=1516719078"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_types_and_variables?rev=1360865303"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp14_first_robocode_tournament?rev=1394041121"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp14_robocode_centerbot_with_methods?rev=1411699157"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_supplemental_repetition_exercises?rev=1330452032"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw2?rev=1265304077"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw3?rev=1266331316"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw4?rev=1266517692"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw5?rev=1267511064"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw6?rev=1268927049"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw7?rev=1269980697"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw8?rev=1362420054"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_1?rev=1347711714"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_2?rev=1264701434"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_3?rev=1265291966"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_4?rev=1266931689"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_5?rev=1267107586"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_6?rev=1269520650"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_7?rev=1269981018"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_8?rev=1270126762"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_9?rev=1270732205"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_10?rev=1271470749"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_test_3_robocode?rev=1271349380"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/data_types_and_input_lab_1?rev=1412177061"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/double_variables?rev=1360264729"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/fall_2014_robocode_tournament_1_ideas?rev=1413930425"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/figureeightbot_using_if?rev=1412742928"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/find_largest_of_five_integers?rev=1413210159"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_1?rev=1365727564"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_2?rev=1365698378"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_3?rev=1365700590"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_4?rev=1365699280"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/if_else_structure_1?rev=1364230947"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/if_structures_1?rev=1364233876"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/implementing_classes_lab_1?rev=1413318510"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/implementing_classes_lab_2?rev=1412705897"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/input_and_selection?rev=1393437577"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/instance_variables_1?rev=1361472506"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/instance_variables_2?rev=1361469165"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/instance_variables_3?rev=1362076595"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/introduction_to_computing_and_programming?rev=1504636983"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/int_variables?rev=1360262064"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/java_arrays?rev=1208353267"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/list_of_cs-175_assignments?rev=1417643564"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/list_of_cs-175_labs?rev=1326822515"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/local_and_parameter_variables_1?rev=1362680315"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/local_and_parameter_variables_2?rev=1362681009"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_1?rev=1364834925"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_1b?rev=1364839452"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_2?rev=1364835248"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_3?rev=1364835429"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops?rev=1394542733"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_inches_to_centimeters_conversion_table?rev=1448393130"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_number_guessing_game?rev=1416515490"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_oddeven?rev=1416405953"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_sum_of_dice?rev=1417641290"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_sum_of_odd_integers?rev=1449177577"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_temperature_conversion_tables?rev=1449177470"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_ulam_sequence?rev=1448393194"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_1?rev=1360607976"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_2?rev=1360608571"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_3?rev=1360865687"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_lab_-_tryrandom3_using_randbetween_method?rev=1415135892"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/method_input_parameters?rev=1360609394"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/method_input_parameters_2?rev=1360866570"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/multi-level_if_1?rev=1364235440"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/multipoll_test?rev=1359363027"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/programming_with_robocode?rev=1409861172"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/relational_operators_1?rev=1364234920"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocodeadjustfiremethod?rev=1411699188"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_circlebot1_zigbot1_randomturnbot1?rev=1411604336"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_cornerbot1?rev=1411604127"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_cornerbot2?rev=1412281341"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_distanceto_x_y_method?rev=1415136107"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_gotocenter_gotocoords_methods?rev=1417299714"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_methodbot1?rev=1412302794"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_nearestwallbot1?rev=1413324617"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_tournament_2_sp14?rev=1417726582"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/robots?rev=1252610745"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/sample_lab_test_problems?rev=1396464244"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/sample_lab_test_problem_-_loops?rev=1415740428"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/start?rev=1419347770"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/string_basics_1?rev=1364836624"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/string_basics_2?rev=1364836758"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/string_basics_3?rev=1364837855"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/supplemental_branching_exercises?rev=1329243909"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/type_casting?rev=1360265390"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/type_memory_usage?rev=1360262052"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/using_objects_lab?rev=1411603553"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/variable_assignment?rev=1360262277"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/variable_declaration?rev=1360261659"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_1?rev=1365441473"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_2?rev=1365442275"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_3?rev=1365442888"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_4?rev=1365440287"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://rockhopper.monmouth.edu/cs/jchung/_media/wiki/logo.png">
        <title>Joe Chung<br>Monmouth U. Homepage</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/</link>
        <url>http://rockhopper.monmouth.edu/cs/jchung/_media/wiki/logo.png</url>
    </image>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/accessor_and_mutator_methods_1?rev=1360604753">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-11T17:45:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/accessor_and_mutator_methods_1?rev=1360604753</link>
        <description>----------

See the code below:


public void onScannedRobot(ScannedRobotEvent e) {
      
      // 1 - Get distance to other robot.
      double distance;
      distance = e.getDistance();
      
      // Stuff omitted...
      
}


In the above code, the getDistance() method is an example of a(n)</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/accessor_and_mutator_methods_2?rev=1360610773">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-11T19:26:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/accessor_and_mutator_methods_2?rev=1360610773</link>
        <description>----------

See the code below:


public void run() {
   // Stuff omitted...
      
   setColors(Color.red,Color.blue,Color.green); // body,gun,radar
 


In the above code, the setColors() method is an example of a(n) ...

&lt;multipoll Mutator or Accessor?&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/accessor_and_mutator_methods_3?rev=1360611251">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-11T19:34:11+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/accessor_and_mutator_methods_3?rev=1360611251</link>
        <description>----------

See the code below:


      // Robot main loop
      while(true) {
        
         // 3 - Move in a circle to the left or right.
         ahead(5);
         turnRight(direction);
         
         // 4 - If back at starting position, move in a circle in the opposite direction.
         //     - Use direction variable from 2.
         currentHeading = getHeading();</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/adjustfirebot_template?rev=1413236436">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-13T21:40:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>AdjustFireBot2 template</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/adjustfirebot_template?rev=1413236436</link>
        <description>AdjustFireBot2 template

----------


import robocode.*;

// API help : http://robocode.sourceforge.net/docs/robocode/robocode/Robot.html

/**
 * AdjustFireBot2 - a robot by (your name here)
 */
public class AdjustFireBot2 extends Robot
{
   // Declare instance variables for this robot here:
   private double height;  // field height
   private double width;   // field width
   private double maxDist; // Max distance = distance from one corner of the
                                             …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/alice_class_level_and_world_level_methods?rev=1316726811">
        <dc:format>text/html</dc:format>
        <dc:date>2011-09-22T21:26:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Tutorial: Class Level and World Level Methods</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/alice_class_level_and_world_level_methods?rev=1316726811</link>
        <description>Tutorial: Class Level and World Level Methods

----------

Loading the World

Download the file that we'll be working with today. Save it in a directory that you can find again, and then start Alice and open the world.

First: After you have opened the file, and set up your world, go into the</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/alice_events?rev=1316728410">
        <dc:format>text/html</dc:format>
        <dc:date>2011-09-22T21:53:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Events Tutorial</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/alice_events?rev=1316728410</link>
        <description>Events Tutorial

----------

What are events?

In video games and other interactive systems, events happen and we might need to respond to them.

We will learn to make Alice programs respond to mouse clicks and keyboard presses, as well as handing some camera control over to the user.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/alice_methods_continued_and_properties?rev=1317326566">
        <dc:format>text/html</dc:format>
        <dc:date>2011-09-29T20:02:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>More On Methods, Properties</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/alice_methods_continued_and_properties?rev=1317326566</link>
        <description>More On Methods, Properties

----------

	*  We will complete the Alice program that you started in the Class Level and World Level Methods tutorial.

Loading the World

	*  For this tutorial, you can use your completed version (methodStart.a2w) from Class Level and World Level Methods tutorial. Or you can download a completed version here.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_1?rev=1367512819">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-02T16:40:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_1?rev=1367512819</link>
        <description>The following code contains an array:


1   // cs175HelloWorld.java: First program in Java in CS-175
2   //
3   // J. Chung
4   // 1/28/2013
5
6   public class cs175HelloWorld {
7  
8     public static void main( String[] args ) {
9
10          System.out.println(&quot;Hello, Hoboken!&quot;);
11    }
12  }</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_2?rev=1367515126">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-02T17:18:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_2?rev=1367515126</link>
        <description>In the following code, how many times does the for loop repeat?


final int ARRAY_SIZE = 20;
int[] values = new int[ARRAY_SIZE];

for ( int i = 0; i &lt; values.length; i++ )
{
   values[i] = 0;
}


&lt;poll How many for loop repetitions? [000]&gt;

	*  0
	*</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_3?rev=1367515642">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-02T17:27:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_3?rev=1367515642</link>
        <description>Where is the error in the following code?


1    String[] answers = new String[5];
2
3    answers[1] = &quot;It is certain.&quot;;
4    answers[2] = &quot;It is decidedly so.&quot;;
5    answers[3] = &quot;Without a doubt.&quot;;
6    answers[4] = &quot;Yes definitely.&quot;;
7    answers[5] = &quot;You may rely on it.&quot;;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_lab_-_magic_8-ball?rev=1417728047">
        <dc:format>text/html</dc:format>
        <dc:date>2014-12-04T21:20:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Magic8Ball Simulation</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_lab_-_magic_8-ball?rev=1417728047</link>
        <description>Magic8Ball Simulation

----------

	*  Topics: Arrays, Strings

----------

Write a program Magic8Ball.java to do the following:

	*  In a loop:
		*  Using Scanner, input any question from the user as a String.
		*  If the user inputs “quit”, then exit the loop immediately.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_lab_-_sum_of_dice?rev=1418158846">
        <dc:format>text/html</dc:format>
        <dc:date>2014-12-09T21:00:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>SumOfDiceArray - Simulate rolling a pair of dice</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/arrays_lab_-_sum_of_dice?rev=1418158846</link>
        <description>SumOfDiceArray - Simulate rolling a pair of dice

----------

	*  Topics: Arrays, Strings, Loops

----------

Use an array of Strings to implement the SumOfDice program.

Write a program SumOfDiceArray.java that simulates rolling a pair of 6-sided dice 100 times.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/assignment_operator?rev=1360262883">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T18:48:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/assignment_operator?rev=1360262883</link>
        <description>The assignment operator in Java is __.


            a.   :=

            b.   =

            c.   ==

            d.   &lt;-


&lt;poll Choose one [9]&gt;

	*  a
	*  b
	*  c
	*  d

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/centerbot3_approach?rev=1561176022">
        <dc:format>text/html</dc:format>
        <dc:date>2019-06-22T04:00:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CenterBot Approach #3 - Trigonometry Functions</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/centerbot3_approach?rev=1561176022</link>
        <description>CenterBot Approach #3 - Trigonometry Functions

----------

The Java Math.atan2 (arctangent2) method can be used.

Math.atan2(centerY - myY, centerX - myX) computes the angles shown below. The angles will always be measured from the same horizontal base. Clockwise angles will be negative, and counterclockwise angles will be positive.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/centerbot3_template?rev=1561176257">
        <dc:format>text/html</dc:format>
        <dc:date>2019-06-22T04:04:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CenterBot template</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/centerbot3_template?rev=1561176257</link>
        <description>CenterBot template

	*  for  Approach #3 (trig functions)

----------


import robocode.*;

/**
 * CenterBot - a robot by J. Chung
 */
public class CenterBot3 extends Robot
{
   // Approach #3: Once you know the x,y coordinates of the center of
   // the arena, point robot in direction of center, compute distance
   // to center, move ahead to center.

   // Declare some robot variables here:
   private double centerX;
   private double centerY;
   
   
   /**
    * run: CenterBot's default beha…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/centerbot_template?rev=1413235539">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-13T21:25:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CenterBot template</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/centerbot_template?rev=1413235539</link>
        <description>CenterBot template

	*  for Approach #1

----------


import robocode.*;
// API help : http://robocode.sourceforge.net/docs/robocode/robocode/Robot.html

// Approach #1: Get robot's current heading. Turn robot to point north (heading=0).
// Move robot ahead or back to get to middle of screen vertically. Turn robot to
// point east (heading=90). Move robot ahead or back to get to middle of screen
// horizontally.

/**
 * CenterBot - a robot by (your name here)
 */
public class CenterBot extends R…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/chess_squares_-_noloop?rev=1414557263">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-29T04:34:23+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ChessSquares class</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/chess_squares_-_noloop?rev=1414557263</link>
        <description>ChessSquares class

----------

Topics: Strings, Input, Selection (if-else)

Each square on a chess board can be described by a letter and number:



The following pseudocode describes an algorithm that determines whether a square with a given letter and number is dark or light.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/classes_and_programs_1?rev=1362677672">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-07T17:34:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/classes_and_programs_1?rev=1362677672</link>
        <description>See the code below:


/**
   A bank account has a balance that can be changed by 
   deposits and withdrawals.
*/
public class BankAccount
{  

   private double balance;

   public void deposit(double amount)
   {  
      double newBalance = balance + amount;
      balance = newBalance;
   }

   public void withdraw(double amount)
   {   
      double newBalance = balance - amount;
      balance = newBalance;
   }

   public double getBalance()
   {   
      return balance;
   }
}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_implementation_1?rev=1362079322">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T19:22:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/class_implementation_1?rev=1362079322</link>
        <description>See the following code:


/**
   Uses and tests the BankAccount class (pp. 86-87 of book)
*/
public class TestBankAccount {

   public static void main(String[] args) {
      
      BankAccount momsSavings = new BankAccount(1000);
            
      double momsBalance = momsSavings.getBalance();
      
      System.out.println( &quot;Mom's account balance: &quot; + momsBalance );
   }
}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_implementation_2?rev=1362079948">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T19:32:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/class_implementation_2?rev=1362079948</link>
        <description>See the following code:


/**
   Uses and tests the BankAccount class (pp. 86-87 of book)
*/
public class TestBankAccount {

   public static void main(String[] args) {
      
      BankAccount momsSavings = new BankAccount();
      
      momsSavings.deposit( 1000.00 );
      
      double momsBalance = momsSavings.getBalance();
      
      System.out.println( &quot;Mom's account balance: &quot; + momsBalance );
   }
}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_methods_1?rev=1362679205">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-07T18:00:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/class_methods_1?rev=1362679205</link>
        <description>See the definition of the CashRegister class (based on pp. 88-89 of book):


/**
 * Cash register class based on pp. 88-89 of book.
 * Totals up sales and computes change due.
 */
public class CashRegister {
   
   // CashRegister instance variables:
   private double cashBalance; // amount that register currently has
   private double purchase;    // amount of customer purchase
   private double payment;     // amount paid by customer
   
   /**
    * Constructs a cash register with $500.00 in …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_1?rev=1361469874">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-21T18:04:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_1?rev=1361469874</link>
        <description>See the following code:


/**
 * SpiralBot - a robot by (your name here)
 */
public class SpiralBot extends Robot
{

   private String botname = &quot;Fred&quot;;
     
   /**
    * run: SpiralBot's default behavior
    */
   public void run() {
      // Stuff omitted.
   }

   /**
    * Gets robot's name
    * 
    * @return botname - robot's name
    */
   public String getBotName() {
   
      return botname;
      
   }</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_2?rev=1362077621">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T18:53:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_2?rev=1362077621</link>
        <description>----------

See the code below (BankAccount class from pp. 86-87 of book):


/**
   A bank account has a balance that can be changed by 
   deposits and withdrawals.
*/
public class BankAccount
{  

   private double balance;

   /**
      Constructs a bank account with a zero balance.
   */
   public BankAccount()
   {   
      balance = 0;
   }

   /**
      Constructs a bank account with a given balance.
      @param initialBalance the initial balance
   */
   public BankAccount(double initia…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_2a?rev=1362078286">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T19:04:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_2a?rev=1362078286</link>
        <description>----------

See the code below (BankAccount class from pp. 86-87 of book):


/**
   A bank account has a balance that can be changed by 
   deposits and withdrawals.
*/
public class BankAccount
{  

   private double balance;

   /**
      Constructs a bank account with a zero balance.
   */
   public BankAccount()
   {   
      balance = 0;
   }

   /**
      Constructs a bank account with a given balance.
      @param initialBalance the initial balance
   */
   public BankAccount(double initia…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_3?rev=1362073763">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T17:49:23+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/class_public_interface_3?rev=1362073763</link>
        <description>----------

See the code below (BankAccount class from pp. 86-87 of book):


/**
   A bank account has a balance that can be changed by 
   deposits and withdrawals.
*/
public class BankAccount
{  

   private double balance;

   /**
      Constructs a bank account with a zero balance.
   */
   public BankAccount()
   {   
      balance = 0;
   }

   /**
      Constructs a bank account with a given balance.
      @param initialBalance the initial balance
   */
   public BankAccount(double initia…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/constructors_1?rev=1413915709">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-21T18:21:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/constructors_1?rev=1413915709</link>
        <description>See the definition of the CashRegister class:


/**
 * Cash register class:
 * Totals up sales and computes change due.
 */
public class CashRegister {
   
   // CashRegister instance variables:
   private double cashBalance; // amount that register currently has
   private double purchase;    // amount of customer purchase
   private double payment;     // amount paid by customer


   
   
   /**
    * Records the sale of an item.
    * @param amount the price of the item
    */
   public void …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_dice_roll_frequency_class?rev=1721669571">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-22T17:32:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lab Program: DiceRolls.java</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_dice_roll_frequency_class?rev=1721669571</link>
        <description>----------

Lab Program: DiceRolls.java

----------

(See lab solutions on cssegit.)

In this lab, we'll write the DiceRolls.java program to simulate the rolling of a pair of dice 100 times. Assume 6-sided dice. Use the randbetween() method from previous programs again.

Using an array, keep a count of the sums of the dice rolls.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_fa14_first_robocode_tournament?rev=1414031485">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-23T02:31:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>First Robocode Tournament (Lab Test 1)</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_fa14_first_robocode_tournament?rev=1414031485</link>
        <description>----------

First Robocode Tournament (Lab Test 1)

Thursday, 10/23, 4:30pm, 6:30pm

The first Robocode tournament will count as Lab Test 1. The tournament will be held during class.

I'm going to allow TEAMS OF TWO OR THREE to submit one robot for the tournament. This is optional. If you want to work alone, you may. If you're in a team, all of you in the team will get the same grade for Lab Test 1. If you're going to be in a team, you must let me know the team members by the end of Thursday (10…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_magic_eight_ball_class_version_1?rev=1721669611">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-22T17:33:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Programming Lab Exercise</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_magic_eight_ball_class_version_1?rev=1721669611</link>
        <description>Programming Lab Exercise

(See lab solutions on cssegit.)

----------

	*  Topics: Arrays, Strings, Math.random

MagicEightBall1.java, TestMagicEightBall1.java

Define a class called MagicEightBall1. An object of this class is used to represent a Magic 8-Ball.

The attributes (private instance variables) of the MagicEightBall1 class are the following:</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_magic_eight_ball_class_version_2?rev=1398270889">
        <dc:format>text/html</dc:format>
        <dc:date>2014-04-23T16:34:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Programming Lab Exercise</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_magic_eight_ball_class_version_2?rev=1398270889</link>
        <description>Programming Lab Exercise

----------

	*  Topics: Introduction to Arrays, Classes, Strings, Math.random

MagicEightBall2.java, TestMagicEightBall2.java

(In this lab exercise, you'll modify version 1 of the Magic Eight Ball class.)

Define a class called MagicEightBall2. An object of this class is used to represent a</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_arrays?rev=1367512902">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-02T16:41:42+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Arrays</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_arrays?rev=1367512902</link>
        <description>Arrays

----------

Topics

	*  Horstmann Chapter 7: 7.1 and 7.6 

----------

Thu, 5/2/13 

	*  Arrays 1
	*  Arrays 2
	*  Arrays 3

----------</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_chesssquares_class?rev=1412886090">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-09T20:21:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ChessSquares class, input loop example</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_chesssquares_class?rev=1412886090</link>
        <description>ChessSquares class, input loop example

----------

Topics: Loops, Strings, Input, Selection (if-else)

Each square on a chess board can be described by a letter and number:



The following pseudocode describes an algorithm that determines whether a square with a given letter and number is dark or light.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_cornerbot?rev=1391806764">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-07T20:59:24+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CornerBot - visits all corners of the room</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_cornerbot?rev=1391806764</link>
        <description>CornerBot - visits all corners of the room

----------


   ... omitted


----------

(Updated Mon 3/4)

	*  Using movement methods developed in MethodBot)


   ... omitted


----------</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_counter_class?rev=1721774558">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-23T22:42:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Programming Lab Exercise</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_counter_class?rev=1721774558</link>
        <description>Programming Lab Exercise



Counter2.java, TestCounter2.java

Define a class called Counter2. An object of this class is used to count things, so it records a count that is a non-negative whole number. Include methods to set the counter to 0, to increase the count by 1, and to decrease the count by 1. Also include an accessor method that returns the current count value, as well as a method that displays the count on the screen. Do not define an input method. The only method that can set the coun…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_first_robocode_tournament?rev=1368404563">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-13T00:22:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>First Robocode Tournament (Lab Test 1)</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_first_robocode_tournament?rev=1368404563</link>
        <description>----------

First Robocode Tournament (Lab Test 1)

(UPDATE: See the Results spreadsheet.)

Monday, 3/11, 1pm

The first Robocode tournament will count as Lab Test 1. The tournament will be held during class.

I'm going to allow TEAMS OF TWO to submit one robot for the tournament. This is optional. If you want to work alone, you may. If you're in a team of two, both of you will get the same grade for Lab Test 1. If you're going to be in a team, you must let me know the team members by the end of…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_introduction_to_classes?rev=1362679074">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-07T17:57:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Introduction to Classes</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_introduction_to_classes?rev=1362679074</link>
        <description>Introduction to Classes

----------

Topics:

	*  Horstmann Chapter 3: 3.1 - 3.5

----------

Thu, 2/21/13

	*  Instance Variables 1
	*  Instance Variables 2
	*  Class Public Interface 1

Thu, 2/28/13

	*  Instance Variables 3
	*  Class Public Interface 2
	*  Class Public Interface 2a
	*  Class Public Interface 3
	*  Class implementation 1
	*  Class implementation 2

Thu, 3/7/13

	*  Local and Parameter Variables 1
	*  Local and Parameter Variables 2
	*  Classes and Programs 1
	*  Constructors 1…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_magiceightball_class?rev=1369400111">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-24T12:55:11+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Programming Lab Exercise</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_magiceightball_class?rev=1369400111</link>
        <description>Programming Lab Exercise

	*  Topics: Introduction to Arrays, Strings, Math.random

MagicEightBall.java, TestMagicEightBall.java

Define a class called MagicEightBall. An object of this class is used to represent a Magic 8-Ball.

The attributes (private instance variables) of the MagicEightBall class are the following:</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_methodbot?rev=1391806781">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-07T20:59:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MethodBot - contains useful methods in one place</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_methodbot?rev=1391806781</link>
        <description>MethodBot - contains useful methods in one place

	*  Use this robot to develop and hold useful methods that might come in handy in later robots.

----------


   ... omitted


----------</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_nearestwallbot?rev=1394469962">
        <dc:format>text/html</dc:format>
        <dc:date>2014-03-10T16:46:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_nearestwallbot?rev=1394469962</link>
        <description>Omitted ...</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_oddevenscanner?rev=1364857788">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-01T23:09:48+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_oddevenscanner?rev=1364857788</link>
        <description>Oddeven.java developed in class on 4/1/13:


/**
 * OddEven.java
 * 
 * J. Chung
 * 4/1/13
 * 
 * Write a program called OddEven.java that contains a class OddEven and a main() method.
 * In the main() method, use the Java Scanner class to input an
 * integer from the keyboard and test whether the input number is odd or even.
 */

import java.util.Scanner; // Need to declare Scanner object for input

public class OddEven
{
   public static void main( String[] args )
   {
      Scanner keyboard =…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_oddevenscannerloops?rev=1365447684">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-08T19:01:24+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Version 1 - while(true) loop</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_oddevenscannerloops?rev=1365447684</link>
        <description>Three versions of a looping OddEven program were developed in class on 4/8/13. All three versions repeatedly input the user for an integer to determine if it is an even or odd number.

----------

Version 1 - while(true) loop

	*  This version uses a simple while(true) loop that repeats until the user manually terminates the program.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_randomturnbot?rev=1360890412">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-15T01:06:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Robocode random turns using Math.random() method</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_randomturnbot?rev=1360890412</link>
        <description>Robocode random turns using Math.random() method


   /**
    * run: RandomTurnBot's default behavior
    */
   public void run() {
      
      // Robot main loop
      while(true) {
         
         // Make random turns to either left or right (-90 deg, +90 deg):
         int turn = (int)(Math.random() * 2); // turn = either 0 or 1
         
         if ( turn == 1 ) {
            // right turn
            turnRight( 90 );
         }
         else {
            // left turn
            turnL…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_randomturnbot_with_randbetween_method?rev=1361467210">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-21T17:20:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Robocode random turns using randbetween() method</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_randomturnbot_with_randbetween_method?rev=1361467210</link>
        <description>Robocode random turns using randbetween() method

----------


   /**
    * run: RandomTurnBot's default behavior
    */
   public void run() {
      
      // Robot main loop
      while(true) {
         // Make random turns to either left or right (-90 deg, +90 deg):
         // (See the randbetween() method definition below the run() method.)
         int turn = randbetween( 0, 1 );
         
         if ( turn == 1 ) {
            // right turn
            turnRight( 90 );
         }
       …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_repetition?rev=1365699127">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-11T16:52:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Loops</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_repetition?rev=1365699127</link>
        <description>Loops

----------

Topics

	*  Horstmann Chapter 6: 6.1-6.5

----------

Mon, 4/8/13 

	*  While Loop 1
	*  While Loop 2
	*  While Loop 3
	*  While Loop 4

Thu, 4/11/13

	*  For Loop 1
	*  For Loop 2
	*  For Loop 3
	*  For Loop 4

----------</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_figure_eight_run_algorithm?rev=1391798696">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-07T18:44:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Algorithm for Robocode figure eight movement</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_figure_eight_run_algorithm?rev=1391798696</link>
        <description>Algorithm for Robocode figure eight movement


   /**
    * run: Toast2's default behavior
    */
   public void run() {

      // Stuff omitted ...

      // Algorithm: Do a figure eight
      // Summary: If you've done a full circle, make a circle in the other direction.
         

      // 1 - Store starting position = Store robot's starting heading angle

      // 2 - Store circle direction in a variable
      
      
      // Robot main loop
      while(true) {
              
         // 3 …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_figure_eight_run_algorithm_-_robocode_figure_eight_run_algorithm?rev=1360259642">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T17:54:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Algorithm for Robocode figure eight movement</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_figure_eight_run_algorithm_-_robocode_figure_eight_run_algorithm?rev=1360259642</link>
        <description>Algorithm for Robocode figure eight movement


   /**
    * run: Toast2's default behavior
    */
   public void run() {

      // Stuff omitted ...

      // Algorithm: Do a figure eight
      // Summary: If you've done a full circle, make a circle in the other direction.
         

      // 1 - Store starting position = Store robot's starting heading angle

      // 2 - Store circle direction in a variable
      
      
      // Robot main loop
      while(true) {
              
         // 3 …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_select_fire_with_variables?rev=1413210811">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-13T14:33:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Making decisions in Robocode methods</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_select_fire_with_variables?rev=1413210811</link>
        <description>Making decisions in Robocode methods

----------

	*  A Robocode robot can fire its cannon using variable power. The higher the power used in firing, the greater the energy drain. Also, a “heavier” cannon shot travels more slowly, while a “lighter</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_select_fire_with_variables_-_robocode_select_fire_with_variables?rev=1391801127">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-07T19:25:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Using variables in Robocode methods</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_robocode_select_fire_with_variables_-_robocode_select_fire_with_variables?rev=1391801127</link>
        <description>Using variables in Robocode methods

Change fire power based on opposing robot distance


   ... omitted</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_scanner_input_example?rev=1365446787">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-08T18:46:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_scanner_input_example?rev=1365446787</link>
        <description>(This is a Scanner input example. See the book, Section 4.6.)

Write a program called OddEven.java that contains a class OddEven and a main() method. In the main() method, use the Java Scanner class to input an integer from the keyboard and test whether the input number is odd or even.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_spiralbot?rev=1394041927">
        <dc:format>text/html</dc:format>
        <dc:date>2014-03-05T17:52:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>SpiralBot that chooses movement based on a variable</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_spiralbot?rev=1394041927</link>
        <description>SpiralBot that chooses movement based on a variable

	*  This version of SpiralBot demonstrates adding and using methods and changing behavior using a variable.


...
... Lines omitted
...

/**
 * SpiralBot - a robot by (your name here)
 */
public class SpiralBot extends Robot
{
   // Declare needed variables:
   int movement = 1; // 1 = spiral, 2 = default
   double N = 15;
     
   
   
   /**
    * run: SpiralBot's default behavior
    */
   public void run() {

      // Robot main loop
     …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_strings_input_and_selection?rev=1364838898">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-01T17:54:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Strings, Input and Selection</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_strings_input_and_selection?rev=1364838898</link>
        <description>Strings, Input and Selection

----------

Topics

	*  Horstmann Chapter 4: 4.5-4.6 and Chapter 5: 5.1-5.4

----------

Mon, 3/25/13

	*  If Structures 1
	*  If Else Structure 1
	*  Relational Operators 1
	*  Multi-level If 1

Mon, 4/1/13

	*  String Basics 1
	*  String Basics 2
	*  String Basics 3
	*  Logical Operators 1
	*  Logical Operators 1b
	*  Logical Operators 2
	*  Logical Operators 3

----------</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_teamplayerbot?rev=1365168876">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-05T13:34:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Robocode: TeamPlayerBot</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_teamplayerbot?rev=1365168876</link>
        <description>Robocode: TeamPlayerBot

----------

	*  Topics covered: Strings (4.5, p. 134), String comparisons (5.2.3, p. 158)

----------

Write a variant of the robocode Default robot called TeamPlayerBot that is designed to be played in a team battle (2 vs 2).</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_timeofday_class?rev=1516719078">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-23T14:51:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Programming Lab Exercise</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_timeofday_class?rev=1516719078</link>
        <description>Programming Lab Exercise

	*  Topics: Introduction to Classes, Strings, Selection, Loops

TimeOfDay.java, TestTimeOfDay.java

Define a class called TimeOfDay. An object of this class is used to represent a time of day in hours:minutes, e.g. 4:30, 16:00, 18:45. For simplicity, time is presented as military time (no AM or PM).</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_types_and_variables?rev=1360865303">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-14T18:08:23+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Types, Variables, Methods</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp13_types_and_variables?rev=1360865303</link>
        <description>Types, Variables, Methods

----------

Topics:

	*  Horstmann Chapter 2: 2.1 - 2.10

----------

Horstmann Chapter 2: 2.1 - 2.5

Thu, 2/7/13

	*  Variable declaration
	*  Variable assignment
	*  Assignment operator
	*  Type memory usage
	*  Int variables
	*  Double variables
	*  Type casting

Mon, 2/11/13

	*  Methods 1
	*  Methods 2
	*  Method input parameters

Horstmann Chapter 2: 2.6 - 2.10

	*  Accessor and mutator methods 1
	*</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp14_first_robocode_tournament?rev=1394041121">
        <dc:format>text/html</dc:format>
        <dc:date>2014-03-05T17:38:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>First Robocode Tournament (Lab Test 1)</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp14_first_robocode_tournament?rev=1394041121</link>
        <description>----------

First Robocode Tournament (Lab Test 1)

Wednesday, 3/12, 1pm

The first Robocode tournament will count as Lab Test 1. The tournament will be held during class.

I'm going to allow TEAMS OF TWO to submit one robot for the tournament. This is optional. If you want to work alone, you may. If you're in a team of two, both of you will get the same grade for Lab Test 1. If you're going to be in a team, you must let me know the team members by the end of Monday, 2/24.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp14_robocode_centerbot_with_methods?rev=1411699157">
        <dc:format>text/html</dc:format>
        <dc:date>2014-09-26T02:39:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CenterBot Using A Method</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_sp14_robocode_centerbot_with_methods?rev=1411699157</link>
        <description>CenterBot Using A Method</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_supplemental_repetition_exercises?rev=1330452032">
        <dc:format>text/html</dc:format>
        <dc:date>2012-02-28T18:00:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs-175_supplemental_repetition_exercises?rev=1330452032</link>
        <description>1. WeightTable.java:

(Conversion from kilograms to pounds) Write a program WeightTable.java that displays the following table from 1 to 199 Kilograms using a for loop.


         Kilograms        Pounds

         1                2.2
         3                6.6
         ...
         (lines between 3 and 197
          kg omitted for brevity)
         ...
         197              433.4
         199              437.8</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw2?rev=1265304077">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-04T17:21:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175-02, Homework 2</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw2?rev=1265304077</link>
        <description>CS 175-02, Homework 2

----------

	*  Due Feb. 9, 11:59pm
	*  Save all work under your ~/cs175/homework/hw2 folder, so that it can be collected at the deadline.

Assignment

	*  Write a program that displays the number of days until Spring Break in a dialog box.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw3?rev=1266331316">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-16T14:41:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175-02, Homework 3</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw3?rev=1266331316</link>
        <description>CS 175-02, Homework 3

----------

	*  Due Feb. 16, 11:59pm
	*  Save all work under your ~/cs175/homework/hw3 folder, so that it can be collected at the deadline.
	*  Try to think about the problem before you start writing code.  Working the program out in</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw4?rev=1266517692">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-18T18:28:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175-02, Homework 4</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw4?rev=1266517692</link>
        <description>CS 175-02, Homework 4

----------

	*  Due Feb. 23, 11:59pm
	*  Save all work under your ~/cs175/homework/hw4 folder, so that it can be collected at the deadline.
	*  Try to think about the problem before you start writing code.  Working the program out in</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw5?rev=1267511064">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-02T06:24:24+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175-02, Homework 5</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw5?rev=1267511064</link>
        <description>CS 175-02, Homework 5

----------

	*  Due Fri, 3/5, 11:59pm
	*  Save all work under your ~/cs175/homework/hw5 folder, so that it can be collected at the deadline.
	*  Try to think about the problem before you start writing code.  Working the program out in</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw6?rev=1268927049">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-18T15:44:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175-02, Homework 6</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw6?rev=1268927049</link>
        <description>CS 175-02, Homework 6

----------

	*  Due Tue, 3/23, 11:59pm
	*  Save all work under your ~/cs175/homework/hw6 folder, so that it can be collected at the deadline.

Assignment

Finish the Lab 6 programs.  Save your work to ~/cs175/homework/hw6, or you will not get credit for this homework.  Complete the lab challenges for extra credit.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw7?rev=1269980697">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-30T20:24:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175-02, Homework 7</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw7?rev=1269980697</link>
        <description>CS 175-02, Homework 7

----------

	*  Due Thurs, 4/1, 11:59pm
	*  Save all work under your ~/cs175/homework/hw7 folder, so that it can be collected at the deadline.

Assignment

Finish the Lab 7 programs.  Save your work to ~/cs175/homework/hw7, or you will not get credit for this homework.  Complete the lab challenges for extra credit.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw8?rev=1362420054">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-04T18:00:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175-02, Homework 8</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs175-2_sp10_hw8?rev=1362420054</link>
        <description>CS 175-02, Homework 8

----------

	*  Due Thurs, 4/8, 11:59pm
	*  Save all work under your ~/cs175/homework/hw8 folder, so that it can be collected at the deadline.

Assignment

Continue the Lab 8 program.  Save your robot source code (.java file) to ~/cs175/homework/hw8</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_1?rev=1347711714">
        <dc:format>text/html</dc:format>
        <dc:date>2012-09-15T12:21:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lab 1 - Intro to UNIX, the Terminal, IceWM, drjava, gedit, javac/java</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_1?rev=1347711714</link>
        <description>Lab 1 - Intro to UNIX, the Terminal, IceWM, drjava, gedit, javac/java

----------

Preliminaries

	*  Using a MacOS web browser (suggest using Firefox), download and install the following (according to my directions):  

Topics

Your UNIX account

	*</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_2?rev=1264701434">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-28T17:57:14+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175: Lab 2: Basic input/output, understanding integer math</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_2?rev=1264701434</link>
        <description>CS 175: Lab 2: Basic input/output, understanding integer math

----------

In this lab we cover Java basics including:

	*  Getting user input using a dialog box.
	*  Converting input strings into numeric types.
	*  Integer division pitfalls and workarounds.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_3?rev=1265291966">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-04T13:59:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175: Lab 3: Comparisons, Selection</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_3?rev=1265291966</link>
        <description>CS 175: Lab 3: Comparisons, Selection

----------

In this lab we cover Java basics including:

	*  Getting user input using a Scanner.
	*  Using if statements to compare ints.

----------

Setup

	*  Create a generic program template to use for this and later programs.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_4?rev=1266931689">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-23T13:28:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lab 4:  Selection, Repetition, Counters</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_4?rev=1266931689</link>
        <description>Lab 4:  Selection, Repetition, Counters

----------

In this lab we cover Java and programming basics including:

	*  Selection and decision making with the if selection structure
	*  Looping with the while repetition structure

----------

Setup

1. Save all your work in a subdirectory called</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_5?rev=1267107586">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-25T14:19:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lab 5:  More Repetition</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_5?rev=1267107586</link>
        <description>Lab 5:  More Repetition

----------

In this lab we cover Java and programming basics including:

	*  Selection and decision making with the if selection structure
	*  Using sentinel-controlled repetition with a while loop

----------

Setup

1. Save all your work in a subdirectory called</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_6?rev=1269520650">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-25T12:37:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175, Lab 6:  Simple Methods</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_6?rev=1269520650</link>
        <description>CS 175, Lab 6:  Simple Methods

----------

In this lab we cover Java and programming basics including:

	*  Writing and using simple methods
		*  Selection with if/else
		*  Loops

----------

Save all your work in a subdirectory called lab6 under your</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_7?rev=1269981018">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-30T20:30:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175, Lab 7:  More Methods</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_7?rev=1269981018</link>
        <description>CS 175, Lab 7:  More Methods

----------

In this lab we cover Java and programming basics including:

	*  Writing and using multiple methods in a program

----------

Save all your work in a subdirectory called lab7 under your cs175/labs directory.  Run the following commands to create</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_8?rev=1270126762">
        <dc:format>text/html</dc:format>
        <dc:date>2010-04-01T12:59:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lab 8: Robocode</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_8?rev=1270126762</link>
        <description>Lab 8: Robocode

----------

Introduction

	*  See &lt;http://robocode.sourceforge.net/&gt;


    Robocode is a programming game where the goal is to code a robot to compete against other
    robots in a battle arena. The player is the programmer of the robot, who will have no
    direct influence on the game. Instead, the player must write the AI of the robot telling 
    it how to behave and react on events occurring in the battle arena. So the name Robocode 
    is a short for &quot;Robot code&quot;.

    Th…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_9?rev=1270732205">
        <dc:format>text/html</dc:format>
        <dc:date>2010-04-08T13:10:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lab 9:  Arrays</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_9?rev=1270732205</link>
        <description>Lab 9:  Arrays

----------

In this lab we cover Java and programming basics including:

	*  Creating and using arrays
	*  Passing arrays as input to methods

----------

Set Up

1. Create a new subdirectory called labs/lab9 under your cs175 directory. At the Terminal, run this command first to create the lab10 subdirectory:</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_10?rev=1271470749">
        <dc:format>text/html</dc:format>
        <dc:date>2010-04-17T02:19:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lab 10:  Arrays Continued</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_10?rev=1271470749</link>
        <description>Lab 10:  Arrays Continued

----------


In this lab we cover Java and programming basics including:
 • Creating and using arrays
 • Passing arrays as input to methods
 • Reading lines of input from files


----------

Set up

1. Create the lab10 subdirectory:</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_test_3_robocode?rev=1271349380">
        <dc:format>text/html</dc:format>
        <dc:date>2010-04-15T16:36:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lab Test 3, Robocode Tournament</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/cs_175_lab_test_3_robocode?rev=1271349380</link>
        <description>Lab Test 3, Robocode Tournament

Thurs, 4/22, 9am, HH 546

The robocode tournament, which counts as Lab Test 3 will be next Thursday.  The tournament will be held during class.

I'm going to allow TEAMS OF TWO to submit one robot for the tournament.  This is optional.  If you don't want to be in a team, you
don't have to be.  If you're in a team of two, both of you will get the same grade for Lab Test 3.  If you're going to be in a team, LET
ME KNOW</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/data_types_and_input_lab_1?rev=1412177061">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-01T15:24:21+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Programming Lab Exercise</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/data_types_and_input_lab_1?rev=1412177061</link>
        <description>Programming Lab Exercise

BMI.java

The following pseudocode describes how the body mass index can be calculated:


   - Read mass in pounds
   - Read height in feet, inches, e.g. 5 feet, 6 inches
   - Convert height in feet, inches to inches only, e.g. 5 feet, 6 inches = 66 inches
   - BMI = mass x 703 / (height squared)
   - Print the BMI</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/double_variables?rev=1360264729">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T19:18:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/double_variables?rev=1360264729</link>
        <description>Is the following declaration and assignment valid?
double mydouble = 10;

&lt;poll Choose one [14]&gt;

	*  Yes
	*  No

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/fall_2014_robocode_tournament_1_ideas?rev=1413930425">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-21T22:27:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Robocode Tournament 1 Ideas/Hints</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/fall_2014_robocode_tournament_1_ideas?rev=1413930425</link>
        <description>&lt;== Back to Robocode Tournament page

----------

Robocode Tournament 1 Ideas/Hints

----------

Hint: Don't try to be perfect

Your strategy to touch the SittingDucks may not work every time. Sometimes the SittingDucks aren't in the formation you need them to be in. But you have three tries.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/figureeightbot_using_if?rev=1412742928">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-08T04:35:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>FigureEightBot using if</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/figureeightbot_using_if?rev=1412742928</link>
        <description>FigureEightBot using if

----------

We wrote a FigureEightBot earlier that used a rather crude way of making a figure 8 pattern.

----------</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/find_largest_of_five_integers?rev=1413210159">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-13T14:22:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Find largest of five input integers</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/find_largest_of_five_integers?rev=1413210159</link>
        <description>Find largest of five input integers

----------

We worked on an algorithm to find the largest of five numbers. A possible algorithm is shown below:


   Take one number at a time out of the container.

   Assume that the first number is the largest.

   If the second number is greater than the largest,
   the largest is now the second number.

   If the third number is greater than the largest,
   the largest is now the third number.

   If the fourth number is greater than the largest,
   the …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_1?rev=1365727564">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-12T00:46:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>DISREGARD: CODE WON'T COMPILE IN JAVA</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_1?rev=1365727564</link>
        <description>DISREGARD: CODE WON'T COMPILE IN JAVA

----------

What is the output of the following code?


int i = 0;
int j = 0;

for ( int i = 1; i &lt;=10; i++ )
{
   j = j + i;
}

System.out.print( &quot;The value of i is &quot; + i );


	*  a - The value of i is 0
	*  b - The value of i is 10</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_2?rev=1365698378">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-11T16:39:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_2?rev=1365698378</link>
        <description>How many times does the following for loop repeat?


for ( int i = 0; i &lt;= 10; i++ )
{
   // Just a comment
}


&lt;multipoll Number of for loop repetitions? [000]&gt;

	*  9
	*  10
	*  11
	*  12

&lt;/multipoll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_3?rev=1365700590">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-11T17:16:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_3?rev=1365700590</link>
        <description>The for loop structure is good for situations when a definite number of repetitions is called for. Which of the following problems would best be solved using a for loop?

	*  a - Get numbers from the keyboard and check if they're odd or even, until the user enters -9999.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_4?rev=1365699280">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-11T16:54:40+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/for_loop_4?rev=1365699280</link>
        <description>What is output by the following code?


for ( int i = 10; i &gt;= 0; i = i - 2 )
{
   System.out.print( i + &quot; &quot; );
}


	*  a - 10 9 8 7 6 5 4 3 2 1 0
	*  b - 1 2 3 4 5 6 7 8 9 10
	*  c - 10 8 6 4 2 0
	*  d - 10 8 6 4 2

&lt;multipoll Backward for loop output? [000]&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/if_else_structure_1?rev=1364230947">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-25T17:02:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/if_else_structure_1?rev=1364230947</link>
        <description>See the following code:


      double distance;
      double power;

      if ( distance &lt; 100 )
         power = 4.0;
      else if ( distance &lt; 300 )
         power = 3.0;
      else if ( distance &lt; 500 )
         power = 2.0;
      else
         power = 1.0;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/if_structures_1?rev=1364233876">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-25T17:51:16+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/if_structures_1?rev=1364233876</link>
        <description>See the following code:


      double distance;
      double power;

      if ( distance &lt; 100 )
         power = 4.0;
         
      if ( distance &lt; 300 )
         power = 3.0;
         
      if ( distance &lt; 500 )
         power = 2.0;
         
      if ( distance &gt;= 500 )
         power = 1.0;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/implementing_classes_lab_1?rev=1413318510">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-14T20:28:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Programming Lab Exercise</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/implementing_classes_lab_1?rev=1413318510</link>
        <description>Programming Lab Exercise

	*  Topics: Implementing Classes

Counter.java, TestCounter.java



In DrJava, define a class called Counter in Counter.java.

An object of this class is used to count things, so it records a count that is a non-negative whole number.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/implementing_classes_lab_2?rev=1412705897">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-07T18:18:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Programming Lab Exercise</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/implementing_classes_lab_2?rev=1412705897</link>
        <description>Programming Lab Exercise

BankAccount1.java, TestBankAccount1.java

In DrJava, define a class called BankAccount1 in BankAccount1.java. Use the source code at &lt;http://tinyurl.com/l4huluv&gt; as a starting point.

An object of this class represents a bank account.

Add the following to the</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/input_and_selection?rev=1393437577">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-26T17:59:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Input and Selection</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/input_and_selection?rev=1393437577</link>
        <description>Input and Selection

----------

Topics:

	*  Book Chapters 2 - 3

----------

Practice programs

	*  Write a program called OddEven.java. In the main() method, use the Java Scanner class to prompt for and input an integer from the keyboard and test whether the input number is odd or even. The program should output either</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/instance_variables_1?rev=1361472506">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-21T18:48:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/instance_variables_1?rev=1361472506</link>
        <description>See the code below:


public class SpiralBot extends Robot
{
   double N = 20;
        
   /**
    * run: SpiralBot's default behavior
    */
   public void run() {

      double N = 15;

      // Robot main loop
      while(true) {
         // Go forward N pixels
         ahead(N);
		 
         // Make right turn
         turnRight(90);
		 
         // Increase N by 20
	 N = N + 20;
      }
   }</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/instance_variables_2?rev=1361469165">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-21T17:52:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/instance_variables_2?rev=1361469165</link>
        <description>See the code below:


public class SpiralBot extends Robot
{

   private double N = 20;

        
   /**
    * run: SpiralBot's default behavior
    */
   public void run() {

      double N = 15;

      // Robot main loop
      while(true) {
         // Go forward N pixels
         ahead(N);
		 
         // Make right turn
		 turnRight(90);
		 
         // Increase N by 20
		 N = N + 20;
      }
   }</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/instance_variables_3?rev=1362076595">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T18:36:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/instance_variables_3?rev=1362076595</link>
        <description>----------

See the code below (BankAccount class from pp. 86-87 of book):


/**
   A bank account has a balance that can be changed by 
   deposits and withdrawals.
*/
public class BankAccount
{  

   private double balance;

   /**
      Constructs a bank account with a zero balance.
   */
   public BankAccount()
   {   
      balance = 0;
   }

   /**
      Constructs a bank account with a given balance.
      @param initialBalance the initial balance
   */
   public BankAccount(double initia…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/introduction_to_computing_and_programming?rev=1504636983">
        <dc:format>text/html</dc:format>
        <dc:date>2017-09-05T18:43:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Introduction to Computing and Programming</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/introduction_to_computing_and_programming?rev=1504636983</link>
        <description>Introduction to Computing and Programming

----------

Topics:

	*  Book Chapter 1 (read it)
	*  Introduction to UNIX accounts
		*  Login and create a cs175 or cs501a folder for future work.

	*  Introduction to the BlueJ simple IDE.
	*  First Java program</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/int_variables?rev=1360262064">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T18:34:24+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/int_variables?rev=1360262064</link>
        <description>An int variable can hold __.


            a.   'x'

            b.   93

            c.   98.3

            d.   true

            e.   a and b


&lt;poll Choose one [3]&gt;

	*  a
	*  b
	*  c
	*  d
	*  e

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/java_arrays?rev=1208353267">
        <dc:format>text/html</dc:format>
        <dc:date>2008-04-16T13:41:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Arrays in Java</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/java_arrays?rev=1208353267</link>
        <description>Arrays in Java

	*  Array: a collection of data storage locations in memory, each of which holds the same type of data.
		*  Each storage location is called an element of the array.


Why arrays?

	*  Prior to arrays, we declared and used single variables of different types (int, double, char, etc.)</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/list_of_cs-175_assignments?rev=1417643564">
        <dc:format>text/html</dc:format>
        <dc:date>2014-12-03T21:52:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>List of CS-175 Assignments</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/list_of_cs-175_assignments?rev=1417643564</link>
        <description>List of CS-175 Assignments

Most solutions will be posted on Piazza, under the Resources page:

	*  CS-175/501a: &lt;https://piazza.com/monmouth/fall2014/cs175501a/resources&gt;

	*  CS-501a-51: &lt;https://piazza.com/monmouth/fall2014/cs501a51/resources&gt;

----------

Assignment 1 - Algorithms, Robocode I

Deadline: Fri 9/12, 5pm.

1. Write an algorithm

In a plain text file called</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/list_of_cs-175_labs?rev=1326822515">
        <dc:format>text/html</dc:format>
        <dc:date>2012-01-17T17:48:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>List of CS-175 Labs</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/list_of_cs-175_labs?rev=1326822515</link>
        <description>List of CS-175 Labs

----------</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/local_and_parameter_variables_1?rev=1362680315">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-07T18:18:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/local_and_parameter_variables_1?rev=1362680315</link>
        <description>----------

See the code below (BankAccount class from pp. 86-87 of book):


/**
   A bank account has a balance that can be changed by 
   deposits and withdrawals.
*/
public class BankAccount
{  

   private double balance;

   /**
      Constructs a bank account with a zero balance.
   */
   public BankAccount()
   {   
      balance = 0;
   }

   /**
      Constructs a bank account with a given balance.
      @param initialBalance the initial balance
   */
   public BankAccount(double initia…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/local_and_parameter_variables_2?rev=1362681009">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-07T18:30:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/local_and_parameter_variables_2?rev=1362681009</link>
        <description>----------

See the code below (randbetween() method from MethodBot):


   /**
    * randbetween: Return a random integer between low and high values
    * 
    * @param: low - low value
    * @param: high - high value
    * @return: random integer b/w low and high
    */ 
   public int randbetween( int low, int high ) {
           // Make sure that low and high values are in correct positions:
           // If low &gt; high, swap low and high.
           if ( low &gt; high ) {
              int temp …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_1?rev=1364834925">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-01T16:48:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_1?rev=1364834925</link>
        <description>What will be output by the following code?


int x = 2;
int y = 3;

if ( x &gt;= 2 &amp;&amp; y &gt; 3 )
   System.out.print( &quot;Condition is true.&quot; );
else
   System.out.print( &quot;Condition is false.&quot; );


&lt;multipoll logical ops [000]&gt;

	*  Condition is true.
	*  Condition is false.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_1b?rev=1364839452">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-01T18:04:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_1b?rev=1364839452</link>
        <description>Are the two following code blocks functionally the same?


// Code block #1:

if ( x &gt;= 2 &amp;&amp; y &gt; 3 )
   System.out.print( &quot;Condition is true.&quot; );
else
   System.out.print( &quot;Condition is false.&quot; );



// Code block #2:

if ( x &gt;= 2 ) {
   if ( y &gt; 3 )
      System.out.print( &quot;Condition is true.&quot; );
}
else
   System.out.print( &quot;Condition is false.&quot; );</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_2?rev=1364835248">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-01T16:54:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_2?rev=1364835248</link>
        <description>What will be output by the following code?


int x = 2;
int y = 3;

if ( x &gt;= 2 || y &gt; 3 )
   System.out.print( &quot;Condition is true.&quot; );
else
   System.out.print( &quot;Condition is false.&quot; );


&lt;multipoll logical ops [001]&gt;

	*  Condition is true.
	*  Condition is false.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_3?rev=1364835429">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-01T16:57:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/logical_operators_3?rev=1364835429</link>
        <description>What will be output by the following code?


double x = 100.5;

if ( x &gt; 1 || x &lt; 100 )
   System.out.print( &quot;x is between 1 and 100.&quot; );
else
   System.out.print( &quot;x is not between 1 and 100&quot; );


&lt;multipoll logical ops [002]&gt;

	*  x is between 1 and 100.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops?rev=1394542733">
        <dc:format>text/html</dc:format>
        <dc:date>2014-03-11T12:58:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Loops</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/loops?rev=1394542733</link>
        <description>Loops

----------

Topics:

	*  Book Chapter 4

----------

Practice programs

1 - Largest of inputs

	*  Write a program called LargestOfInput.java. In the main() method, use the java Scanner class to prompt for and input integers from the keyboard repeatedly in a loop. The program should find the largest of the input integers and output the largest integer that has been input to that point.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_inches_to_centimeters_conversion_table?rev=1448393130">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-24T19:25:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>US2Metric</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_inches_to_centimeters_conversion_table?rev=1448393130</link>
        <description>US2Metric

----------

	*  Topics: Loops, using the counter variable

----------

Write and save a program US2Metric that prints inches-to-centimeters and pounds-to-kilograms conversion tables, side by side.

The table will range from 1-50 inches and pounds. Since we know the number of repetitions that are needed, a</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_number_guessing_game?rev=1416515490">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-20T20:31:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>GuessNumber - a number guessing game</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_number_guessing_game?rev=1416515490</link>
        <description>GuessNumber - a number guessing game

----------

Write a program GuessNumber.java that plays a number guessing game.

The program will generate a random integer between 1 and 100, using the randbetween method.

Your program will ask the user to guess the value of the number between 1 and 100.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_oddeven?rev=1416405953">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-19T14:05:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>OddEven</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_oddeven?rev=1416405953</link>
        <description>OddEven

----------

	*  Topics: Decisions, Loops

Write and save a program that reads an integer and determines if it's odd or even. An input of zero counts as neither odd nor even. Here are some sample user dialogs from running this program:


         Enter an integer:  77464
         That number is EVEN.

         Enter an integer:  773
         That number is ODD.
         
         Enter an integer:  0
         That number is neither odd nor even.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_sum_of_dice?rev=1417641290">
        <dc:format>text/html</dc:format>
        <dc:date>2014-12-03T21:14:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>SumOfDice - Simulate rolling a pair of dice</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_sum_of_dice?rev=1417641290</link>
        <description>SumOfDice - Simulate rolling a pair of dice

----------

Write a program SumOfDice.java that simulates rolling a pair of 6-sided dice 100 times.

The randbetween method will be useful here.

You will need a loop that repeats 100 times.

You will need strings to track the number of dice sums (sum=2 to sum=12).</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_sum_of_odd_integers?rev=1449177577">
        <dc:format>text/html</dc:format>
        <dc:date>2015-12-03T21:19:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>SumOfOdd - Sum of Odd Integers</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_sum_of_odd_integers?rev=1449177577</link>
        <description>SumOfOdd - Sum of Odd Integers

----------

	*  Topics: loops, variable loop limits

Write and save a program SumOfOdd.java that will input a positive integer n and then compute and display the sum of the first n positive odd integers. For example, if</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_temperature_conversion_tables?rev=1449177470">
        <dc:format>text/html</dc:format>
        <dc:date>2015-12-03T21:17:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>TempConvert - Temperature conversion tables</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_temperature_conversion_tables?rev=1449177470</link>
        <description>TempConvert - Temperature conversion tables

----------

	*  Topics: Loops, using the counter variable

----------

Write TempConvert.java to output two temperature conversion tables.

	*  The first table that is output will show temperatures in the range 0 - 212 degrees Fahrenheit and the equivalent temperatures in Celsius.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_ulam_sequence?rev=1448393194">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-24T19:26:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Ulam Sequence</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/loops_lab_-_ulam_sequence?rev=1448393194</link>
        <description>Ulam Sequence

Write and save a program Ulam.java.

A mathematician named Ulam proposed generating a sequence of numbers from any positive integer n (n &gt; 0) as follows:


          • If n is 1, stop.
          • If n is even, the next number is n/2.
          • If n is odd, the next number is 3*n + 1.
          • Continue with this process until reaching 1.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_1?rev=1360607976">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-11T18:39:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_1?rev=1360607976</link>
        <description>----------

See the code below:


public void onScannedRobot(ScannedRobotEvent e) {
      
      // 1 - Get distance to other robot.
      double distance;
      distance = e.getDistance();
      
      // Stuff omitted...
      
}


&lt;multipoll How many total methods do you see in the above code?&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_2?rev=1360608571">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-11T18:49:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_2?rev=1360608571</link>
        <description>----------

See the code below:


public void onScannedRobot(ScannedRobotEvent e) {
      
      // 1 - Get distance to other robot.
      double distance;
      distance = e.getDistance();
      
      // Stuff omitted...
      
}


&lt;multipoll What type of data must be returned by the getDistance() method? [1st]&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_3?rev=1360865687">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-14T18:14:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_3?rev=1360865687</link>
        <description>----------

See the code below:


        /**
         * onHitRobot:  Move away a bit.
         */
        public void onHitRobot(HitRobotEvent e) {
                // If he's in front of us, set back up a bit.
                if (e.getBearing() &gt; -90 &amp;&amp; e.getBearing() &lt; 90) {
                        back(100);
                } // else he's in back of us, so set ahead a bit.
                else {
                        ahead(100);
                }
        }</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_lab_-_tryrandom3_using_randbetween_method?rev=1415135892">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-04T21:18:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>TryRandom3, using the randbetween method</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/methods_lab_-_tryrandom3_using_randbetween_method?rev=1415135892</link>
        <description>TryRandom3, using the randbetween method

----------

TryRandom2.java introduced the Math.random() method to generate random integers.

We want to write a more convenient way to generate random integers within a certain range.

The method we want to write and use is called</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/method_input_parameters?rev=1360609394">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-11T19:03:14+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/method_input_parameters?rev=1360609394</link>
        <description>----------

See the code below:


public void onScannedRobot(ScannedRobotEvent e) {
      
      // 1 - Get distance to other robot.
      double distance;
      distance = e.getDistance();
      
      // Stuff omitted...
      
}


Which of the above is a method</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/method_input_parameters_2?rev=1360866570">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-14T18:29:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/method_input_parameters_2?rev=1360866570</link>
        <description>See the code below:



        /**
         * onHitRobot:  Move away a bit.
         */
        public void onHitRobot(HitRobotEvent e) {
                // If he's in front of us, set back up a bit.
                if (e.getBearing() &gt; -90 &amp;&amp; e.getBearing() &lt; 90) {
                        back(100);
                } // else he's in back of us, so set ahead a bit.
                else {
                        ahead(100);
                }
        }</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/multi-level_if_1?rev=1364235440">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-25T18:17:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/multi-level_if_1?rev=1364235440</link>
        <description>See the following code:


int x = 5;

if ( x &gt; 0 )
{
   if ( x &lt;= 5 )
   {
      System.out.println(x);
      x = x + 5;
   }
}
else
{
   if ( x &gt; 5 )
   {
      System.out.println(x + 5);
   }
}


&lt;poll What will be output?&gt;

	*  0
	*  5
	*  10
	*  5, and then 10</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/multipoll_test?rev=1359363027">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-28T08:50:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/multipoll_test?rev=1359363027</link>
        <description>Answer the following question:

&lt;multipoll multipoll test 6&gt;
Am I confused?
* Yes
* No
* Maybe
&lt;/multipoll&gt;

&lt;multipoll multipoll test 7&gt;
Are you confused?
* Yes
* No
* Are you kidding?
&lt;/multipoll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/programming_with_robocode?rev=1409861172">
        <dc:format>text/html</dc:format>
        <dc:date>2014-09-04T20:06:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Robocode Introduction</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/programming_with_robocode?rev=1409861172</link>
        <description>Robocode Introduction

	*  See &lt;http://robocode.sourceforge.net/&gt;
		*  Robocode is a programming game where the goal is to code a robot to compete against other robots in a battle arena. The player is the programmer of the robot, who will have no direct influence on the game. Instead, the player must write the AI of the robot telling it how to behave and react on events occurring in the battle arena.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/relational_operators_1?rev=1364234920">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-25T18:08:40+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/relational_operators_1?rev=1364234920</link>
        <description>Which of the following is NOT a relational operator?

&lt;poll Relational operator?&gt;

	*  &gt;
	*  &gt;=
	*  &lt;
	*  &lt;=
	*  =
	*  !=

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocodeadjustfiremethod?rev=1411699188">
        <dc:format>text/html</dc:format>
        <dc:date>2014-09-26T02:39:48+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>A Robocode adjustFire Method</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robocodeadjustfiremethod?rev=1411699188</link>
        <description>A Robocode adjustFire Method</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_circlebot1_zigbot1_randomturnbot1?rev=1411604336">
        <dc:format>text/html</dc:format>
        <dc:date>2014-09-25T00:18:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CircleBot1, ZigBot1, RandomTurnBot1</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_circlebot1_zigbot1_randomturnbot1?rev=1411604336</link>
        <description>CircleBot1, ZigBot1, RandomTurnBot1

----------

CircleBot1

In Robocode, create CircleBot1 which does the following:

	*  Runs in a circle.
	*  Must use an int instance variable to change direction of circle.

Link to source code

ZigBot1

In Robocode, create ZigBot1 which does the following:</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_cornerbot1?rev=1411604127">
        <dc:format>text/html</dc:format>
        <dc:date>2014-09-25T00:15:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CornerBot1</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_cornerbot1?rev=1411604127</link>
        <description>CornerBot1

----------

Create a robocode robot called CornerBot1 that does the following:

	*  Visit each corner of the battlefield.
	*  The order in which the corners are visited does not matter.

	*  One possible algorithm (discussed in class, 9/16)</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_cornerbot2?rev=1412281341">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-02T20:22:21+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CornerBot2</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_cornerbot2?rev=1412281341</link>
        <description>CornerBot2

----------

Create a robocode robot called CornerBot2 that does the following:

	*  Visit each corner of the battlefield.
	*  The order in which the corners are visited does not matter.

	*  Another possible algorithm
		*  Turn robot left until heading is an angle that is a multiple of 90º.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_distanceto_x_y_method?rev=1415136107">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-04T21:21:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Robocode distanceTo Method</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_distanceto_x_y_method?rev=1415136107</link>
        <description>Robocode distanceTo Method

----------

We want to write a Robocode method called distanceTo that gives us the distance from our robot to a set of x and y coordinates. The start of distanceTo is as follows:


       /*
        * distanceTo: compute and return distance to a set of x,y coordinates
        * 
        * inputs: double x, double y
        * output: return double distance from our robot to x, y
        */
        public double distanceTo( double x, double y )</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_gotocenter_gotocoords_methods?rev=1417299714">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-29T22:21:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>More on Methods in Robocode</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_gotocenter_gotocoords_methods?rev=1417299714</link>
        <description>More on Methods in Robocode

----------

See  a version of the CenterBot from Assignment 4. This version uses Approach #3 to get to the center of the battlefield.

	*  A. In CenterBot4.java, define the public void gotoCenter method, and call it from the Robot main loop to get to the center. Use the</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_methodbot1?rev=1412302794">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-03T02:19:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MethodBot1</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_methodbot1?rev=1412302794</link>
        <description>MethodBot1

----------

In robocode, create MethodBot1. MethodBot1 should have the following void methods defined from previous robots:

	*  moveDefault: Moves robot in the default (beginner) pattern
	*  moveCircle: Moves robot in a circle
	*  moveFigure8: Moves robot in figure eight pattern</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_nearestwallbot1?rev=1413324617">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-14T22:10:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>NearestWallBot1</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_lab_-_nearestwallbot1?rev=1413324617</link>
        <description>NearestWallBot1

----------

1. Develop a workable algorithm to move a robot to the nearest wall. A robot can know the following data that can be used for this algorithm:

	*  its own x, y coordinates
	*  the height and width of the battlefield, with origin (0,0) in the lower left corner.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_tournament_2_sp14?rev=1417726582">
        <dc:format>text/html</dc:format>
        <dc:date>2014-12-04T20:56:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Extra Credit: Second Robocode Tournament</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robocode_tournament_2_sp14?rev=1417726582</link>
        <description>----------

Extra Credit: Second Robocode Tournament

Deadline: Fri, 12/12, 5pm

The second Robocode tournament will be optional, for extra credit only. It will increase your average lab test grade by up to 15%. I will conduct the tournament outside of class time and post the results.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/robots?rev=1252610745">
        <dc:format>text/html</dc:format>
        <dc:date>2009-09-10T19:25:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/robots?rev=1252610745</link>
        <description>User-agent: *
Disallow: /</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/sample_lab_test_problems?rev=1396464244">
        <dc:format>text/html</dc:format>
        <dc:date>2014-04-02T18:44:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/sample_lab_test_problems?rev=1396464244</link>
        <description>These are some more sample lab test problems:

----------

3. Selection with if:


   Use if statements in this program. DO NOT use 'else' or 'else if'
   statements.

   Write a program called Prob3.java to do the following:
      
      a. Declare an int variable called mynumber.
      b. Input a value for mynumber from the keyboard using Scanner.
      c. If mynumber is an even number, print &quot;Even&quot;.
         (For this program, assume that 0 is an even number.)
      d. If mynumber is an odd n…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/sample_lab_test_problem_-_loops?rev=1415740428">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-11T21:13:48+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/sample_lab_test_problem_-_loops?rev=1415740428</link>
        <description>Redacted</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/start?rev=1419347770">
        <dc:format>text/html</dc:format>
        <dc:date>2014-12-23T15:16:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS 175 - Intro to Computer Science I</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/start?rev=1419347770</link>
        <description>CS 175 - Intro to Computer Science I

CS 501a - Computer Programming Essentials

Semester: Fall 2014

----------

Information / Announcements

----------

Notes

	*  Introduction to Computing and Programming

	*  Beginning Programming with Robocode

	*  Using Objects
		*  Robocode lab - CornerBot1
		*  Using Objects lab - TryRandom1 (The java.util.Random class)
			*  TryRandom2 - Math.random() method alternative



	*  Implementing Classes</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/string_basics_1?rev=1364836624">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-01T17:17:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/string_basics_1?rev=1364836624</link>
        <description>What is the result of the following code?


String s = &quot;2&quot;;
String t = s + s;


	*  a - t contains 4
	*  b - t contains “ss”
	*  c - contains “s + s”
	*  d - contains “2 + 2”
	*  e - contains “22”

&lt;poll string concatenation [000]&gt;

	*</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/string_basics_2?rev=1364836758">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-01T17:19:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/string_basics_2?rev=1364836758</link>
        <description>What is the result of the following code?


int numerator = 2;
int denominator = 4;
String fraction = numerator + &quot;/&quot; + denominator;


	*  a - fraction contains “1/2”
	*  b - fraction contains “0.5”
	*  c - fraction contains “2/4”
	*  d - fraction contains</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/string_basics_3?rev=1364837855">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-01T17:37:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/string_basics_3?rev=1364837855</link>
        <description>What is output by the following code?


int numerator = 2;
int denominator = 4;

System.out.println( numerator + &quot;/&quot; + denominator + &quot; = &quot; + (numerator/denominator) );


	*  a - numerator / denominator = (numerator/denominator)
	*  b - 2 / 4 = 2/4
	*</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/supplemental_branching_exercises?rev=1329243909">
        <dc:format>text/html</dc:format>
        <dc:date>2012-02-14T18:25:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/supplemental_branching_exercises?rev=1329243909</link>
        <description>1. Odd or Even

Write and save a program OddEven.java that reads an integer and determines if it's odd or even. An input of zero counts as neither odd nor even. Here are some sample user dialogs from running this program:


         Enter an integer number:  77464
         That's number is EVEN.

         Enter an integer number:  773
         That's number is ODD.
         
         Enter an integer number:  0
         That number is neither odd nor even.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/type_casting?rev=1360265390">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T19:29:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/type_casting?rev=1360265390</link>
        <description>To assign a double variable d to an int variable x, you write


            a.   x = (long)d

            b.   x = (int)d;

            c.   x = d;

            d.   x = (float)d;


&lt;poll Choose one [15]&gt;

	*  a
	*  b
	*  c
	*  d

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/type_memory_usage?rev=1360262052">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T18:34:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/type_memory_usage?rev=1360262052</link>
        <description>Which of these data types requires the least amount of memory?


            a.   float

            b.   double

            c.   short

            d.   byte


&lt;poll Choose one [2]&gt;

	*  a
	*  b
	*  c
	*  d

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/using_objects_lab?rev=1411603553">
        <dc:format>text/html</dc:format>
        <dc:date>2014-09-25T00:05:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Using Objects Lab</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/using_objects_lab?rev=1411603553</link>
        <description>Using Objects Lab

----------

Do Practice Exercise E2.11 (p. 75) in DrJava:

The Random class implements a random number generator, which produces sequences of numbers that appear to be random. To generate random integers, you construct an object of the</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/variable_assignment?rev=1360262277">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T18:37:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/variable_assignment?rev=1360262277</link>
        <description>To add a to b and store result in b, you write .


            a.   b + a = b;

            b.   a = b + a;

            c.   b = A + B;

            d.   a = a + b;


&lt;poll Choose one [10]&gt;

	*  a
	*  b
	*  c
	*  d
	*  none of the above

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/variable_declaration?rev=1360261659">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T18:27:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/variable_declaration?rev=1360261659</link>
        <description>Is this a valid variable declaration?
int PI = 3.1416;

&lt;poll Choose one again&gt;

	*  Yes
	*  No

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_1?rev=1365441473">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-08T17:17:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_1?rev=1365441473</link>
        <description>About how many times does the following while loop repeat?


  double balance = 10;
  double targetBalance = 11;
  double rate = 10;
  int years = 1;

  while ( balance &lt; targetBalance )
  {
     years++;
     double interest = balance * rate / 100;
     balance = balance + interest;
  }</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_2?rev=1365442275">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-08T17:31:15+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_2?rev=1365442275</link>
        <description>About how many times does the following while loop repeat?


  double balance = 0;
  double targetBalance = 10;
  double rate = 10;
  int years = 1;

  while ( balance &lt; targetBalance )
  {
     years++;
     double interest = balance * rate / 100;
     balance = balance + interest;
  }</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_3?rev=1365442888">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-08T17:41:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_3?rev=1365442888</link>
        <description>Exactly how many times does the following while loop repeat?


  int i = 0;

  while ( i &lt;= 10 )
  {
     i++; // Increase i by 1
  }


----------

&lt;poll Number of repetitions? [003]&gt;

	*  9 times
	*  10 times
	*  11 times
	*  12 times

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_4?rev=1365440287">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-08T16:58:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs175/while_loop_4?rev=1365440287</link>
        <description>What is the final value of the variable counter after the while loop below?


  int counter = 10;

  while ( counter &gt; 0 )
  {
     counter--; // Decrease counter by 1
  }
  
  // Value of counter after while loop is?


----------

&lt;multipoll Counter value? [000]&gt;</description>
    </item>
</rdf:RDF>
