<?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 - cs509</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:21:59+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/arrayfromkeyboard?rev=1362642481"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/arraynoduplicates?rev=1362642540"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusfunctionreturn?rev=1361385479"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusfunctionreturn_i?rev=1361385492"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusfunctionreturn_ii?rev=1361385692"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusswapbyreference?rev=1361389284"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusswapbyvalue?rev=1361389219"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusvoidfunctions_i?rev=1361389121"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusarrays?rev=1362642419"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusbasics?rev=1360781762"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluspluscout1?rev=1360209033"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusfunctions?rev=1362596086"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusmain?rev=1360209051"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusscope?rev=1360781137"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusscope2?rev=1360781323"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplustypes?rev=1360781813"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplustypes2?rev=1360784673"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_array_example_1?rev=1362596481"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_array_example_2?rev=1362596526"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_array_example_3?rev=1362601544"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_function_prototypes?rev=1362596164"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_inline_functions?rev=1362596217"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_2_and_next_reading?rev=1360247692"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_3_and_next_reading?rev=1362635344"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_4?rev=1363755475"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_5?rev=1364590204"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_6?rev=1365732295"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/printfactorial_program_developed_in_class?rev=1361456481"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/start?rev=1365723656"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/tictactoe_sample_1-player_game?rev=1363756885"/>
                <rdf:li rdf:resource="http://rockhopper.monmouth.edu/cs/jchung/cs509/tictactoe_sample_2-player_game?rev=1363756916"/>
            </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/cs509/arrayfromkeyboard?rev=1362642481">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-07T07:48:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/arrayfromkeyboard?rev=1362642481</link>
        <description>Array example from class, 3/6/13


/*
Write a program that will fill an array a with 20 values of type int read in
from the keyboard.
*/

#include &lt;iostream&gt;

using namespace std;

int main()
{
    // array size in a constant
    const int asize = 20;

    // declare array
    int a[ asize ] = { 0 };

    // loop to get 20 values from keyboard and fill array
    for ( int i = 0; i &lt; asize; i++ ) {
        cout &lt;&lt; &quot;\n Enter value for array element &quot; &lt;&lt; i &lt;&lt; &quot;: &quot;;

        cin &gt;&gt; a[ i ];
    }

}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/arraynoduplicates?rev=1362642540">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-07T07:49:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/arraynoduplicates?rev=1362642540</link>
        <description>Array example from class, 3/6/13


/*
Write a program that uses an array to solve the following problem.
Read in 20 numbers, each of which is between 10 and 100, inclusive.
As each number is read, print it only if it is not a duplicate of a
number already read.
*/

#include &lt;iostream&gt;

using namespace std;

