<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Dr. Taylor's Support Forums : Specific Courses : SE1010: Software Development I : Questions about Lab 1 and code documentation</title>
<link>http://msoe.t-a-y-l-o-r.com</link>
<description> Dr. Taylor's Support Forums</description>
<language>en</language>
<docs>http://backend.userland.com/rss</docs>
<item>
<title>Questions about Lab 1 and code documentation in Specific Courses : SE1010: Software Development I</title>
<link>http://msoe.t-a-y-l-o-r.com/topic.php?pid=518#518</link>
<guid isPermaLink="false">518@http://msoe.t-a-y-l-o-r.com</guid>
<description>Your sample output should be the entire contents of the console window for one running of your program.

</description>
<content:encoded><![CDATA[<p>Your sample output should be the entire contents of the console window for one running of your program.</p>]]></content:encoded>
<pubDate>Fri, 22 Sep 2006 06:49:07 -0400</pubDate>
</item>
<item>
<title>Questions about Lab 1 and code documentation in Specific Courses : SE1010: Software Development I</title>
<link>http://msoe.t-a-y-l-o-r.com/topic.php?pid=517#517</link>
<guid isPermaLink="false">517@http://msoe.t-a-y-l-o-r.com</guid>
<description>What about the sample output?&#160; Did you want any particular format?&#160; Ex. &#34;Your yearly income is: $7565.00&#34;, or did you want the inputs too with all of the messages associated with the inputs?&#160; Or did you simply want the output value:&#160; 7565.00?&#160; Or just the output line as in my example above?-Daniel Stone

</description>
<content:encoded><![CDATA[<p>What about the sample output?&nbsp; Did you want any particular format?&nbsp; Ex. &quot;Your yearly income is: $7565.00&quot;, or did you want the inputs too with all of the messages associated with the inputs?&nbsp; Or did you simply want the output value:&nbsp; 7565.00?&nbsp; Or just the output line as in my example above?<br /><br />-Daniel Stone</p>]]></content:encoded>
<pubDate>Thu, 21 Sep 2006 15:08:15 -0400</pubDate>
</item>
<item>
<title>Questions about Lab 1 and code documentation in Specific Courses : SE1010: Software Development I</title>
<link>http://msoe.t-a-y-l-o-r.com/topic.php?pid=514#514</link>
<guid isPermaLink="false">514@http://msoe.t-a-y-l-o-r.com</guid>
<description>Someone asked the following via email:

For the Lab, what exactly did you want included with the report.&#160; I got a little confused reading the webpage about documenting the source code.

I have added comments to the code that we talked about earlier this quarter.&#160; I've included the code below and linked it from the schedule page.&#160; Hopefully this example along with the description here will help make it clear.&#160; If not please add follow-up questions here.

Code:/*
 * Course: SE-1010
 * Section: 2
 * Term: Fall 2006
 * Author: Dr. Wu
 * Assignment: Lab 0
 * Date: 09/15/2006
 */
package lab0;

import javax.swing.*;
import java.text.*;

/**
 * This class contains one method that prompts the user for the
 * radius of a circle.  It calculates the area and circumference
 * for a circle with the entered radius and displays the answer
 * to the console.
 *
 * @version 1.0 09/15/2006
 * @author Dr. Wu
 */
public class Ch2Circle3 {

    /**
     * The main method that implements the functionality for the
     * Ch2Circle3 class.
     *
     * @author Dr. Wu
     * @param args Ignored
     */
    public static void main(String[] args) {
        
        final double PI = 3.14159;
        
        // Identifier creation
        String radiusStr;
        double radius;
        double area;
        double circ;
        java.text.DecimalFormat df 

        // Object creation
        df = new java.text.DecimalFormat(&#34;0.000&#34;);
        
        // Popup a window prompting the user to enter the radius
        radiusStr = JOptionPane.showInputDialog(null, &#34;Enter radius:&#34;);

        // Converts the value of the radius from the String
        //  representation (raduisStr) to a double (radius).
        radius = Double.parseDouble(radiusStr);
        
        area = PI * radius * radius;
        circ = 2.0 * PI * radius;
        
        // Display results in the console window
        System.out.println(&#34;&#34;);
        System.out.println(&#34;Given radius: &#34; + radius);
        System.out.println(&#34;Area: &#34; + df.format(area));
        System.out.println(&#34;Circumference: &#34; + df.format(circ));;
    }

}

</description>
<content:encoded><![CDATA[<p>Someone asked the following via email:<br /></p><blockquote><div class="incqbox"><p>For the Lab, what exactly did you want included with the report.&nbsp; I got a little confused reading the webpage about documenting the source code.</p></div></blockquote><p>I have added comments to the code that we talked about earlier this quarter.&nbsp; I've included the code below and linked it from the <a href="http://www.msoe.edu/~taylor/se1010/sched.htm">schedule page</a>.&nbsp; Hopefully this example along with the description <a href="http://www.msoe.edu/~taylor/resources/javadoc.htm">here</a> will help make it clear.&nbsp; If not please add follow-up questions here.<br /><br /></p><div class="codebox"><div class="incqbox"><h4>Code:</h4><div class="scrollbox" style="height: 35em"><pre>/*
 * Course: SE-1010
 * Section: 2
 * Term: Fall 2006
 * Author: Dr. Wu
 * Assignment: Lab 0
 * Date: 09/15/2006
 */
package lab0;

import javax.swing.*;
import java.text.*;

/**
 * This class contains one method that prompts the user for the
 * radius of a circle.  It calculates the area and circumference
 * for a circle with the entered radius and displays the answer
 * to the console.
 *
 * @version 1.0 09/15/2006
 * @author Dr. Wu
 */
public class Ch2Circle3 {

    /**
     * The main method that implements the functionality for the
     * Ch2Circle3 class.
     *
     * @author Dr. Wu
     * @param args Ignored
     */
    public static void main(String[] args) {
        
        final double PI = 3.14159;
        
        // Identifier creation
        String radiusStr;
        double radius;
        double area;
        double circ;
        java.text.DecimalFormat df 

        // Object creation
        df = new java.text.DecimalFormat(&quot;0.000&quot;);
        
        // Popup a window prompting the user to enter the radius
        radiusStr = JOptionPane.showInputDialog(null, &quot;Enter radius:&quot;);

        // Converts the value of the radius from the String
        //  representation (raduisStr) to a double (radius).
        radius = Double.parseDouble(radiusStr);
        
        area = PI * radius * radius;
        circ = 2.0 * PI * radius;
        
        // Display results in the console window
        System.out.println(&quot;&quot;);
        System.out.println(&quot;Given radius: &quot; + radius);
        System.out.println(&quot;Area: &quot; + df.format(area));
        System.out.println(&quot;Circumference: &quot; + df.format(circ));;
    }

}</pre></div></div></div>]]></content:encoded>
<pubDate>Wed, 20 Sep 2006 21:08:34 -0400</pubDate>
</item>
</channel>
</rss>
