<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>UST-ICS</title>
	<atom:link href="http://ustsci.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ustsci.wordpress.com</link>
	<description>University of Santo Tomas - Institute of Computer Studies</description>
	<lastBuildDate>Tue, 25 Sep 2007 02:30:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ustsci.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>UST-ICS</title>
		<link>http://ustsci.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ustsci.wordpress.com/osd.xml" title="UST-ICS" />
	<atom:link rel='hub' href='http://ustsci.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Composition &#8211; Java</title>
		<link>http://ustsci.wordpress.com/2007/09/25/composition-java/</link>
		<comments>http://ustsci.wordpress.com/2007/09/25/composition-java/#comments</comments>
		<pubDate>Tue, 25 Sep 2007 02:30:27 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/09/25/composition-java/</guid>
		<description><![CDATA[Emp.Java  public class Emp {             private String firstName;             private String lastName;             private Date birthDate;             private Date hireDate;                         //constructor to initialize name, birth date, and hire date             public Emp (String first, String last, Date dateOfBirth, Date dateOfHire)             {                         firstName = first;                         lastName = last;                         birthDate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=19&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><font face="Times New Roman">Emp.Java</font></strong><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">public class Emp</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>private String firstName;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>private String lastName;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>private Date birthDate;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>private Date hireDate;</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">            </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>//constructor to initialize name, birth date, and hire date</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>public Emp (String first, String last, Date dateOfBirth, Date dateOfHire)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>firstName = first;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>lastName = last;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>birthDate = dateOfBirth;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>hireDate = dateOfHire;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">            </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>//convert Emp to String format</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>public String toString()</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>return String.format(&#8220;%s, %s Hired: %s Birthday: %s&#8221;,</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>lastName, firstName, hireDate, birthDate);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">}</font></p>
<p><font face="Times New Roman"> </font><font face="Times New Roman"> </font><strong><font face="Times New Roman">Date.Java</font></strong><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">//Date class declaration</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">public class Date</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>private int month;<span>          </span>//1-12</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>private int day;<span>  </span>//1-31 based on month</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>private int year;<span> </span>//any year</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">            </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>//constructor: call checkMonth to confirm proper value for month</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>//call checkDay to confirm proper value for day</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>public Date(int theMonth, int theDay, int theYear)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>month = checkMonth(theMonth);<span>          </span>//validate month</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>year = theYear;<span>                                    </span>//could validate year</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>day = checkDay(theDay);<span>                     </span>//validate day</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>System.out.printf(&#8220;Date object constructor for date %s\n&#8221;, this);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">            </font></span></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>//utility method to confirm proper month value</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>private int checkMonth (int testMonth)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>if (testMonth&gt;0 &amp;&amp; testMonth &lt;=12)<span>   </span>//validate month</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>return testMonth;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>else<span>                              </span><span>                        </span>//month is invalid</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>System.out.printf(&#8220;Invalid month (%d) set to 1.&#8221;, testMonth);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>return 1;<span>           </span>//maintain object in consistent state</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">            </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>//utility method to confirm proper day value based on month and year</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>private int checkDay (int testDay)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>{<span>          </span></font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>//0 is ignored since daysPerMonth[0]=0 represents 0 months</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>//Month starts on the 2nd element after 0 (from 1-12)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>int daysPerMonth[]={0,31,28,31,30,31,30,31,31,30,31,30,31};</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">                        </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>//check if day in range for month</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>if (testDay &gt;= 1 &amp;&amp; testDay &lt;= daysPerMonth[month])</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>return testDay;</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">                                    </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>//check for leap year</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>if (month == 2 &amp;&amp; testDay == 29 &amp;&amp; (year % 400==0 ||</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>(year % 4 == 0 &amp;&amp; year % 100 != 0)))</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>return testDay;</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">                                    </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>System.out.printf(&#8220;Invalid day (%d) set to 1.&#8221;, testDay);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>return 1;<span>           </span>//maintain object in consistent state</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">            </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>//return a String of the form month/day/year</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>//automatically invoked even without calling this method</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>public String toString()</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>return String.format(&#8220;%d/%d/%d&#8221;, month, day, year);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">}</font></p>
<p><font face="Times New Roman"> </font><font face="Times New Roman"> </font><font face="Times New Roman"> </font><font face="Times New Roman"> </font><font face="Times New Roman"> </font><font face="Times New Roman"> </font><strong><font face="Times New Roman">EmpTest.Java</font></strong><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">//composition demonstration</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">public class EmpTest</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>public static void main (String args[])</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>Date birth = new Date(7,0,1980);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>Date hire = new Date(9,5,2007);</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">            </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>Emp employee = new Emp(&#8220;Ana&#8221;, &#8220;Santos&#8221;, birth, hire);</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">                        </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>System.out.println(employee);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">}</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=19&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/09/25/composition-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
		<item>
		<title>Activity</title>
		<link>http://ustsci.wordpress.com/2007/09/21/activity/</link>
		<comments>http://ustsci.wordpress.com/2007/09/21/activity/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 04:04:23 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/09/21/activity/</guid>
		<description><![CDATA[Create class SavingsAccount.  Use a static variable annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance indicating the amount the saver currently has on deposit.  Provide method calculateMonthlyInterest to calculate the monthly interest by multiplying the savingsBalance by annualInterestRate divided by 12 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=18&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Create class SavingsAccount.<span>  </span>Use a static variable annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance indicating the amount the saver currently has on deposit.<span>  </span>Provide method calculateMonthlyInterest to calculate the monthly interest by multiplying the savingsBalance by annualInterestRate divided by 12 – this interest should be added to savingsBalance.<span>  </span>Provide a static method modifyInterestRate that sets the annualInterestRate to a new value.</font></p>
<p><font face="Times New Roman">Write a program to test class SavingsAccount.<span>  </span>Instantiate two savingsAccount objects, saver1 and saver2, with balances of P2000.00 and P3000.00, respectively.<span>  </span>Set annualInterestRate to 4%, then calculate the monthly interest and print the new balances for both savers.<span>  </span>Then set the annualInterestRate to 5%, calculate the next month’s interest and print the new balances for both savers.</font></p>
<p><font face="Times New Roman">Note: <span>   </span>implement Accessor and Mutator Methods</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>Apply Garbage collector</font></p>
<p><font face="Times New Roman"><span>            </span>Grades will be dependent to a well-written code and readability of your program.</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=18&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/09/21/activity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
		<item>
		<title>Thesis &#8211; Chapters 1, 2, and 3</title>
		<link>http://ustsci.wordpress.com/2007/09/19/thesis-chapters-1-2-and-3/</link>
		<comments>http://ustsci.wordpress.com/2007/09/19/thesis-chapters-1-2-and-3/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 08:26:08 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[Thesis]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/09/19/thesis-chapters-1-2-and-3/</guid>
		<description><![CDATA[Thesis Requirements   Title – should contain variables, methods, and populace   Chapter 1 – The Problem and its Background               Introduction §         Presentation of the problem -  what is the problem all about §         The existence of an unsatisfactory condition, a felt problem that needs a solution §         Rationale of the study -  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=17&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Thesis Requirements</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Title – should contain variables, methods, and populace</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Chapter 1 – The Problem and its Background</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>Introduction</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Presentation of the problem</font></p>
<p style="text-indent:0.5in;margin:0 0 0 1.5in;" class="MsoNormal"><font face="Times New Roman">-<span>  </span>what is the problem all about</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The existence of an unsatisfactory condition, a felt problem that needs a solution</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Rationale of the study</font></p>
<p style="text-indent:0.5in;margin:0 0 0 1.5in;" class="MsoNormal"><font face="Times New Roman">-<span>  </span>the reason/s why it is necessary to conduct the study</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">A desire to find a better way of doing something or of improving a product</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">A desire to discover something</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">A link between the introduction and the statement of the problem</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>Statement of the Problem</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">There should be a general statement of the whole problem followed by specific questions or subproblems into which the general problem is broken up</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">Hypothesis</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">A proposal intended to explain certain facts or observations</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">Conceptual Framework</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">It becomes the central theme, the focus, the main thrust of the study.<span>  </span>It serves as a guide in conducting the investigation.</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Paradigm/s representation and discussion</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">Scope and Limitation of the Study</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">A brief statement of the general purpose of the study</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The subject matter and topics studied and discussed</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The locale of the study, where the data were gathered or the entity to which the data belong</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The population or universe from which the respondents were selected</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The period of the study</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Includes the weakness of the study beyond the control of the researcher</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">Significance of the Study</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The rationale, timelines, and/or relevance of the study</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Possible solutions to existing problems or improvements to unsatisfactory conditions</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Who are to be benefited and how they are going to be benefited?<span>  </span>It must be shown who are the individuals, groups, or communities who may be placed in a more advantageous position on account of the study.</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Possible implications.<span>  </span>Implications include the possible causes of the problems discovered, the possible effects of the problems, and the remedial measures to solve the problems.<span>  </span>Implications also include the good points of a system which ought to be continued or to be improved if possible.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">Definition of Terms</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Only terms, or phrases which have special or unique meanings in the study are defined</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Terms should be defined operationally, that is, how they are used in the study</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The researcher may develop his own definition from the characteristics of the term defined</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Definitions may be taken from encyclopedias, books, magazines and newspaper articles, dictionaries, the internet, and other publications but the researcher must acknowledge his sources</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Definitions should be as brief and clear as possible</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Acronyms should always be spelled out</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Chapter 2 – Related Literature and Studies</font></p>
<ul>
<li> 
<ul>
<li> 
<ul>
<li class="MsoNormal"><font face="Times New Roman">The materials should be as recent as possible</font></li>
<li class="MsoNormal"><font face="Times New Roman">Materials must be as objective and unbiased as possible</font></li>
<li class="MsoNormal"><font face="Times New Roman">Materials must be relevant to the study</font></li>
<li class="MsoNormal"><font face="Times New Roman">Materials must not be too few but not too many</font></li>
</ul>
</li>
</ul>
</li>
</ul>
<p><font face="Times New Roman"> </font></p>
<ul>
<li> 
<ul>
<li> 
<ul>
<li class="MsoNormal"><font face="Times New Roman">For both the Literature and Studies provide Foreign and Local categories (minimum of seven and a maximum of 10)</font></li>
</ul>
</li>
</ul>
</li>
</ul>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Chapter 3 – Methods of Research and Procedures</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>Method of Research</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">Descriptive or experimental</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>Method of Collecting Data</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The method of collecting data and the development of the instrument for gathering data must be explained</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>The Sampling Design</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The size of the population</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The margin of error and the proportion of the study population</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The type or technique of sampling used</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The actual computation of the sample</font></p>
<p style="text-indent:-0.25in;margin:0 0 0 1.5in;" class="MsoNormal"><span style="font-family:Wingdings;">§<span style="font:7pt 'Times New Roman';">         </span></span><font face="Times New Roman">The sample</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Footnotes: use American Psychological Association (APA)</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=17&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/09/19/thesis-chapters-1-2-and-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
		<item>
		<title>Java &#8211; Hands on Exam</title>
		<link>http://ustsci.wordpress.com/2007/08/10/java-hands-on-exam/</link>
		<comments>http://ustsci.wordpress.com/2007/08/10/java-hands-on-exam/#comments</comments>
		<pubDate>Fri, 10 Aug 2007 04:03:21 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/08/10/java-hands-on-exam/</guid>
		<description><![CDATA[ 1. The manager of a basketball stadium wants you to write a program that calculates the total amount for each type of ticket sales after each game as well as the grand total ticket sales which will be stored in a file called &#8220;sales.txt&#8220;. There are four types of tickets - premium, upper box A, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=16&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> 1. The manager of a basketball stadium wants you to write a program that calculates the <strong>total amount for each type of ticket sales </strong>after each game as well as the <strong>grand total ticket sales </strong>which will be stored in a file called &#8220;<strong>sales.txt</strong>&#8220;.</p>
<p>There are <strong>four types of tickets </strong>- premium, upper box A, upper box B, and general admission.  <strong>Premium is 250 pesos</strong>, <strong>upper box A is 100 pesos</strong>, <strong>upper box B is 50 pesos</strong>, and <strong>general admission is 10 pesos</strong>.</p>
<p>Create a Java program that will allow the user to <strong>input the number of tickets sold for each type of ticket</strong>.  The <strong>program in return will compute for the total ticket sales for each ticket type </strong>as well as the <strong>grand total ticket sales</strong>.</p>
<p>Ex.       Ticket Type                  Input number of total ticket sales sold</p>
<p>            Premium                       100</p>
<p>            Upper Box A               200</p>
<p>            Upper Box B                200</p>
<p>            General Admission        500</p>
<p><strong>Sales.Txt</strong></p>
<p>Ticket   Price    Total Tickets Sold        Total Amount</p>
<p>250                  100                              25000.00</p>
<p>100                  200                              20000.00</p>
<p>50                    200                              10000.00</p>
<p>10                    500                              5000.00</p>
<p>Grand Total Amount: 60000.00</p>
<p>2. Using JCreator, create a Java program that will facilitate a Method Overloading activity given the ff. requirements:</p>
<p>            <strong>input</strong>:   two whole numbers</p>
<p>                        two double numbers</p>
<p>                        two String data</p>
<p>            For each pair of input requirements, output the message &#8220;<strong>The two values are equal</strong>&#8221; if they are equal to one another.  Otherwise, output &#8220;<strong>They are not equal</strong>.&#8221;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=16&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/08/10/java-hands-on-exam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
		<item>
		<title>Java &#8211; Activity 2</title>
		<link>http://ustsci.wordpress.com/2007/07/24/java-activity-2/</link>
		<comments>http://ustsci.wordpress.com/2007/07/24/java-activity-2/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 05:14:05 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/07/24/java-activity-2/</guid>
		<description><![CDATA[Object - Instance of a class  While working with classes, we declare a reference variable of a class type and then, typically, using the operator new, we instantiate an object of that class type and store the address of the object into the reference variable. The statement:  Sum j = new Sum();  instantiate an object [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=14&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Object </strong>- Instance of a class</p>
<p> While working with classes, we declare a reference variable of a <u><em>class type</em></u> and then, typically, using the operator <strong>new</strong>, we instantiate an object of that <u><em>class type</em></u> and store the address of the object into the reference variable.</p>
<p>The statement:  <strong>Sum j = new Sum();  </strong></p>
<p>instantiate an object called <strong>j</strong> from class <strong>Sum</strong>.</p>
<p>Using the operator <strong>new </strong>to create a class object is called <strong>instantiation of the class</strong>.</p>
<p>public class Sum</p>
<p>{ double n1, n2;</p>
<p>   void Outs(double a, double b)</p>
<p>   { System.ou.println(&#8220;The sum is &#8221; + s);</p>
<p>   }</p>
<p>   public static void main(String[] args)</p>
<p>   { Sum j = new Sum();</p>
<p>      j.n1 = 6.5;</p>
<p>      j.n2 = 8.5;</p>
<p>      j.Outs(j.n1, j.n2);</p>
<p>   }</p>
<p>}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=14&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/07/24/java-activity-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
		<item>
		<title>Extracting date and time from date/time format using Visual FoxPro</title>
		<link>http://ustsci.wordpress.com/2007/07/20/extracting-date-and-time-from-datetime-format-using-visual-foxpro/</link>
		<comments>http://ustsci.wordpress.com/2007/07/20/extracting-date-and-time-from-datetime-format-using-visual-foxpro/#comments</comments>
		<pubDate>Fri, 20 Jul 2007 07:23:40 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[Visual FoxPro]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/07/20/extracting-date-and-time-from-datetime-format-using-visual-foxpro/</guid>
		<description><![CDATA[A good friend of mine has a problem of migrating records from MSAccess to two separate files where date/time format is his concern.  The codes below will extract date and time from date/time format.   set talk off set strictdate to 0 set century on select 1 use sample *****  structure of sample.dbf  ***** *****  name character 10   ***** [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=12&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A good friend of mine has a problem of migrating records from MSAccess to two separate files where date/time format is his concern. </p>
<p>The codes below will extract date and time from date/time format. </p>
<p> set talk off<br />
set strictdate to 0<br />
set century on</p>
<p>select 1<br />
use sample<br />
*****  structure of sample.dbf  *****<br />
*****  name character 10   *****<br />
*****  d  datetime   8   *****</p>
<p>select 2<br />
use datesample<br />
*****  structure of datesample.dbf *****<br />
*****  name character 10   *****<br />
*****  date character 10   *****</p>
<p>select 3<br />
use timesample<br />
*****  structure of timesample.dbf *****<br />
*****  name character 10   *****<br />
*****  time character 11   *****</p>
<p>date2 = Ctod(&#8220;/&#8221;)<br />
time2 = Ctot(&#8220;/:&#8221;)<br />
cname=space(10)<br />
t = space(22)</p>
<p>select 1<br />
go top<br />
do while !eof()</p>
<p>   if month(d)=7 and year(d)=2007<br />
       date2=d<br />
     time2=d<br />
       t = right(ttoc(time2 ),11)<br />
       cname=name<br />
 <br />
     select 2<br />
     append blank<br />
     replace name with cname, date with dtoc(date2)<br />
 <br />
     select 3<br />
     append blank<br />
     replace name with cname, time with t<br />
   endif  <br />
  <br />
   select 1<br />
   skip  <br />
  <br />
enddo<br />
close all</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=12&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/07/20/extracting-date-and-time-from-datetime-format-using-visual-foxpro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
		<item>
		<title>Requirements Engineering</title>
		<link>http://ustsci.wordpress.com/2007/07/15/requirements-engineering/</link>
		<comments>http://ustsci.wordpress.com/2007/07/15/requirements-engineering/#comments</comments>
		<pubDate>Sun, 15 Jul 2007 16:10:57 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[SE]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/07/15/requirements-engineering/</guid>
		<description><![CDATA[Requirements engineering – helps software engineers to better understand the problem they will work to solve.  It encompasses the set of tasks that lead to an understanding of what the business impact of the software will be, what the customer wants, and how end-users will interact with the software.  It establishes a solid base for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=11&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman"><strong>Requirements engineering </strong>– helps software engineers to better understand the problem they will work to solve.<span>  </span>It encompasses the set of tasks that lead to an understanding of what the business impact of the software will be, what the customer wants, and how end-users will interact with the software.<span>  </span>It establishes a solid base for design and construction.</font></p>
<p><font face="Times New Roman"> </font><strong><font face="Times New Roman">Key issues:</font></strong></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>1.<span style="font:7pt 'Times New Roman';">      </span></span>Understanding the requirements of a problem is among the most difficult tasks that face a software engineer.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>2.<span style="font:7pt 'Times New Roman';">      </span></span>Doesn’t the customer know what is required?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>3.<span style="font:7pt 'Times New Roman';">      </span></span>Shouldn’t the end-users have a good understanding of the features and functions that will provide benefit?</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">“I know you think you understand what I said, but what you don’t understand is what I said is not what I mean.”</font></p>
<p><font face="Times New Roman"> </font><strong><font face="Times New Roman">Requirements Engineering Tasks</font></strong></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>1.<span style="font:7pt 'Times New Roman';">      </span></span>Inception </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman">– Software engineers ask a set of context-free questions.<span>  </span>The intent is to establish a basic understanding of the problem, the people who want a solution, the nature of the solution that is desired, and the effectiveness of preliminary communication and collaboration between the customer and developer.</font></p>
<p><font face="Times New Roman"> </font><strong><font face="Times New Roman">Asking the First Questions</font></strong></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">The first set of context-free questions focuses on the customer and other stakeholders, overall goals, and benefits. For example, the requirements engineer might ask:</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Who is behind the request for this work?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Who will use the solution?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">What will be the economic benefit of a successful solution?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Is there another source for the solution that you need?</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">The questions help to identify the stakeholders, the measurable benefit of a successful implementation and possible alternatives.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">The next set of questions enables the software team to gain a better understanding of the problem and allows the customer to voice his or her perceptions about a solution:</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">How would you characterize “good” output that would be generated by a successful solution?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">What problem(s) will this solution address?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Can you show me (or describe) the business environment in which the solution will be used?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Will special performance issues or constraints affect the way the solution is approached?</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">The final set of questions focuses on the effectiveness of the communication activity itself.<span>  </span>Gause and Weinberg call these “meta-questions” and propose the following (abbreviated) list:</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Are you the right person to answer these questions? Are your answers “official”?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Are my questions relevant to the problem that you have?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Am I asking too many questions?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Can anyone else provide additional information?</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Should I be asking you anything else?</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>2.<span style="font:7pt 'Times New Roman';">      </span></span>Elicitation – </font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:0.5in;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman"><strong>Why elicitation is difficult:</strong> (Christel and Kang)</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Problems of scope – The boundary of the system is ill-define or the customers/users specify unnecessary technical detail that may confuse, rather than clarify, overall system objectives.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Problems of understanding – The customers/users are not completely sure of what is needed, have a poor understanding of the capabilities and limitations of their computing environment, don’t have a full understanding of the problem domain, have trouble communicating needs to the system engineer, omit information that is believed to be “obvious”, specify requirements that conflict with the needs of other customers/users, or specify requirements that are ambiguous or untestable.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Problems of volatility – The requirements change over time.</font></p>
<p><font face="Times New Roman"> </font><strong><font face="Times New Roman">Collaborative Requirements Gathering</font></strong></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Meetings are conducted and attended by both software engineers and customers.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Rules for preparation and participation are established.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">An agenda is suggested that is formal enough to cover all important points but informal enough to encourage the free flow of ideas.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">A “facilitator” controls the meeting.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">A “definition mechanism” (can be work sheets, flip charts, or wall stickers or an electronic bulletin board, chat room, or virtual forum) is used.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">The goal is to identify the problem, propose elements of the solution, negotiate different approaches, and specify a preliminary set of solution requirements in an atmosphere that is conducive to the accomplishment of the goal.</font></p>
<p><font face="Times New Roman"> </font><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>3.<span style="font:7pt 'Times New Roman';">      </span></span>Elaboration – focuses on developing a refined technical model of software functions, features, and constraints.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">Elaboration is an analysis modeling action that is composed of a number of modeling and refinement tasks.<span>  </span>Elaboration is driven by the creation and refinement of user scenarios that describe how the end-user (and other actors) will interact with the system.<span>  </span>Each user scenario is parsed to extract analysis classes – business domain entities that are visible to the end-user.<span>  </span>The attributes of each analysis class are defined and the services that are required by each class are identified.<span>  </span>The relationships and collaboration between classes are identified and a variety of supplementary UML diagrams are produced.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">The end-result of elaboration is an analysis model that defines the informational, functional, and behavioral domain of the problem.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>4.<span style="font:7pt 'Times New Roman';">      </span></span>Negotiation – is the process settling down of conflicts between parties.</font></p>
<p><font face="Times New Roman"> </font><strong><font face="Times New Roman">Processes involved:</font></strong></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Customers, users, and other stakeholders are asked to rank requirements and then discuss conflicts in priority.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Risks associated with each requirement are identified and analyzed.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Rough “guestimates” of development effort are made and used to assess the impact of each requirement on project cost and delivery time.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Using an iterative approach, requirements are eliminated, combined, and/or modified so that each party achieves some measure of satisfaction.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>5.<span style="font:7pt 'Times New Roman';">      </span></span>Specification – means different things to different people.<span>  </span>A specification can be a written document, a set of graphical models, a formal mathematical model, a collection of usage scenarios, a prototype, or any combination of these.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">The specification is the final work product produced by the requirements engineer.<span>  </span>It serves as the foundation for subsequent software engineering activities.<span>  </span>It describes the function and performance of a computer-based system and the constraints that will govern its development.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>6.<span style="font:7pt 'Times New Roman';">      </span></span>Validation – examines the specification to ensure that all software requirements have been stated unambiguously; that inconsistencies, omissions, and errors have been detected and corrected; and that the work products conform to the standards established for the process, the project, and the product.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>7.<span style="font:7pt 'Times New Roman';">      </span></span>Management – is a set of activities that help the project team identify, control, and track requirement and changes to requirements at nay time as the project proceeds.</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=11&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/07/15/requirements-engineering/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
		<item>
		<title>System Engineering</title>
		<link>http://ustsci.wordpress.com/2007/07/15/system-engineering/</link>
		<comments>http://ustsci.wordpress.com/2007/07/15/system-engineering/#comments</comments>
		<pubDate>Sun, 15 Jul 2007 16:10:13 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[SE]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/07/15/system-engineering/</guid>
		<description><![CDATA[System engineering – focuses on a variety of elements, analyzing, designing, and organizing those elements into a system that can be a product, a service, or a technology for the transformation of information or control.   System – is a set of facts, principles, rules, classified and arranged in an orderly form so as to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=10&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman"><strong>System engineering</strong> – focuses on a variety of elements, analyzing, designing, and organizing those elements into a system that can be a product, a service, or a technology for the transformation of information or control.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman"><strong>System </strong>– is a set of facts, principles, rules, classified and arranged in an orderly form so as to show a logical plan linking the various parts.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman"><strong>Computer-based system </strong>– is a set or arrangement of elements that are organized to accomplish some predefined goal by processing information.</font></p>
<p><font face="Times New Roman"> </font><strong><font face="Times New Roman">System Elements</font></strong></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>1.<span style="font:7pt 'Times New Roman';">      </span></span>Software </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman">– are computer programs, data structures, and related work products that serve to effect the logical method, procedure, or control that is required.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>2.<span style="font:7pt 'Times New Roman';">      </span></span>Hardware </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman">– are electronic devices that provide computing capability, the interconnectivity devices (e.g., network switches, telecommunications devices) that enable the flow of data, and electromechanical devices (e.g., sensors, motors, pumps0 that provide external world function.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>3.<span style="font:7pt 'Times New Roman';">      </span></span>People </font></p>
<p style="text-indent:0.5in;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">– are users and operators of hardware and software.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>4.<span style="font:7pt 'Times New Roman';">      </span></span>Database </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman">– is a large, organized collection of information that is accessed via software and persists over time.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>5.<span style="font:7pt 'Times New Roman';">      </span></span>Documentation </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman">– is a descriptive information (e.g., models, specifications, hardcopy manuals, on-line help files, Web sites) that portrays the use and/or operation of the system.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>6.<span style="font:7pt 'Times New Roman';">      </span></span>Procedures </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman">– are the steps that define the specific use of each system element or the procedural context in which the system resides.</font></p>
<p><font face="Times New Roman"> </font><font face="Times New Roman"> </font><strong><font face="Times New Roman">System Modeling</font></strong></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>1.<span style="font:7pt 'Times New Roman';">      </span></span>Defines the processes that serve the needs of the view under consideration.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>2.<span style="font:7pt 'Times New Roman';">      </span></span>Represent the behavior of the processes and the assumptions on which the behavior is based.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>3.<span style="font:7pt 'Times New Roman';">      </span></span>Explicitly define both exogenous and endogenous input to the model.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>4.<span style="font:7pt 'Times New Roman';">      </span></span>Represent all linkages (including output) that will enable the engineer to better understand the view.</font></p>
<p><font face="Times New Roman"> </font><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">Exogenous inputs link one constituent of a given view with other constituents as the same level or other levels; endogenous input links individual components of a constituent at a particular view.</font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 1in;" class="MsoNormal"><span style="font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">        </span></span></span><font face="Times New Roman">World View<span>     </span>WV = {D<sub>1</sub>, D<sub>2</sub>, …, D<sub>n</sub>}<span>            </span>D &#8211; domain</font></p>
<p style="text-align:justify;margin:0 0 0 2in;" class="MsoNormal"><font face="Times New Roman">D<sub>i</sub> = {E<sub>1</sub>, E<sub>2</sub>, …, E<sub>m</sub>}<span>               </span>E &#8211; element</font></p>
<p style="text-align:justify;margin:0 0 0 2in;" class="MsoNormal"><font face="Times New Roman">E<sub>j</sub> = {C<sub>1</sub>, C<sub>2</sub>, …, C<sub>k</sub>}<span>               </span>C – component</font></p>
<p><font face="Times New Roman"> </font><font face="Times New Roman"> </font><strong><font face="Times New Roman">Restraining Factors in Constructing a System Model</font></strong></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>1.<span style="font:7pt 'Times New Roman';">      </span></span>Assumptions </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman">– that reduce the number of possible permutations and variations, thus enabling a model to reflect the problem in a reasonable manner.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>2.<span style="font:7pt 'Times New Roman';">      </span></span>Simplifications </font></p>
<p style="text-indent:0.5in;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">– that enable the model to be created in a timely manner. </font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>3.<span style="font:7pt 'Times New Roman';">      </span></span>Limitations </font></p>
<p style="text-indent:0.5in;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">– that help to bound the system.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>4.<span style="font:7pt 'Times New Roman';">      </span></span>Constraints </font></p>
<p style="text-indent:0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman">– that will guide the manner in which the model is created and the approach taken when the model is implemented.</font></p>
<p><font face="Times New Roman"> </font></p>
<p style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.25in;" class="MsoNormal"><font face="Times New Roman"><span>5.<span style="font:7pt 'Times New Roman';">      </span></span>Preferences </font></p>
<p style="text-indent:0.5in;text-align:justify;margin:0;" class="MsoNormal"><font face="Times New Roman">– that indicate the preferred architecture for all data, functions, and technology.</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=10&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/07/15/system-engineering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
		<item>
		<title>Java &#8211; Activity1.1</title>
		<link>http://ustsci.wordpress.com/2007/07/11/java-activity11/</link>
		<comments>http://ustsci.wordpress.com/2007/07/11/java-activity11/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 08:42:19 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/07/11/java-activity11/</guid>
		<description><![CDATA[Activity1.1            : Command line programming – Method Overloading Program File         : MethodOverload.java Procedures            : 1. Type the program file.                                     : 2. Save/Compile the program.                                                       : 3. Using the Command Prompt (C:\&#62;), execute the following:                                     Path = C:\jdk\bin (or look for the equivalent directory)                                                                        Javac MethodOverload.java          (compiling the program)                                                  :  4. Execute the program with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=9&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Times New Roman"><strong><span>Activity1.1<span>            </span></span></strong><span>: Command line programming – Method Overloading</span></font></p>
<p><font face="Times New Roman"><span></span></font><font face="Times New Roman"><strong><span>Program File</span></strong><span> <span>        </span>: MethodOverload.java</span></font></p>
<p><font face="Times New Roman"><span></span></font><font face="Times New Roman"><strong><span>Procedures</span></strong><span>    <span>        </span>: 1. Type the program file.</span></font><span><font face="Times New Roman">     </font></span></p>
<p><span><font face="Times New Roman">                               : 2. Save/Compile the program.</font></span><span><font face="Times New Roman">                       </font></span></p>
<p><span><font face="Times New Roman">                               : 3. Using the Command Prompt (C:\&gt;), execute the following:</font></span></p>
<p><span></span><span><font face="Times New Roman">                                    <strong>Path = C:\jdk\bin</strong> (or look for the equivalent directory)</font></span><span><font face="Times New Roman">                                    </font></span></p>
<p><span><font face="Times New Roman"><strong>                                    Javac MethodOverload.java</strong>          (compiling the program)</font></span><span><font face="Times New Roman">                  </font></span></p>
<p><span><font face="Times New Roman">                               :  4. Execute the program with test data.</font></span><span><font face="Times New Roman"><span>                        </span><span>    </span></font></span></p>
<p><span><font face="Times New Roman"><span>                                     </span>Scenario1: <span>      </span><strong>Java MethodOverload 5</strong></font></span></p>
<p><span></span><font face="Times New Roman"><strong><span><span>                        </span><span>            </span></span></strong></font><font face="Times New Roman"><span>Output:<span>            </span><strong>The area is : 78.54</strong></span></font><strong><span><font face="Times New Roman"> </font></span></strong><font face="Times New Roman"><strong><span><span>                        </span><span>    </span></span></strong></font></p>
<p><font face="Times New Roman"><strong><span><span>                                    </span></span></strong><span>Scenario2: <span>      </span><strong>Java MethodOverload 5 3</strong></span></font><font face="Times New Roman"><strong><span><span>                        </span><span>     </span></span></strong></font></p>
<p><font face="Times New Roman"><strong><span><span>                                    </span></span></strong><span>Output:<span>            </span><strong>The area is : 12.5</strong></span></font><strong><span><font face="Times New Roman"> </font></span></strong></p>
<p><font face="Times New Roman"><strong><span>                                     </span></strong><span>Scenario3: <span>      </span><strong>Java MethodOverload </strong></span><strong><span><span>                        </span><span>            </span></span></strong><span> </span></font></p>
<p><font face="Times New Roman"><span>                                     Output:<span>            </span><strong>error</strong></span><strong><span> </span></strong></font></p>
<p><font face="Times New Roman"><strong><span>                                     </span></strong><span>Scenario4: <span>       </span><strong>Java MethodOverload 1 2 3</strong></span><strong><span><span>            </span><span>            </span><span>            </span></span></strong><span> </span></font></p>
<p><font face="Times New Roman"><span>                                     Output:<span>            </span><strong>error</strong></span></font></p>
<p style="margin:0;" class="MsoNormal">&nbsp;</p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">public class MethodOverload</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">{ static double n1,n2,a;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>  </span><span>          </span>static double area(double n1)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>  </span><span>          </span>{ a = 3.1416 * n1*n1;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>    </span><span>        </span><span>   </span>return a;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>  </span><span>          </span>}</font></p>
<p style="text-indent:0.5in;margin:0;" class="MsoNormal"><font face="Times New Roman">static double area(double n1, double n2)</font></p>
<p style="text-indent:0.5in;margin:0;" class="MsoNormal"><font face="Times New Roman">{ a = 1/2.0 * n1*n1;</font></p>
<p style="text-indent:0.5in;margin:0;" class="MsoNormal"><font face="Times New Roman"><span>   </span>return a;</font></p>
<p style="text-indent:0.5in;margin:0;" class="MsoNormal"><font face="Times New Roman">}</font></p>
<p style="text-indent:0.5in;margin:0;" class="MsoNormal"><font face="Times New Roman">public static void main(String[] args)</font></p>
<p style="text-indent:0.5in;margin:0;" class="MsoNormal"><font face="Times New Roman">{ </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span><span>   </span>if (args.length&gt;2 || args.length&lt;1)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span><span>            </span>System.out.println(&#8220;error&#8221;);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span><span>            </span>else</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span><span>            </span>{ </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span><span>    </span>n1 = Double.parseDouble(args[0]);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span><span>     </span>if (args.length==1)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span><span>   </span><span>            </span>System.out.println(&#8220;The area is: &#8220;+ area(n1));</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span><span>  </span><span>            </span>else</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span><span>  </span><span>            </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span><span>    </span><span> </span><span>            </span><span>   </span>n2 = Double.parseDouble(args[1]);</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span><span>  </span><span>            </span><span>   </span>System.out.println(&#8220;The area is: &#8220;+ area(n1,n2));</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span><span>  </span><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">}</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=9&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/07/11/java-activity11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
		<item>
		<title>Java &#8211; Activity1</title>
		<link>http://ustsci.wordpress.com/2007/07/11/java-activity1/</link>
		<comments>http://ustsci.wordpress.com/2007/07/11/java-activity1/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 04:45:36 +0000</pubDate>
		<dc:creator>ustsci</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ustsci.wordpress.com/2007/07/11/java-activity1/</guid>
		<description><![CDATA[Activity1: Command line programming. Program File   : Sum.java Procedures     : 1. Type the program file.                         : 2. Save/Compile the program.                         : 3. Using the Command Prompt (C:\&#62;), execute the following:                                     Path = C:\jdk\bin        (or look for the equivalent directory)                                     Javac Sum.java          (compiling the program)                                     Java Sum 2 3              (running the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=8&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><strong>Activity1</strong>: Command line programming.</font></p>
<p><font face="Times New Roman"><strong>Program File</strong><span>   </span>: Sum.java</font></p>
<p><font face="Times New Roman"><strong>Procedures</strong><span>     </span>: 1. Type the program file.</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>: 2. Save/Compile the program.</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>: 3. Using the Command Prompt (C:\&gt;), execute the following:</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span><strong>Path = C:\jdk\bin</strong><span>        </span>(or look for the equivalent directory)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span><strong>Javac Sum.java</strong><span>          </span>(compiling the program)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span><strong>Java Sum 2 3</strong><span>              </span>(running the program with test data)</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>: 4. The result should look like this:</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>The sum is: 5.0</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>: 5. If the command </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">                                    <strong>java Sum 5</strong></font></p>
<p style="text-indent:0.5in;margin:0 0 0 1in;" class="MsoNormal"><font face="Times New Roman">or</font></p>
<p style="text-indent:0.5in;margin:0 0 0 1in;" class="MsoNormal"><strong><font face="Times New Roman">java Sum 1 2 3</font></strong></p>
<p style="text-indent:0.5in;margin:0 0 0 1in;" class="MsoNormal"><font face="Times New Roman">is executed, a message “Invalid number of inputs!” will be displayed.</font></p>
<p style="margin:0;" class="MsoNormal">&nbsp;</p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">public class Sum </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>static double n1, n2;</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">            </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>public static void main( String args[] ) </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>int numArgs = args.length;</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">                        </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>if( numArgs &gt;2 || numArgs &lt; 2 )</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>System.out.println( &#8220;Invalid number of inputs.&#8221; );</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>else </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>{</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>n1 = Double.parseDouble( args[0] );</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>n2 = Double.parseDouble( args[1] );</font></p>
<p style="margin:0;" class="MsoNormal"><span><font face="Times New Roman">                                                </font></span></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                                    </span>System.out.println( &#8220;The sum is: &#8221; + (n1+n2));</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>}</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">}</font></p>
<p style="margin:0;" class="MsoNormal">&nbsp;</p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><strong>Note: <span>  </span></strong>In the command <strong>Java Sum 2 3</strong>, the first number <strong>2</strong> is <strong>args[0]</strong> while <strong>3</strong> is <strong>args[1]</strong>.</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>            </span>The method <strong>length</strong> will count the number of arguments based from the user inputs.</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ustsci.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ustsci.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ustsci.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ustsci.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ustsci.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ustsci.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ustsci.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ustsci.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ustsci.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ustsci.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ustsci.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ustsci.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ustsci.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ustsci.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ustsci.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ustsci.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ustsci.wordpress.com&amp;blog=1275965&amp;post=8&amp;subd=ustsci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ustsci.wordpress.com/2007/07/11/java-activity1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c1907f2a08f6f8f75f56afa917f316a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ustsci</media:title>
		</media:content>
	</item>
	</channel>
</rss>