int main()
{
    const int asize = 20;

    int a[asize] = { 0 };

    // for loop to enter 20 values
    for ( int i = 0; i &lt; asize; i++ ) {

        int currentvalue;

        cout &lt;&lt; &quot;\n E…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusfunctionreturn?rev=1361385479">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-20T18:37:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusfunctionreturn?rev=1361385479</link>
        <description>----------

See the following code:


int myfunction( int myinput ) {
   if ( myinput &gt; 0 )
      return 1;
   else if ( myinput == 0 )
      return 0;
   else
      return -1;
}


&lt;poll How many values will be returned by the above function? [a]&gt;

	*</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusfunctionreturn_i?rev=1361385492">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-20T18:38:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusfunctionreturn_i?rev=1361385492</link>
        <description>----------

See the following code:


int myfunction( int myinput ) {
   if ( myinput &gt; 0 )
      return 1;
   else if ( myinput == 0 )
      return 0;
   else
      return -1;
}


&lt;poll How many values will be returned by the above function? [a]&gt;

	*</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusfunctionreturn_ii?rev=1361385692">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-20T18:41:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusfunctionreturn_ii?rev=1361385692</link>
        <description>----------

See the following code:


int myfunction( int myinput ) {
   cout &lt;&lt; &quot;Starting myfunction()... &quot;;

   if ( myinput &gt; 0 )
      return 1;
   else if ( myinput == 0 )
      return 0;
   else
      return -1;
     
   cout &lt;&lt; &quot;Stopping myfunction()...&quot;;
}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusswapbyreference?rev=1361389284">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-20T19:41:24+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusswapbyreference?rev=1361389284</link>
        <description>----------

See the following code:


#include &lt;iostream&gt;
using namespace std;


void swapvars( int&amp; a, int&amp; b ) {
    int temp = a;
    a = b;    // a is now b
    b = temp; // b is now a
}


int main ()
{
   int a = 2;
   int b = 3;
   
   swapvars( a, b );
   
   cout &lt;&lt; &quot;The value of a is &quot; &lt;&lt; a &lt;&lt; &quot; and the value of b is &quot; &lt;&lt; b;
   
   return 0;
}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusswapbyvalue?rev=1361389219">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-20T19:40:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusswapbyvalue?rev=1361389219</link>
        <description>----------

See the following code:


#include &lt;iostream&gt;
using namespace std;


void swapvars( int a, int b ) {
    int temp = a;
    a = b;    // a is now b
    b = temp; // b is now a
}


int main ()
{
   int a = 2;
   int b = 3;
   
   swapvars( a, b );
   
   cout &lt;&lt; &quot;The value of a is &quot; &lt;&lt; a &lt;&lt; &quot; and the value of b is &quot; &lt;&lt; b;
   
   return 0;
}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusvoidfunctions_i?rev=1361389121">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-20T19:38:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluscplusvoidfunctions_i?rev=1361389121</link>
        <description>----------

See the following code:


#include &lt;iostream&gt;
using namespace std;


void myfunction( int a, int b ) {
    int mysum = a + b;
}


int main ()
{
   int a = 2;
   int b = 3;
   
   cout &lt;&lt; &quot;The sum of &quot; &lt;&lt; a &lt;&lt; &quot; and &quot; &lt;&lt; b &lt;&lt; &quot; is: &quot; &lt;&lt; myfunction( 2, 3 );
   
   return 0;
}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusarrays?rev=1362642419">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-07T07:46:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusarrays?rev=1362642419</link>
        <description>Array examples:

	*  Array Example 1
	*  Array Example 2
	*  Array Example 3

Array exercises:

1. Write a program that will fill an array a with 20 values of type int read in from the keyboard.

	*  See program written in class.

2. Write a program that uses an array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusbasics?rev=1360781762">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-13T18:56:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusbasics?rev=1360781762</link>
        <description>----------

Answer and discuss the following questions:

2/6/13

	*   Which method first?
	*   Which cout statement?

2/13/13

	*   Global or local variables? I
	*   Global or local variables? II
	*   Assigning I
	*   Assigning II

----------

Complete these programming projects:

1. Write a program c2f.cpp that inputs a temperature in Celcius, converts it to Fahrenheit, and outputs the temperature in Fahrenheit.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluspluscout1?rev=1360209033">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T03:50:33+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cpluspluscout1?rev=1360209033</link>
        <description>Which of the following C++ statements will print the following lines to the screen, assuming int x = 2 and int y = -2:                                                                          
 The sum of x and y is 0.                                                              
 The remainder of x divided by y is 0.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusfunctions?rev=1362596086">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-06T18:54:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>C++ Functions</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusfunctions?rev=1362596086</link>
        <description>C++ Functions

----------

Examples (3/6/13):

	*   Function prototypes I
	*   Inline functions I

----------

Answer and discuss the following questions:

	*   Function return I
	*   Function return II
	*   Void functions I
	*   Functions by value
	*   Functions by reference

----------

Complete these programming projects:

1. Write and test the void function printfactorial( int n )</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusmain?rev=1360209051">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T03:50:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>See the following code:</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusmain?rev=1360209051</link>
        <description>See the following code:


// void function example
#include &lt;iostream&gt;
using namespace std;

void printmessage ()
{
  cout &lt;&lt; &quot;I'm a function!&quot;;
}

void printmessage2 ()
{
  cout &lt;&lt; &quot;I'm also a function!&quot;;
}

int main ()
{
  printmessage();
  printmessage2();
  return 0;
}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusscope?rev=1360781137">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-13T18:45:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusscope?rev=1360781137</link>
        <description>----------

See the following code:


#include &lt;iostream&gt;
using namespace std;

const double MYCONSTANT = 3.1416;

int main ()
{
   const double MYCONSTANT = 3.14159;
   
   cout &lt;&lt; MYCONSTANT;
   
   return 0;
}


What is going to be output by the above program?</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusscope2?rev=1360781323">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-13T18:48:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplusscope2?rev=1360781323</link>
        <description>See the following code:


#include &lt;iostream&gt;
using namespace std;

const double MYCONSTANT = 3.1416;


void printMyConstant() {
   cout &lt;&lt; MYCONSTANT;
}



int main () {
   const double MYCONSTANT = 3.14159;
   printMyConstant();
   return 0;
}


What is going to be output by the above program?</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplustypes?rev=1360781813">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-13T18:56:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplustypes?rev=1360781813</link>
        <description>Is the following declaration and assignment valid?
int myint;
myint = 10.5;


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

	*  Yes
	*  No

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplustypes2?rev=1360784673">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-13T19:44:33+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplustypes2?rev=1360784673</link>
        <description>Is the following declaration and assignment valid?
double mydouble;
mydouble = 10;


&lt;poll Choose one [699-1]&gt;

	*  Yes
	*  No

&lt;/poll&gt;</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_array_example_1?rev=1362596481">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-06T19:01:21+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_array_example_1?rev=1362596481</link>
        <description>Example: C++ array


// array.cc
// First arrays example

#include&lt;iostream&gt;

using namespace std;

int main()
{
   int myArray[ 50 ];
   int i;
   
   for ( i = 0; i &lt; 50; i++ )
   {
       myArray[ i ] = i;
       cout &lt;&lt; &quot;\n&quot; &lt;&lt; i &lt;&lt; &quot; = &quot; &lt;&lt; myArray[ i ];
   }

   cout &lt;&lt; &quot;\n&quot; &lt;&lt; myArray[ 50 ]; // fencepost error

   return 0;
}</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_array_example_2?rev=1362596526">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-06T19:02:06+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_array_example_2?rev=1362596526</link>
        <description>Example: C++ array


// Histogram printing program using arrays
// Note: Think about how this would be accomplished w/o arrays.

#include&lt;iostream&gt;

using namespace std;

int main()
{
    const int arraySize = 10;

    int n[ arraySize ] = { 19, 3, 15, 7, 11, 9, 13, 5, 17, 1 };

    cout &lt;&lt; &quot;\n Element&quot; &lt;&lt; &quot;\t&quot; &lt;&lt; &quot;Value&quot;
         &lt;&lt; &quot;\t\t&quot; &lt;&lt; &quot;Histogram&quot; &lt;&lt; endl;

    for ( int i = 0; i &lt; arraySize; i++ ) {
        cout &lt;&lt; &quot; &quot; &lt;&lt; i &lt;&lt; &quot;\t\t&quot;
             &lt;&lt; n[ i ] &lt;&lt; &quot;\t\t&quot;;

        for ( int …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_array_example_3?rev=1362601544">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-06T20:25:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_array_example_3?rev=1362601544</link>
        <description>Example: C++ array


// Student poll program:
// Forty students were asked to rate the quality of the food in the student
// cafeteria on a scale of 1 to 10 (1 meaning awful and 10 meaning
// excellent). Place the 40 responses in an integer array and summarize
// the results of the poll.
// Note: Think about how this would be accomplished w/o arrays.

#include&lt;iostream&gt;

using namespace std;

int main()
{
    // Will be using constants to set array dimensions
    const int responseSize = 40, fre…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_function_prototypes?rev=1362596164">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-06T18:56:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_function_prototypes?rev=1362596164</link>
        <description>Example: C++ function prototypes


/*
 * Computes the area of a circle and the volume of a sphere.
 * Uses the same radius for both calculations.
 */

#include&lt;iostream&gt;
#include&lt;cmath&gt;
using namespace std;

const double PI = 3.14159;

double area( double radius );
// Returns the area of a circle with the specified radius.

double volume( double radius );
// Returns the volume of a sphere with the specified radius.

int main()
{
    double radiusOfBoth, areaOfCircle, volumeOfSphere;

    cout &lt;&lt;…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_inline_functions?rev=1362596217">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-06T18:56:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cplusplus_inline_functions?rev=1362596217</link>
        <description>Example: C++ inline functions


// Using an inline function to calculate
// the volume of a cube

#include&lt;iostream&gt;

using namespace std;

inline double cube( const double s ) { return s * s * s; }

int main()
{
   double side;
   
   cout &lt;&lt; &quot;\n Enter the side length of your cube: &quot;;
   
   cin &gt;&gt; side;

   cout &lt;&lt; &quot;\n Volume of cube with side &quot;
        &lt;&lt; side &lt;&lt; &quot; is &quot; &lt;&lt; cube( side ) &lt;&lt; endl;


   // inline function, cube(), would be inserted here
   // like this:
   // 
   //    const doub…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_2_and_next_reading?rev=1360247692">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-07T14:34:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_2_and_next_reading?rev=1360247692</link>
        <description>Today in class, I assigned Assignment 2, which is our first actual assignment. Go to the course web page at &lt;http://rockhopper.monmouth.edu/cs/jchung/cs509/start&gt;, click on “C++ Basics”, and complete the 3 programming projects: c2p.cpp, c2pLoop.cpp and box.cpp.

The deadline for Assignment 2 is Tuesday, 2/12, 11:59pm. Use the CS-699-CHU3 ecampus dropbox to submit the assignment files. You should submit only three files.</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_3_and_next_reading?rev=1362635344">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-07T05:49:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_3_and_next_reading?rev=1362635344</link>
        <description>For Assignment 3, go to the notes on C++ functions and complete programming projects 2, 3 and 4.

Assignment 3 is due by Tuesday, 2/26/13, 11:59pm.

Also, for reading, go to &lt;http://cplusplus.com/doc/tutorial&gt; and read the following sections:

	*  Arrays
	*  Character Sequences
	*  Pointers
	*  Dynamic Memory</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_4?rev=1363755475">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-20T04:57:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_4?rev=1363755475</link>
        <description>Assignment 4

----------

Complete the following the Assignment. The deadline is
 Tuesday, 3/12, 11:59pm
Use the ecampus dropbox.

For programs you submit, include your name and program description in a comment block.

1. Write simple C++ statements (not full C++ programs) to accomplish each of the following:</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_5?rev=1364590204">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-29T20:50:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_5?rev=1364590204</link>
        <description>Complete the following assignment.

The deadline is Monday, 4/1, 5pm.

Read/review the reading assignment on “Arrays as parameters” and “Character Sequences”. Also, read about “Enumerations (enum)”.

Write a program TicTacToe.cpp to play tic-tac-toe using one 9-element character array. The program must allow for 1-player (human vs. computer) or 2-player (human vs. human) games. In the 2-player game, the program should ask for moves alternately from player o and player x. The program should displ…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_6?rev=1365732295">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-12T02:04:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/cs-699_sp13_assignment_6?rev=1365732295</link>
        <description>Assignment 6 is due by Monday, 4/15, 11:59pm.                                   

For Assignment 6, you will modify the TicTacToe program you wrote for Assignment 5. Alternatively, you can modify the TicTacToe program solution that I emailed you on 4/4. The modification you must make is the following:</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/printfactorial_program_developed_in_class?rev=1361456481">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-21T14:21:21+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/printfactorial_program_developed_in_class?rev=1361456481</link>
        <description>This is the printfactorial program that was developed in class on Wed, 2/20/13.


/*
Name: J. Chung

Write and test the void function printfactorial( int n ) that prints the factorial of an input integer. For example:

If printfactorial( 3 ), output is:

   3! = 3 * 2 * 1 = 6

If printfactorial( 4 ), output is:

   4! = 4 * 3 * 2 * 1 = 24
*/

#include &lt;iostream&gt;

using namespace std;

void printfactorial( int n )
{
    // output &quot;n! = n * &quot;
    cout &lt;&lt; n &lt;&lt; &quot;! = &quot; &lt;&lt; n &lt;&lt; &quot; * &quot;;

    unsigned lo…</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/start?rev=1365723656">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-11T23:40:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS-699, Spring 2013</title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/start?rev=1365723656</link>
        <description>CS-699, Spring 2013

	*  Read the four sections under Object Oriented Programming
		*  Classes (I)
		*  Classes (II)
		*  Friendship and inheritance
		*  Polymorphism

	*   Assignment 6 (4/6/13)
	*   Assignment 5 (3/20/13)
	*   Assignment 4 (3/7/13)
	*   C++ Arrays (3/6/13)
	*   Assignment 3 and next reading (2/21/13)
	*   C++ Functions (3/6/13)
	*   Assignment 2 and next reading (2/7/13)
	*   Notes on Code::Blocks IDE (2/7/13)</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/tictactoe_sample_1-player_game?rev=1363756885">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-20T05:21:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/tictactoe_sample_1-player_game?rev=1363756885</link>
        <description>TicTacToe: Sample 1-player game (human vs. computer)


 This is a Tic Tac Toe program. Choose the type of game: 
 (1) human o vs. human x    (2) human o vs. dumb computer x

 -&gt; 2

1 2 3 
4 5 6 
7 8 9 
 

 It's o's turn.
 Input the number of an empty square: (-1 to quit) 5

1 2 3 
4 o 6 
7 8 9 
 

 It's x's turn.
1 x 3 
4 o 6 
7 8 9 
 

 It's o's turn.
 Input the number of an empty square: (-1 to quit) 4

1 x 3 
o o 6 
7 8 9 
 

 It's x's turn.
1 x 3 
o o 6 
7 x 9 
 

 It's o's turn.
 Input the …</description>
    </item>
    <item rdf:about="http://rockhopper.monmouth.edu/cs/jchung/cs509/tictactoe_sample_2-player_game?rev=1363756916">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-20T05:21:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title></title>
        <link>http://rockhopper.monmouth.edu/cs/jchung/cs509/tictactoe_sample_2-player_game?rev=1363756916</link>
        <description>TicTacToe: Sample 2-player game (human vs. human)


 This is a Tic Tac Toe program. Choose the type of game: 
 (1) human o vs. human x    (2) human o vs. dumb computer x

 -&gt; 1

1 2 3 
4 5 6 
7 8 9 
 

 It's o's turn.
 Input the number of an empty square: (-1 to quit) 5

1 2 3 
4 o 6 
7 8 9 
 

 It's x's turn.
 Input the number of an empty square: (-1 to quit) 1

x 2 3 
4 o 6 
7 8 9 

 It's o's turn.
 Input the number of an empty square: (-1 to quit) 4

x 2 3 
o o 6 
7 8 9 
 

 It's x's turn.
 I…</description>
    </item>
</rdf:RDF>
