<?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>Secangkirtehanget&#039;s Blog</title>
	<atom:link href="http://secangkirtehanget.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://secangkirtehanget.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Sun, 26 Sep 2010 05:06:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='secangkirtehanget.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Secangkirtehanget&#039;s Blog</title>
		<link>http://secangkirtehanget.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://secangkirtehanget.wordpress.com/osd.xml" title="Secangkirtehanget&#039;s Blog" />
	<atom:link rel='hub' href='http://secangkirtehanget.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Touring pantai Ujung Genteng-Curug Cikaso-Pelabuhan Ratu</title>
		<link>http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/</link>
		<comments>http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 02:33:22 +0000</pubDate>
		<dc:creator>secangkirtehanget</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://secangkirtehanget.wordpress.com/?p=6</guid>
		<description><![CDATA[Akhirnya punya blog baru, setelah yang lama ngga pernah diurusin, tapi kemungkinan nasib blog ini akan sama saja dengan blog gw yang terdahulu, hehe&#8230;  nah postingan pertama ini gw akan memberikan foto2 pengalaman gw 3 hari 2 malam touring ke &#8230; <a href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secangkirtehanget.wordpress.com&amp;blog=14191911&amp;post=6&amp;subd=secangkirtehanget&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">
<div id="_mcePaste">Akhirnya punya blog baru, setelah yang lama ngga pernah diurusin, tapi kemungkinan nasib blog ini akan sama saja dengan blog gw yang terdahulu, hehe&#8230;  nah postingan pertama ini gw akan memberikan foto2 pengalaman gw 3 hari 2 malam touring ke pantai ujung genteng, dan curug cikaso, dan beberapa daerah lain daerah kabupaten sukabumi sama temen gw ber 6. Tapi yang gw post, cm yang di pantai ujung genteng sama Curug Cikaso. Siapa tau jadi referensi temen2 buat touring, hehe&#8230;</div>
<div id="_mcePaste">Perjalanan yang cukup jauh ini dimulai pada hari terakhir UAS semester 6, tanggal 14 juni 2010 sampai 16 juni 2010. Nih foto2nya&#8230;</div>
<div>nah untuk tujuan pertama adalah curug cikaso, ni dia foto2nya&#8230;</div>
<div>
<div id="attachment_30" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-30" href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/sebelum-berangkat-4/"><img class="size-medium wp-image-30" title="sebelum berangkat" src="http://secangkirtehanget.files.wordpress.com/2010/09/sebelum-berangkat3.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a><p class="wp-caption-text">Foto Sebelum berangkat, gw ada di pojok paling kanan ^^v</p></div>
<p>untuk foto2 pantainya nih&#8230;</p>
<div id="attachment_33" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-33" href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/1-3/"><img class="size-medium wp-image-33" title="ujung genteng" src="http://secangkirtehanget.files.wordpress.com/2010/09/12.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a><p class="wp-caption-text">Pantainya masih putih bersih</p></div>
<div id="attachment_36" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-36" href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/attachment/2/"><img class="size-medium wp-image-36" title="gw" src="http://secangkirtehanget.files.wordpress.com/2010/09/2.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a><p class="wp-caption-text">gw di pantai ujung genteng <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></div>
<p><a rel="attachment wp-att-41" href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/attachment/3/"><img class="aligncenter size-medium wp-image-41" title="ujung genteng" src="http://secangkirtehanget.files.wordpress.com/2010/09/3.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p><a rel="attachment wp-att-44" href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/attachment/4/"><img class="aligncenter size-medium wp-image-44" title="ujung genteng" src="http://secangkirtehanget.files.wordpress.com/2010/09/4.jpg?w=300&#038;h=200" alt="" width="300" height="200" /></a></p>
<p><a rel="attachment wp-att-49" href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/attachment/5/"><img class="aligncenter size-medium wp-image-49" title="ujung genteng sore hari" src="http://secangkirtehanget.files.wordpress.com/2010/09/5.jpg?w=300&#038;h=200" alt="" width="300" height="200" /></a></p>
<p>nih liat curugnya, pasti mantap, curug Cikaso&#8230;</p>
<div id="attachment_58" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-58" href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/attachment/6/"><img class="size-medium wp-image-58" title="curug cikaso" src="http://secangkirtehanget.files.wordpress.com/2010/09/6.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a><p class="wp-caption-text">mantap banget nih curug</p></div>
<p><a rel="attachment wp-att-61" href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/attachment/7/"><img class="aligncenter size-medium wp-image-61" title="curug cikaso lagi" src="http://secangkirtehanget.files.wordpress.com/2010/09/7.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p><a rel="attachment wp-att-64" href="http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/attachment/8/"><img class="aligncenter size-medium wp-image-64" title="curug cikaso" src="http://secangkirtehanget.files.wordpress.com/2010/09/8.jpg?w=225&#038;h=300" alt="" width="225" height="300" /></a></p>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/secangkirtehanget.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/secangkirtehanget.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/secangkirtehanget.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/secangkirtehanget.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/secangkirtehanget.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/secangkirtehanget.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/secangkirtehanget.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/secangkirtehanget.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/secangkirtehanget.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/secangkirtehanget.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/secangkirtehanget.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/secangkirtehanget.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/secangkirtehanget.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/secangkirtehanget.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secangkirtehanget.wordpress.com&amp;blog=14191911&amp;post=6&amp;subd=secangkirtehanget&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://secangkirtehanget.wordpress.com/2010/09/26/touring-pantai-ujung-genteng-curug-cikaso-pelabuhan-ratu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23a21cd3a5172783cc2c484a92bcc562?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">secangkirtehanget</media:title>
		</media:content>

		<media:content url="http://secangkirtehanget.files.wordpress.com/2010/09/sebelum-berangkat3.jpg?w=300" medium="image">
			<media:title type="html">sebelum berangkat</media:title>
		</media:content>

		<media:content url="http://secangkirtehanget.files.wordpress.com/2010/09/12.jpg?w=300" medium="image">
			<media:title type="html">ujung genteng</media:title>
		</media:content>

		<media:content url="http://secangkirtehanget.files.wordpress.com/2010/09/2.jpg?w=300" medium="image">
			<media:title type="html">gw</media:title>
		</media:content>

		<media:content url="http://secangkirtehanget.files.wordpress.com/2010/09/3.jpg?w=300" medium="image">
			<media:title type="html">ujung genteng</media:title>
		</media:content>

		<media:content url="http://secangkirtehanget.files.wordpress.com/2010/09/4.jpg?w=300" medium="image">
			<media:title type="html">ujung genteng</media:title>
		</media:content>

		<media:content url="http://secangkirtehanget.files.wordpress.com/2010/09/5.jpg?w=300" medium="image">
			<media:title type="html">ujung genteng sore hari</media:title>
		</media:content>

		<media:content url="http://secangkirtehanget.files.wordpress.com/2010/09/6.jpg?w=300" medium="image">
			<media:title type="html">curug cikaso</media:title>
		</media:content>

		<media:content url="http://secangkirtehanget.files.wordpress.com/2010/09/7.jpg?w=300" medium="image">
			<media:title type="html">curug cikaso lagi</media:title>
		</media:content>

		<media:content url="http://secangkirtehanget.files.wordpress.com/2010/09/8.jpg?w=225" medium="image">
			<media:title type="html">curug cikaso</media:title>
		</media:content>
	</item>
		<item>
		<title>Tugas Alstrukdat ADT Point</title>
		<link>http://secangkirtehanget.wordpress.com/2010/09/20/tugas-alstrukdat-adt-point/</link>
		<comments>http://secangkirtehanget.wordpress.com/2010/09/20/tugas-alstrukdat-adt-point/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 16:34:08 +0000</pubDate>
		<dc:creator>secangkirtehanget</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://secangkirtehanget.wordpress.com/?p=7</guid>
		<description><![CDATA[ada 4 file yang dibutuhkan, yakni boolean.h, point.h, point.c, dan main.c untuk menjalankan program ADT point.h. Semoga tugas ini bermanfaat untuk semua&#8230; BOOLEAN.h #ifndef BOOLEAN_H #define BOOLEAN_H #define true 1 #define false 0 #define boolean unsigned char #endif #ifndef BOOLEAN_H#define &#8230; <a href="http://secangkirtehanget.wordpress.com/2010/09/20/tugas-alstrukdat-adt-point/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secangkirtehanget.wordpress.com&amp;blog=14191911&amp;post=7&amp;subd=secangkirtehanget&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ada 4 file yang dibutuhkan, yakni <strong>boolean.h, point.h, point.c, dan main.c </strong>untuk menjalankan program ADT point.h. Semoga tugas ini bermanfaat untuk semua&#8230;</p>
<p><strong>BOOLEAN.h</strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong></p>
<div id="_mcePaste"><span style="font-weight:normal;">#ifndef BOOLEAN_H</span></div>
<div id="_mcePaste"><span style="font-weight:normal;">#define BOOLEAN_H</span></div>
<div id="_mcePaste"><span style="font-weight:normal;">#define true 1</span></div>
<div id="_mcePaste"><span style="font-weight:normal;">#define false 0</span></div>
<div id="_mcePaste"><span style="font-weight:normal;">#define boolean unsigned char</span></div>
<div id="_mcePaste"><span style="font-weight:normal;">#endif</span></div>
<p></strong></p>
<p><span style="font-weight:normal;">#ifndef BOOLEAN_H#define BOOLEAN_H#define true 1#define false 0#define boolean unsigned char#endif</span></p>
<p><strong>POINT.h</strong></p>
<p><strong><span style="font-weight:normal;">/* file</span><span style="white-space:pre;"><span style="font-weight:normal;"> </span></span><span style="font-weight:normal;">: point.h */</span></strong></p>
<p><strong><span style="font-weight:normal;">/* ADT point </span><span style="white-space:pre;"><span style="font-weight:normal;"> </span></span><span style="font-weight:normal;"> */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">#ifndef POINT_h</span></p>
<p><span style="font-weight:normal;">#define POINT_h</span></p>
<p><span style="font-weight:normal;">#include &#8220;BOOLEAN.h&#8221;</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">/* definisi ADT point */</span></p>
<p><span style="font-weight:normal;">typedef struct</span></p>
<p><span style="font-weight:normal;">{</span></p>
<p><span style="white-space:pre;"><span style="font-weight:normal;"> </span></span><span style="font-weight:normal;">int x;</span><span style="white-space:pre;"><span style="font-weight:normal;"> </span></span><span style="font-weight:normal;">/* absis */</span></p>
<p><span style="white-space:pre;"><span style="font-weight:normal;"> </span></span><span style="font-weight:normal;">int y;</span><span style="white-space:pre;"><span style="font-weight:normal;"> </span></span><span style="font-weight:normal;">/* ordinat */</span></p>
<p><span style="font-weight:normal;">} point;</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">/* definisi prototipe primitif */</span></p>
<p><span style="font-weight:normal;">/*** konstruktor membentuk point ***/</span></p>
<p><span style="font-weight:normal;">point makepoint(int x,int y);</span></p>
<p><span style="font-weight:normal;">/* membentuk sebuah point dari komponen-komponennya */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">/*** selektor point ***/</span></p>
<p><span style="font-weight:normal;">int getabsis (point p);</span></p>
<p><span style="font-weight:normal;">/* mengirimkan komponen absis dari p */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">int getordinat(point p);</span></p>
<p><span style="font-weight:normal;">/* mengirimkan komponen ordinat dari p */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">/*** destruktor/dealokator:tidak perlu ***/</span></p>
<p><span style="font-weight:normal;">/*** set nilai komponen point ***/</span></p>
<p><span style="font-weight:normal;">void setabsis(point *p,int newx);</span></p>
<p><span style="font-weight:normal;">/* men-set komponen absis dari p */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">void setordinat(point *p,int newy);</span></p>
<p><span style="font-weight:normal;">/* men-set komponen ordinat dari p */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">/* kelompok interaksi dengan I/O device, baca/tulis */</span></p>
<p><span style="font-weight:normal;">void bacapoint(point *p);</span></p>
<p><span style="font-weight:normal;">/* bacapoint(x,y,p) membentuk p dari x dan y yang dibaca */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">void tulispoint(point p);</span></p>
<p><span style="font-weight:normal;">/* nilai p ditulis ke layar dg format (X,Y) */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">/* kelompok operasi aritmatika terhadap byte */</span></p>
<p><span style="font-weight:normal;">point pluspoint(point p1,point p2);</span></p>
<p><span style="font-weight:normal;">/* menghasilkan salinan p yang berisi p1+p2 */</span></p>
<p><span style="font-weight:normal;">/* melakukan operasi penjumlahan vektor */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">point minuspoint(point p1,point p2);</span></p>
<p><span style="font-weight:normal;">/* menghasilkan p1-p2 */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">/*** kelompok operasi relasional terhadap point ***/</span></p>
<p><span style="font-weight:normal;">boolean EQ(point p1,point p2);</span></p>
<p><span style="font-weight:normal;">/* mengirimkan true jika p1=p2 */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">boolean NEQ(point p1,point p2);</span></p>
<p><span style="font-weight:normal;">/* mengirimkan true jika p1 tidak sama dengan p2 */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">boolean LT(point p1,point p2);</span></p>
<p><span style="font-weight:normal;">/* mengirimkan true jika p1&lt;p2 */</span></p>
<p><span style="font-weight:normal;">/* definisi lebih kecil:lebih &#8220;kiri-bawah&#8221; dalam bidang kartesian */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">boolean GT(point p1,point p2);</span></p>
<p><span style="font-weight:normal;">/* mengirimkan true jika p1&gt;p2 */</span></p>
<p><span style="font-weight:normal;">/* definisi lebih besar:lebih &#8220;kanan-atas&#8221; dalam bidang kartesian */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">/* kelompok menentukan dimana p berada */</span></p>
<p><span style="font-weight:normal;">boolean isorigin(point p);</span></p>
<p><span style="font-weight:normal;">/* menghasilkan true jika p adalah titik origin */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">boolean isonsbx(point p);</span></p>
<p><span style="font-weight:normal;">/* menghasilkan true jika p terletak pada sumbu x */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">boolean isonsby(point p);</span></p>
<p><span style="font-weight:normal;">/* menghasilkan true jika p terletak pada sumbu y */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">int kuadran(point p);</span></p>
<p><span style="font-weight:normal;">/* menghasilkan kuadran dari p: 1,2,3,atau 4 */</span></p>
<p><span style="font-weight:normal;">/* precondition: p bukan titik origin dan p tdk terletak pd slh satu sumbu */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">/* kelompok operasi lain terhadap type */</span></p>
<p><span style="font-weight:normal;">point nextx(point p);</span></p>
<p><span style="font-weight:normal;">/* mengirim salinan p dengan absis ditambah satu */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">point nexty(point p);</span></p>
<p><span style="font-weight:normal;">/* mengirim salinan p dengan ordinat ditambah satu */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">point plusdelta(point p,int deltax,int deltay);</span></p>
<p><span style="font-weight:normal;">/* mengirim salinan p yang absisnya = absis(p)+deltax dan */</span></p>
<p><span style="font-weight:normal;">/* ordinatnya = ordinat(p)+deltay */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">point mirrorofpoint(point p,boolean sbx,boolean sby);</span></p>
<p><span style="font-weight:normal;">/* menghasilkan salinan p yang dicerminkan */</span></p>
<p><span style="font-weight:normal;">/* tergantung nilai sbx dan sby */</span></p>
<p><span style="font-weight:normal;">/* jika sbx bernilai true, maka dicerminkan terhadap sb x */</span></p>
<p><span style="font-weight:normal;">/* jika sby bernilai true, maka dicerminkan terhadap sb y */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">float jarak0(point p);</span></p>
<p><span style="font-weight:normal;">/* menghitung jarak p ke (0,0) */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">void geserpoint(point *p,int deltax,int deltay);</span></p>
<p><span style="font-weight:normal;">/*I.S : p terdefinisi */</span></p>
<p><span style="font-weight:normal;">/*F.S : p digeser sebesar deltax dan ordinatnya sebesar delta y*/</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">void geserpointkesbx(point *p);</span></p>
<p><span style="font-weight:normal;">/* I.S : p terdefinisi */</span></p>
<p><span style="font-weight:normal;">/* F.S : p di sumbu x dg absis = absis semula */</span></p>
<p><span style="font-weight:normal;">/* proses : tergeser ke sumbu x */</span></p>
<p><span style="font-weight:normal;">/* contoh : jika koordinat semula(9,9) menjadi (9,0)*/</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">void geserpointkesby(point *p);</span></p>
<p><span style="font-weight:normal;">/* I.S : p terdefinisi */</span></p>
<p><span style="font-weight:normal;">/* F.S : p di sumbu y dg absis = absis semula */</span></p>
<p><span style="font-weight:normal;">/* proses : tergeser ke sumbu y */</span></p>
<p><span style="font-weight:normal;">/* contoh : jika koordinat semula(9,9) menjadi (0,9)*/</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">void mirrorpoint(point *p,boolean sbx,boolean sby);</span></p>
<p><span style="font-weight:normal;">/* I.S : p terdefinisi */</span></p>
<p><span style="font-weight:normal;">/* F.S : p dicerminkan tergantung nilai sbx atau sby */</span></p>
<p><span style="font-weight:normal;">/* jika sbx true maka dicerminkan thd sumbu x */</span></p>
<p><span style="font-weight:normal;">/* jika sby true maka dicerminkan thd sumbu y */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">void putarpoint(point *p,float sudut);</span></p>
<p><span style="font-weight:normal;">/* I.S : p terdefinisi */</span></p>
<p><span style="font-weight:normal;">/* F.S : p diputar sebesar sudut derajat */</span></p>
<p><span style="font-weight:normal;"><br />
</span></p>
<p><span style="font-weight:normal;">#endif</span></p>
<div>POINT.c</div>
<div>
<div><span style="font-weight:normal;">#include &lt;stdio.h&gt;</span></div>
<div><span style="font-weight:normal;">#include &lt;math.h&gt;</span></div>
<div><span style="font-weight:normal;">#include &#8220;POINT.h&#8221;</span></div>
<div><span style="font-weight:normal;">#include &#8220;BOOLEAN.h&#8221;</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">point makepoint(int x,int y){</span></div>
<div><span style="font-weight:normal;"> point temp; //buat varibel tipe bentukan point bernama temp.</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> temp.x=x;</span></div>
<div><span style="font-weight:normal;"> temp.y=y;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> return temp;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;">int getabsis (point p){</span></div>
<div><span style="font-weight:normal;"> return p.x; //mendapatkan nilai absis x</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">int getordinat(point p){</span></div>
<div><span style="font-weight:normal;"> return p.y; //mendapatkan nilai ordinat y</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">void setabsis(point *p,int newx){</span></div>
<div><span style="font-weight:normal;"> (*p).x=newx; // menSet nilai x</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">void setordinat(point *p,int newy){</span></div>
<div><span style="font-weight:normal;"> (*p).y=newy; // menSet nilai y</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">void bacapoint(point *p){</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;masukkan nilai x :\n&#8221;); </span></div>
<div><span style="font-weight:normal;"> scanf(&#8220;%d&#8221;,&amp;(*p).x); //membaca inputan x dari keyboard</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;masukkan nilai y :\n&#8221;);</span></div>
<div><span style="font-weight:normal;"> scanf(&#8220;%d&#8221;,&amp;(*p).y); //membaca inputan y dari keyboard</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">void tulispoint(point p){</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;x : %d \n&#8221;, p.x); //mencetak nilai x dan y ke layar</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;y : %d \n \n&#8221;, p.y);</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">point pluspoint(point p1,point p2){</span></div>
<div><span style="font-weight:normal;"> point temp;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> temp.x = p1.x + p2.x;</span></div>
<div><span style="font-weight:normal;"> temp.y = p1.y + p2.y;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> return temp;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">point minuspoint(point p1,point p2){</span></div>
<div><span style="font-weight:normal;"> point temp;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> temp.x = p1.x &#8211; p2.x;</span></div>
<div><span style="font-weight:normal;"> temp.y = p1.y &#8211; p2.y;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> return temp;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">boolean EQ(point p1,point p2){</span></div>
<div><span style="font-weight:normal;"> if((p1.x==p2.x) &amp;&amp; (p1.y==p2.y)){</span></div>
<div><span style="font-weight:normal;"> return 1;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else{</span></div>
<div><span style="font-weight:normal;"> return 0;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">boolean NEQ(point p1,point p2){</span></div>
<div><span style="font-weight:normal;"> if((p1.x != p2.x) &amp;&amp; (p1.y != p2.y)){</span></div>
<div><span style="font-weight:normal;"> return 1;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else{</span></div>
<div><span style="font-weight:normal;"> return 0;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">boolean LT(point p1,point p2){</span></div>
<div><span style="font-weight:normal;"> if((p1.x &lt; p2.x) &amp;&amp; (p1.y &lt; p2.y)){</span></div>
<div><span style="font-weight:normal;"> return 1;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else{</span></div>
<div><span style="font-weight:normal;"> return 0;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">boolean GT(point p1,point p2){</span></div>
<div><span style="font-weight:normal;"> if((p1.x &gt; p2.x) &amp;&amp; (p1.y &gt; p2.y)){</span></div>
<div><span style="font-weight:normal;"> return 1;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else{</span></div>
<div><span style="font-weight:normal;"> return 0;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">boolean isorigin(point p){</span></div>
<div><span style="font-weight:normal;"> if((p.x == 0) &amp;&amp; (p.y == 0)){</span></div>
<div><span style="font-weight:normal;"> return 1;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else{</span></div>
<div><span style="font-weight:normal;"> return 0;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">boolean isonsbx(point p){</span></div>
<div><span style="font-weight:normal;"> if(p.y == 0){</span></div>
<div><span style="font-weight:normal;"> return 1;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else{</span></div>
<div><span style="font-weight:normal;"> return 0;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">boolean isonsby(point p){</span></div>
<div><span style="font-weight:normal;"> if(p.x == 0){</span></div>
<div><span style="font-weight:normal;"> return 1;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else{</span></div>
<div><span style="font-weight:normal;"> return 0;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">int kuadran(point p){ </span></div>
<div><span style="font-weight:normal;"> if (p.x&gt;0 &amp;&amp; p.y&gt;0)          //syarat bila point p terletak di kuadran 1</span></div>
<div><span style="font-weight:normal;"> return 1;               //mengembalikan nilai p terletak dikuadran 1</span></div>
<div><span style="font-weight:normal;"> else if (p.x&lt;0 &amp;&amp; p.y&gt;0)    //syarat bila point p terletak di kuadran 2</span></div>
<div><span style="font-weight:normal;"> return 2;             //mengembalikan nilai p terletak dikuadran 2</span></div>
<div><span style="font-weight:normal;"> else if (p.x&lt;0 &amp;&amp; p.y&lt;0)    //syarat bila point p terletak di kuadran 3</span></div>
<div><span style="font-weight:normal;"> return 3;             //mengembalikan nilai p terletak dikuadran 3</span></div>
<div><span style="font-weight:normal;"> else if (p.x&gt;0 &amp;&amp; p.y&lt;0)    //syarat bila point p terletak di kuadran 4</span></div>
<div><span style="font-weight:normal;"> return 4;             //mengembalikan nilai p terletak dikuadran 4</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">point nextx(point p){</span></div>
<div><span style="font-weight:normal;"> point temp;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> temp.x=p.x + 1;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> return temp;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">point nexty(point p){</span></div>
<div><span style="font-weight:normal;"> point temp;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> temp.x=p.x;</span></div>
<div><span style="font-weight:normal;"> temp.y=p.y + 1;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> return temp;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;">point plusdelta(point p,int deltax,int deltay){</span></div>
<div><span style="font-weight:normal;"> point temp;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> temp.x=p.x + deltax;</span></div>
<div><span style="font-weight:normal;"> temp.y=p.y + deltay;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> return temp;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;">point mirrorofpoint(point p,boolean sbx,boolean sby){</span></div>
<div><span style="font-weight:normal;"> point temp;         //membuat variabel bertipe point bernama temp</span></div>
<div><span style="font-weight:normal;"> if(sbx){            //cek kondisi</span></div>
<div><span style="font-weight:normal;"> temp.x=-1 * (p.x);         //dicermikan terhadap sumbu x</span></div>
<div><span style="font-weight:normal;"> temp.y=p.y;</span></div>
<div><span style="font-weight:normal;"> } </span></div>
<div><span style="font-weight:normal;"> else if(sby){ </span></div>
<div><span style="font-weight:normal;"> temp.x=p.x;</span></div>
<div><span style="font-weight:normal;"> temp.y=-1 * (p.y);     //dicermikan terhadap sumbu y</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> return temp;            //mengembalikan nilai po bertipe point,sebab ini adalah fungsi</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;">float jarak0(point p){</span></div>
<div><span style="font-weight:normal;"> float jarak;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> jarak = sqrt((p.x*p.x)+(p.y*p.y));</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> return jarak;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;">void geserpoint(point *p,int deltax,int deltay){</span></div>
<div><span style="font-weight:normal;"> (*p).x=(*p).x+deltax;//geser point sejauh deltax</span></div>
<div><span style="font-weight:normal;"> (*p).y=(*p).y+deltay;//geser point sejauh deltay</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">void geserpointkesbx(point *p){</span></div>
<div><span style="font-weight:normal;"> (*p).x=(*p).x;//nilai x tetap.</span></div>
<div><span style="font-weight:normal;"> (*p).y=0;   //nilai y di set menjadi 0</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;">void geserpointkesby(point *p){</span></div>
<div><span style="font-weight:normal;"> (*p).y=(*p).y;  //nilai y tetap</span></div>
<div><span style="font-weight:normal;"> (*p).x=0;//nilai x di set menjadi 0</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">void mirrorpoint(point *p,boolean sbx,boolean sby){</span></div>
<div><span style="font-weight:normal;"> if(sbx){ //cek kondisi</span></div>
<div><span style="font-weight:normal;"> (*p).y=-1*(*p).y;    //dicerminkan terhadap sumbu x.</span></div>
<div><span style="font-weight:normal;"> (*p).x=(*p).x;</span></div>
<div><span style="font-weight:normal;"> } </span></div>
<div><span style="font-weight:normal;"> else{ </span></div>
<div><span style="font-weight:normal;"> (*p).x=-1*(*p).x;      //dicerminkan terhadap sumbu y.</span></div>
<div><span style="font-weight:normal;"> (*p).y=(*p).y;</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">void putarpoint(point *p,float sudut){</span></div>
<div><span style="font-weight:normal;"> double (d1);</span></div>
<div><span style="font-weight:normal;"> double (d2);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> (d1)=(*p).x*cos(sudut)-(*p).y*sin(sudut);</span></div>
<div><span style="font-weight:normal;"> (d2)=(*p).x*sin(sudut)+(*p).y*cos(sudut);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai data13 setelah diputar sebesar 30 derajat : (%0.2f,%0.2f) \n&#8221;,d1,d2);</span></div>
<div><span style="font-weight:normal;"> printf(&#8221; \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8221; \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div>Main.c</div>
<div>
<div><span style="font-weight:normal;">#include &lt;stdio.h&gt;</span></div>
<div><span style="font-weight:normal;">#include &lt;conio.h&gt;</span></div>
<div><span style="font-weight:normal;">#include &lt;math.h&gt;</span></div>
<div><span style="font-weight:normal;">#include&#8221;BOOLEAN.h&#8221;</span></div>
<div><span style="font-weight:normal;">#include&#8221;POINT.h&#8221;</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;">int main(){</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;">point p,q,r,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,plus,cermin;</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test membuat point*/</span></div>
<div><span style="font-weight:normal;"> p=makepoint(10,10); </span></div>
<div><span style="font-weight:normal;"> q=makepoint(20,30);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;=====================TUGAS1 ADT POINT=========================\n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8221; \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8221; \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8221; \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8221; \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X1 test: %d \n&#8221;,p.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y1 test: %d \n \n&#8221;,p.y);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X2 test: %d \n&#8221;,q.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y2 test: %d \n \n&#8221;,q.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test set dan get point*/</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> setabsis(&amp;q,20);</span></div>
<div><span style="font-weight:normal;"> setordinat(&amp;q,30);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai x yang baru setelah di set: %d \n&#8221;,getabsis(q));</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai y yang baru setelah di set: %d \n \n&#8221; ,getordinat(q));</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test baca point dari keyboard*/</span></div>
<div><span style="font-weight:normal;"> bacapoint(&amp;q);</span></div>
<div><span style="font-weight:normal;"> tulispoint(q);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test tambah point*/</span></div>
<div><span style="font-weight:normal;"> a=makepoint(15,20);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data1 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X1: %d \n&#8221;,a.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y1: %d \n&#8221;,a.y);</span></div>
<div><span style="font-weight:normal;"> b=makepoint(20,30);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data2 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X2: %d \n&#8221;,b.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y2: %d \n \n&#8221;,b.y);</span></div>
<div><span style="font-weight:normal;"> r=pluspoint(a,b);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Hasil penjumlahan Data1 dan Data2 : ( %d , %d )\n&#8221;,r.x,r.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /*  test kurang point*/</span></div>
<div><span style="font-weight:normal;"> r=minuspoint(a,b);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Hasil pengurangan Data1 dan Data2 : ( %d , %d )\n&#8221;,r.x,r.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test equivalen*/</span></div>
<div><span style="font-weight:normal;"> if (EQ(a,b)){</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai absis dan ordinat data percobaan sama(EQ) \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> } </span></div>
<div><span style="font-weight:normal;"> else{</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai absis dan ordinat data percobaan berbeda(NEQ) \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test not equivalen*/</span></div>
<div><span style="font-weight:normal;"> if (NEQ(a,b)) </span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai absis dan ordinat data percobaan berbeda(NEQ) \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> else</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai absis dan ordinat data percobaan sama(EQ) \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test lebih kecil*/</span></div>
<div><span style="font-weight:normal;"> if (LT(a,b)) </span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data1 lebih kecil dari data2 \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> else</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data1 tidak lebih kecil dari data2 \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test lebih besar*/</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;); </span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data3 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> c=makepoint(10,15);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X3: %d \n&#8221;,c.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y3: %d \n&#8221;,c.y);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data4 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> d=makepoint(5,9);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X3: %d \n&#8221;,d.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y3: %d \n \n&#8221;,d.y);</span></div>
<div><span style="font-weight:normal;"> if (GT(c,d)) </span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data3 lebih besar dari data4 \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> else</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data3 lebih kecil dari data4 \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test point origin*/</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data5 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> e=makepoint(0,0);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X5: %d \n&#8221;,e.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y5: %d \n \n&#8221;,e.y);</span></div>
<div><span style="font-weight:normal;"> if(isorigin(e))</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data5 merupakan titik origin \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> else</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data5 bukan titik origin \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test point disumbu x*/</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data6 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> f=makepoint(2,0);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X6: %d \n&#8221;,f.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y6: %d \n \n&#8221;,f.y);</span></div>
<div><span style="font-weight:normal;"> if(isonsbx(f))</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data6 terletak di sumbu x \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> else</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data6 tidak terletak di sumbu x \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test sumbu y*/</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data7 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> g=makepoint(0,3);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X7: %d \n&#8221;,g.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y7: %d \n \n&#8221;,g.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> if(isonsby(g))</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data7 terletak di sumbu y \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> else </span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data7 tidak terletak di sumbu y \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test kuadran*/</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data8 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> h=makepoint(1,-2);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X8: %d \n&#8221;,h.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y8: %d \n \n&#8221;,h.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> if(kuadran(h)==1){</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data8 berada di kuadran 1 \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else if (kuadran(h)==2){</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data8 berada di kuadran 2 \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else if (kuadran(h)==3){</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data8 berada di kuadran 3 \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"> else if (kuadran(h)==4){</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;data8 berada di kuadran 4 \n \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> }</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;"> /* test next point x*/</span></div>
<div><span style="font-weight:normal;"> i = nextx(h);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai data8 baru setelah absisnya(x) ditambah 1 : (%d,%d) \n \n&#8221;,i.x,i.y);</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;"> /* test next point y*/</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data9 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> j=makepoint(1,2);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X9: %d \n&#8221;,j.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y9: %d \n \n&#8221;,j.y);</span></div>
<div><span style="font-weight:normal;"> k = nexty(j);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai data9 baru setelah ordinatnya(y) ditambah 1 : (%d,%d) \n \n&#8221;,k.x,k.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /*test plusdelta*/</span></div>
<div><span style="font-weight:normal;"> plus=plusdelta(j,10,20);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai data9 baru setelah x ditambah 10 dan y ditambah 20 : (%d,%d) \n \n&#8221;,plus.x,plus.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /*test mirror of point */</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data10 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> l=makepoint(3,0);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X10: %d \n&#8221;,l.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y10: %d \n \n&#8221;,l.y);</span></div>
<div><span style="font-weight:normal;"> cermin=mirrorofpoint(l,isonsbx(l),isonsby(l));</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai data10 baru setelah pencerminan : (%d,%d) \n \n&#8221;,cermin.x,cermin.y);</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;"> /*test jarak0*/</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data11 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> m=makepoint(3,0);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X11: %d \n&#8221;,m.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y11: %d \n \n&#8221;,m.y);</span></div>
<div><span style="font-weight:normal;"> float jarak = jarak0(m);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Jarak data11 ke titik (0,0) : %0.0f \n \n&#8221;,jarak);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test geser point absis sebesar delta x dan ordinat sebesar delta y*/</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data12 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> n=makepoint(20,30);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X12: %d \n&#8221;,n.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y12: %d \n \n&#8221;,n.y);</span></div>
<div><span style="font-weight:normal;"> geserpoint(&amp;n,2,3);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai data12 setelah digeser sebesar deltax=2 dan deltay=3 : (%d,%d) \n \n&#8221;,n.x,n.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test geser smb x*/</span></div>
<div><span style="font-weight:normal;"> geserpointkesbx(&amp;n);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai data12 setelah digeser ke sumbux : (%d,%d) \n \n&#8221;,n.x,n.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;"> /* test geser smb y*/</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;DATA PERCOBAAN : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;Data13 : \n&#8221;);</span></div>
<div><span style="font-weight:normal;"> o=makepoint(5,5);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai X13: %d \n&#8221;,o.x);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai Y13: %d \n \n&#8221;,o.y);</span></div>
<div><span style="font-weight:normal;"> geserpointkesby(&amp;o);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;nilai data13 setelah digeser ke sumbuy : (%d,%d) \n \n&#8221;,o.x,o.y);</span></div>
<div><span style="font-weight:normal;"> </span></div>
<div><span style="font-weight:normal;">//    printf(&#8220;nilai X : %d,nilai y setelah digeser:%d \n&#8221;,o.x,o.y);</span></div>
<div><span style="font-weight:normal;"><br />
</span></div>
<div><span style="font-weight:normal;"> /* test putar point*/ </span></div>
<div><span style="font-weight:normal;"> putarpoint(&amp;o,30);</span></div>
<div><span style="font-weight:normal;"> printf(&#8220;===========================SELESAI=================================&#8221;);</span></div>
<div><span style="font-weight:normal;"> getche();</span></div>
<div><span style="font-weight:normal;">}</span></div>
</div>
</div>
<p></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/secangkirtehanget.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/secangkirtehanget.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/secangkirtehanget.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/secangkirtehanget.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/secangkirtehanget.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/secangkirtehanget.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/secangkirtehanget.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/secangkirtehanget.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/secangkirtehanget.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/secangkirtehanget.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/secangkirtehanget.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/secangkirtehanget.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/secangkirtehanget.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/secangkirtehanget.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secangkirtehanget.wordpress.com&amp;blog=14191911&amp;post=7&amp;subd=secangkirtehanget&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://secangkirtehanget.wordpress.com/2010/09/20/tugas-alstrukdat-adt-point/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23a21cd3a5172783cc2c484a92bcc562?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">secangkirtehanget</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://secangkirtehanget.wordpress.com/2010/06/14/hello-world/</link>
		<comments>http://secangkirtehanget.wordpress.com/2010/06/14/hello-world/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 05:55:18 +0000</pubDate>
		<dc:creator>secangkirtehanget</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://secangkirtehanget.wordpress.com/?p=1</guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secangkirtehanget.wordpress.com&amp;blog=14191911&amp;post=1&amp;subd=secangkirtehanget&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/secangkirtehanget.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/secangkirtehanget.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/secangkirtehanget.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/secangkirtehanget.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/secangkirtehanget.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/secangkirtehanget.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/secangkirtehanget.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/secangkirtehanget.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/secangkirtehanget.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/secangkirtehanget.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/secangkirtehanget.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/secangkirtehanget.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/secangkirtehanget.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/secangkirtehanget.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secangkirtehanget.wordpress.com&amp;blog=14191911&amp;post=1&amp;subd=secangkirtehanget&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://secangkirtehanget.wordpress.com/2010/06/14/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23a21cd3a5172783cc2c484a92bcc562?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">secangkirtehanget</media:title>
		</media:content>
	</item>
	</channel>
</rss>
