<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1856193923388806939</id><updated>2011-04-21T15:30:12.765-07:00</updated><category term='Posted By: Cara Edenmay N. Bonjibon'/><category term='Posted By: Prince Rainier A. Yamyamin'/><category term='Posted By: Rhealyn Butay'/><category term='Charmine P. Agulto'/><category term='Posted By: Charmine Agulto'/><category term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>PLARIDELS ADVANCED... What Have We?</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default?start-index=101&amp;max-results=100'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>104</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-339876701421003122</id><published>2009-03-14T21:39:00.000-07:00</published><updated>2009-03-14T21:48:00.990-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>ssr......underconstruction!!!</title><content type='html'>&lt;center&gt;&lt;hr /&gt;&lt;span style="color: rgb(51, 255, 51);font-size:180%;" &gt;&lt;b&gt;SSR&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_DEwUSacjkB0/SbyIO9euMXI/AAAAAAAAAMY/R9XdsFBK6gs/s1600-h/180px-Solid_state_relay.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 180px; height: 146px;" src="http://4.bp.blogspot.com/_DEwUSacjkB0/SbyIO9euMXI/AAAAAAAAAMY/R9XdsFBK6gs/s320/180px-Solid_state_relay.jpg" alt="" id="BLOGGER_PHOTO_ID_5313271450993308018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;A solid state relay (SSR) is a solid state electronic component that provides a similar function to an electromechanical relay but does not have any moving components, increasing long-term reliability. With early SSR's, the tradeoff came from the fact that every transistor has a small voltage drop across it. This voltage drop limited the amount of current a given SSR could handle. As transistors improved, higher current SSR's, able to handle 100 to 1,200 amps, have become commercially available. Compared to electromagnetic relays, they may be falsely triggered by transients.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;hr /&gt;&lt;span style="color: rgb(255, 255, 0);font-size:180%;" &gt;&lt;b&gt;&lt;b&gt;Operation&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;span style="color: rgb(204, 51, 204);"&gt;Voltage applied to the control line of an SSR causes the LED to shine on the photo-sensitive diode. This produces a voltage between the MOSFET source and its gate, causing the MOSFET to turn on. An SSR based on a single MOSFET, or multiple MOSFETs in a paralleled array works well for DC loads.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204);"&gt;There is an inherent substrate diode in all MOSFETs that conducts in the reverse direction. This means that a single MOSFET can't block current in both directions. For AC (bi-directional) operation, two MOSFETs are arranged back to back with their source pins tied together. Their drain pins are connected to either side of the output. The substrate diodes then are alternately reverse biased in order to block current when the relay is off. When the relay is on, the common source is always riding on the instantaneous signal level and both gates are biased positive relative to the source by the photo-diode.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204);"&gt;It is common to provide access to the common source so that multiple MOSFETs can be wired in parallel if switching a DC load. There is also commonly some circuitry to discharge the gate when the LED is turned off, speeding the relay's turn-off.&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-339876701421003122?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/339876701421003122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=339876701421003122' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/339876701421003122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/339876701421003122'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/03/ssrunderconstruction.html' title='ssr......underconstruction!!!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_DEwUSacjkB0/SbyIO9euMXI/AAAAAAAAAMY/R9XdsFBK6gs/s72-c/180px-Solid_state_relay.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-7594219820900795756</id><published>2009-03-13T20:05:00.000-07:00</published><updated>2009-03-12T01:40:47.813-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>Again... It's Interfacing!</title><content type='html'>&lt;marquee direction="left" delay="5"&gt;&lt;a href="http://www.glitter-graphics.com/myspace/text_generator.php" target=_blank&gt;&lt;img src="http://text.glitter-graphics.net/s/a.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/l.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/l.gif" border=0&gt;&lt;img src="http://dl3.glitter-graphics.net/empty.gif" width=20 border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/a.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/b.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/o.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/u.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/t.gif" border=0&gt;&lt;img src="http://dl3.glitter-graphics.net/empty.gif" width=20 border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/i.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/n.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/t.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/e.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/r.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/f.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/a.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/c.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/i.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/n.gif" border=0&gt;&lt;img src="http://text.glitter-graphics.net/s/g.gif" border=0&gt;&lt;img src="http://dl3.glitter-graphics.net/empty.gif" width=20 border=0&gt;&lt;/a&gt;&lt;/marquee&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The connection and interaction between hardware, software and the user. Users "talk to" the software. The software "talks to" the hardware and other software. Hardware "talks to" other hardware. All this is interfacing. It has to be designed, developed, tested and redesigned; and with each incarnation, a new specification is born that may become yet one more de facto or regulated standard.&lt;/p&gt;&lt;p style="FONT-WEIGHT: bold; COLOR: rgb(255,204,255)"&gt;&lt;span style="font-size:130%;"&gt;&lt;marquee behavior="alternate"&gt;Hardware Interfaces&lt;/marquee&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Hardware interfaces are the plugs, sockets, cables and electrical signals traveling through them. Examples are USB, FireWire, Ethernet, ATA/IDE, SCSI and PCI.&lt;/p&gt;&lt;p style="COLOR: rgb(255,153,255)"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;marquee direction="right" behavior="alternate"&gt;Software/Programming Interfaces&lt;/marquee&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Software interfaces (programming interfaces) are the languages, codes and messages that programs use to communicate with each other and to the hardware. Examples are the Windows, Mac and Linux operating systems, SMTP e-mail, IP network protocols and the software drivers that activate the peripheral devices.&lt;/p&gt;&lt;p style="COLOR: rgb(255,204,255)"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;marquee behavior="alternate"&gt;User Interfaces&lt;/marquee&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;User interfaces are the keyboards, mice, commands and menus used for communication between you and the computer. Examples are the command lines in DOS and Unix, and the graphical interfaces in Windows, Mac and Linux.&lt;/p&gt;&lt;p style="FONT-WEIGHT: bold; COLOR: rgb(255,153,255)"&gt;&lt;span style="font-size:130%;"&gt;&lt;span class="shw"&gt;&lt;marquee direction="right" behavior="alternate"&gt;Format &amp;amp; Function&lt;/marquee&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Every interface implies a structure. Electrical signals are made up of voltage levels, frequencies and duration. The data passed from one device or program to another has a precise format (header, body, trailer, etc.).&lt;/p&gt;&lt;p&gt;Every interface implies a function. At the hardware level, electronic signals activate functions; data are read, written, transmitted, received, checked for error, etc. At the software level, instructions activate the hardware (access methods, data link protocols, etc.). At higher levels, the data transferred or transmitted may itself request functions to be performed (client/server, program to program, etc.).&lt;/p&gt;&lt;p style="FONT-WEIGHT: bold; COLOR: rgb(255,204,255)"&gt;&lt;span style="font-size:130%;"&gt;&lt;span class="shw"&gt;&lt;marquee behavior="alternate"&gt;Language &amp;amp; Programming&lt;/marquee&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;An interface is activated by programming language commands. The complexity of the functions and the design of the language determine how difficult it is to program.&lt;/p&gt;&lt;p style="FONT-WEIGHT: bold; COLOR: rgb(255,153,255)"&gt;&lt;span style="font-size:130%;"&gt;&lt;span class="shw"&gt;&lt;marquee direction="right" behavior="alternate"&gt;User Interface, Protocol, API and ABI&lt;/marquee&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The design of the interaction between the user and the computer is called a "user interface." The rules, formats and functions between components in a communications system or network are called "protocols." The language and message formats between routines within a program or between software components is called an "application programming interface" (API). The specification for an operating system working in a specific machine environment has been known as an "application binary interface" (ABI), but this term is not widely used.&lt;/p&gt;&lt;p&gt;All the above interactions are interfaces. Regardless of what they are called, they all create rules that must be precisely followed in a digital world.&lt;/p&gt;&lt;center&gt;&lt;table style="WIDTH: 361px; HEIGHT: 503px" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;&lt;img src="http://content.answers.com/main/content/img/CDE/INTFACE.GIF" /&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="FONT-WEIGHT: bold"&gt;&lt;td&gt;&lt;center&gt;&lt;span style="font-size:100%;"&gt;&lt;span class="shw"&gt;&lt;marquee&gt;A Whole Lot of Talking To&lt;/marquee&gt;&lt;/span&gt;&lt;/span&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;br /&gt;No matter what they're called, interfaces boil down to a format and language that defines the services one system is capable of delivering to another.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-7594219820900795756?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/7594219820900795756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=7594219820900795756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7594219820900795756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7594219820900795756'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/03/again.html' title='Again... It&apos;s Interfacing!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-5751975702153101612</id><published>2009-03-07T17:49:00.000-08:00</published><updated>2009-03-07T17:49:00.294-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>Solid state relay</title><content type='html'>&lt;span style="color:#ff99ff;"&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;       This week we just studied about the Solid state relay which plays a big role in our project(computer interfacing-"push botton").&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#ff99ff;"&gt;&lt;span style="color:#33ffff;"&gt;What is Solid state relay(SSR)?&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;Solid state relay(SSR) is an electronic switch, which, unlike an electromechanical relay, contains no moving parts. The types of SSR are photo-coupled SSR, transformer-coupled SSR, and hybrid SSR. A photo-coupled SSR is controlled by a low voltage signal which is isolated optically from the load.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#ff99ff;"&gt;&lt;span style="color:#33ffff;"&gt;Operation&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;Voltage applied to the control line of an SSR causes the LED to shine on the photo-sensitive diode. This produces a voltage between the MOSFET source and its gate, causing the MOSFET to turn on. An SSR based on a single MOSFET, or multiple MOSFETs in a paralleled array works well for DC loads.&lt;br /&gt;There is an inherent substrate diode in all MOSFETs that conducts in the reverse direction. This means that a single MOSFET can't block current in both directions. For AC (bi-directional) operation, two MOSFETs are arranged back to back with their source pins tied together. Their drain pins are connected to either side of the output. The substrate diodes then are alternately reverse biased in order to block current when the relay is off. When the relay is on, the common source is always riding on the instantaneous signal level and both gates are biased positive relative to the source by the photo-diode.&lt;br /&gt;It is common to provide access to the common source so that multiple MOSFETs can be wired in parallel if switching a DC load. There is also commonly some circuitry to discharge the gate when the LED is turned off, speeding the relay's turn-off.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-5751975702153101612?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/5751975702153101612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=5751975702153101612' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/5751975702153101612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/5751975702153101612'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/03/solid-state-relay.html' title='Solid state relay'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-4477616317859827619</id><published>2009-03-06T20:53:00.000-08:00</published><updated>2009-03-14T21:35:11.388-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>wHat do We hAve???</title><content type='html'>&lt;span style="color: rgb(255, 102, 102);"&gt;We are currently making our project regarding the topic "computer interfacing using C". In this project,some materials that we used are:::::&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;center&gt;&lt;hr /&gt;&lt;span style="color: rgb(102, 0, 204);font-size:180%;" &gt;Resistors&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;/b&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_DEwUSacjkB0/Sbx-I_01tjI/AAAAAAAAALY/NX4ihqVvXPw/s1600-h/9e5cba0c83c269f8.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 125px; height: 93px;" src="http://3.bp.blogspot.com/_DEwUSacjkB0/Sbx-I_01tjI/AAAAAAAAALY/NX4ihqVvXPw/s320/9e5cba0c83c269f8.jpg" alt="" id="BLOGGER_PHOTO_ID_5313260353427453490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 255);"&gt;A resistor is a two-terminal electronic component designed to oppose an electric current by producing a voltage drop between its terminals in proportion to the current.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 255);"&gt;Resistors are used as part of electrical networks and electronic circuits. They are extremely commonplace in most electronic equipment. Practical resistors can be made of various compounds and films, as well as resistance wire (wire made of a high-resistivity alloy, such as nickel/chrome).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;hr /&gt;&lt;span style="color: rgb(204, 51, 204);font-size:180%;" &gt;&lt;b&gt;PCB&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;br /&gt;&lt;b&gt;&lt;b&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_DEwUSacjkB0/Sbx_TNUXChI/AAAAAAAAALg/jcxTIg1cJIY/s1600-h/hh.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_DEwUSacjkB0/Sbx_TNUXChI/AAAAAAAAALg/jcxTIg1cJIY/s320/hh.jpg" alt="" id="BLOGGER_PHOTO_ID_5313261628359641618" border="0" /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/b&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;PCB is an interactive printed circuit board editor for the X11       window system.  PCB includes a rats nest feature, design rule       checking, and can provide industry standard RS-274-X (Gerber),       NC drill, and centroid data (X-Y data) output for use in the       board fabrication and assembly process.  PCB offers high end       features such as an autorouter and trace optimizer which can       tremendously reduce layout time.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;hr /&gt;&lt;span style="color: rgb(51, 51, 255);font-size:180%;" &gt;&lt;b&gt;Capacitors&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_DEwUSacjkB0/SbyAl88McaI/AAAAAAAAALo/SziQmPFf_fo/s1600-h/ggg.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 145px; height: 108px;" src="http://2.bp.blogspot.com/_DEwUSacjkB0/SbyAl88McaI/AAAAAAAAALo/SziQmPFf_fo/s320/ggg.jpg" alt="" id="BLOGGER_PHOTO_ID_5313263049892458914" border="0" /&gt;&lt;/a&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;A capacitor or condenser is a passiveelectronic component consisting of a pair of conductors separated by a dielectric. When a voltagepotential difference exists between the conductors, an electric field is present in the dielectric. This field stores energy and produces a mechanical force between the plates. The effect is greatest between wide, flat, parallel, narrowly separated conductors.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;hr /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:180%;" &gt;&lt;b&gt;Transistors&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_DEwUSacjkB0/SbyBn79rCAI/AAAAAAAAALw/veMPSGpEsy8/s1600-h/200px-Transistorer_%28croped%29.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 268px;" src="http://1.bp.blogspot.com/_DEwUSacjkB0/SbyBn79rCAI/AAAAAAAAALw/veMPSGpEsy8/s320/200px-Transistorer_%28croped%29.jpg" alt="" id="BLOGGER_PHOTO_ID_5313264183501588482" border="0" /&gt;&lt;/a&gt;&lt;span style="color: rgb(102, 255, 153);"&gt;A transistor is a semiconductor device commonly used to amplify or switch electronic signals. A transistor is made of a solid piece of a semiconductor terminals  for connection to an external circuit. A voltage or current applied to one pair of the transistor's terminals changes the current flowing through another pair of terminals.The transistor is the fundamental building block of modern electronic devices, and is used in radio, telephone, computer and other electronic systems. Some transistors are packaged individually but most are found in integrated circuits.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;hr /&gt;&lt;span style="color: rgb(51, 204, 255);font-size:180%;" &gt;&lt;b&gt;TRIAC&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_DEwUSacjkB0/SbyCn87yY6I/AAAAAAAAAL4/ncMaezUOQD8/s1600-h/180px-TRIAC_%28smial%29.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 180px; height: 138px;" src="http://4.bp.blogspot.com/_DEwUSacjkB0/SbyCn87yY6I/AAAAAAAAAL4/ncMaezUOQD8/s320/180px-TRIAC_%28smial%29.jpg" alt="" id="BLOGGER_PHOTO_ID_5313265283273745314" border="0" /&gt;&lt;/a&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;A TRIAC, or TRIode for Alternating Current is an electronic component approximately equivalent to two silicon-controlled rectifiers (SCRs/thyristors) joined in inverse parallel (paralleled but with the polarity reversed) and with their gates connected together. The formal name for a TRIAC is bidirectional triode thyristor.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;hr /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:180%;" &gt;&lt;b&gt;Heatsink&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;b&gt;&lt;b&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_DEwUSacjkB0/SbyDz_KCMWI/AAAAAAAAAMA/xtCvMrVjZ-s/s1600-h/hitsink.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 155px; height: 116px;" src="http://4.bp.blogspot.com/_DEwUSacjkB0/SbyDz_KCMWI/AAAAAAAAAMA/xtCvMrVjZ-s/s320/hitsink.jpg" alt="" id="BLOGGER_PHOTO_ID_5313266589540430178" border="0" /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;A heat sink (or heatsink) is an environment or object that absorbs and dissipates heat from another object using thermal contact (either direct or radiant). Heat sinks are used in a wide range of applications wherever efficient heat dissipation is required; major examples include refrigeration, heat engines, cooling electronic devices and lasers.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;hr /&gt;&lt;span style="color: rgb(204, 102, 0);font-size:180%;" &gt;&lt;b&gt;Drill bits&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_DEwUSacjkB0/SbyElmXv1CI/AAAAAAAAAMI/XWNLit_7hJ4/s1600-h/dril.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 116px; height: 145px;" src="http://4.bp.blogspot.com/_DEwUSacjkB0/SbyElmXv1CI/AAAAAAAAAMI/XWNLit_7hJ4/s320/dril.jpg" alt="" id="BLOGGER_PHOTO_ID_5313267441880519714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 102);"&gt;Drill bits are cutting tools used to create cylindrical holes. Bits are held in a tool called a drill, which rotates them and provides torque and axial force to create the hole. Specialized bits are also available for non-cylindrical-shaped holes.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-4477616317859827619?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/4477616317859827619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=4477616317859827619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4477616317859827619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4477616317859827619'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/03/what-do-we-have.html' title='wHat do We hAve???'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_DEwUSacjkB0/Sbx-I_01tjI/AAAAAAAAALY/NX4ihqVvXPw/s72-c/9e5cba0c83c269f8.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-4275301675090586653</id><published>2009-03-06T03:40:00.000-08:00</published><updated>2009-03-09T03:45:52.672-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>Again??? With Application???</title><content type='html'>&lt;blockquote&gt;&lt;/blockquote&gt;&lt;span style="color: rgb(255, 153, 0);font-size:180%;" &gt;&lt;/span&gt;&lt;span style="color: rgb(255, 153, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;Interface in Computer Science Field&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;b&gt;Interface&lt;/b&gt; generally refers to an &lt;a href="http://en.wikipedia.org/wiki/Abstraction_%28computer_science%29" title="Abstraction (computer science)"&gt;abstraction&lt;/a&gt; that an entity provides of itself to the outside. This separates the methods of external communication from internal operation, and allows it to be internally modified without affecting the way outside entities interact with it, as well as provide &lt;a href="http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming" title="Polymorphism in object-oriented programming"&gt;multiple abstractions&lt;/a&gt; of itself. It may also provide a means of translation between entities which do not speak the same language, such as between a human and a computer. Because interfaces are a form of &lt;a href="http://en.wikipedia.org/wiki/Indirection" title="Indirection"&gt;indirection&lt;/a&gt;, some additional overhead is incurred versus direct communication.&lt;/p&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;The interface between a human and a computer is called a &lt;a href="http://en.wikipedia.org/wiki/User_interface" title="User interface"&gt;user interface&lt;/a&gt;. Interfaces between hardware components are &lt;a href="http://en.wikipedia.org/wiki/Physical_interface" title="Physical interface" class="mw-redirect"&gt;physical interfaces&lt;/a&gt;. This article deals with &lt;i&gt;software interfaces&lt;/i&gt;, which exist between separate &lt;a href="http://en.wikipedia.org/wiki/Software_component" title="Software component" class="mw-redirect"&gt;software components&lt;/a&gt; and provide a programmatic mechanism by which these components can communicate.&lt;/p&gt;&lt;h2&gt;&lt;br /&gt;&lt;span class="mw-headline"&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style="font-weight: bold; font-style: italic; color: rgb(255, 204, 255);"&gt;&lt;span style="font-size:130%;"&gt;&lt;span class="mw-headline"&gt;Interfaces in practice&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;A piece of 'software' provides access to computer resources (such as memory, CPU, storage, etc.) by its underlying computer system; the availability of these resources to other software can have major ramifications—sometimes disastrous ones—for its functionality and stability. A key principle of design is to prohibit access to all resources by default, allowing access only through well-defined entry points, i.e. interfaces.&lt;sup class="noprint Template-Fact"&gt;&lt;span title="This claim needs references to reliable sources since January 2008" style="white-space: nowrap;"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/span&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;The types of access that interfaces provide between software components can include: &lt;a href="http://en.wikipedia.org/wiki/Constant_%28computer_science%29" title="Constant (computer science)" class="mw-redirect"&gt;constants&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Data_type" title="Data type"&gt;data types&lt;/a&gt;, types of &lt;a href="http://en.wikipedia.org/wiki/Procedure" title="Procedure"&gt;procedures&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Exception_handling" title="Exception handling"&gt;exception&lt;/a&gt; specifications and &lt;a href="http://en.wikipedia.org/wiki/Method_signature" title="Method signature"&gt;method signatures&lt;/a&gt;. In some instances, it may be useful to define &lt;a href="http://en.wikipedia.org/wiki/Variable" title="Variable"&gt;variables&lt;/a&gt; as part of the interface. It often also specifies the functionality of those procedures and methods, either by &lt;a href="http://en.wikipedia.org/wiki/Comment_%28computer_programming%29" title="Comment (computer programming)"&gt;comments&lt;/a&gt; or (in some experimental languages) by formal logical assertions.&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;The interface of a software module &lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);" class="texhtml"&gt;&lt;i&gt;A&lt;/i&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);"&gt; is deliberately kept separate from the &lt;/span&gt;&lt;i style="color: rgb(255, 255, 255);"&gt;implementation&lt;/i&gt;&lt;span style="color: rgb(255, 255, 255);"&gt; of that module. The latter contains the actual code of the procedures and methods described in the interface, as well as other "private" variables, procedures, etc.. Any other software module &lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);" class="texhtml"&gt;&lt;i&gt;B&lt;/i&gt;&lt;/span&gt; &lt;span style="color: rgb(255, 255, 255);"&gt;(which can be referred to as a&lt;/span&gt; &lt;i style="color: rgb(255, 255, 255);"&gt;client&lt;/i&gt;&lt;span style="color: rgb(255, 255, 255);"&gt; to &lt;/span&gt;&lt;i style="color: rgb(255, 255, 255);"&gt;A&lt;/i&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;) that interacts with &lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);" class="texhtml"&gt;&lt;i&gt;A&lt;/i&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);"&gt; is forced to do so &lt;/span&gt;&lt;i style="color: rgb(255, 255, 255);"&gt;only&lt;/i&gt;&lt;span style="color: rgb(255, 255, 255);"&gt; through the interface. One practical advantage of this arrangement is that replacing the implementation of &lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);" class="texhtml"&gt;&lt;i&gt;A&lt;/i&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);"&gt; by another one that meets the same specifications of the interface should not cause &lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);" class="texhtml"&gt;&lt;i&gt;B&lt;/i&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);"&gt; to fail—as long as its use of &lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);" class="texhtml"&gt;&lt;i&gt;A&lt;/i&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);"&gt; complies with the specifications of the interface&lt;/span&gt; .&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-4275301675090586653?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/4275301675090586653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=4275301675090586653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4275301675090586653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4275301675090586653'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/03/again-with-application.html' title='Again??? With Application???'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-5670249107665293689</id><published>2009-02-27T20:51:00.000-08:00</published><updated>2009-02-27T20:51:01.134-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>computer interfacing☺</title><content type='html'>&lt;div style="text-align: center; color: rgb(51, 255, 255); font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Computer Interfacing&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left; color: rgb(102, 255, 153);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:100%;"&gt;    This week we tackled about computer interfacing and the parallel printer port.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;h1 style="text-align: center; color: rgb(204, 102, 204);" align="center"&gt;&lt;span&gt;&lt;span style="font-family:Arial;font-size:180%;"&gt;The      Parallel Printer Port&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-family:Arial;font-size:100%;"&gt;The PC parallel printer      port is an interface between the computer and the printer. It is called      parallel because the data is sent in parallel or by group of bits at a time      unlike serial flow wherein data is sent one bit at a time.&lt;/span&gt;&lt;/p&gt;     &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-family:Arial;font-size:100%;"&gt;While the parallel port is      designed specifically for the printer, it can also be used as an interface      to other electronic/electrical devices.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt; &lt;a name="1"&gt;&lt;i style="color: rgb(204, 102, 204);"&gt;&lt;span style="font-size:+2;"&gt;Introduction to Parallel Ports&lt;/span&gt;&lt;/i&gt;&lt;hr /&gt;&lt;/a&gt; &lt;ul&gt;&lt;p&gt; The Parallel Port is the most commonly used port for interfacing home made projects.  This port will allow the input of up to 9 bits or the output of 12 bits at any one  given time, thus requiring minimal external circuitry to implement many simpler tasks.  The port is composed of 4 control lines, 5 status lines and 8 data lines. It's found  commonly on the back of your PC as a D-Type 25 Pin female connector. There may also be  a D-Type 25 pin male connector. This will be a serial RS-232 port and thus, is a totally  incompatible port.  &lt;/p&gt;&lt;p&gt; Newer Parallel Port’s are standardized under the IEEE 1284 standard first released in 1994. This standard defines 5 modes of operation which are as follows,  &lt;/p&gt;&lt;ul&gt;1. Compatibility Mode.&lt;br /&gt;2. Nibble Mode. (Protocol not Described in this Document)&lt;br /&gt;3. Byte Mode. (Protocol not Described in this Document)&lt;br /&gt;4. EPP Mode (Enhanced Parallel Port).&lt;br /&gt;5. ECP Mode (Extended Capabilities Mode). &lt;/ul&gt;&lt;p&gt; The aim was to design new drivers and devices which were compatible with each other and  also backwards compatible with the Standard Parallel Port (SPP). Compatibility, Nibble  &amp;amp; Byte modes use just the standard hardware available on the original Parallel Port  cards while EPP &amp;amp; ECP modes require additional hardware which can run at faster speeds,  while still being downwards compatible with the Standard Parallel Port.  &lt;/p&gt;&lt;p&gt; Compatibility mode or "Centronics Mode" as it is commonly known, can only send data in  the forward direction at a typical speed of 50 kbytes per second but can be as high as  150+ kbytes a second. In order to receive data, you must change the mode to either Nibble  or Byte mode. Nibble mode can input a nibble (4 bits) in the reverse direction. E.g. from  device to computer. Byte mode uses the Parallel's bi-directional feature (found only on  some cards) to input a byte (8 bits) of data in the reverse direction.  &lt;/p&gt; Extended and Enhanced Parallel Ports use additional hardware to generate and manage handshaking. To output a byte to a printer (or anything in that matter) using compatibility mode, the software must, &lt;ul&gt;&lt;i&gt;1. Write the byte to the Data Port.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;2. Check to see is the printer is busy. If the printer is busy, it will not accept any data, thus any data which is written will be lost.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;3. Take the Strobe (Pin 1) low. This tells the printer that there is the correct data on the data lines. (Pins 2-9)&lt;/i&gt;&lt;br /&gt;&lt;i&gt;4. Put the strobe high again after waiting approximately 5 microseconds after putting the strobe low. (Step 3)&lt;/i&gt;&lt;/ul&gt;&lt;p&gt; This limits the speed at which the port can run at. The EPP &amp;amp; ECP ports get around this by letting the hardware check to see if the printer is busy and generate a strobe and /or appropriate handshaking. This means only one I/O instruction need to be performed, thus increasing the speed. These ports can output at around 1-2 megabytes per second. The ECP port also has the advantage of using DMA channels and FIFO buffers, thus data can be shifted around without using I/O instructions. &lt;/p&gt;&lt;/ul&gt; &lt;a name="2"&gt;&lt;i style="color: rgb(204, 102, 204);"&gt;&lt;span style="font-size:+2;"&gt;Hardware Properties&lt;/span&gt;&lt;/i&gt;&lt;hr /&gt;&lt;/a&gt; &lt;ul&gt;&lt;p&gt; Below is a table of the "Pin Outs" of the D-Type 25 Pin connector and the Centronics 34 Pin connector. The D-Type 25 pin connector is the most common connector found on the Parallel Port of the computer, while the Centronics Connector is commonly found on printers. The IEEE 1284 standard however specifies 3 different connectors for use with the Parallel Port. The first one, 1284 Type A is the D-Type 25 connector found on the back of most computers. The 2nd is the 1284 Type B which is the 36 pin Centronics Connector found on most printers. &lt;/p&gt;&lt;p&gt; IEEE 1284 Type C however, is a 36 conductor connector like the Centronics, but smaller. This connector is claimed to have a better clip latch, better electrical properties and is easier to assemble. It also contains two more pins for signals which can be used to see whether the other device connected, has power. 1284 Type C connectors are recommended for new designs, so we can look forward on seeing these new connectors in the near future. &lt;/p&gt;&lt;center&gt; &lt;table border="1" width="75%"&gt; &lt;tbody&gt;&lt;tr&gt;&lt;td style="color: rgb(255, 153, 255);" width="20%"&gt;&lt;center&gt;&lt;b&gt;Pin No (D-Type  25)&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;&lt;td style="color: rgb(255, 153, 255);" width="20%"&gt;&lt;center&gt;&lt;b&gt;Pin No (Centronics)&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;&lt;td style="color: rgb(255, 153, 255);" width="25%"&gt;&lt;center&gt;&lt;b&gt;SPP Signal&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;&lt;td style="color: rgb(255, 153, 255);" width="10%"&gt;&lt;center&gt;&lt;b&gt;Direction In/out&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;&lt;td style="color: rgb(255, 153, 255);" width="10%"&gt;&lt;center&gt;&lt;b&gt;Register&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;&lt;td style="color: rgb(255, 153, 255);" width="15%"&gt;&lt;center&gt;&lt;b&gt;Hardware Inverted&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;1&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;1&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;nStrobe&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;In/Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Control&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Yes&lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;2&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;2&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data 0&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;3&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;3&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data 1&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;4&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;4&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data 2&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;5&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;5&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data 3&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;6&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;6&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data 4&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;7&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;7&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data 5&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;8&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;8&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data 6&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;9&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;9&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data 7&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Data&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;10&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;10&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;nAck&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;In&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Status&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;11&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;11&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Busy&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;In&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Status&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Yes&lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;12&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;12&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Paper-Out / Paper-End&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;In&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Status&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;13&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;13&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Select&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;In&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Status&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;14&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;14&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;nAuto-Linefeed&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;In/Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Control&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Yes&lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;15&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;32&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;nError / nFault&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;In&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Status&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;16&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;31&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;nInitialize&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;In/Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Control&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;17&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;36&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;nSelect-Printer / nSelect-In&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;In/Out&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Control&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Yes&lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;18 - 25&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;19-30&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Ground&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt;Gnd&lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt;     &lt;td style="color: rgb(255, 204, 255);"&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;center&gt;&lt;span style="font-size:-1;"&gt;Table 1. Pin Assignments of the D-Type 25 pin Parallel Port Connector.&lt;/span&gt;&lt;/center&gt;&lt;p&gt; The above table uses "n" in front of the signal name to denote that the signal is active low. e.g. nError. If the printer has occurred an error then this line is low. This line normally is high, should the printer be functioning correctly. The "Hardware Inverted" means the signal is inverted by the Parallel card's hardware. Such an example is the Busy line. If +5v (Logic 1) was applied to this pin and the status register read, it would return back a 0 in Bit 7 of the Status Register. &lt;/p&gt;&lt;p&gt; The output of the Parallel Port is normally TTL logic levels. The voltage levels are the easy part. The current you can sink and source varies from port to port. Most Parallel Ports implemented in ASIC, can sink and source around 12mA. However these are just some of the figures taken from Data sheets, Sink/Source 6mA, Source 12mA/Sink 20mA, Sink 16mA/Source 4mA, Sink/Source 12mA. As you can see they vary quite a bit. The best bet is to use a buffer, so the least current is drawn from the Parallel Port. &lt;/p&gt;&lt;/ul&gt;     &lt;h1 align="center"&gt;&lt;br /&gt;&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-5670249107665293689?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/5670249107665293689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=5670249107665293689' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/5670249107665293689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/5670249107665293689'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/computer-interfacing.html' title='computer interfacing☺'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-1661973686046771504</id><published>2009-02-27T20:28:00.000-08:00</published><updated>2009-03-14T20:52:06.371-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>wHats nEwWw????..hhhHHHmmmMMM</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_DEwUSacjkB0/Sbx6wDKMjZI/AAAAAAAAALQ/KDs70XAQbYQ/s1600-h/502f303735303633363337382e30312e5f53434d5a5a5a5a5a5a5a5f.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 124px; height: 160px;" src="http://3.bp.blogspot.com/_DEwUSacjkB0/Sbx6wDKMjZI/AAAAAAAAALQ/KDs70XAQbYQ/s320/502f303735303633363337382e30312e5f53434d5a5a5a5a5a5a5a5f.jpg" alt="" id="BLOGGER_PHOTO_ID_5313256626290724242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;center style="color: rgb(255, 204, 0);"&gt;&lt;span style="font-size:180%;"&gt;&lt;u&gt;&lt;hr /&gt;Computer Interfacing&lt;/u&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);font-family:arial;" &gt;The art of connecting computers and peripherals. In a lot of circumstances, it looks more like magic than art. It is not uncommon that you end up removing all unnecessary hardware from your computer to get that communication device to work. Despite all plug-and-play internal hardware solutions for the PC, connecting a number of external devices still requires some amount of technical knowledge and experience.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;center style="color: rgb(102, 51, 255);"&gt;&lt;span style="font-size:180%;"&gt;&lt;u&gt;&lt;hr /&gt;Cable information&lt;/u&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 255);"&gt;In computer interfacing it is often difficult to find the right cable for a specific purpose. Although the USB interface tries to solve this problem, there are many situations where you need to search for the right cable. This can be the case when you need a RS-232 or parallel cable to connect a device to your computer. There is also information about modular cables and cables for connecting PLC's if you happen to work in the industrial automation business.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;center style="color: rgb(51, 204, 0);"&gt;&lt;span style="font-size:180%;"&gt;&lt;u&gt;&lt;hr /&gt;General interfacing information&lt;/u&gt;&lt;/span&gt;&lt;/center&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 153);"&gt;Interfacing is not just about cables. In a lot of circumstances you need also background information, to select the right null modem cable for example. These pages contain detailed—yet readable—information about RS-232, RS-422, RS-423, RS-485, USB and how interfacing in the PC is organized using I/O ports and interrupts and UART's. Also ASCII is covered. After all this standard made computer interfacing possible in the first place.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-1661973686046771504?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/1661973686046771504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=1661973686046771504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/1661973686046771504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/1661973686046771504'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/whats-newwwhhhhhhmmmmmm.html' title='wHats nEwWw????..hhhHHHmmmMMM'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_DEwUSacjkB0/Sbx6wDKMjZI/AAAAAAAAALQ/KDs70XAQbYQ/s72-c/502f303735303633363337382e30312e5f53434d5a5a5a5a5a5a5a5f.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-7229277440478246980</id><published>2009-02-27T17:25:00.000-08:00</published><updated>2009-03-09T04:02:05.122-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>Crime Scene Investigation??? Haha!!!</title><content type='html'>&lt;marquee direction="right"&gt;&lt;h1 style="font-family: arial; font-style: italic; color: rgb(255, 102, 0);" id="firstHeading" class="firstHeading"&gt;C&lt;span style="color: rgb(255, 255, 51);"&gt;a&lt;/span&gt;s&lt;span style="color: rgb(255, 255, 51);"&gt;c&lt;/span&gt;a&lt;span style="color: rgb(255, 255, 51);"&gt;d&lt;/span&gt;i&lt;span style="color: rgb(255, 255, 0);"&gt;n&lt;/span&gt;g &lt;span style="color: rgb(51, 204, 0);"&gt;S&lt;/span&gt;&lt;span style="color: rgb(153, 255, 153);"&gt;t&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;y&lt;/span&gt;&lt;span style="color: rgb(153, 255, 153);"&gt;l&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;e&lt;/span&gt; &lt;span style="color: rgb(255, 204, 204);"&gt;S&lt;/span&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;h&lt;/span&gt;&lt;span style="color: rgb(255, 204, 204);"&gt;e&lt;/span&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;e&lt;/span&gt;&lt;span style="color: rgb(255, 204, 204);"&gt;t&lt;/span&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;s&lt;/span&gt;&lt;/h1&gt;&lt;/marquee&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;&lt;marquee&gt;Cascading Style Sheets&lt;/marquee&gt;&lt;/b&gt; (&lt;b&gt;CSS&lt;/b&gt;) is a &lt;a href="http://en.wikipedia.org/wiki/Stylesheet_language" title="Stylesheet language" class="mw-redirect"&gt;stylesheet language&lt;/a&gt; used to describe the presentation of a document written in a &lt;a href="http://en.wikipedia.org/wiki/Markup_language" title="Markup language"&gt;markup language&lt;/a&gt;. Its most common application is to style &lt;a href="http://en.wikipedia.org/wiki/Web_page" title="Web page"&gt;web pages&lt;/a&gt; written in &lt;a href="http://en.wikipedia.org/wiki/HTML" title="HTML"&gt;HTML&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/XHTML" title="XHTML"&gt;XHTML&lt;/a&gt;, but the language can be applied to any kind of &lt;a href="http://en.wikipedia.org/wiki/XML" title="XML"&gt;XML&lt;/a&gt; document, including &lt;a href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics" title="Scalable Vector Graphics"&gt;SVG&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/XUL" title="XUL"&gt;XUL&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;CSS can be used locally by the readers of web pages to define &lt;a href="http://en.wikipedia.org/wiki/Color" title="Color"&gt;colors&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Typeface" title="Typeface"&gt;fonts&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Layout" title="Layout"&gt;layout&lt;/a&gt;, and other aspects of document presentation. It is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation (written in CSS). This separation can improve content &lt;a href="http://en.wikipedia.org/wiki/Accessibility" title="Accessibility"&gt;accessibility&lt;/a&gt;, provide more flexibility and control in the specification of presentation characteristics, and reduce complexity and repetition in the structural content (such as by allowing for &lt;a href="http://en.wikipedia.org/wiki/Tableless_web_design" title="Tableless web design"&gt;tableless web design&lt;/a&gt;). CSS can also allow the same markup page to be presented in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or &lt;a href="http://en.wikipedia.org/wiki/Screen_reader" title="Screen reader"&gt;screen reader&lt;/a&gt;) and on &lt;a href="http://en.wikipedia.org/wiki/Braille" title="Braille"&gt;Braille&lt;/a&gt;-based, &lt;a href="http://en.wikipedia.org/wiki/Tactile" title="Tactile" class="mw-redirect"&gt;tactile&lt;/a&gt; devices. CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called &lt;i&gt;cascade&lt;/i&gt;, priorities or &lt;i&gt;weights&lt;/i&gt; are calculated and assigned to rules, so that the results are predictable.&lt;/p&gt; &lt;p&gt;The CSS specifications are maintained by the &lt;a href="http://en.wikipedia.org/wiki/World_Wide_Web_Consortium" title="World Wide Web Consortium"&gt;World Wide Web Consortium&lt;/a&gt; (W3C). Internet media type (&lt;a href="http://en.wikipedia.org/wiki/MIME#Content-Type" title="MIME"&gt;MIME type&lt;/a&gt;) &lt;code&gt;text/css&lt;/code&gt; is registered for use with CSS by &lt;a href="http://tools.ietf.org/html/rfc2318" class="external" title="http://tools.ietf.org/html/rfc2318"&gt;RFC 2318&lt;/a&gt; (March 1998).&lt;/p&gt;&lt;h2 style="font-family: trebuchet ms; color: rgb(255, 204, 255);"&gt;&lt;span class="mw-headline"&gt;Syntax&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;CSS has a simple &lt;a href="http://en.wikipedia.org/wiki/Syntax" title="Syntax"&gt;syntax&lt;/a&gt;, and uses a number of English keywords to specify the names of various style properties.&lt;/p&gt; &lt;p&gt;A style sheet consists of a list of &lt;i&gt;rules&lt;/i&gt;. Each rule or rule-set consists of one or more &lt;i&gt;selectors&lt;/i&gt; and a &lt;i&gt;declaration block&lt;/i&gt;. A declaration-block consists of a list of semicolon-separated &lt;i&gt;declarations&lt;/i&gt; in braces. Each declaration itself consists of a &lt;i&gt;property&lt;/i&gt;, a colon (&lt;code&gt;:&lt;/code&gt;), a &lt;i&gt;value&lt;/i&gt;, then a semi-colon (&lt;code&gt;;&lt;/code&gt;).&lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-0" title=""&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;In CSS, &lt;i&gt;selectors&lt;/i&gt; are used to declare which elements a style applies to, a kind of match expression. Selectors may apply to all elements of a specific type, or only those elements which match a certain attribute; elements may be matched depending on how they are placed relative to each other in the markup code, or on how they are nested within the &lt;a href="http://en.wikipedia.org/wiki/Document_object_model" title="Document object model" class="mw-redirect"&gt;document object model&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;In addition to these, a set of &lt;i&gt;pseudo-classes&lt;/i&gt; can be used to define further behavior. Probably the best-known of these is &lt;code&gt;:hover&lt;/code&gt;, which applies a style only when the user 'points to' the visible element, usually by holding the mouse cursor over it. It is appended to a selector as in &lt;code&gt;a:hover&lt;/code&gt; or &lt;code&gt;#elementid:hover&lt;/code&gt;. Other pseudo-classes and &lt;i&gt;pseudo-elements&lt;/i&gt; are, for example, &lt;code&gt;:first-line&lt;/code&gt;, &lt;code&gt;:visited&lt;/code&gt; or &lt;code&gt;:before&lt;/code&gt;. A special pseudo-class is &lt;code&gt;:lang(c)&lt;/code&gt;, "c".&lt;/p&gt; &lt;p&gt;A &lt;i&gt;pseudo-class&lt;/i&gt; selects entire elements, such as &lt;code&gt;:link&lt;/code&gt; or &lt;code&gt;:visited&lt;/code&gt;, whereas a &lt;i&gt;pseudo-element&lt;/i&gt; makes a selection that may consist of partial elements, such as &lt;code&gt;:first-line&lt;/code&gt; or &lt;code&gt;:first-letter&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Selectors may be combined in other ways too, especially in CSS 2.1, to achieve greater specificity and flexibility.&lt;sup id="cite_ref-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-1" title=""&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&lt;h3 style="font-family: trebuchet ms; color: rgb(255, 204, 255);"&gt;&lt;span class="mw-headline"&gt;Use of CSS&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;Prior to CSS, nearly all of the presentational attributes of HTML documents were contained within the HTML markup; all font colors, background styles, element alignments, borders and sizes had to be explicitly described, often repeatedly, within the HTML. CSS allows authors to move much of that information to a separate stylesheet resulting in considerably simpler HTML markup.&lt;/p&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Heading" title="Heading"&gt;Headings&lt;/a&gt; (&lt;code&gt;h1&lt;/code&gt; elements), sub-headings (&lt;code&gt;h2&lt;/code&gt;), sub-sub-headings (&lt;code&gt;h3&lt;/code&gt;), etc., are defined structurally using HTML. In print and on the screen, choice of &lt;a href="http://en.wikipedia.org/wiki/Typeface" title="Typeface"&gt;font&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Point_%28typography%29" title="Point (typography)"&gt;size&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Color" title="Color"&gt;color&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Emphasis_%28typography%29" title="Emphasis (typography)"&gt;emphasis&lt;/a&gt; for these elements is &lt;i&gt;presentational&lt;/i&gt;.&lt;/p&gt; &lt;p&gt;Prior to CSS, document authors who wanted to assign such &lt;a href="http://en.wikipedia.org/wiki/Typography" title="Typography"&gt;typographic&lt;/a&gt; characteristics to, say, all &lt;code&gt;h2&lt;/code&gt; headings had to use the HTML &lt;code&gt;font&lt;/code&gt; and other presentational elements for each occurrence of that heading type. The additional presentational markup in the HTML made documents more complex, and generally more difficult to maintain. In CSS, presentation is separated from structure. In print, CSS can define color, font, text alignment, size, borders, spacing, layout and many other typographic characteristics. It can do so independently for on-screen and printed views. CSS also defines non-visual styles such as the speed and emphasis with which text is read out by aural text readers. The &lt;a href="http://en.wikipedia.org/wiki/W3C" title="W3C" class="mw-redirect"&gt;W3C&lt;/a&gt; now considers the advantages of CSS for defining all aspects of the presentation of HTML pages to be superior to other methods. It has therefore &lt;a href="http://en.wikipedia.org/wiki/Deprecation" title="Deprecation"&gt;deprecated&lt;/a&gt; the use of all the original presentational HTML markup.&lt;/p&gt; &lt;p&gt;&lt;a name="Sources" id="Sources"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="font-family: trebuchet ms; color: rgb(255, 204, 255);" class="mw-headline"&gt;Sources&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;CSS information can be provided by various sources. CSS style information can be either attached as a separate document or embedded in the HTML document. Multiple style sheets can be imported. Different styles can be applied depending on the output device being used; for example, the screen version can be quite different from the printed version, so that authors can tailor the presentation appropriately for each medium.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Author styles (style information provided by the web page author), in the form of &lt;ul&gt;&lt;li&gt;external stylesheets, i.e. a separate CSS-file referenced from the document&lt;/li&gt;&lt;li&gt;embedded style, blocks of CSS information inside the HTML document itself&lt;/li&gt;&lt;li&gt;inline styles, inside the HTML document, style information on a single element, specified using the "style" attribute.&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;User style &lt;ul&gt;&lt;li&gt;a local CSS-file specified by the user using options in the web browser, and acting as an override, to be applied to all documents.&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/User_agent" title="User agent"&gt;User agent&lt;/a&gt; style &lt;ul&gt;&lt;li&gt;the default style sheet applied by the user agent, e.g. the browser's default presentation of elements.&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;One of the goals of CSS is also to allow &lt;i&gt;users&lt;/i&gt; a greater degree of control over presentation; those who find the red italic headings difficult to read may apply other style sheets to the document. Depending on their browser and the web site, a user may choose from various stylesheets provided by the designers, may remove all added style and view the site using their browser's default styling or may perhaps override just the red italic heading style without altering other attributes.&lt;/p&gt; &lt;p&gt;File &lt;tt&gt;highlightheaders.css&lt;/tt&gt; containing:&lt;/p&gt; &lt;div dir="ltr" style="text-align: left;"&gt; &lt;pre class="source-css"&gt;h1 &lt;span class="br0"&gt;{&lt;/span&gt; &lt;span class="kw1"&gt;color&lt;/span&gt;: &lt;span class="kw2"&gt;white&lt;/span&gt;; &lt;span class="kw1"&gt;background&lt;/span&gt;: orange !important; &lt;span class="br0"&gt;}&lt;/span&gt;&lt;br /&gt;h2 &lt;span class="br0"&gt;{&lt;/span&gt; &lt;span class="kw1"&gt;color&lt;/span&gt;: &lt;span class="kw2"&gt;white&lt;/span&gt;; &lt;span class="kw1"&gt;background&lt;/span&gt;: &lt;span class="kw2"&gt;green&lt;/span&gt; !important; &lt;span class="br0"&gt;}&lt;/span&gt; &lt;/pre&gt;&lt;/div&gt; &lt;p&gt;Such a file is stored locally and is applicable if that has been specified in the browser options. "!important" means that it prevails over the author specifications.&lt;/p&gt; &lt;p&gt;&lt;a name="History" id="History"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="font-family: trebuchet ms; color: rgb(255, 204, 255);" class="mw-headline"&gt;History&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Style sheets have existed in one form or another since the beginnings of &lt;a href="http://en.wikipedia.org/wiki/SGML" title="SGML" class="mw-redirect"&gt;SGML&lt;/a&gt; in the 1970s. Cascading Style Sheets were developed as a means for creating a consistent approach to providing style information for web documents.&lt;/p&gt; &lt;p&gt;As HTML grew, it came to encompass a wider variety of stylistic capabilities to meet the demands of &lt;a href="http://en.wikipedia.org/wiki/Web_development" title="Web development"&gt;web developers&lt;/a&gt;. This evolution gave the designer more control over site appearance but at the cost of HTML becoming more complex to write and maintain. Variations in &lt;a href="http://en.wikipedia.org/wiki/Web_browser" title="Web browser"&gt;web browser&lt;/a&gt; implementations made consistent site appearance difficult, and users had less control over how web content was displayed.&lt;/p&gt; &lt;p&gt;To improve the capabilities of web presentation, nine different style sheet languages were proposed to the W3C's www-style mailing list. Of the nine proposals, two were chosen as the foundation for what became CSS: &lt;i&gt;Cascading HTML Style Sheets&lt;/i&gt; (CHSS) and &lt;i&gt;Stream-based Style Sheet Proposal&lt;/i&gt; (SSP). First, &lt;a href="http://en.wikipedia.org/wiki/H%C3%A5kon_Wium_Lie" title="Håkon Wium Lie"&gt;Håkon Wium Lie&lt;/a&gt; (now the &lt;a href="http://en.wikipedia.org/wiki/Chief_Technical_Officer" title="Chief Technical Officer" class="mw-redirect"&gt;CTO&lt;/a&gt; of &lt;a href="http://en.wikipedia.org/wiki/Opera_Software" title="Opera Software"&gt;Opera Software&lt;/a&gt;) proposed Cascading HTML Style Sheets (CHSS) in October 1994, a language which has some resemblance to today's CSS. &lt;a href="http://en.wikipedia.org/wiki/Bert_Bos" title="Bert Bos"&gt;Bert Bos&lt;/a&gt; was working on a browser called &lt;a href="http://en.wikipedia.org/wiki/Argo_%28web_browser%29" title="Argo (web browser)"&gt;Argo&lt;/a&gt; which used its own style sheet language, Stream-based Style Sheet Proposal (SSP). Lie and Bos worked together to develop the CSS standard (the 'H' was removed from the name because these style sheets could be applied to other markup languages besides HTML).&lt;/p&gt; &lt;p&gt;Unlike existing style languages like &lt;a href="http://en.wikipedia.org/wiki/Document_Style_Semantics_and_Specification_Language" title="Document Style Semantics and Specification Language"&gt;DSSSL&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/FOSI" title="FOSI"&gt;FOSI&lt;/a&gt;, CSS allowed a document's style to be influenced by multiple style sheets. One style sheet could &lt;a href="http://en.wikipedia.org/wiki/Inheritance_%28computer_science%29" title="Inheritance (computer science)"&gt;inherit&lt;/a&gt; or "cascade" from another, permitting a mixture of stylistic preferences controlled equally by the site designer and user.&lt;/p&gt; &lt;p&gt;Håkon's proposal was presented at the "Mosaic and the Web" conference in &lt;a href="http://en.wikipedia.org/wiki/Chicago,_Illinois" title="Chicago, Illinois" class="mw-redirect"&gt;Chicago, Illinois&lt;/a&gt; in 1994, and again with Bert Bos in 1995. Around this time, the &lt;a href="http://en.wikipedia.org/wiki/World_Wide_Web_Consortium" title="World Wide Web Consortium"&gt;World Wide Web Consortium&lt;/a&gt; was being established; the W3C took an interest in the development of CSS, and it organized a workshop toward that end chaired by &lt;a href="http://en.wikipedia.org/wiki/Steven_Pemberton" title="Steven Pemberton"&gt;Steven Pemberton&lt;/a&gt;. This resulted in W3C adding work on CSS to the deliverables of the HTML editorial review board (ERB). Håkon and Bert were the primary technical staff on this aspect of the project, with additional members, including Thomas Reardon of &lt;a href="http://en.wikipedia.org/wiki/Microsoft" title="Microsoft"&gt;Microsoft&lt;/a&gt;, participating as well. By the end of 1996, CSS was ready to become official, and the CSS level 1 Recommendation was published in December.&lt;/p&gt; &lt;p&gt;Development of HTML, CSS, and the &lt;a href="http://en.wikipedia.org/wiki/Document_Object_Model" title="Document Object Model"&gt;DOM&lt;/a&gt; had all been taking place in one group, the HTML Editorial Review Board (ERB). Early in 1997, the ERB was split into three &lt;a href="http://en.wikipedia.org/wiki/Working_group" title="Working group"&gt;working groups&lt;/a&gt;: HTML Working group, chaired by &lt;a href="http://en.wikipedia.org/wiki/Dan_Connolly" title="Dan Connolly"&gt;Dan Connolly&lt;/a&gt; of W3C; DOM Working group, chaired by Lauren Wood of &lt;a href="http://en.wikipedia.org/wiki/SoftQuad" title="SoftQuad" class="mw-redirect"&gt;SoftQuad&lt;/a&gt;; and CSS Working group, chaired by &lt;a href="http://en.wikipedia.org/wiki/Chris_Lilley_%28W3C%29" title="Chris Lilley (W3C)"&gt;Chris Lilley&lt;/a&gt; of W3C.&lt;/p&gt; &lt;p&gt;The CSS Working Group began tackling issues that had not been addressed with CSS level 1, resulting in the creation of CSS level 2 on November 4, 1997. It was published as a W3C Recommendation on May 12, 1998. CSS level 3, which was started in 1998, is still under development as of 2009.&lt;/p&gt; &lt;p&gt;In 2005 the CSS Working Groups decided to enforce the requirements for standards more strictly. This meant that already published standards like CSS 2.1, CSS 3 Selectors and CSS 3 Text were pulled back from Candidate Recommendation to Working Draft level.&lt;/p&gt; &lt;p&gt;&lt;a name="Difficulty_with_adoption" id="Difficulty_with_adoption"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="font-family: trebuchet ms; color: rgb(255, 204, 255);" class="mw-headline"&gt;Difficulty with adoption&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;Although the CSS1 specification was completed in 1996 and Microsoft's &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_3" title="Internet Explorer 3"&gt;Internet Explorer 3&lt;/a&gt; was released in that year featuring some limited support for CSS, it would be more than three years before any web browser achieved near-full implementation of the specification. &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_5" title="Internet Explorer 5"&gt;Internet Explorer 5.0&lt;/a&gt; for the &lt;a href="http://en.wikipedia.org/wiki/Apple_Macintosh" title="Apple Macintosh" class="mw-redirect"&gt;Macintosh&lt;/a&gt;, shipped in March 2000, was the first browser to have full (better than 99 percent) CSS1 support&lt;sup class="noprint Template-Fact"&gt;&lt;span title="This claim needs references to reliable sources since June 2008" style="white-space: nowrap;"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/span&gt;&lt;/sup&gt;, surpassing &lt;a href="http://en.wikipedia.org/wiki/Opera_%28web_browser%29" title="Opera (web browser)"&gt;Opera&lt;/a&gt;, which had been the leader since its introduction of CSS support 15 months earlier. Other browsers followed soon afterwards, and many of them additionally implemented parts of CSS2. As of July 2008&lt;sup class="plainlinks asof-tag update" style="display: none;"&gt;&lt;a href="http://en.wikipedia.org/w/index.php?title=Cascading_Style_Sheets&amp;amp;action=edit" class="external text" title="http://en.wikipedia.org/w/index.php?title=Cascading_Style_Sheets&amp;amp;action=edit" rel="nofollow"&gt;[update]&lt;/a&gt;&lt;/sup&gt;, no (finished) browser has fully implemented CSS2, with implementation levels varying (see &lt;a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28CSS%29" title="Comparison of layout engines (CSS)" class="mw-redirect"&gt;Comparison of layout engines (CSS)&lt;/a&gt;).&lt;/p&gt; &lt;p&gt;Even though early browsers such as &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_3" title="Internet Explorer 3"&gt;Internet Explorer 3&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_4" title="Internet Explorer 4"&gt;4&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Netscape_Navigator" title="Netscape Navigator"&gt;Netscape 4.x&lt;/a&gt; had support for CSS, it was typically incomplete and afflicted with serious &lt;a href="http://en.wikipedia.org/wiki/Software_bug" title="Software bug"&gt;bugs&lt;/a&gt;. This was a serious obstacle for the adoption of CSS.&lt;/p&gt; &lt;p&gt;When later 'version 5' browsers began to offer a fairly full implementation of CSS, they were still incorrect in certain areas and were fraught with inconsistencies, bugs and other quirks. The proliferation of such CSS-related inconsistencies and even the variation in feature support has made it difficult for designers to achieve a consistent appearance across platforms. Some authors commonly resort to using some &lt;a href="http://en.wikipedia.org/wiki/Workaround" title="Workaround"&gt;workarounds&lt;/a&gt; such as CSS hacks and &lt;a href="http://en.wikipedia.org/wiki/CSS_filter" title="CSS filter"&gt;CSS filters&lt;/a&gt; in order to obtain consistent results across web browsers and &lt;a href="http://en.wikipedia.org/wiki/System_platform" title="System platform" class="mw-redirect"&gt;platforms&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Problems with browsers' patchy adoption of CSS along with errata in the original specification led the W3C to revise the CSS2 standard into CSS2.1, which may be regarded as something nearer to a working snapshot of current CSS support in HTML browsers. Some CSS2 properties which no browser had successfully implemented were dropped, and in a few cases, defined behaviours were changed to bring the standard into line with the predominant existing implementations. CSS2.1 became a Candidate Recommendation on February 25, 2004, but CSS2.1 was pulled back to Working Draft status on June 13, 2005,&lt;sup id="cite_ref-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-2" title=""&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; and only returned to Candidate Recommendation status on July 19, 2007.&lt;sup id="cite_ref-3" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-3" title=""&gt;&lt;span&gt;[&lt;/span&gt;4&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;In the past, some web servers were configured to serve all documents with the filename extension &lt;code&gt;.css&lt;/code&gt; as mime type &lt;code&gt;application/x-pointplus&lt;/code&gt; rather than &lt;code&gt;text/css&lt;/code&gt;. At the time, the Net-Scene company was selling PointPlus Maker to convert &lt;a href="http://en.wikipedia.org/wiki/Microsoft_PowerPoint" title="Microsoft PowerPoint"&gt;PowerPoint&lt;/a&gt; files into Compact Slide Show files (using a &lt;code&gt;.css&lt;/code&gt; extension).&lt;sup class="noprint Template-Fact"&gt;&lt;span title="This claim needs references to reliable sources since July 2008" style="white-space: nowrap;"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/span&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;&lt;a name="Variations" id="Variations"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="font-family: trebuchet ms; color: rgb(255, 204, 255);" class="mw-headline"&gt;Variations&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;CSS has various levels and profiles. Each level of CSS builds upon the last, typically adding new features and typically denoted as CSS1, CSS2, and CSS3. Profiles are typically a subset of one or more levels of CSS built for a particular device or user interface. Currently there are profiles for mobile devices, printers, and television sets. Profiles should not be confused with media types which were added in CSS2.&lt;/p&gt; &lt;p&gt;&lt;a name="CSS_1" id="CSS_1"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="font-family: verdana; color: rgb(255, 255, 102);" class="mw-headline"&gt;CSS 1&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;The first CSS specification to become an official W3C Recommendation is CSS level 1, published in December 1996.&lt;sup id="cite_ref-4" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-4" title=""&gt;&lt;span&gt;[&lt;/span&gt;5&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Among its capabilities are support for:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Typeface" title="Typeface"&gt;Font&lt;/a&gt; properties such as typeface and emphasis&lt;/li&gt;&lt;li&gt;Color of text, backgrounds, and other elements&lt;/li&gt;&lt;li&gt;Text attributes such as spacing between words, letters, and lines of text&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Alignment_%28typesetting%29" title="Alignment (typesetting)" class="mw-redirect"&gt;Alignment&lt;/a&gt; of text, images, &lt;a href="http://en.wikipedia.org/wiki/Table_%28HTML%29" title="Table (HTML)" class="mw-redirect"&gt;tables&lt;/a&gt; and other elements&lt;/li&gt;&lt;li&gt;Margin, border, padding, and positioning for most elements&lt;/li&gt;&lt;li&gt;Unique identification and generic classification of groups of attributes&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The W3C maintains the CSS1 Recommendation.&lt;sup id="cite_ref-5" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-5" title=""&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;&lt;a name="CSS_2" id="CSS_2"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 153);" class="mw-headline"&gt;CSS 2&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;CSS level 2 was developed by the W3C and published as a Recommendation in May 1998. A superset of CSS1, CSS2 includes a number of new capabilities like absolute, relative, and fixed &lt;a href="http://en.wikipedia.org/wiki/Positioning" title="Positioning"&gt;positioning&lt;/a&gt; of elements, the concept of media types, support for aural style sheets and bidirectional text, and new font properties such as shadows. The W3C maintains the CSS2 Recommendation.&lt;sup id="cite_ref-6" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-6" title=""&gt;&lt;span&gt;[&lt;/span&gt;7&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;CSS level 2 revision 1 or CSS 2.1 fixes errors in CSS2, removes poorly-supported features and adds already-implemented browser extensions to the specification. While it was a &lt;a href="http://www.w3.org/TR/CSS21/" class="external text" title="http://www.w3.org/TR/CSS21/" rel="nofollow"&gt;Candidate Recommendation&lt;/a&gt; for several months, on June 15, 2005 it was reverted to a working draft for further review.&lt;sup id="cite_ref-7" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-7" title=""&gt;&lt;span&gt;[&lt;/span&gt;8&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; It was returned to Candidate Recommendation status on 19 July 2007.&lt;/p&gt; &lt;p&gt;&lt;a name="CSS_3" id="CSS_3"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 153);" class="mw-headline"&gt;CSS 3&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;CSS level 3 is currently under &lt;a href="http://en.wikipedia.org/wiki/Software_development_process" title="Software development process"&gt;development&lt;/a&gt;.&lt;sup id="cite_ref-8" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-8" title=""&gt;&lt;span&gt;[&lt;/span&gt;9&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The W3C maintains a &lt;a href="http://www.w3.org/Style/CSS/current-work#table" class="external text" title="http://www.w3.org/Style/CSS/current-work#table" rel="nofollow"&gt;CSS3 progress report&lt;/a&gt;. CSS3 is modularized and will consist of several separate Recommendations. The W3C CSS3 Roadmap provides a summary and introduction.&lt;sup id="cite_ref-9" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-9" title=""&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;&lt;a name="Browser_support" id="Browser_support"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="font-family: trebuchet ms; color: rgb(255, 204, 255);" class="mw-headline"&gt;Browser support&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;A &lt;b&gt;CSS filter&lt;/b&gt;&lt;sup id="cite_ref-10" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-10" title=""&gt;&lt;span&gt;[&lt;/span&gt;11&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; is a coding technique that aims to effectively hide or show parts of the CSS to different browsers, either by exploiting CSS-&lt;a href="http://en.wikipedia.org/wiki/Parsing" title="Parsing"&gt;handling&lt;/a&gt; quirks or bugs in the browser, or by taking advantage of lack of support for parts of the CSS specifications. Using CSS filters, some designers have gone as far as delivering entirely different CSS to certain browsers in order to ensure that designs are rendered as expected. Because very early web browsers were either completely incapable of handling CSS, or render CSS very poorly, designers today often routinely use CSS filters that completely prevent these browsers from accessing any of the CSS. &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer" title="Internet Explorer"&gt;Internet Explorer&lt;/a&gt; support for CSS began with &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_3" title="Internet Explorer 3"&gt;IE 3.0&lt;/a&gt; and increased progressively with each version. By 2008, the first Beta of &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_8" title="Internet Explorer 8"&gt;Internet Explorer 8&lt;/a&gt; offered support for CSS 2.1 in its best web standards mode.&lt;/p&gt; &lt;p&gt;An example of a well-known CSS browser bug is the &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug" title="Internet Explorer box model bug"&gt;Internet Explorer box model bug&lt;/a&gt;, where box widths are interpreted incorrectly in several versions of the browser, resulting in blocks which are too narrow when viewed in Internet Explorer, but correct in standards-compliant browsers. The bug can be avoided in &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_6" title="Internet Explorer 6"&gt;Internet Explorer 6&lt;/a&gt; by using the correct &lt;a href="http://en.wikipedia.org/wiki/Doctype" title="Doctype" class="mw-redirect"&gt;doctype&lt;/a&gt; in (X)HTML documents. CSS hacks and &lt;a href="http://en.wikipedia.org/wiki/CSS_filter" title="CSS filter"&gt;CSS filters&lt;/a&gt; are used to compensate for bugs such as this, just one of hundreds of CSS bugs that have been documented in various versions of &lt;a href="http://en.wikipedia.org/wiki/Netscape_%28web_browser%29" title="Netscape (web browser)"&gt;Netscape&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Mozilla_Firefox" title="Mozilla Firefox"&gt;Mozilla Firefox&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Opera_%28web_browser%29" title="Opera (web browser)"&gt;Opera&lt;/a&gt;, and Internet Explorer (including &lt;a href="http://en.wikipedia.org/wiki/Internet_Explorer_7" title="Internet Explorer 7"&gt;Internet Explorer 7&lt;/a&gt;).&lt;sup id="cite_ref-11" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-11" title=""&gt;&lt;span&gt;[&lt;/span&gt;12&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-12" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-12" title=""&gt;&lt;span&gt;[&lt;/span&gt;13&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Even when the availability of CSS-capable browsers made CSS a viable technology, the adoption of CSS was still held back by designers' struggles with browsers' incorrect CSS implementation and patchy CSS support. Even today, these problems continue to make the business of CSS design more complex and costly than it should be, and cross-browser testing remains a necessity. Other reasons for continuing non-adoption of CSS are: its perceived complexity, authors' lack of familiarity with CSS syntax and required techniques, poor support from authoring tools, the risks posed by inconsistency between browsers and the increased costs of testing.&lt;/p&gt; &lt;p&gt;Currently there is strong competition between &lt;a href="http://en.wikipedia.org/wiki/Mozilla" title="Mozilla"&gt;Mozilla&lt;/a&gt;'s &lt;a href="http://en.wikipedia.org/wiki/Gecko_%28layout_engine%29" title="Gecko (layout engine)"&gt;Gecko&lt;/a&gt; layout engine, the &lt;a href="http://en.wikipedia.org/wiki/WebKit" title="WebKit"&gt;WebKit&lt;/a&gt; layout engine used in &lt;a href="http://en.wikipedia.org/wiki/Apple_Inc." title="Apple Inc."&gt;Apple&lt;/a&gt;'s &lt;a href="http://en.wikipedia.org/wiki/Safari_%28web_browser%29" title="Safari (web browser)"&gt;Safari&lt;/a&gt;, the similar &lt;a href="http://en.wikipedia.org/wiki/KHTML" title="KHTML"&gt;KHTML&lt;/a&gt; engine used in &lt;a href="http://en.wikipedia.org/wiki/KDE" title="KDE"&gt;KDE&lt;/a&gt;'s &lt;a href="http://en.wikipedia.org/wiki/Konqueror" title="Konqueror"&gt;Konqueror&lt;/a&gt; browser, and Opera's &lt;a href="http://en.wikipedia.org/wiki/Presto_%28layout_engine%29" title="Presto (layout engine)"&gt;Presto layout engine&lt;/a&gt; - each of them is leading in different aspects of CSS. As of 2007&lt;sup class="plainlinks asof-tag update" style="display: none;"&gt;&lt;a href="http://en.wikipedia.org/w/index.php?title=Cascading_Style_Sheets&amp;amp;action=edit" class="external text" title="http://en.wikipedia.org/w/index.php?title=Cascading_Style_Sheets&amp;amp;action=edit" rel="nofollow"&gt;[update]&lt;/a&gt;&lt;/sup&gt;, Internet Explorer's &lt;a href="http://en.wikipedia.org/wiki/Trident_%28layout_engine%29" title="Trident (layout engine)"&gt;Trident&lt;/a&gt; engine remains the worst at rendering CSS as judged by World Wide Web Consortium standards. &lt;sup id="cite_ref-13" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-13" title=""&gt;&lt;span&gt;[&lt;/span&gt;14&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; &lt;sup id="cite_ref-14" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-14" title=""&gt;&lt;span&gt;[&lt;/span&gt;15&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; In April 2008 Internet Explorer 8 beta fixes many of these shortcomings and renders CSS 2.1.&lt;sup class="noprint Template-Fact"&gt;&lt;span title="This claim needs references to reliable sources since July 2008" style="white-space: nowrap;"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/span&gt;&lt;/sup&gt; The IEBlog claims that it passes some versions of the &lt;a href="http://en.wikipedia.org/wiki/ACID2" title="ACID2" class="mw-redirect"&gt;ACID2&lt;/a&gt; test.&lt;sup id="cite_ref-15" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets#cite_note-15" title=""&gt;&lt;span&gt;[&lt;/span&gt;16&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-7229277440478246980?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/7229277440478246980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=7229277440478246980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7229277440478246980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7229277440478246980'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/crime-scene-investigation-haha.html' title='Crime Scene Investigation??? Haha!!!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-7525467793850433550</id><published>2009-02-20T19:59:00.000-08:00</published><updated>2009-02-20T16:53:59.016-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>...Let's Clarify!</title><content type='html'>&lt;p&gt;  (&lt;b&gt;H&lt;/b&gt;yper&lt;b&gt;T&lt;/b&gt;ext &lt;b&gt;M&lt;/b&gt;arkup &lt;b&gt;L&lt;/b&gt;anguage) The document format used on the Web. Web pages are built with HTML tags (codes) embedded in the text. HTML defines the page layout, fonts and graphic elements as well as the hypertext links to other documents on the Web. Each link contains the URL, or address, of a Web page residing on the same server or any server worldwide, hence "World Wide" Web.&lt;/p&gt;&lt;p&gt;HTML 2.0 was defined by the Internet Engineering Task Force (IETF) with a basic set of features, including interactive forms capability. Subsequent versions added more features such as blinking text, custom backgrounds and tables of contents. However, each new version requires agreement on the tags used, and browsers must be modified to implement those tags. See &lt;a href="http://www.answers.com/topic/html-element" class="ilnk" target="_top" onclick="assignParam('navinfo','method|4'+getLinkTextForCookie(this));"&gt;HTML tag&lt;/a&gt;.&lt;/p&gt;&lt;p  style="font-weight: bold; color: rgb(255, 102, 102);font-family:arial;"&gt;&lt;span style="font-size:130%;"&gt;HTML Itself Is Not a Programming Language&lt;/span&gt;&lt;/p&gt;&lt;p&gt; HTML is a markup language (the ML in HTML) that uses a fixed set of markup tags. A markup language can also be thought of as a "presentation language," but it is not a programming language. You cannot "if this-do that" like you can in Java, JavaScript or C++. However, in order to make pages interactive, programming code can be embedded in an HTML page. For example, JavaScript is widely interspersed in Web pages (HTML pages) for that purpose. See &lt;a href="http://www.answers.com/topic/javascript" class="ilnk" target="_top" onclick="assignParam('navinfo','method|4'+getLinkTextForCookie(this));"&gt;JavaScript&lt;/a&gt; and &lt;a href="http://www.answers.com/topic/vbs-abbreviation" class="ilnk" target="_top" onclick="assignParam('navinfo','method|4'+getLinkTextForCookie(this));"&gt;VBScript&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;HTML was conceived as a simple markup language to render research documents. No one originally envisioned Web pages turning into multimedia extravaganzas. HTML pages have been reworked, jury-rigged and extended into full-blown applications. As a result, the source code behind today's Web pages is often a hideous concoction of tags and scripting. See &lt;a href="http://www.answers.com/topic/html-element" class="ilnk" target="_top" onclick="assignParam('navinfo','method|4'+getLinkTextForCookie(this));"&gt;HTML tag&lt;/a&gt;, &lt;a href="http://www.answers.com/topic/xml" class="ilnk" target="_top" onclick="assignParam('navinfo','method|4'+getLinkTextForCookie(this));"&gt;XML&lt;/a&gt;, &lt;a href="http://www.answers.com/topic/xhtml" class="ilnk" target="_top" onclick="assignParam('navinfo','method|4'+getLinkTextForCookie(this));"&gt;XHTML&lt;/a&gt; and &lt;a href="http://www.answers.com/topic/sgml" class="ilnk" target="_top" onclick="assignParam('navinfo','method|4'+getLinkTextForCookie(this));"&gt;SGML&lt;/a&gt;.&lt;/p&gt;&lt;center&gt;&lt;table border="0" width="350"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;&lt;img src="http://content.answers.com/main/content/img/CDE/WWW.GIF" /&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;&lt;span class="shw"&gt;World Wide Web Linking&lt;/span&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Accessing a Web document requires typing in the address, or URL (Uniform Resource Locator), of the home page in your Web browser. The home page is an HTML document, which contains hypertext links to other HTML documents that can be stored on the same server or on a server anywhere in the world.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;center&gt;&lt;table border="0" width="350"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;&lt;img src="http://content.answers.com/main/content/img/CDE/WEBSERV.GIF" /&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-style: italic; font-weight: bold; color: rgb(255, 204, 102);"&gt;&lt;td&gt;&lt;center&gt;&lt;span class="shw"&gt;Web Server Fundamentals&lt;/span&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Web browsers communicate with Web servers via the TCP/IP protocol. The browser sends HTTP requests to the server, which responds with HTML pages and possibly additional programs in the form of ActiveX controls or Java applets.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-7525467793850433550?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/7525467793850433550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=7525467793850433550' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7525467793850433550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7525467793850433550'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/lets-clarify.html' title='...Let&apos;s Clarify!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-2534894719037873976</id><published>2009-02-19T15:41:00.000-08:00</published><updated>2009-02-21T03:46:07.095-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>CSS</title><content type='html'>&lt;p style="text-align: center; color: rgb(204, 102, 204);"&gt;&lt;span style="font-size:180%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center; color: rgb(204, 102, 204);"&gt;&lt;span style="font-size:180%;"&gt;&lt;b&gt;      Cascading Style Sheets&lt;/b&gt; (&lt;b&gt;CSS&lt;/b&gt;)&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(51, 51, 255);"&gt;  &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(51, 255, 51);"&gt;&lt;b&gt;       &lt;span style="color: rgb(204, 102, 204);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify; color: rgb(51, 255, 51);"&gt;&lt;b&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;         Cascading Style Sheets&lt;/span&gt;&lt;/b&gt;&lt;span style="color: rgb(204, 102, 204);"&gt; (&lt;/span&gt;&lt;b&gt;CSS&lt;/b&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;)&lt;/span&gt; is a &lt;a href="http://en.wikipedia.org/wiki/Stylesheet_language" title="Stylesheet language"&gt;&lt;span style="text-decoration: none;"&gt;stylesheet language&lt;/span&gt;&lt;/a&gt; used to describe the presentation of a document written in a &lt;a href="http://en.wikipedia.org/wiki/Markup_language" title="Markup language"&gt;&lt;span style="text-decoration: none;"&gt;markup language&lt;/span&gt;&lt;/a&gt;. Its most common application is to style &lt;a href="http://en.wikipedia.org/wiki/Web_page" title="Web page"&gt;&lt;span style="text-decoration: none;"&gt;web pages&lt;/span&gt;&lt;/a&gt; written in &lt;a href="http://en.wikipedia.org/wiki/HTML" title="HTML"&gt;&lt;span style="text-decoration: none;"&gt;HTML&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/XHTML" title="XHTML"&gt;&lt;span style="text-decoration: none;"&gt;XHTML&lt;/span&gt;&lt;/a&gt;, but the language can be applied to any kind of &lt;a href="http://en.wikipedia.org/wiki/XML" title="XML"&gt;&lt;span style="text-decoration: none;"&gt;XML&lt;/span&gt;&lt;/a&gt; document, including &lt;a href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics" title="Scalable Vector Graphics"&gt;&lt;span style="text-decoration: none;"&gt;SVG&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/XUL" title="XUL"&gt;&lt;span style="text-decoration: none;"&gt;XUL&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div style="color: rgb(51, 255, 51); text-align: justify;"&gt;  &lt;/div&gt;&lt;p style="color: rgb(51, 255, 51); text-align: justify;"&gt;        CSS can be used locally by the readers of web pages to define &lt;a href="http://en.wikipedia.org/wiki/Color" title="Color"&gt;&lt;span style="text-decoration: none;"&gt;colors&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Typeface" title="Typeface"&gt;&lt;span style="text-decoration: none;"&gt;fonts&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Layout" title="Layout"&gt;&lt;span style="text-decoration: none;"&gt;layout&lt;/span&gt;&lt;/a&gt;, and other aspects of document presentation. It is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation (written in CSS). This separation can improve content &lt;a href="http://en.wikipedia.org/wiki/Accessibility" title="Accessibility"&gt;&lt;span style="text-decoration: none;"&gt;accessibility&lt;/span&gt;&lt;/a&gt;, provide more flexibility and control in the specification of presentation characteristics, and reduce complexity and repetition in the structural content (such as by allowing for &lt;a href="http://en.wikipedia.org/wiki/Tableless_web_design" title="Tableless web design"&gt;&lt;span style="text-decoration: none;"&gt;tableless web design&lt;/span&gt;&lt;/a&gt;). CSS can also allow the same markup page to be presented in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or &lt;a href="http://en.wikipedia.org/wiki/Screen_reader" title="Screen reader"&gt;&lt;span style="text-decoration: none;"&gt;screen reader&lt;/span&gt;&lt;/a&gt;) and on &lt;a href="http://en.wikipedia.org/wiki/Braille" title="Braille"&gt;&lt;span style="text-decoration: none;"&gt;Braille&lt;/span&gt;&lt;/a&gt;-based, &lt;a href="http://en.wikipedia.org/wiki/Tactile" title="Tactile"&gt;&lt;span style="text-decoration: none;"&gt;tactile&lt;/span&gt;&lt;/a&gt; devices. CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called &lt;span style=""&gt;cascade&lt;/span&gt;, priorities or &lt;span style=""&gt;weights&lt;/span&gt; are calculated and assigned to rules, so that the results are predictable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div style="color: rgb(51, 255, 51); text-align: justify;"&gt;  &lt;/div&gt;&lt;h3 style="text-align: center; color: rgb(204, 102, 204);"&gt;&lt;span class="mw-headline"&gt;Use of CSS&lt;/span&gt;&lt;/h3&gt;&lt;div style="text-align: justify; color: rgb(51, 255, 51);"&gt; &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(51, 255, 51);"&gt;Prior to CSS, nearly all of the presentational attributes of HTML documents were contained within the HTML markup; all font colors, background styles, element alignments, borders and sizes had to be explicitly described, often repeatedly, within the HTML. CSS allows authors to move much of that information to a separate stylesheet resulting in considerably simpler HTML markup.&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(51, 255, 51);"&gt; &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(51, 255, 51);"&gt;&lt;a href="http://en.wikipedia.org/wiki/Heading" title="Heading"&gt;Headings&lt;/a&gt; (&lt;code&gt;h1&lt;/code&gt; elements), sub-headings (&lt;code&gt;h2&lt;/code&gt;), sub-sub-headings (&lt;code&gt;h3&lt;/code&gt;), etc., are defined structurally using HTML. In print and on the screen, choice of &lt;a href="http://en.wikipedia.org/wiki/Typeface" title="Typeface"&gt;font&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Point_%28typography%29" title="Point (typography)"&gt;size&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Color" title="Color"&gt;color&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Emphasis_%28typography%29" title="Emphasis (typography)"&gt;emphasis&lt;/a&gt; for these elements is &lt;i&gt;presentational&lt;/i&gt;.&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(51, 255, 51);"&gt; &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(51, 255, 51);"&gt;Prior to CSS, document authors who wanted to assign such &lt;a href="http://en.wikipedia.org/wiki/Typography" title="Typography"&gt;typographic&lt;/a&gt; characteristics to, say, all &lt;code&gt;h2&lt;/code&gt; headings had to use the HTML &lt;code&gt;font&lt;/code&gt; and other presentational elements for each occurrence of that heading type. The additional presentational markup in the HTML made documents more complex, and generally more difficult to maintain. In CSS, presentation is separated from structure. In print, CSS can define color, font, text alignment, size, borders, spacing, layout and many other typographic characteristics. It can do so independently for on-screen and printed views. CSS also defines non-visual styles such as the speed and emphasis with which text is read out by aural text readers. The &lt;a href="http://en.wikipedia.org/wiki/W3C" title="W3C" class="mw-redirect"&gt;W3C&lt;/a&gt; now considers the advantages of CSS for defining all aspects of the presentation of HTML pages to be superior to other methods. It has therefore &lt;a href="http://en.wikipedia.org/wiki/Deprecation" title="Deprecation"&gt;deprecated&lt;/a&gt; the use of all the original presentational HTML markup.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-2534894719037873976?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/2534894719037873976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=2534894719037873976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2534894719037873976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2534894719037873976'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/css.html' title='CSS'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-9031673902807196663</id><published>2009-02-19T02:29:00.000-08:00</published><updated>2009-02-27T02:39:41.730-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>it's new</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);font-size:180%;" &gt;CSS&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(51, 204, 255);font-size:130%;" &gt;What is CSS?&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul style="color: rgb(255, 153, 255);"&gt;&lt;li&gt;&lt;b&gt;CSS&lt;/b&gt; stands for &lt;b&gt;C&lt;/b&gt;ascading &lt;b&gt;S&lt;/b&gt;tyle &lt;b&gt;S&lt;/b&gt;heets&lt;/li&gt;&lt;li&gt;Styles define &lt;b&gt; how to display&lt;/b&gt; HTML elements&lt;/li&gt;&lt;li&gt;Styles are normally stored in &lt;b&gt;Style Sheets&lt;/b&gt; &lt;/li&gt;&lt;li&gt;Styles were added to HTML 4.0 &lt;b&gt;to solve a problem&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;External Style Sheets&lt;/b&gt; can save you a lot of work&lt;/li&gt;&lt;li&gt;External Style Sheets are stored in &lt;b&gt;CSS files&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Multiple style definitions will &lt;b&gt;cascade&lt;/b&gt; into one&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(255, 102, 102);" class="txtplain1"&gt;&lt;p&gt;Cascading is something that makes CSS even more powerful. Style sheets cascade when The Web Writer or user (or both) have created an order of precedence for the browser to apply the style rules in multiple sheets. The style rule or sheet that has the highest precedence is the one that is used. The following list is a simplification of how your browser decides precedence for a style: &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Look for the style element that is created, if it is not in the document, use the default rules in the browser.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Determine if any of the style rules are marked as important and apply those to the appropriate elements.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Any style rules in the document will have precedence over the default browser settings.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The more specific the style rule, the higher the precedence it will have.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Finally, if two rules apply to the same element, the one that was loaded &lt;strong&gt;last&lt;/strong&gt; will have the highest precedence.&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;h2 style="text-align: center;"&gt;&lt;span style="color: rgb(255, 255, 102);" class="mw-headline"&gt;History&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;  &lt;p style="color: rgb(255, 204, 51);"&gt;Style sheets have existed in one form or another since the beginnings of &lt;a href="http://en.wikipedia.org/wiki/SGML" title="SGML"&gt;&lt;span style="text-decoration: none;"&gt;SGML&lt;/span&gt;&lt;/a&gt; in the 1970s. Cascading Style Sheets were developed as a means for creating a consistent approach to providing style information for web documents.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 51);"&gt;As HTML grew, it came to encompass a wider variety of stylistic capabilities to meet the demands of &lt;a href="http://en.wikipedia.org/wiki/Web_development" title="Web development"&gt;&lt;span style="text-decoration: none;"&gt;web developers&lt;/span&gt;&lt;/a&gt;. This evolution gave the designer more control over site appearance but at the cost of HTML becoming more complex to write and maintain. Variations in &lt;a href="http://en.wikipedia.org/wiki/Web_browser" title="Web browser"&gt;&lt;span style="text-decoration: none;"&gt;web browser&lt;/span&gt;&lt;/a&gt; implementations made consistent site appearance difficult, and users had less control over how web content was displayed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 51);"&gt;To improve the capabilities of web presentation, nine different style sheet languages were proposed to the W3C's www-style mailing list. Of the nine proposals, two were chosen as the foundation for what became CSS: &lt;i&gt;Cascading HTML Style Sheets&lt;/i&gt; (CHSS) and &lt;i&gt;Stream-based Style Sheet Proposal&lt;/i&gt; (SSP). First, &lt;a href="http://en.wikipedia.org/wiki/H%C3%A5kon_Wium_Lie" title="Håkon Wium Lie"&gt;&lt;span style="text-decoration: none;"&gt;Håkon Wium Lie&lt;/span&gt;&lt;/a&gt; (now the &lt;a href="http://en.wikipedia.org/wiki/Chief_Technical_Officer" title="Chief Technical Officer"&gt;&lt;span style="text-decoration: none;"&gt;CTO&lt;/span&gt;&lt;/a&gt; of &lt;a href="http://en.wikipedia.org/wiki/Opera_Software" title="Opera Software"&gt;&lt;span style="text-decoration: none;"&gt;Opera Software&lt;/span&gt;&lt;/a&gt;) proposed Cascading HTML Style Sheets (CHSS) in October 1994, a language which has some resemblance to today's CSS. &lt;a href="http://en.wikipedia.org/wiki/Bert_Bos" title="Bert Bos"&gt;&lt;span style="text-decoration: none;"&gt;Bert Bos&lt;/span&gt;&lt;/a&gt; was working on a browser called &lt;a href="http://en.wikipedia.org/wiki/Argo_%28web_browser%29" title="Argo (web browser)"&gt;&lt;span style="text-decoration: none;"&gt;Argo&lt;/span&gt;&lt;/a&gt; which used its own style sheet language, Stream-based Style Sheet Proposal (SSP). Lie and Bos worked together to develop the CSS standard (the 'H' was removed from the name because these style sheets could be applied to other markup languages besides HTML).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 51);"&gt;Unlike existing style languages like &lt;a href="http://en.wikipedia.org/wiki/Document_Style_Semantics_and_Specification_Language" title="Document Style Semantics and Specification Language"&gt;&lt;span style="text-decoration: none;"&gt;DSSSL&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/FOSI" title="FOSI"&gt;&lt;span style="text-decoration: none;"&gt;FOSI&lt;/span&gt;&lt;/a&gt;, CSS allowed a document's style to be influenced by multiple style sheets. One style sheet could &lt;a href="http://en.wikipedia.org/wiki/Inheritance_%28computer_science%29" title="Inheritance (computer science)"&gt;&lt;span style="text-decoration: none;"&gt;inherit&lt;/span&gt;&lt;/a&gt; or "cascade" from another, permitting a mixture of stylistic preferences controlled equally by the site designer and user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 51);"&gt;Håkon's proposal was presented at the "Mosaic and the Web" conference in &lt;a href="http://en.wikipedia.org/wiki/Chicago,_Illinois" title="Chicago, Illinois"&gt;&lt;span style="text-decoration: none;"&gt;Chicago, Illinois&lt;/span&gt;&lt;/a&gt; in 1994, and again with Bert Bos in 1995. Around this time, the &lt;a href="http://en.wikipedia.org/wiki/World_Wide_Web_Consortium" title="World Wide Web Consortium"&gt;&lt;span style="text-decoration: none;"&gt;World Wide Web Consortium&lt;/span&gt;&lt;/a&gt; was being established; the W3C took an interest in the development of CSS, and it organized a workshop toward that end chaired by &lt;a href="http://en.wikipedia.org/wiki/Steven_Pemberton" title="Steven Pemberton"&gt;&lt;span style="text-decoration: none;"&gt;Steven Pemberton&lt;/span&gt;&lt;/a&gt;. This resulted in W3C adding work on CSS to the deliverables of the HTML editorial review board (ERB). Håkon and Bert were the primary technical staff on this aspect of the project, with additional members, including Thomas Reardon of &lt;a href="http://en.wikipedia.org/wiki/Microsoft" title="Microsoft"&gt;&lt;span style="text-decoration: none;"&gt;Microsoft&lt;/span&gt;&lt;/a&gt;, participating as well. By the end of 1996, CSS was ready to become official, and the CSS level 1 Recommendation was published in December.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 51);"&gt;Development of HTML, CSS, and the &lt;a href="http://en.wikipedia.org/wiki/Document_Object_Model" title="Document Object Model"&gt;&lt;span style="text-decoration: none;"&gt;DOM&lt;/span&gt;&lt;/a&gt; had all been taking place in one group, the HTML Editorial Review Board (ERB). Early in 1997, the ERB was split into three &lt;a href="http://en.wikipedia.org/wiki/Working_group" title="Working group"&gt;&lt;span style="text-decoration: none;"&gt;working groups&lt;/span&gt;&lt;/a&gt;: HTML Working group, chaired by &lt;a href="http://en.wikipedia.org/wiki/Dan_Connolly" title="Dan Connolly"&gt;&lt;span style="text-decoration: none;"&gt;Dan Connolly&lt;/span&gt;&lt;/a&gt; of W3C; DOM Working group, chaired by Lauren Wood of &lt;a href="http://en.wikipedia.org/wiki/SoftQuad" title="SoftQuad"&gt;&lt;span style="text-decoration: none;"&gt;SoftQuad&lt;/span&gt;&lt;/a&gt;; and CSS Working group, chaired by &lt;a href="http://en.wikipedia.org/wiki/Chris_Lilley_%28W3C%29" title="Chris Lilley (W3C)"&gt;&lt;span style="text-decoration: none;"&gt;Chris Lilley&lt;/span&gt;&lt;/a&gt; of W3C.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 51);"&gt;The CSS Working Group began tackling issues that had not been addressed with CSS level 1, resulting in the creation of CSS level 2 on November 4, 1997. It was published as a W3C Recommendation on May 12, 1998. CSS level 3, which was started in 1998, is still under development as of 2009.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 51);"&gt;In 2005 the CSS Working Groups decided to enforce the requirements for standards more strictly. This meant that already published standards like CSS 2.1, CSS 3 Selectors and CSS 3 Text were pulled back from Candidate Recommendation to Working Draft level.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-9031673902807196663?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/9031673902807196663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=9031673902807196663' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/9031673902807196663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/9031673902807196663'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/its-new.html' title='it&apos;s new'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-4560609927903433188</id><published>2009-02-19T02:23:00.000-08:00</published><updated>2009-02-27T02:26:14.389-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>timeline ...</title><content type='html'>&lt;p style="font-style: italic; font-weight: bold; text-align: center; color: rgb(255, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-size:180%;"&gt;HTML&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 0);" class="MsoNormal"&gt;&lt;b&gt;HyperText Markup Language&lt;/b&gt;, is the predominant &lt;a href="http://en.wikipedia.org/wiki/Markup_language" title="Markup language"&gt;&lt;span style="text-decoration: none;"&gt;markup language&lt;/span&gt;&lt;/a&gt; for &lt;a href="http://en.wikipedia.org/wiki/Web_page" title="Web page"&gt;&lt;span style="text-decoration: none;"&gt;Web pages&lt;/span&gt;&lt;/a&gt;. It provides a means to describe the structure of text-based information in a document — by denoting certain text as links, headings, paragraphs, lists, and so on — and to supplement that text with &lt;i&gt;interactive forms&lt;/i&gt;, embedded &lt;i&gt;images&lt;/i&gt;, and other objects. HTML is written in the form of tags, surrounded by &lt;a href="http://en.wikipedia.org/wiki/Brackets#Angle_brackets_or_chevrons_.3C_.3E" title="Brackets"&gt;&lt;span style="text-decoration: none;"&gt;angle brackets&lt;/span&gt;&lt;/a&gt;. HTML can also describe, to some degree, the appearance and &lt;a href="http://en.wikipedia.org/wiki/Semantics" title="Semantics"&gt;&lt;span style="text-decoration: none;"&gt;semantics&lt;/span&gt;&lt;/a&gt; of a document, and can include embedded &lt;a href="http://en.wikipedia.org/wiki/Scripting_language" title="Scripting language"&gt;&lt;span style="text-decoration: none;"&gt;scripting language&lt;/span&gt;&lt;/a&gt; code (such as &lt;a href="http://en.wikipedia.org/wiki/JavaScript" title="JavaScript"&gt;&lt;span style="text-decoration: none;"&gt;JavaScript&lt;/span&gt;&lt;/a&gt;) which can affect the behavior of &lt;a href="http://en.wikipedia.org/wiki/Web_browser" title="Web browser"&gt;&lt;span style="text-decoration: none;"&gt;Web browsers&lt;/span&gt;&lt;/a&gt; and other HTML processors.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-style: italic; color: rgb(102, 51, 255);" class="MsoNormal"&gt;&lt;span style="font-size:180%;"&gt;HISTORY OF HTML&lt;/span&gt;&lt;/p&gt;    &lt;h3 style="color: rgb(102, 102, 204);"&gt;&lt;span class="mw-headline"&gt;Origins&lt;/span&gt;&lt;/h3&gt;  &lt;p style="color: rgb(51, 102, 255);" class="MsoNormal"&gt;    In 1980, physicist &lt;a href="http://en.wikipedia.org/wiki/Tim_Berners-Lee" title="Tim Berners-Lee"&gt;&lt;span style="text-decoration: none;"&gt;Tim Berners-Lee&lt;/span&gt;&lt;/a&gt;, who was an independent contractor at &lt;a href="http://en.wikipedia.org/wiki/CERN" title="CERN"&gt;&lt;span style="text-decoration: none;"&gt;CERN&lt;/span&gt;&lt;/a&gt;, proposed and prototyped &lt;a href="http://en.wikipedia.org/wiki/ENQUIRE" title="ENQUIRE"&gt;&lt;span style="text-decoration: none;"&gt;ENQUIRE&lt;/span&gt;&lt;/a&gt;, a system for &lt;a href="http://en.wikipedia.org/wiki/CERN" title="CERN"&gt;&lt;span style="text-decoration: none;"&gt;CERN&lt;/span&gt;&lt;/a&gt; researchers to use and share documents. In 1989, Berners-Lee and CERN data systems engineer &lt;a href="http://en.wikipedia.org/wiki/Robert_Cailliau" title="Robert Cailliau"&gt;&lt;span style="text-decoration: none;"&gt;Robert Cailliau&lt;/span&gt;&lt;/a&gt; each submitted separate proposals for an &lt;a href="http://en.wikipedia.org/wiki/Internet" title="Internet"&gt;&lt;span style="text-decoration: none;"&gt;Internet&lt;/span&gt;&lt;/a&gt;-based &lt;a href="http://en.wikipedia.org/wiki/Hypertext" title="Hypertext"&gt;&lt;span style="text-decoration: none;"&gt;hypertext&lt;/span&gt;&lt;/a&gt; system providing similar functionality. The following year, they collaborated on a joint proposal, the WorldWideWeb (W3) project, which was accepted by CERN.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span style="color: rgb(102, 0, 204);" class="mw-headline"&gt;First specifications&lt;/span&gt;&lt;/h3&gt;  &lt;p&gt;    &lt;span style="color: rgb(153, 153, 255);"&gt;The first publicly available description of HTML was a document called &lt;/span&gt;&lt;i style="color: rgb(153, 153, 255);"&gt;HTML Tags&lt;/i&gt;&lt;span style="color: rgb(153, 153, 255);"&gt;, first mentioned on the Internet by Berners-Lee in late 1991. It describes 22 elements comprising the initial, relatively simple design of HTML. Thirteen of these elements still exist in HTML 4.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 255);"&gt;&lt;/span&gt;&lt;o:p style="color: rgb(153, 153, 255);"&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 153, 255);"&gt;    Berners-Lee considered HTML to be, at the time, an application of &lt;a href="http://en.wikipedia.org/wiki/SGML" title="SGML"&gt;&lt;span style="text-decoration: none;"&gt;SGML&lt;/span&gt;&lt;/a&gt;, but it was not formally defined as such until the mid-1993 publication, by the &lt;a href="http://en.wikipedia.org/wiki/Internet_Engineering_Task_Force" title="Internet Engineering Task Force"&gt;&lt;span style="text-decoration: none;"&gt;IETF&lt;/span&gt;&lt;/a&gt;, of the first proposal for an HTML specification: Berners-Lee and &lt;a href="http://en.wikipedia.org/wiki/Dan_Connolly" title="Dan Connolly"&gt;&lt;span style="text-decoration: none;"&gt;Dan Connolly&lt;/span&gt;&lt;/a&gt;'s &lt;a href="http://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt" title="http://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt"&gt;&lt;span style="text-decoration: none;"&gt;"Hypertext Markup Language (HTML)" Internet-Draft&lt;/span&gt;&lt;/a&gt;, which included an SGML &lt;a href="http://en.wikipedia.org/wiki/Document_Type_Definition" title="Document Type Definition"&gt;&lt;span style="text-decoration: none;"&gt;Document Type Definition&lt;/span&gt;&lt;/a&gt; to define the grammar.&lt;sup id="cite_ref-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-4" title=""&gt;&lt;span style="text-decoration: none;"&gt;[5]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The draft expired after six months, but was notable for its acknowledgment of the &lt;a href="http://en.wikipedia.org/wiki/Mosaic_%28web_browser%29" title="Mosaic (web browser)"&gt;&lt;span style="text-decoration: none;"&gt;NCSA Mosaic&lt;/span&gt;&lt;/a&gt; browser's custom tag for embedding in-line images, reflecting the IETF's philosophy of basing standards on successful prototypes.Similarly, Dave Raggett's competing Internet-Draft, "HTML+ (Hypertext Markup Format)", from late 1993, suggested standardizing already-implemented features like tables and fill-out forms.&lt;/p&gt;&lt;p style="color: rgb(153, 153, 255);"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 153, 255);"&gt;    After the HTML and HTML+ drafts expired in early 1994, the IETF created an HTML Working Group, which in 1995 completed "HTML 2.0", the first HTML specification intended to be treated as a standard against which future implementations should be based.Published as &lt;a href="http://en.wikipedia.org/wiki/Request_for_Comments" title="Request for Comments"&gt;&lt;span style="text-decoration: none;"&gt;Request for Comments&lt;/span&gt;&lt;/a&gt; 1866, HTML 2.0 included ideas from the HTML and HTML+ drafts. There was no "HTML 1.0"; the 2.0 designation was intended to distinguish the new edition from previous drafts.&lt;/p&gt;&lt;p style="color: rgb(153, 153, 255);"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 153, 255);"&gt;    Further development under the auspices of the IETF was stalled by competing interests. Since 1996, the HTML specifications have been maintained, with input from commercial software vendors, by the &lt;a href="http://en.wikipedia.org/wiki/World_Wide_Web_Consortium" title="World Wide Web Consortium"&gt;&lt;span style="text-decoration: none;"&gt;World Wide Web Consortium&lt;/span&gt;&lt;/a&gt; (W3C).However, in 2000, HTML also became an international standard (&lt;a href="http://en.wikipedia.org/wiki/International_Organization_for_Standardization" title="International Organization for Standardization"&gt;&lt;span style="text-decoration: none;"&gt;ISO&lt;/span&gt;&lt;/a&gt;/&lt;a href="http://en.wikipedia.org/wiki/International_Electrotechnical_Commission" title="International Electrotechnical Commission"&gt;&lt;span style="text-decoration: none;"&gt;IEC&lt;/span&gt;&lt;/a&gt; 15445:2000). The last HTML specification published by the W3C is the HTML 4.01 Recommendation, published in late 1999. Its issues and errors were last acknowledged by errata published in 2001.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 153, 255);" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-4560609927903433188?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/4560609927903433188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=4560609927903433188' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4560609927903433188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4560609927903433188'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/timeline.html' title='timeline ...'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-786517847589945192</id><published>2009-02-13T19:21:00.000-08:00</published><updated>2009-02-20T16:46:58.744-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>Way Back...</title><content type='html'>&lt;table summary="Chart of inforamtion about this tutorial" border="0" cellpadding="10" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p&gt;&lt;strong&gt;WRITING HTML WAS CREATED&lt;/strong&gt; way back in 1994 to help teachers create learning resources that access information on the Internet. Here, you will be writing a lesson called &lt;em&gt;Volcano Web&lt;/em&gt;. However, this tutorial may be used by anyone who wants to create web pages. You can get a sense of the results by looking at our illustrious &lt;a href="http://www.mcli.dist.maricopa.edu/tut/ten_alumni.php"&gt;alumni&lt;/a&gt; and &lt;a href="http://www.mcli.dist.maricopa.edu/tut/kudos.php"&gt;kudos or what people say&lt;/a&gt; about the tutorial.&lt;/p&gt; &lt;p&gt; By the time you have reached the end of this tutorial you will be able to construct a series of linked web pages for any subject that includes formatted text, pictures, and hypertext links to other web pages on the Internet. If you follow the steps for the Basic Level (lessons 1-14) you will develop a &lt;a href="http://www.mcli.dist.maricopa.edu/tut/tut14_ex/index.html"&gt;page about volcanoes&lt;/a&gt; and if you go on to the Advanced Level (lessons 15-29), you will create an enhanced &lt;a href="http://www.mcli.dist.maricopa.edu/tut/final/index.html"&gt;volcano web site&lt;/a&gt;.&lt;/p&gt; &lt;p&gt; For faster performance, you can &lt;a href="http://www.mcli.dist.maricopa.edu/tut/download.html"&gt;download&lt;/a&gt; an archive of all files used in this tutorial as well as a &lt;a href="http://www.mcli.dist.maricopa.edu/tut/download.html#pdf"&gt;printable version of the lessons&lt;/a&gt;. Most of the lessons can be done off-line. If you are having trouble connecting to this site, try our &lt;a href="http://zircon.mcli.dist.maricopa.edu/tut/"&gt;Zircon server&lt;/a&gt; but please be nice to these machines; they are doing other work for us.&lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td style="color: rgb(204, 51, 204);" align="right" bgcolor="#66ff66" valign="top" width="110"&gt;&lt;h2&gt;Why Create Web Pages?&lt;/h2&gt; &lt;p class="navbox"&gt;If you've come this far, you likely have an answer.&lt;/p&gt;&lt;/td&gt; &lt;td valign="top"&gt;&lt;p&gt;&lt;strong&gt;THE WEB IS BECOMING AN INTEGRAL PART&lt;/strong&gt; of our working (and playing) world. You cannot spit anymore these days without hitting a URL (if you do not know what a URL is, you will find out here). In a very short time span, the web has revolutionized the way we access information, education, business, entertainment. It has created industries where there were none before.&lt;/p&gt; &lt;p&gt; Being able to develop information on the web might be a job skill, a class requirement, a business necessity, or a personal interest. Unlike any other previous medium, the ability to "write" HTML allows you to potentially connect with millions of other people, as your own self-publisher.&lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td style="color: rgb(0, 153, 0);" align="right" bgcolor="#ccffcc" valign="top" width="110"&gt;&lt;h2&gt;Objectives&lt;/h2&gt; &lt;p class="navbox"&gt;This tutorial covers the steps for writing HTML files using illustrative examples for creating web pages.&lt;/p&gt;&lt;/td&gt; &lt;td valign="top"&gt;&lt;p&gt;&lt;strong&gt;IN THESE LESSONS YOU WILL:&lt;/strong&gt; &lt;/p&gt; &lt;ul&gt;&lt;li&gt; identify and use different HTML formatting codes.&lt;/li&gt;&lt;li&gt; create and modify HTML documents using a simple text editor.&lt;/li&gt;&lt;li&gt; write a series of web pages that present information, graphics, and provide hypertext links to other documents on the Internet.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;And maybe you will have some fun!&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td style="color: rgb(255, 255, 51);" align="right" bgcolor="#66ff66" valign="top" width="110"&gt; &lt;h2 style="color: rgb(51, 51, 0);"&gt;What&lt;br /&gt;is&lt;br /&gt;HTML?&lt;/h2&gt;&lt;p class="navbox"&gt; &lt;strong style="color: rgb(51, 51, 0);"&gt;H&lt;/strong&gt;&lt;span style="color: rgb(51, 51, 0);"&gt;yper&lt;/span&gt;&lt;strong style="color: rgb(51, 51, 0);"&gt;T&lt;/strong&gt;&lt;span style="color: rgb(51, 51, 0);"&gt;ext &lt;/span&gt;&lt;strong style="color: rgb(51, 51, 0);"&gt;M&lt;/strong&gt;&lt;span style="color: rgb(51, 51, 0);"&gt;arkup &lt;/span&gt;&lt;strong style="color: rgb(51, 51, 0);"&gt;L&lt;/strong&gt;&lt;span style="color: rgb(51, 51, 0);"&gt;anguag&lt;/span&gt;e&lt;/p&gt;&lt;/td&gt; &lt;td valign="top"&gt;&lt;p&gt;&lt;strong&gt;PUT MOST SIMPLY,&lt;/strong&gt; &lt;a href="http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html"&gt; HTML&lt;/a&gt;, is a format that tells a computer how to display a web page. The documents themselves are plain text files (ASCII) with special "tags" or codes that a web browser knows how to interpret and display on your screen.&lt;/p&gt; &lt;p&gt; This tutorial teaches you how to create web pages the old-fashioned way -- by hand. There are software "tools" that allow you to spin web pages without touching any HTML. But if you are serious about doing more than a page or two, we believe a grounding in the basics will greatly accelerate what you can do.&lt;/p&gt; &lt;p&gt; Everything you create in this tutorial is designed to run from any desktop computer; it does not depend on access to a web server or specialized computer programming.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td style="color: rgb(102, 0, 0);" align="right" bgcolor="#ccffcc" valign="top" width="110"&gt; &lt;h2&gt;Getting Ready&lt;/h2&gt; &lt;p class="navbox"&gt;We will assume you have a basic knowledge of how to use your web browser menus, buttons, and hypertext links.&lt;/p&gt;&lt;/td&gt; &lt;td valign="top"&gt;&lt;p&gt;&lt;strong&gt;YOU WILL ALSO NEED A TEXT EDITOR PROGRAM&lt;/strong&gt; capable of creating plain text files e.g. SimpleText for the Macintosh or NotePad for Windows. &lt;strong&gt;&lt;em&gt;We strongly urge that you use the most basic text editor while you learn HTML and then later you can explore &lt;a href="http://www.mcli.dist.maricopa.edu/tut/editors.html"&gt;HTML "editors"&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt; If you use a word processor program then you &lt;strong&gt;must&lt;/strong&gt; save your files as plain ASCII text format. You should also be familiar with switching between multiple applications as well as using the mouse to copy and paste selections of text. &lt;/p&gt;&lt;p&gt; If you &lt;a href="http://www.mcli.dist.maricopa.edu/tut/download.html"&gt;download&lt;/a&gt; the tutorial files, you can do nearly all of the lessons off-line. &lt;/p&gt; &lt;p&gt; We suggest that you proceed through the lessons in order, but at any time you can return to the index to jump to a different lesson. Within each lesson you can compare your work to a sample file for that lesson. Each lesson page has a link to a concise summary of the &lt;a href="http://www.mcli.dist.maricopa.edu/tut/tags/index.html"&gt;tags&lt;/a&gt; as well as links to other &lt;a href="http://www.mcli.dist.maricopa.edu/tut/ref/index.html"&gt;reference&lt;/a&gt; sites.&lt;/p&gt; &lt;p&gt; For convention, all menu names and items will be shown in &lt;strong&gt;bold&lt;/strong&gt; text. All text that you should enter from the keyboard will appear in &lt;strong&gt;&lt;tt&gt;&lt;span style="color: rgb(0, 0, 102);"&gt;typewriter style.&lt;/span&gt;&lt;/tt&gt;&lt;/strong&gt; &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td style="color: rgb(0, 0, 153);" align="right" bgcolor="#66ff66" valign="top" width="110"&gt; &lt;h2&gt;Keep in Mind&lt;/h2&gt; &lt;p class="navbox"&gt;Some pointers to help you out, since we will never admit knowing everything.&lt;/p&gt;&lt;/td&gt; &lt;td valign="top"&gt; &lt;ol type="a"&gt;&lt;li&gt;Use the &lt;strong&gt;Favorites&lt;/strong&gt; or &lt;strong&gt;Bookmark&lt;/strong&gt; feature of your web browser to mark the lesson index page so you can easily navigate to other lessons.&lt;/li&gt;&lt;li&gt;We've aimed to write instructions generic to  (almost) &lt;strong&gt;any&lt;/strong&gt; web browser; sometimes the menu names or features may not match the web browser you are using. &lt;/li&gt;&lt;li&gt;This tutorial &lt;strong&gt;will&lt;/strong&gt; show you how to create web pages that can see outward to the world. It &lt;strong&gt;will not&lt;/strong&gt; tell you how to let the world see them; to do this you need to locate an Internet Service Provider that provides web server space. Try &lt;a href="http://thelist.internet.com/"&gt;The List&lt;/a&gt;, &lt;a href="http://www.theispguide.com/"&gt;ISPGuide&lt;/a&gt;, &lt;a href="http://www.searchanisp.com/"&gt;SearchAnISP&lt;/a&gt; or &lt;a href="http://www.cnet.com/internet/0-3761.html"&gt;c|net Internet Services&lt;/a&gt;. Also, you can search for a free web page hosting service from &lt;a href="http://www.freewebspace.net/"&gt;Freewebspace.net&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Creating pages is one thing, designing web sites is another. We cannot highly enough recommend the &lt;a href="http://info.med.yale.edu/caim/manual/"&gt;Yale C/aIM WWW Style Manual&lt;/a&gt;.  Sun Microsystem's &lt;a href="http://www.sun.com/styleguide/" onclick="alert('Sun has removed this link for some reason. Please complain to http://www.sun.com/'); return false"&gt;Guide to Web Style&lt;/a&gt;, and the &lt;a href="http://www.sev.com.au/webzone/design.asp"&gt;Sevloid Guide to Web Design&lt;/a&gt;. &lt;/li&gt;&lt;li&gt;When you are ready for the big time, see web pages like you have never seen web pages at Dave Siegel's &lt;a href="http://www.dsiegel.com/"&gt;Casbah&lt;/a&gt; and &lt;a href="http://www.highfive.com/"&gt;High Five&lt;/a&gt; sites. Trudge on over to his &lt;a href="http://www.dsiegel.com/tips/index.html"&gt;Web Wonk&lt;/a&gt; to get the details. It will amaze you.&lt;/li&gt;&lt;li&gt;Refer to the HTML &lt;a href="http://www.mcli.dist.maricopa.edu/tut/tags/index.html"&gt;tag summary page&lt;/a&gt; as a reference. You can get to it by following the hypertext link at the top of every lesson page.&lt;/li&gt;&lt;li&gt;If you are having trouble, see the Writing HTML &lt;a href="http://www.mcli.dist.maricopa.edu/tut/faq.html"&gt;FAQ&lt;/a&gt; (Frequently Asked Questions) before writing us for help. We get lots and lots of e-mail. Too much.&lt;/li&gt;&lt;/ol&gt; &lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td style="color: rgb(153, 153, 0);" align="right" bgcolor="#ccffcc" valign="top" width="110"&gt;&lt;h2&gt;Who Did This?&lt;/h2&gt; &lt;p class="navbox"&gt;Roll the credits!&lt;/p&gt;&lt;/td&gt; &lt;td valign="top"&gt;&lt;p&gt;&lt;strong&gt;THIS IS A PROJECT&lt;/strong&gt; of the &lt;a href="http://www.mcli.dist.maricopa.edu/"&gt;Maricopa Center for Learning and Instruction&lt;/a&gt; (MCLI). Writing HTML was developed by &lt;a href="http://zircon.mcli.dist.maricopa.edu/alan/"&gt;Alan Levine&lt;/a&gt;, instructional technologist at the &lt;a href="http://www.maricopa.edu/"&gt;Maricopa Community Colleges&lt;/a&gt;. Our former intern, Tom Super, provided invaluable instructional design support. Many others have given helpful suggestions, corrected typos, and expressed their thanks!&lt;/p&gt; &lt;p&gt; Thanks to some great volunteer efforts, Writing HTML is also available in other languages:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://zircon.mcli.dist.maricopa.edu/tut_es/"&gt;Spanish / Español&lt;/a&gt; &lt;em&gt;v3.0&lt;/em&gt; (thanks to Arturo García Martín and Andrés Valencia)&lt;/li&gt;&lt;li&gt;&lt;a href="http://zircon.mcli.dist.maricopa.edu/tut_fr/"&gt;French "Ecrire le HTML"&lt;/a&gt; &lt;em&gt;v4.5.2&lt;/em&gt;  (thanks to Bernard Bensoussan)&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.vma.is/tut/"&gt;Icelandic / Íslenska "Námsefnisgerð í HTML"&lt;/a&gt; &lt;em&gt;v 4.5.2&lt;/em&gt;   (thanks to Gudjon Olafsson)&lt;/li&gt;&lt;li&gt;&lt;a href="http://learning.cnue-e.ac.kr/html/Tutorials/index.html" onclick="alert('Site is gone, try the link for the Internet Archive'); return false"&gt;Korean&lt;/a&gt; &lt;em&gt;v4.5&lt;/em&gt; (thanks to Dr. Byeong Choon Lim, Department of Computer Education Chuncheon National University of Education) (This site will not be available during 2002, stay tuned.)&lt;/li&gt;&lt;li&gt;&lt;a href="http://zircon.mcli.dist.maricopa.edu/writinghtml_it/"&gt;Italian "Corso di HTML"&lt;/a&gt; &lt;em&gt;v4.5.1&lt;/em&gt;  (thanks to Cristiana Cavicchi)&lt;/li&gt;&lt;li&gt; &lt;a href="http://www.bea.hi-ho.ne.jp/mizota/tut/" onclick="alert('Site is gone, try the link for the Internet Archive'); return false"&gt;Japanese&lt;/a&gt; &lt;em&gt;v 4.0.`&lt;/em&gt; (thanks to &lt;a href="http://www.bea.hi-ho.ne.jp/mizota/" onclick="alert('Site is gone, try the link for the Internet Archive'); return false"&gt;kazuaki mizota&lt;/a&gt;) (This site is no longer available, try &lt;a href="http://web.archive.org/web/*/http://www.bea.hi-ho.ne.jp/mizota/tut/"&gt;sites found from  Internet Archive "WayBack Machine"&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-786517847589945192?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/786517847589945192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=786517847589945192' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/786517847589945192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/786517847589945192'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/way-back.html' title='Way Back...'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-2060462894502476815</id><published>2009-02-13T15:31:00.000-08:00</published><updated>2009-02-21T03:40:13.575-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>activities . . .</title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204); font-family: verdana; font-weight: bold;"&gt;    This week Sir Balbuena gave us an activity, it all about HTML.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204); font-family: verdana; font-weight: bold;"&gt;We need to make an html using all the learning we acquire from our researches. Why in our           RESEARCHES?? Because sir Ernie discuss the lesson after we had finished our activity given to us.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204); font-family: verdana; font-weight: bold;"&gt;    So with that, we really learn how to make a WEB PAGE!!! For me, its difficult to make an HTML at first but later it will be easy!!! I'm so proud in myself because I accomplished a hard task that I couldn't expect that I can do. . .=)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-2060462894502476815?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/2060462894502476815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=2060462894502476815' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2060462894502476815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2060462894502476815'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/activities.html' title='activities . . .'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-7810763049624681679</id><published>2009-02-13T15:02:00.000-08:00</published><updated>2009-02-21T03:19:19.717-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>learnings of the week</title><content type='html'> &lt;h2 style="color: rgb(102, 255, 153);"&gt;&lt;span class="mw-headline"&gt;HTML markup&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;HTML markup consists of several key components, including &lt;i&gt;elements&lt;/i&gt; (and their &lt;i&gt;attributes&lt;/i&gt;), character-based &lt;i&gt;data types&lt;/i&gt;, and &lt;i&gt;character references&lt;/i&gt; and &lt;i&gt;entity references&lt;/i&gt;. Another important component is the &lt;i&gt;document type declaration&lt;/i&gt;, which specifies the Document Type Definition.&lt;span title="This claim needs references to reliable sources since January 2009"&gt; As of HTML 5, no Document Type Definition will need to be specified, and will only determine the layout mode.The Hello world program, a common computer program employed for comparing programming languages, scripting languages, and markup languages is made of 8 lines of code in HTML, albeit line breaks and the  tag, or the document type declaration, are optional:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="color: rgb(102, 255, 153);"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre style="color: rgb(102, 255, 153);"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre style="color: rgb(102, 255, 153);"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre style="color: rgb(102, 255, 153);"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span class="kw2"&gt;&lt;/span&gt;Hello HTML&lt;span class="kw2"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre style="color: rgb(102, 255, 153);"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre style="color: rgb(102, 255, 153);"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre style="color: rgb(102, 255, 153);"&gt;&lt;span style=""&gt;    &lt;/span&gt;Hello World!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre style="color: rgb(102, 255, 153);"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre style="color: rgb(102, 255, 153);"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;This Document Type Declaration is in HTML5 format.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;h3 style="color: rgb(102, 255, 153);"&gt;&lt;a name="Elements"&gt;&lt;/a&gt;&lt;span class="mw-headline"&gt;Elements&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;Elements are the basic structure for HTML markup. Elements have two basic properties: attributes and content. Each attribute and each element's content has certain restrictions that must be followed for a HTML document to be considered valid. An element usually has a start tag (e.g. &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;element-name&gt;&lt;/element-name&gt;&lt;/span&gt;&lt;/code&gt;) and an end tag (e.g. &lt;code&gt;&lt;/code&gt;). The element's attributes are contained in the start tag and content is located between the tags (e.g. &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;element-name attribute="value"&gt;Content&lt;/element-name&gt;&lt;/span&gt;&lt;/code&gt;). Some elements, such as &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;, do not have any content and must not have a closing tag. Listed below are several types of markup elements used in HTML.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;&lt;b&gt;Structural&lt;/b&gt; markup describes the purpose of text. For example, &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;h2&gt;Golf&lt;/h2&gt;&lt;/span&gt;&lt;/code&gt; establishes "Golf" as a second-level heading, which would be rendered in a browser in a manner similar to the "HTML markup" title at the start of this section. Structural markup does not denote any specific rendering, but most Web browsers have standardized on how elements should be formatted. Text may be further styled with Cascading Style Sheets (CSS).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;&lt;b&gt;Presentational&lt;/b&gt; markup describes the appearance of the text, regardless of its function. For example &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;b&gt;boldface&lt;/b&gt;&lt;/span&gt;&lt;/code&gt; indicates that visual output devices should render "boldface" in bold text, but gives no indication what devices which are unable to do this (such as aural devices that read the text aloud) should do. In the case of both &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;b&gt;bold&lt;/b&gt;&lt;/span&gt;&lt;/code&gt; and &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;i&gt;italic&lt;/i&gt;&lt;/span&gt;&lt;/code&gt;, there are elements which usually have an equivalent visual rendering but are more semantic in nature, namely &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;strong&gt;strong emphasis&lt;/strong&gt;&lt;/span&gt;&lt;/code&gt; and &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;em&gt;emphasis&lt;/em&gt;&lt;/span&gt;&lt;/code&gt; respectively. It is easier to see how an aural user agent should interpret the latter two elements. However, they are not equivalent to their presentational counterparts: it would be undesirable for a screen-reader to emphasize the name of a book, for instance, but on a screen such a name would be italicized. Most presentational markup elements have become deprecated under the HTML 4.0 specification, in favor of CSS based style design.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;&lt;b&gt;Hypertext&lt;/b&gt; markup links parts of the document to other documents. HTML up through version XHTML 1.1 requires the use of an anchor element to create a hyperlink in the flow of text: &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;a&gt;Wikipedia&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;. However, the &lt;code&gt;&lt;span style="font-size:10;"&gt;href&lt;/span&gt;&lt;/code&gt; attribute must also be set to a valid URL so for example the HTML code, &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;a href="http://en.wikipedia.org/"&gt;Wikipedia&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;, will render the word "&lt;span class="plainlinks"&gt;Wikipedia&lt;/span&gt;" as a hyperlink. To link on an image, the anchor tag use the following syntax: &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;a href="http://www.blogger.com/url"&gt;&lt;img src="http://www.blogger.com/image.gif" alt="alternative text" height="50" width="50" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;h3 style="color: rgb(102, 255, 153);"&gt;&lt;a name="Attributes" id="Attributes"&gt;&lt;/a&gt;&lt;span class="mw-headline"&gt;Attributes&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;Most of the attributes of an element are name-value pairs, separated by "=", and written within the start tag of an element, after the element's name. The value may be enclosed in single or double quotes, although values consisting of certain characters can be left unquoted in HTML (but not XHTML). Leaving attribute values unquoted is considered unsafe. In contrast with name-value pair attributes, there are some attributes that affect the element simply by their presence in the start tag of the element (like the &lt;code&gt;&lt;span style="font-size:10;"&gt;ismap&lt;/span&gt;&lt;/code&gt; attribute for the &lt;code&gt;&lt;span style="font-size:10;"&gt;img&lt;/span&gt;&lt;/code&gt; element).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;Most elements can take any of several common attributes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;ul style="color: rgb(102, 255, 153);" type="disc"&gt;&lt;li class="MsoNormal"  style="color:black;"&gt;The &lt;code&gt;&lt;span style="font-size:10;"&gt;id&lt;/span&gt;&lt;/code&gt; attribute provides a      document-wide unique identifier for an element. This can be used by      stylesheets to provide presentational properties, by browsers to focus      attention on the specific element, or by scripts to alter the contents or      presentation of an element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 255, 153);" type="disc"&gt;&lt;li class="MsoNormal"  style="color:black;"&gt;The &lt;code&gt;&lt;span style="font-size:10;"&gt;class&lt;/span&gt;&lt;/code&gt; attribute provides a way of      classifying similar elements for presentation purposes. For example, an      HTML document might use the designation &lt;code&gt;&lt;span style="font-size:10;"&gt;class="notation"&lt;/span&gt;&lt;/code&gt;      to indicate that all elements with this class value are subordinate to the      main text of the document. Such elements might be gathered together and      presented as footnotes on a page instead of appearing in the place where      they occur in the HTML source.&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 255, 153);" type="disc"&gt;&lt;li class="MsoNormal"  style="color:black;"&gt;An author may use the &lt;code&gt;&lt;span style="font-size:10;"&gt;style&lt;/span&gt;&lt;/code&gt; non-attributal codes      presentational properties to a particular element. It is considered better      practice to use an element’s son- &lt;code&gt;&lt;span style="font-size:10;"&gt;id&lt;/span&gt;&lt;/code&gt;      page and select the element with a stylesheet, though sometimes this can      be too cumbersome for a simple ad hoc application of styled properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 255, 153);" type="disc"&gt;&lt;li class="MsoNormal"  style="color:black;"&gt;The &lt;code&gt;&lt;span style="font-size:10;"&gt;title&lt;/span&gt;&lt;/code&gt; attribute is used to attach      subtextual explanation to an element. In most browsers this attribute is      displayed as what is often referred to as a tooltip. The generic inline      element &lt;code&gt;&lt;span style="font-size:10;"&gt;span&lt;/span&gt;&lt;/code&gt; can be      used to demonstrate these various attributes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;pre style="margin-left: 0.5in; color: rgb(102, 255, 153);"&gt;&lt;span class="kw2"&gt;&lt;span class="sc2"&gt; &lt;/span&gt;&lt;span class="kw3"&gt;id&lt;/span&gt;&lt;span class="sc2"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;"anId"&lt;/span&gt;&lt;span class="sc2"&gt; &lt;/span&gt;&lt;span class="kw3"&gt;class&lt;/span&gt;&lt;span class="sc2"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;"aClass"&lt;/span&gt;&lt;span class="sc2"&gt; &lt;/span&gt;&lt;span class="kw3"&gt;style&lt;/span&gt;&lt;span class="sc2"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;"color:blue;"&lt;/span&gt;&lt;span class="sc2"&gt; &lt;/span&gt;&lt;span class="kw3"&gt;title&lt;/span&gt;&lt;span class="sc2"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;"Hypertext Markup Language"&lt;/span&gt;&lt;span class="kw2"&gt;&gt;&lt;/span&gt;HTML&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;This example displays as&lt;span class="aclass"&gt; HTML &lt;/span&gt;; in most browsers, pointing the cursor at the abbreviation should display the title text "Hypertext Markup Language."&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;Most elements also take the language-related attributes &lt;code&gt;&lt;span style="font-size:10;"&gt;lang&lt;/span&gt;&lt;/code&gt; and &lt;code&gt;&lt;span style="font-size:10;"&gt;dir&lt;/span&gt;&lt;/code&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;h3 style="color: rgb(102, 255, 153);"&gt;&lt;a name="Character_and_entity_references" id="Character_and_entity_references"&gt;&lt;/a&gt;&lt;span class="mw-headline"&gt;Character and entity references&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;As of version 4.0, HTML defines a set of 252 &lt;a href="http://en.wikipedia.org/wiki/Character_entity_reference" title="Character entity reference"&gt;character entity references&lt;/a&gt; and a set of 1,114,050 &lt;a href="http://en.wikipedia.org/wiki/Numeric_character_reference" title="Numeric character reference"&gt;numeric character references&lt;/a&gt;, both of which allow individual characters to be written via simple markup, rather than literally. A literal character and its markup counterpart are considered equivalent and are rendered identically.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;The ability to "escape" characters in this way allows for the characters &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;&lt;/span&gt;&lt;/code&gt; and &lt;code&gt;&lt;span style="font-size:10;"&gt;&amp;amp;&lt;/span&gt;&lt;/code&gt; (when written as &lt;code&gt;&lt;span style="font-size:10;"&gt;&amp;lt;&lt;/span&gt;&lt;/code&gt; and &lt;code&gt;&lt;span style="font-size:10;"&gt;&amp;amp;&lt;/span&gt;&lt;/code&gt;, respectively) to be interpreted as character data, rather than markup. For example, a literal &lt;code&gt;&lt;span style="font-size:10;"&gt;&lt;&lt;/span&gt;&lt;/code&gt; normally indicates the start of a tag, and &lt;code&gt;&lt;span style="font-size:10;"&gt;&amp;amp;&lt;/span&gt;&lt;/code&gt; normally indicates the start of a character entity reference or numeric character reference; writing it as &lt;code&gt;&lt;span style="font-size:10;"&gt;&amp;amp;&lt;/span&gt;&lt;/code&gt; or &lt;code&gt;&lt;span style="font-size:10;"&gt;&amp;amp;&lt;/span&gt;&lt;/code&gt; or &lt;code&gt;&lt;span style="font-size:10;"&gt;&amp;amp;&lt;/span&gt;&lt;/code&gt; allows &lt;code&gt;&lt;span style="font-size:10;"&gt;&amp;amp;&lt;/span&gt;&lt;/code&gt; to be included in the content of elements or the values of attributes. The double-quote character (&lt;code&gt;&lt;span style="font-size:10;"&gt;"&lt;/span&gt;&lt;/code&gt;), when used to quote an attribute value, must also be escaped as &lt;code&gt;&lt;span style="font-size:10;"&gt;"&lt;/span&gt;&lt;/code&gt; or &lt;code&gt;&lt;span style="font-size:10;"&gt;"&lt;/span&gt;&lt;/code&gt; or &lt;code&gt;&lt;span style="font-size:10;"&gt;"&lt;/span&gt;&lt;/code&gt; when it appears within the attribute value itself. The single-quote character (&lt;code&gt;&lt;span style="font-size:10;"&gt;'&lt;/span&gt;&lt;/code&gt;), when used to quote an attribute value, must also be escaped as &lt;code&gt;&lt;span style="font-size:10;"&gt;'&lt;/span&gt;&lt;/code&gt; or &lt;code&gt;&lt;span style="font-size:10;"&gt;'&lt;/span&gt;&lt;/code&gt; (should NOT be escaped as &lt;code&gt;&lt;span style="font-size:10;"&gt;'&lt;/span&gt;&lt;/code&gt; except in XHTML documents) when it appears within the attribute value itself. However, since document authors often overlook the need to escape these characters, browsers tend to be very forgiving, treating them as markup only when subsequent text appears to confirm that intent.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;Escaping also allows for characters that are not easily typed or that aren't even available in the document's character encoding to be represented within the element and attribute content. For example, the acute-accented &lt;code&gt;&lt;span style="font-size:10;"&gt;e&lt;/span&gt;&lt;/code&gt; (&lt;code&gt;&lt;span style="font-size:10;"&gt;é&lt;/span&gt;&lt;/code&gt;), a character typically found only on Western European keyboards, can be written in any HTML document as the entity reference &lt;code&gt;&lt;span style="font-size:10;"&gt;é&lt;/span&gt;&lt;/code&gt; or as the numeric references &lt;code&gt;&lt;span style="font-size:10;"&gt;é&lt;/span&gt;&lt;/code&gt; or &lt;code&gt;&lt;span style="font-size:10;"&gt;é&lt;/span&gt;&lt;/code&gt;. The characters comprising those references (that is, the &lt;code&gt;&lt;span style="font-size:10;"&gt;&amp;amp;&lt;/span&gt;&lt;/code&gt;, the &lt;code&gt;&lt;span style="font-size:10;"&gt;;&lt;/span&gt;&lt;/code&gt;, the letters in &lt;code&gt;&lt;span style="font-size:10;"&gt;eacute&lt;/span&gt;&lt;/code&gt;, and so on) are available on all keyboards and are supported in all character encodings, whereas the literal &lt;code&gt;&lt;span style="font-size:10;"&gt;é&lt;/span&gt;&lt;/code&gt; is not.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;h3 style="color: rgb(102, 255, 153);"&gt;&lt;a name="Data_types" id="Data_types"&gt;&lt;/a&gt;&lt;span class="mw-headline"&gt;Data types&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;HTML defines several data types for element content, such as script data and stylesheet data, and a plethora of types for attribute values, including IDs, names, URIs, numbers, units of length, languages, media descriptors, colors, character encodings, dates and times, and so on. All of these data types are specializations of character data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;h3 style="color: rgb(102, 255, 153);"&gt;&lt;a name="The_Document_Type_Declaration" id="The_Document_Type_Declaration"&gt;&lt;/a&gt;&lt;span class="mw-headline"&gt;The Document Type Declaration&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;HTML documents are required to start with a Document Type Declaration (informally, a “doctype”). In browsers, the function of the doctype is selecting the rendering mode—particularly to avoid the quirks mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;The original purpose of the doctype is to enable validation based on Document Type Definition (DTD) with SGML tools. The DTD to which the DOCTYPE refers contains machine-readable grammar specifying the permitted and prohibited content for a document conforming to such a DTD. Browsers do not read the DTD, however. HTML5 validation is not DTD-based, so in HTML5 the doctype does not refer to a DTD.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;An example of an HTML 4 doctype:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; color: rgb(102, 255, 153);"&gt;&lt;code&gt;&lt;/code&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;This declaration references the Strict DTD of HTML 4.01, which does not have presentational elements like &lt;code&gt;&lt;/code&gt;, leaving formatting to Cascading Style Sheets and the &lt;code&gt;&lt;span style="font-size:10;"&gt;span&lt;/span&gt;&lt;/code&gt; and &lt;code&gt;&lt;span style="font-size:10;"&gt;div&lt;/span&gt;&lt;/code&gt; tags. SGML-based validators read the DTD in order to properly parse the document and to perform validation. In modern browsers, the HTML 4.01 Strict doctype activates standards layout mode for &lt;a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" title="Cascading Style Sheets"&gt;CSS&lt;/a&gt; as opposed to &lt;a href="http://en.wikipedia.org/wiki/Quirks_mode" title="Quirks mode"&gt;quirks mode&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 153);"&gt;In addition, HTML 4.01 provides Transitional and Frameset DTDs. The Transitional DTD was intended to gradually phase in the changes made in the Strict DTD, while the Frameset DTD was intended for those documents which contained frames.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center; color: rgb(102, 255, 153);" align="center"&gt;&lt;b&gt;&lt;span style="color: rgb(51, 255, 255);font-size:18;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center; color: rgb(102, 255, 153);" align="center"&gt;&lt;b&gt;&lt;span style="color: rgb(51, 255, 255);font-size:18;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-7810763049624681679?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/7810763049624681679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=7810763049624681679' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7810763049624681679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7810763049624681679'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/learnings-of-week.html' title='learnings of the week'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-4416264536455057534</id><published>2009-02-13T01:59:00.000-08:00</published><updated>2009-02-27T02:17:34.489-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>my learnings</title><content type='html'>continuation......&lt;br /&gt;&lt;p style="font-style: italic; color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;Why do we Use Lowercase Tags&lt;/span&gt; &lt;/p&gt;    &lt;ul style="color: rgb(51, 255, 51);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;HTML tags are not case sensitive:&lt;b&gt; means the same as &lt;b&gt;.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;b&gt;  When you surf the Web, you will notice that most tutorials use uppercase HTML tags in their examples.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;b&gt;  If you want to prepare yourself for the next generations of HTML, you should start using lowercase tags.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;b&gt;  The World Wide Web Consortium(W3C) recommends lowercase tags in their HTML 4 recommendation, and XHTML (the next generation HTML) demands lowercase tags.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;Tag Attributes&lt;/span&gt; &lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;&lt;b&gt;    &lt;/b&gt;&lt;/b&gt;&lt;ul style="color: rgb(51, 255, 255);"&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;Tag attributes can provide additional information about the HTML elements in your page. &lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b style="color: rgb(51, 255, 255);"&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;ul style="color: rgb(51, 255, 255);"&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;This tag defines the body of your HTML page:.With an added bgcolor attribute, you can tell the browser that the background color of your page should be red, like this: .&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b style="color: rgb(51, 255, 255);"&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;ul style="color: rgb(51, 255, 255);"&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;This tag defines an HTML table:&lt;/b&gt;&lt;/b&gt;&lt;table&gt;&lt;b&gt;&lt;b&gt;. With an added border attribute, you can tell the browser that the table should have no borders:&lt;/b&gt;&lt;/b&gt;&lt;/table&gt;&lt;table border="0"&gt;&lt;/table&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b style="color: rgb(51, 255, 255);"&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;ul style="color: rgb(51, 255, 255);"&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;Attributes always come in name/value pairs like this: name=“value”.&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b style="color: rgb(51, 255, 255);"&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;ul style="color: rgb(51, 255, 255);"&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;Attributes are always added to the start tag of an HTML element.&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b style="color: rgb(51, 255, 255);"&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;ul style="color: rgb(51, 255, 255);"&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;Attributes values should always be enclosed in quotes.&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;p style="color: rgb(51, 51, 255);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;Basic HTML Tags&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;&lt;b&gt;    &lt;/b&gt;&lt;/b&gt;&lt;ul style="color: rgb(153, 153, 255);"&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;The most important tags in HTML are tags that define headings, paragraphs and line breaks.&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;p style="color: rgb(255, 153, 255);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;Line Breaks&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;&lt;b&gt;    &lt;/b&gt;&lt;/b&gt;&lt;ul&gt;&lt;li style="color: rgb(204, 102, 204);"&gt;&lt;b&gt;&lt;b&gt;The tag is used when you want to end a line, but don’t want&lt;span style=""&gt;  &lt;/span&gt;to start a new paragraph. The&lt;br /&gt;tag forces a line break wherever you place it.&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;  The tag is an empty tag. It has no closing tag.&lt;/span&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;p style="color: rgb(153, 51, 153);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;Comments in HTML&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;&lt;b&gt;    &lt;/b&gt;&lt;/b&gt;&lt;ul style="color: rgb(255, 102, 0);"&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;The comment tag is used to insert a comment in the HTML source code. A comment will be ignored by the browser. &lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b style="color: rgb(255, 102, 0);"&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;ul style="color: rgb(255, 102, 0);"&gt;&lt;li&gt;&lt;b&gt;&lt;b&gt;You can use comments to explain your code, which can help you when you edit the source code at a later date.&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;table style="width: 7px; height: 252px;" dir="ltr" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td color="black" style="border-style: solid; vertical-align: top;" height="32" width="315"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td color="black" style="border-style: solid; vertical-align: top;" height="32" width="315"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td color="black" style="border-style: solid; vertical-align: top;" height="32" width="315"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td color="black" style="border-style: solid; vertical-align: top;" height="32" width="315"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td color="black" style="border-style: solid; vertical-align: top;" height="32" width="315"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td color="black" style="border-style: solid; vertical-align: top;" height="32" width="315"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td color="black" style="border-style: solid; vertical-align: top;" height="32" width="315"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td color="black" style="border-style: solid; vertical-align: top;" height="28" width="315"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-4416264536455057534?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/4416264536455057534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=4416264536455057534' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4416264536455057534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4416264536455057534'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/my-learnings.html' title='my learnings'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-2723923860083098284</id><published>2009-02-07T14:24:00.000-08:00</published><updated>2009-02-21T02:38:42.899-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>BASIC INFO's (html elements)</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-family:webdings;"&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 255, 255); font-weight: bold; font-family: verdana;"&gt;◄HTML ELEMENTS►&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 255, 255);font-size:180%;" &gt;&lt;span style="font-family:webdings;"&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;&lt;span style="color: rgb(153, 51, 153); font-weight: bold; font-family: verdana;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:webdings;" &gt;&lt;span style="color: rgb(204, 102, 204);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;p  style="text-align: justify;font-family:verdana;"&gt;   &lt;span style="color: rgb(204, 51, 204);"&gt;    &lt;span style="color: rgb(102, 255, 153);"&gt;Many &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(102, 255, 153);"&gt;HTML elements&lt;/span&gt;&lt;span style="color: rgb(102, 255, 153);"&gt; are designed for altering the semantic structure or meaning of a document. Some are block-level, but most are inline and can be included in the normal flow of text.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt;&lt;b&gt;    HTML element&lt;/b&gt; indicates structure in an HTML document and a way of hierarchically arranging content. More specifically, an HTML element is an &lt;span style="color: rgb(255, 204, 255);"&gt;SGML &lt;/span&gt;element that meets the requirements of one or more of the HTML DOCUMENT TYPE DEFINITIONS &lt;span style="color: rgb(255, 204, 255);"&gt;(DTDs)&lt;/span&gt;. These elements have properties: both &lt;i&gt;attributes&lt;/i&gt; and &lt;i&gt;content&lt;/i&gt;, as specified (both allowable and required) according to the appropriate HTML DTD. &lt;/p&gt;&lt;div style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt; &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt;&lt;a name="General_block_elements" id="General_block_elements"&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt; &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt;    Syntactically HTML elements are constructed with:&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt; &lt;/div&gt;&lt;ul style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt;&lt;li&gt;a &lt;i&gt;start tag&lt;/i&gt; marking the beginning of an element&lt;/li&gt;&lt;li&gt;any number of&lt;span style="color: rgb(255, 204, 255);"&gt; attributes&lt;/span&gt; (and their associated values)&lt;/li&gt;&lt;li&gt;some amount of &lt;i&gt;content&lt;/i&gt; (characters and other elements)&lt;/li&gt;&lt;li&gt;an&lt;span style="color: rgb(255, 204, 255);"&gt; &lt;/span&gt;&lt;i&gt;end tag&lt;/i&gt; (note: Empty elements should not have an end tag. It is optional for some others.)&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt; &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt;    Many HTML elements include &lt;i&gt;attributes&lt;/i&gt; in their start tags, defining desired behavior or indicating additional element properties. The end tag is optional for many elements; in a minimal case, an &lt;i&gt;empty element&lt;/i&gt; has no content and requires no end tag. There are a few elements that are not part of any official DTDs, yet are supported by some browsers and used by some web pages. Such elements may be ignored or displayed improperly on browsers not supporting them.&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt; &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(102, 255, 153); font-family: verdana;"&gt;    Informally, HTML elements are sometimes referred to as "tags" (an example of synecdoche), though many prefer the term &lt;i&gt;tag&lt;/i&gt; strictly in reference to the semantic structures delimiting the start and end of an element.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-2723923860083098284?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/2723923860083098284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=2723923860083098284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2723923860083098284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2723923860083098284'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/basic-infos-html-elements.html' title='BASIC INFO&apos;s (html elements)'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-6716651045922719702</id><published>2009-02-07T01:35:00.000-08:00</published><updated>2009-02-27T01:56:56.912-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>this is it!!!</title><content type='html'>&lt;p:colorscheme colors="#ffffe1,#000000,#330033,#330033,#cccc99,#ff0000,#990033,#b2b2b2"&gt;  &lt;/p:colorscheme&gt;&lt;div shape="_x0000_s1026" class="O" style=""&gt;  &lt;p style="color: rgb(255, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-size:180%;"&gt;Introduction to HTML&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(255, 255, 102);"&gt;&lt;span style="font-size:130%;"&gt;--HTML stands for Hyper Text Markup Language&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(255, 255, 102);"&gt;&lt;span style="font-size:130%;"&gt;--An HTML file is a text file containing small markup tags&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(255, 255, 102);"&gt;&lt;span style="font-size:130%;"&gt;--The markup tags tell the Web browser how to display the page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(255, 255, 102);"&gt;&lt;span style="font-size:130%;"&gt;--An HTML file must have an htm or html file extension&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-size:16;"&gt;&lt;span style="color: rgb(255, 255, 102);font-size:130%;" &gt;--An HTML file can be created using a simple text&lt;/span&gt;&lt;span style="color: rgb(51, 0, 51);"&gt;&lt;span style="color: rgb(255, 255, 102);font-size:130%;" &gt; editor.&lt;/span&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 204, 204);font-size:130%;" &gt;&lt;/span&gt;&lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;  &lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;HTM or HTML Extension?&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;When you save an HTML file, you can use either the .htm or the .html extension. We have used .htm in our examples. It might be a bad habit inherited from the past when some of the commonly used software only allowed three letters extensions.&lt;/span&gt;&lt;span style=""&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(0, 204, 204);"&gt;Note on HTML Editors.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="color: rgb(51, 102, 255);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;You can easily edit files using a WYSIWYG (what you see is what you get) editor like Frontpage, Claris Home Page or Adobe PageMill instead of writing your markup tags in a plain text file. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p style="color: rgb(51, 102, 255);" class="MsoNormal"&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;But if you want to be skillful Web developer, we strongly recommend that you use a plain text editor to learn your primer HTML.&lt;/span&gt;&lt;span style=""&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;  &lt;/span&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold; color: rgb(153, 153, 255);font-size:130%;" &gt;HTML Elements.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;ul style="color: rgb(204, 102, 204);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;HTML documents are text files made up of HTML elements.&lt;/span&gt; &lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;HTML elements are defined using HTML tags. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;   &lt;span style="font-size:100%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 255, 51);"&gt;HTML Tags&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;  &lt;/p&gt;&lt;ul&gt;&lt;li style="color: rgb(255, 204, 102);"&gt;&lt;span style="font-size:100%;"&gt;HTML tags are used to mark-up HTML elements&lt;/span&gt;&lt;/li&gt;&lt;li style="color: rgb(255, 204, 102);"&gt;  &lt;span style="font-size:100%;"&gt;HTML tags are surrounded by the two characters &lt;&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="color: rgb(255, 204, 102);"&gt;  &lt;span style="font-size:100%;"&gt;The surroundings characters are called angle brackets&lt;/span&gt;&lt;/li&gt;&lt;li style="color: rgb(255, 204, 102);"&gt;  &lt;span style="font-size:100%;"&gt;HTML tags normally come in pairs like &lt;b&gt; and &lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="color: rgb(255, 204, 102);"&gt;  &lt;span style="font-size:100%;"&gt;The first tag in a pair is the start tag, the second tag is the end tag&lt;/span&gt;&lt;/li&gt;&lt;li style="color: rgb(255, 204, 102);"&gt;  &lt;span style="font-size:100%;"&gt;The text between the start and end tags is the element content.&lt;/span&gt;&lt;/li&gt;&lt;li style="color: rgb(255, 204, 102);"&gt;&lt;span style="font-size:100%;"&gt;HTML tags are not case sensitive, &lt;b&gt; means the same as &lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;b&gt;The HTML element starts with a start tag:&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;  The content of the HTML element is: This text is bold&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;  The HTML element ends with an end tag: &lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;b&gt;  The purpose of the &lt;b&gt; tag is to define an HTML element that should be displayed as bold.&lt;/b&gt;&lt;b&gt; &lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 102);"&gt;&lt;br /&gt;&lt;/span&gt;  &lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;br /&gt;&lt;span style="font-size:16;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 255, 51);"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;  &lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-6716651045922719702?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/6716651045922719702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=6716651045922719702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6716651045922719702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6716651045922719702'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/this-is-it.html' title='this is it!!!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-1166173678042406713</id><published>2009-02-06T16:31:00.000-08:00</published><updated>2009-02-20T16:37:17.617-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>Let's Start!!!</title><content type='html'>&lt;span style="font-family: arial; font-weight: bold; color: rgb(255, 153, 255);font-size:180%;" &gt;HTML ELEMENTS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;dfn&gt;HTML elements&lt;/dfn&gt; are the fundamentals of HTML. HTML documents are simply a text file made up of HTML elements. These elements are defined using &lt;dfn&gt;HTML tags&lt;/dfn&gt;. HTML tags tell your browser which &lt;i&gt;elements&lt;/i&gt; to present and how to present them. Where the element appears is determined by the order in which the tags appear.&lt;/p&gt;  &lt;p&gt;HTML consists of almost 100 tags. Don't let that put you off though - you will probably find that most of the time, you only use a handful of tags on your web pages. Having said that, I highly recommend learning all HTML tags eventually - but we'll get to that later.&lt;/p&gt;  &lt;p&gt;OK, lets look more closely at the example that we created in the previous lesson.&lt;/p&gt; &lt;div class="example-code"&gt; &lt;code&gt; &lt;/code&gt;&lt;pre&gt;&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;&lt;br /&gt;&lt;html&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;&lt;title&gt;HTML Tutorial Example&lt;/title&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt;&lt;p&gt;Less than 5 minutes into this HTML tutorial and&lt;br /&gt;I've already created my first homepage!&lt;/p&gt;&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt; &lt;p&gt;Explanation of the above code:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p&gt;The &lt;a href="http://quackit.com/html/tags/doctype_html_public.cfm"&gt;&lt;!DOCTYPE... &gt;&lt;/a&gt; element tells the browser which version of HTML the document is using. 	&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The &lt;a href="http://quackit.com/html/tags/html_html_tag.cfm"&gt;&lt;html&gt;&lt;/a&gt; element can be thought of as a container that all other tags sit inside (except for the !DOCTYPE tag). 	&lt;/p&gt;&lt;/li&gt;&lt;li&gt;The &lt;a href="http://quackit.com/html/tags/html_head_tag.cfm"&gt;&lt;head&gt;&lt;/a&gt; tag contains information that is not normally viewable within your browser (such as meta tags, JavaScript and CSS), although the &lt;a href="http://quackit.com/html/tags/html_title_tag.cfm"&gt;&lt;title&gt;&lt;/a&gt; tag is an exception to this. The content of the &lt;code&gt;&lt;title&gt;&lt;/code&gt; tag is displayed in the browser's title bar (right at the very top of the browser).&lt;/li&gt;&lt;li&gt;The &lt;a href="http://quackit.com/html/tags/html_body_tag.cfm"&gt;&lt;body&gt;&lt;/a&gt; tag is the main area for your content. This is where most of your code (and viewable elements) will go.&lt;/li&gt;&lt;li&gt;The &lt;a href="http://quackit.com/html/tags/html_p_tag.cfm"&gt;&lt;p&gt;&lt;/a&gt; tag declares a paragraph. This contains the body text.&lt;/li&gt;&lt;/ul&gt;   &lt;h2 style="font-family: trebuchet ms; color: rgb(255, 153, 0);"&gt;&lt;span style="font-size:130%;"&gt;Closing your tags&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;As mentioned in a previous lesson, you'll notice that all of these tags have opening and closing tags, and that the content of the tag is placed in between them. There are a few exceptions to this rule.&lt;/p&gt; &lt;p&gt;You'll also notice that the closing tag is slightly different to the opening tag - the closing tag contains a forward slash (&lt;code&gt;/&lt;/code&gt;) after the &lt;code&gt;&lt;&lt;/code&gt;. This tells the browser that this tag closes the previous one.&lt;/p&gt;  &lt;h2 style="color: rgb(255, 153, 0); font-family: arial;"&gt;&lt;span style="font-size:130%;"&gt;UPPERCASE or lowercase?&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Although most browsers will display your page regardless of the case you use, you should always code in lowercase. This helps keep your code XML compliant (but that's another topic).&lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;table&gt; 	&lt;tbody&gt;&lt;tr&gt; 		&lt;td width="100"&gt;Therefore...&lt;/td&gt;&lt;td&gt;&lt;b&gt;Good:&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;head&gt;&lt;/code&gt;&lt;/td&gt; 	&lt;/tr&gt; 	&lt;tr&gt; 		&lt;td&gt; &lt;/td&gt;&lt;td&gt;&lt;b&gt;Bad:&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;head&gt;&lt;/code&gt;&lt;/td&gt; 	&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;p&gt;In the next lesson, we learn about some of the more common formatting tags.&lt;/p&gt;&lt;span style="color: rgb(255, 153, 255);font-size:180%;" &gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;HTML FORMATTING&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;You may be familiar with some of the formatting options that are available in word processing applications such as Microsoft Office, and desktop publishing software such as QuarkXpress. Well, many of these formatting features are available in HTML too! This lesson contains some of the more common formatting options.&lt;/p&gt;  &lt;h2 style="font-family: trebuchet ms; color: rgb(255, 153, 0);"&gt;&lt;span style="font-size:130%;"&gt;Headings&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;There is a special tag for specifying headings in HTML. There are 6 levels of headings in HTML ranging from &lt;code&gt;h1&lt;/code&gt; for the most important, to &lt;code&gt;h6&lt;/code&gt; for the least important.&lt;/p&gt; &lt;p&gt;Typing this code:&lt;/p&gt; &lt;div class="example-code"&gt; &lt;code&gt; &lt;/code&gt;&lt;pre&gt;&lt;h1&gt;Heading 1&lt;/h1&gt;&lt;br /&gt;&lt;h2&gt;Heading 2&lt;/h2&gt;&lt;br /&gt;&lt;h3&gt;Heading 3&lt;/h3&gt;&lt;br /&gt;&lt;h4&gt;Heading 4&lt;/h4&gt;&lt;br /&gt;&lt;h5&gt;Heading 5&lt;/h5&gt;&lt;br /&gt;&lt;h6&gt;Heading 6&lt;/h6&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt; &lt;p&gt;Results in this:&lt;/p&gt; &lt;div class="example-display"&gt; &lt;h1 style="border: medium none ;"&gt;Heading 1&lt;/h1&gt; &lt;h2 style="border: medium none ;"&gt;Heading 2&lt;/h2&gt; &lt;h3&gt;Heading 3&lt;/h3&gt; &lt;h4&gt;Heading 4&lt;/h4&gt; &lt;h5&gt;Heading 5&lt;/h5&gt; &lt;h6&gt;Heading 6&lt;/h6&gt;  &lt;/div&gt;  &lt;h2 style="font-family: trebuchet ms; color: rgb(255, 153, 0); font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;Bold&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;You specify bold text with the &lt;code&gt;&lt;b&gt;&lt;/code&gt; tag.&lt;/p&gt; &lt;p&gt;Typing this code:&lt;/p&gt; &lt;div class="example-code"&gt; &lt;code&gt; &lt;b&gt;This text is bold.&lt;/b&gt; &lt;/code&gt; &lt;/div&gt; &lt;p&gt;Results in this:&lt;/p&gt; &lt;div class="example-display"&gt; &lt;b&gt;This text is bold.&lt;/b&gt;  &lt;/div&gt;  &lt;h2 style="font-family: trebuchet ms; font-weight: bold; color: rgb(255, 153, 0);"&gt;&lt;span style="font-size:130%;"&gt;Italics&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;You specify italic text with the &lt;code&gt;&lt;i&gt;&lt;/code&gt; tag.&lt;/p&gt; &lt;p&gt;Typing this code:&lt;/p&gt; &lt;div class="example-code"&gt; &lt;code&gt; &lt;i&gt;This text is italicised.&lt;/i&gt; &lt;/code&gt; &lt;/div&gt; &lt;p&gt;Results in this:&lt;/p&gt; &lt;div class="example-display"&gt; &lt;i&gt;This text is italicised.&lt;/i&gt;  &lt;/div&gt;  &lt;h2 style="color: rgb(255, 153, 0); font-family: trebuchet ms;"&gt;&lt;span style="font-size:130%;"&gt;Line Breaks&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Typing this code:&lt;/p&gt; &lt;div class="example-code"&gt; &lt;code&gt; &lt;p&gt;Here is a...&lt;br /&gt;line break.&lt;/p&gt; &lt;/code&gt; &lt;/div&gt; &lt;p&gt;Results in this:&lt;/p&gt; &lt;div class="example-display"&gt; &lt;p&gt;Here is a&lt;br /&gt;line break.&lt;/p&gt;  &lt;/div&gt;  &lt;h2 style="color: rgb(255, 153, 0); font-family: trebuchet ms;"&gt;&lt;span style="font-size:130%;"&gt;Horizontal Rule&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Typing this code:&lt;/p&gt; &lt;div class="example-code"&gt; &lt;code&gt; Here's a horizontal rule... &lt;hr /&gt; ...that was a horizontal rule :) &lt;/code&gt; &lt;/div&gt; &lt;p&gt;Results in this:&lt;/p&gt; &lt;div class="example-display"&gt; Here's a horizontal rule... &lt;hr /&gt; ...that was a horizontal rule :)  &lt;/div&gt;  &lt;h2 style="font-family: trebuchet ms; font-weight: bold; color: rgb(255, 153, 0);"&gt;&lt;span style="font-size:130%;"&gt;Unordered (un-numbered) List&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Typing this code:&lt;/p&gt; &lt;div class="example-code"&gt; &lt;code&gt; &lt;/code&gt;&lt;pre&gt;&lt;ul&gt;&lt;br /&gt;  &lt;li&gt;List item 1&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;List item 2&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;List item 3&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt; &lt;p&gt;Results in this:&lt;/p&gt; &lt;div class="example-display"&gt; &lt;ul&gt;&lt;li&gt;List item 1&lt;/li&gt;&lt;li&gt;List item 2&lt;/li&gt;&lt;li&gt;List item 3&lt;/li&gt;&lt;/ul&gt;  &lt;/div&gt;  &lt;h2 style="font-weight: bold; font-family: trebuchet ms; color: rgb(255, 153, 0);"&gt;&lt;span style="font-size:130%;"&gt;Ordered (numbered) List&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Note, that the only difference between an ordered list and an unordered list is the first letter of the list definition ("o" for ordered, "u" for unordered).&lt;/p&gt; &lt;p&gt;Typing this code:&lt;/p&gt; &lt;div class="example-code"&gt; &lt;code&gt; &lt;/code&gt;&lt;pre&gt;&lt;ol&gt;&lt;br /&gt;  &lt;li&gt;List item 1&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;List item 2&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;List item 3&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt; &lt;p&gt;Results in this:&lt;/p&gt; &lt;div class="example-display"&gt; &lt;ol&gt;&lt;li&gt;List item 1&lt;/li&gt;&lt;li&gt;List item 2&lt;/li&gt;&lt;li&gt;List item 3&lt;/li&gt;&lt;/ol&gt;  &lt;/div&gt;  &lt;p&gt;We will be covering more HTML tags throughout this tutorial, but before we do that, you should know about &lt;dfn&gt;attributes&lt;/dfn&gt;.&lt;/p&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-1166173678042406713?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/1166173678042406713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=1166173678042406713' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/1166173678042406713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/1166173678042406713'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/02/lets-start.html' title='Let&apos;s Start!!!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-6970069309202557980</id><published>2009-01-31T23:45:00.000-08:00</published><updated>2009-02-26T19:44:44.922-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>4th grading!!!</title><content type='html'>&lt;span style="font-size:180%;color:#ffcc00;"&gt;&lt;em&gt;WEB DESIGN AND DEVELOPMENT&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;span style="font-size:130%;color:#000099;"&gt;Web Page design&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#3366ff;"&gt;-----requires conceptualizing, planning, modeling, and executing &lt;/span&gt;&lt;a title="Electronic media" href="http://en.wikipedia.org/wiki/Electronic_media"&gt;&lt;span style="color:#3366ff;"&gt;electronic media&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; &lt;/span&gt;&lt;a title="Content (media and publishing)" href="http://en.wikipedia.org/wiki/Content_(media_and_publishing)"&gt;&lt;span style="color:#3366ff;"&gt;content&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; and its delivery via the &lt;/span&gt;&lt;a title="Internet" href="http://en.wikipedia.org/wiki/Internet"&gt;&lt;span style="color:#3366ff;"&gt;Internet&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; using technologies (such as &lt;/span&gt;&lt;a title="Markup language" href="http://en.wikipedia.org/wiki/Markup_language"&gt;&lt;span style="color:#3366ff;"&gt;markup languages&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;) suitable for rendering and presentation by &lt;/span&gt;&lt;a title="Web browsers" href="http://en.wikipedia.org/wiki/Web_browsers"&gt;&lt;span style="color:#3366ff;"&gt;web browsers&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; or other web-based &lt;/span&gt;&lt;a title="Graphical user interface" href="http://en.wikipedia.org/wiki/Graphical_user_interface"&gt;&lt;span style="color:#3366ff;"&gt;graphical user interfaces&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; (GUIs).&lt;br /&gt;The intent of web design is to create a &lt;/span&gt;&lt;a title="Web site" href="http://en.wikipedia.org/wiki/Web_site"&gt;&lt;span style="color:#3366ff;"&gt;web site&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; (a collection of electronic files residing on one or more &lt;/span&gt;&lt;a title="Web server" href="http://en.wikipedia.org/wiki/Web_server"&gt;&lt;span style="color:#3366ff;"&gt;web servers&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;) that presents &lt;/span&gt;&lt;a title="Content (media and publishing)" href="http://en.wikipedia.org/wiki/Content_(media_and_publishing)"&gt;&lt;span style="color:#3366ff;"&gt;content&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; (including interactive features or interfaces) to the &lt;/span&gt;&lt;a title="End-user (computer science)" href="http://en.wikipedia.org/wiki/End-user_(computer_science)"&gt;&lt;span style="color:#3366ff;"&gt;end user&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; in the form of &lt;/span&gt;&lt;a title="Web page" href="http://en.wikipedia.org/wiki/Web_page"&gt;&lt;span style="color:#3366ff;"&gt;web pages&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; upon request. Such elements as text, &lt;/span&gt;&lt;a title="Form (web)" href="http://en.wikipedia.org/wiki/Form_(web)"&gt;&lt;span style="color:#3366ff;"&gt;forms&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, and bit-mapped &lt;/span&gt;&lt;a title="Image file formats" href="http://en.wikipedia.org/wiki/Image_file_formats"&gt;&lt;span style="color:#3366ff;"&gt;images&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; (&lt;/span&gt;&lt;a title="Graphics Interchange Format" href="http://en.wikipedia.org/wiki/Graphics_Interchange_Format"&gt;&lt;span style="color:#3366ff;"&gt;GIFs&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;a title="JPEG" href="http://en.wikipedia.org/wiki/JPEG"&gt;&lt;span style="color:#3366ff;"&gt;JPEGs&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;a title="Portable Network Graphics" href="http://en.wikipedia.org/wiki/Portable_Network_Graphics"&gt;&lt;span style="color:#3366ff;"&gt;PNGs&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;) can be placed on the page using &lt;/span&gt;&lt;a title="HTML" href="http://en.wikipedia.org/wiki/HTML"&gt;&lt;span style="color:#3366ff;"&gt;HTML&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;a title="XHTML" href="http://en.wikipedia.org/wiki/XHTML"&gt;&lt;span style="color:#3366ff;"&gt;XHTML&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, or &lt;/span&gt;&lt;a title="XML" href="http://en.wikipedia.org/wiki/XML"&gt;&lt;span style="color:#3366ff;"&gt;XML&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; tags. Displaying more complex media (&lt;/span&gt;&lt;a title="Vector graphics" href="http://en.wikipedia.org/wiki/Vector_graphics"&gt;&lt;span style="color:#3366ff;"&gt;vector graphics&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, animations, videos, sounds) usually requires browsers to incorporate optional &lt;/span&gt;&lt;a title="Plugin" href="http://en.wikipedia.org/wiki/Plugin"&gt;&lt;span style="color:#3366ff;"&gt;plug-ins&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, such as &lt;/span&gt;&lt;a title="Adobe Flash" href="http://en.wikipedia.org/wiki/Adobe_Flash"&gt;&lt;span style="color:#3366ff;"&gt;Flash&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;a title="QuickTime" href="http://en.wikipedia.org/wiki/QuickTime"&gt;&lt;span style="color:#3366ff;"&gt;QuickTime&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, and &lt;/span&gt;&lt;a title="Java (Sun)" href="http://en.wikipedia.org/wiki/Java_(Sun)"&gt;&lt;span style="color:#3366ff;"&gt;Java run-time environment&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;. Other plug-ins are embedded in web pages, using HTML or XHTML tags.&lt;br /&gt;Improvements in the various browsers' compliance with &lt;/span&gt;&lt;a title="World Wide Web Consortium" href="http://en.wikipedia.org/wiki/World_Wide_Web_Consortium"&gt;&lt;span style="color:#3366ff;"&gt;W3C&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; standards prompted a widespread acceptance of XHTML and XML in conjunction with &lt;/span&gt;&lt;a title="Cascading Style Sheets" href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets"&gt;&lt;span style="color:#3366ff;"&gt;Cascading Style Sheets&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; (CSS) to position and manipulate web page elements. The latest W3C standards and proposals aim to deliver a wide variety of media and accessibility options to the client without employing &lt;/span&gt;&lt;a title="Plugin" href="http://en.wikipedia.org/wiki/Plugin"&gt;&lt;span style="color:#3366ff;"&gt;plug-ins&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#ff0000;"&gt;Accessible Web design&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#000099;"&gt;&lt;span style="font-size:130%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#ff9900;"&gt;To be accessible, web pages and sites must conform to certain accessibility principles. These can be grouped into the following main areas:&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;---use &lt;/span&gt;&lt;a title="Semantic markup" href="http://en.wikipedia.org/wiki/Semantic_markup"&gt;&lt;span style="color:#ff9900;"&gt;semantic markup&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt; that provides a meaningful structure to the document (i.e. web page)&lt;br /&gt;---Semantic markup also refers to semantically organizing the web page structure and publishing web services description accordingly so that they can be recognized by other web services on different web pages. Standards for semantic web are set by IEEE &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;---use a valid &lt;/span&gt;&lt;a title="Markup language" href="http://en.wikipedia.org/wiki/Markup_language"&gt;&lt;span style="color:#ff9900;"&gt;markup language&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt; that conforms to a published &lt;/span&gt;&lt;a title="Document Type Definition" href="http://en.wikipedia.org/wiki/Document_Type_Definition"&gt;&lt;span style="color:#ff9900;"&gt;DTD&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt; or &lt;/span&gt;&lt;a title="XML schema" href="http://en.wikipedia.org/wiki/XML_schema"&gt;&lt;span style="color:#ff9900;"&gt;Schema&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt;&lt;br /&gt;provide text equivalents for any non-text components (e.g. images, multimedia) &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;---use &lt;/span&gt;&lt;a title="Hyperlinks" href="http://en.wikipedia.org/wiki/Hyperlinks"&gt;&lt;span style="color:#ff9900;"&gt;hyperlinks&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt; that make sense when read out of context. (e.g. avoid "Click Here.")&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#ff9900;"&gt;---don't use &lt;/span&gt;&lt;a title="Framing (World Wide Web)" href="http://en.wikipedia.org/wiki/Framing_(World_Wide_Web)"&gt;&lt;span style="color:#ff9900;"&gt;frames&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt;.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;---use &lt;/span&gt;&lt;a title="Cascading Style Sheets" href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets"&gt;&lt;span style="color:#ff9900;"&gt;CSS&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt; &lt;/span&gt;&lt;a title="Tableless web design" href="http://en.wikipedia.org/wiki/Tableless_web_design"&gt;&lt;span style="color:#ff9900;"&gt;rather than HTML Tables&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt; for layout. &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;---author the page so that when the source code is read line-by-line by &lt;/span&gt;&lt;a title="User agents" href="http://en.wikipedia.org/wiki/User_agents"&gt;&lt;span style="color:#ff9900;"&gt;user agents&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt; (such as a &lt;/span&gt;&lt;a title="Screen reader" href="http://en.wikipedia.org/wiki/Screen_reader"&gt;&lt;span style="color:#ff9900;"&gt;screen readers&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff9900;"&gt;) it remains intelligible. (Using tables for design will often result in information that is not.) &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;However, W3C permits an exception where tables for layout either make sense when linearized or an alternate version (perhaps linearized) is made available.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;Website accessibility is also changing as it is impacted by Content Management Systems that allow changes to be made to webpages without the need of obtaining programming language knowledge.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-6970069309202557980?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/6970069309202557980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=6970069309202557980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6970069309202557980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6970069309202557980'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/4th-grading.html' title='4th grading!!!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-3828344080718100608</id><published>2009-01-31T11:04:00.000-08:00</published><updated>2009-01-31T11:04:00.535-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>♫WEB PAGE(introduction)♫</title><content type='html'>&lt;h4 style="font-style: italic; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;How to Create a Web Page???&lt;/span&gt;&lt;/h4&gt;                              &lt;div class="Step"&gt;                         &lt;div style="font-style: italic; font-weight: bold;" class="label"&gt;&lt;span style="font-size:130%;"&gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;1&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;span style="color: rgb(255, 255, 204);"&gt;When starting to write HTML code for a Web page, first type html and place this word in brackets. This will illustrate the command that you want to start a web page. &lt;/span&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div class="label"&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Step&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;" class="background"&gt;&lt;span class="number"&gt;2&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;span style="color: rgb(255, 255, 153);"&gt;Next you will want to make a heading. To properly do this type type the word head in between brackets, which will initiate the start of the heading.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div style="font-weight: bold; font-style: italic;" class="label"&gt;&lt;span style="font-size:130%;"&gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;span style="color: rgb(255, 255, 153);"&gt;Next you will want to choose a title. You will be the title in between the words title (enclose in brackets) and /title (enclose in brackets).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div style="font-weight: bold; font-style: italic;" class="label"&gt;&lt;span style="font-size:130%;"&gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;          &lt;span style="color: rgb(255, 255, 102);"&gt;To end a heading type /heading (enclose in brackets).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div style="font-weight: bold; font-style: italic;" class="label"&gt;&lt;span style="font-size:130%;"&gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;span style="color: rgb(255, 255, 51);"&gt;Next, you will write the body of the document you want to present in a web page. Type !--body of the Document--(enclose in brackets).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div style="font-weight: bold; font-style: italic;" class="label"&gt;&lt;span style="font-size:130%;"&gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;6&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;span style="color: rgb(255, 255, 0);"&gt;If you want to change the color of the body of the page, you would simply type body by color = "white" (enclose in brackets).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div class="label"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Step&lt;/span&gt;&lt;/span&gt;&lt;span class="background"&gt;&lt;span class="number"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;7&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;          &lt;span style="color: rgb(255, 204, 0);"&gt;Now create a heading for the page. Here "h1" will be a tag for heading one.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div style="font-weight: bold; font-style: italic;" class="label"&gt;&lt;span style="font-size:130%;"&gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;8&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;          &lt;span style="color: rgb(255, 204, 102);"&gt;Next comes the first paragraph of the document.  To do so, you would put it type p (enclose in brackets).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div style="font-weight: bold; font-style: italic;" class="label"&gt;&lt;span style="font-size:130%;"&gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;9&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;          &lt;span style="color: rgb(255, 204, 51);"&gt;To alter the color of the text, type font color = "green" (enclose in brackets).         &lt;/span&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div class="label"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" &gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;10&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;span style="color: rgb(204, 153, 51);"&gt;To close off the paragraph, type /p (enclose in brackets). Now close off the font color command by typing /font (enclose in brackets). &lt;/span&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div class="label"&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;font-size:130%;" &gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;11&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;          &lt;span style="color: rgb(153, 51, 0);"&gt;Now type /p (enclose in brackets) to close off the paragraph.         &lt;/span&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div style="font-weight: bold; font-style: italic;" class="label"&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;12&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;span style="color: rgb(255, 102, 0);"&gt;If you choose to add another heading, simply start the tag as you did for heading 1. Type h2 Title of Heading 2 /h2. (enclosing both commands in brackets). &lt;/span&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div class="label"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" &gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;13&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;          &lt;span style="color: rgb(255, 102, 0);"&gt;To alter the font of the text type strong bolded /strong (enclose in brackets).         &lt;/span&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div class="label"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" &gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;14&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;span style="color: rgb(255, 153, 0);"&gt;To change font size type font face="Courier" Information of Text /font. The information you place inside the brackets will be the information that will portray the font change. &lt;/span&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div class="label"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" &gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;15&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;          &lt;span style="color: rgb(255, 153, 102);"&gt;If you choose to align text on a certain side of a web page, simply apply the tags. p (enclose in brackets)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;align "right" Text of Document /p.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;                              &lt;div class="Step"&gt;                         &lt;div style="font-weight: bold; font-style: italic;" class="label"&gt;Step&lt;span class="background"&gt;&lt;span class="number"&gt;16&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;          &lt;span style="color: rgb(255, 204, 153);"&gt;When you are finished, simply save as a web page with the save web page option on Microsoft Word.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-3828344080718100608?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/3828344080718100608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=3828344080718100608' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3828344080718100608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3828344080718100608'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/web-pageintroduction.html' title='♫WEB PAGE(introduction)♫'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-6856560234233435696</id><published>2009-01-30T16:22:00.000-08:00</published><updated>2009-02-20T16:31:01.846-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>The New One...</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-family: trebuchet ms; font-weight: bold; color: rgb(255, 153, 102);font-size:180%;" &gt;HTML: What's That?!&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;HTML, an initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document — by denoting certain text as links, headings, paragraphs, lists, and so on — and to supplement that text with interactive forms, embedded images, and other objects. HTML is written in the form of tags, surrounded by angle brackets. HTML can also describe, to some degree, the appearance and semantics of a document, and can include embedded scripting language code (such as JavaScript) which can affect the behavior of Web browsers and other HTML processors.&lt;br /&gt;&lt;br /&gt;&lt;h2 style="font-family: arial; font-style: italic; color: rgb(51, 204, 255);"&gt;&lt;span class="mw-headline"&gt;History of HTML&lt;/span&gt;&lt;/h2&gt;&lt;h3 style="font-family: georgia; color: rgb(255, 204, 255);"&gt;&lt;span style="font-size:130%;"&gt;&lt;span class="mw-headline"&gt;Origins&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;In 1980, physicist &lt;a href="http://en.wikipedia.org/wiki/Tim_Berners-Lee" title="Tim Berners-Lee"&gt;Tim Berners-Lee&lt;/a&gt;, who was an independent contractor at &lt;a href="http://en.wikipedia.org/wiki/CERN" title="CERN"&gt;CERN&lt;/a&gt;, proposed and prototyped &lt;a href="http://en.wikipedia.org/wiki/ENQUIRE" title="ENQUIRE" class="mw-redirect"&gt;ENQUIRE&lt;/a&gt;, a system for &lt;a href="http://en.wikipedia.org/wiki/CERN" title="CERN"&gt;CERN&lt;/a&gt; researchers to use and share documents. In 1989, Berners-Lee and CERN data systems engineer &lt;a href="http://en.wikipedia.org/wiki/Robert_Cailliau" title="Robert Cailliau"&gt;Robert Cailliau&lt;/a&gt; each submitted separate proposals for an &lt;a href="http://en.wikipedia.org/wiki/Internet" title="Internet"&gt;Internet&lt;/a&gt;-based &lt;a href="http://en.wikipedia.org/wiki/Hypertext" title="Hypertext"&gt;hypertext&lt;/a&gt; system providing similar functionality. The following year, they collaborated on a joint proposal, the WorldWideWeb (W3) project,&lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-0" title=""&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; which was accepted by CERN.&lt;/p&gt; &lt;p&gt;&lt;a name="First_specifications" id="First_specifications"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="font-family: georgia; color: rgb(255, 204, 255);" class="mw-headline"&gt;First specifications&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The first publicly available description of HTML was a document called &lt;i&gt;HTML Tags&lt;/i&gt;, first mentioned on the Internet by Berners-Lee in late 1991.&lt;sup id="cite_ref-tagshtml_1-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-tagshtml-1" title=""&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-2" title=""&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; It describes 22 elements comprising the initial, relatively simple design of HTML. Thirteen of these elements still exist in HTML 4.&lt;sup id="cite_ref-3" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-3" title=""&gt;&lt;span&gt;[&lt;/span&gt;4&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Berners-Lee considered HTML to be, at the time, an application of &lt;a href="http://en.wikipedia.org/wiki/SGML" title="SGML" class="mw-redirect"&gt;SGML&lt;/a&gt;, but it was not formally defined as such until the mid-1993 publication, by the &lt;a href="http://en.wikipedia.org/wiki/Internet_Engineering_Task_Force" title="Internet Engineering Task Force"&gt;IETF&lt;/a&gt;, of the first proposal for an HTML specification: Berners-Lee and &lt;a href="http://en.wikipedia.org/wiki/Dan_Connolly" title="Dan Connolly"&gt;Dan Connolly&lt;/a&gt;'s &lt;a href="http://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt" class="external text" title="http://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt" rel="nofollow"&gt;"Hypertext Markup Language (HTML)" Internet-Draft&lt;/a&gt;, which included an SGML &lt;a href="http://en.wikipedia.org/wiki/Document_Type_Definition" title="Document Type Definition"&gt;Document Type Definition&lt;/a&gt; to define the grammar.&lt;sup id="cite_ref-4" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-4" title=""&gt;&lt;span&gt;[&lt;/span&gt;5&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The draft expired after six months, but was notable for its acknowledgment of the &lt;a href="http://en.wikipedia.org/wiki/Mosaic_%28web_browser%29" title="Mosaic (web browser)"&gt;NCSA Mosaic&lt;/a&gt; browser's custom tag for embedding in-line images, reflecting the IETF's philosophy of basing standards on successful prototypes.&lt;sup id="cite_ref-raymond_5-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-raymond-5" title=""&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Similarly, Dave Raggett's competing Internet-Draft, "HTML+ (Hypertext Markup Format)", from late 1993, suggested standardizing already-implemented features like tables and fill-out forms.&lt;sup id="cite_ref-html.2B_6-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-html.2B-6" title=""&gt;&lt;span&gt;[&lt;/span&gt;7&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;After the HTML and HTML+ drafts expired in early 1994, the IETF created an HTML Working Group, which in 1995 completed "HTML 2.0", the first HTML specification intended to be treated as a standard against which future implementations should be based.&lt;sup id="cite_ref-raymond_5-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-raymond-5" title=""&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Published as &lt;a href="http://en.wikipedia.org/wiki/Request_for_Comments" title="Request for Comments"&gt;Request for Comments&lt;/a&gt; 1866, HTML 2.0 included ideas from the HTML and HTML+ drafts.&lt;sup id="cite_ref-7" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-7" title=""&gt;&lt;span&gt;[&lt;/span&gt;8&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; There was no "HTML 1.0"; the 2.0 designation was intended to distinguish the new edition from previous drafts.&lt;sup id="cite_ref-8" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-8" title=""&gt;&lt;span&gt;[&lt;/span&gt;9&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Further development under the auspices of the IETF was stalled by competing interests. Since 1996, the HTML specifications have been maintained, with input from commercial software vendors, by the &lt;a href="http://en.wikipedia.org/wiki/World_Wide_Web_Consortium" title="World Wide Web Consortium"&gt;World Wide Web Consortium&lt;/a&gt; (W3C).&lt;sup id="cite_ref-raggett_9-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-raggett-9" title=""&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; However, in 2000, HTML also became an international standard (&lt;a href="http://en.wikipedia.org/wiki/International_Organization_for_Standardization" title="International Organization for Standardization"&gt;ISO&lt;/a&gt;/&lt;a href="http://en.wikipedia.org/wiki/International_Electrotechnical_Commission" title="International Electrotechnical Commission"&gt;IEC&lt;/a&gt; 15445:2000). The last HTML specification published by the W3C is the HTML 4.01 Recommendation, published in late 1999. Its issues and errors were last acknowledged by errata published in 2001.&lt;/p&gt;&lt;h3 style="color: rgb(255, 204, 255);"&gt;&lt;span class="mw-headline"&gt;Version history of the standard&lt;/span&gt;&lt;/h3&gt;&lt;h4 style="font-style: italic;"&gt;&lt;span class="mw-headline"&gt;HTML version timeline&lt;/span&gt;&lt;/h4&gt; &lt;dl&gt;&lt;dt&gt;November 1995&lt;/dt&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/w/index.php?title=HTML_2.0&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="HTML 2.0 (page does not exist)"&gt;HTML 2.0&lt;/a&gt; was published as IETF &lt;a href="http://tools.ietf.org/html/rfc1866" class="external" title="http://tools.ietf.org/html/rfc1866"&gt;RFC 1866&lt;/a&gt;. Supplemental &lt;a href="http://en.wikipedia.org/wiki/Request_For_Comments" title="Request For Comments" class="mw-redirect"&gt;RFCs&lt;/a&gt; added capabilities: &lt;ul&gt;&lt;li&gt;November 1995: &lt;a href="http://tools.ietf.org/html/rfc1867" class="external" title="http://tools.ietf.org/html/rfc1867"&gt;RFC 1867&lt;/a&gt; (form-based file upload)&lt;/li&gt;&lt;li&gt;May 1996: &lt;a href="http://tools.ietf.org/html/rfc1942" class="external" title="http://tools.ietf.org/html/rfc1942"&gt;RFC 1942&lt;/a&gt; (tables)&lt;/li&gt;&lt;li&gt;August 1996: &lt;a href="http://tools.ietf.org/html/rfc1980" class="external" title="http://tools.ietf.org/html/rfc1980"&gt;RFC 1980&lt;/a&gt; (client-side image maps)&lt;/li&gt;&lt;li&gt;January 1997: &lt;a href="http://tools.ietf.org/html/rfc2070" class="external" title="http://tools.ietf.org/html/rfc2070"&gt;RFC 2070&lt;/a&gt; (&lt;a href="http://en.wikipedia.org/wiki/Internationalization_and_localization" title="Internationalization and localization"&gt;internationalization&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt; &lt;/dd&gt;&lt;dd&gt;In June 2000, all of these were declared obsolete/historic by &lt;a href="http://tools.ietf.org/html/rfc2854" class="external" title="http://tools.ietf.org/html/rfc2854"&gt;RFC 2854&lt;/a&gt;.&lt;/dd&gt;&lt;/dl&gt; &lt;dl&gt;&lt;dt&gt;January 1997&lt;/dt&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/w/index.php?title=HTML_3.2&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="HTML 3.2 (page does not exist)"&gt;HTML 3.2&lt;/a&gt;&lt;sup id="cite_ref-10" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-10" title=""&gt;&lt;span&gt;[&lt;/span&gt;11&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; was published as a &lt;a href="http://en.wikipedia.org/wiki/W3C_Recommendation" title="W3C Recommendation" class="mw-redirect"&gt;W3C Recommendation&lt;/a&gt;. It was the first version developed and standardized exclusively by the W3C, as the IETF had closed its HTML Working Group in September 1997.&lt;sup id="cite_ref-11" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-11" title=""&gt;&lt;span&gt;[&lt;/span&gt;12&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/dd&gt;&lt;dd&gt;HTML 3.2 dropped math formulas entirely, reconciled overlap among various proprietary extensions, and adopted most of Netscape's visual markup tags. Netscape's &lt;a href="http://en.wikipedia.org/wiki/Blink_element" title="Blink element"&gt;blink element&lt;/a&gt; and Microsoft's &lt;a href="http://en.wikipedia.org/wiki/Marquee_element" title="Marquee element" class="mw-redirect"&gt;marquee element&lt;/a&gt; were omitted due to a mutual agreement between the two companies.&lt;sup id="cite_ref-raggett_9-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-raggett-9" title=""&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The ability to include mathematical formulas in HTML wasn't standardized until years later in &lt;a href="http://en.wikipedia.org/wiki/MathML" title="MathML"&gt;MathML&lt;/a&gt;.&lt;/dd&gt;&lt;/dl&gt; &lt;dl&gt;&lt;dt&gt;December 1997&lt;/dt&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/w/index.php?title=HTML_4.0&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="HTML 4.0 (page does not exist)"&gt;HTML 4.0&lt;/a&gt;&lt;sup id="cite_ref-12" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-12" title=""&gt;&lt;span&gt;[&lt;/span&gt;13&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; was published as a W3C Recommendation. It offers three "flavors": &lt;ul&gt;&lt;li&gt;Strict, in which deprecated elements are forbidden,&lt;/li&gt;&lt;li&gt;Transitional, in which deprecated elements are allowed,&lt;/li&gt;&lt;li&gt;Frameset, in which mostly only &lt;a href="http://en.wikipedia.org/wiki/Framing_%28World_Wide_Web%29" title="Framing (World Wide Web)"&gt;frame&lt;/a&gt; related elements are allowed;&lt;/li&gt;&lt;/ul&gt; &lt;/dd&gt;&lt;dd&gt;Initially code-named "Cougar",&lt;sup id="cite_ref-engelfriet_13-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-engelfriet-13" title=""&gt;&lt;span&gt;[&lt;/span&gt;14&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; HTML 4.0 adopted many browser-specific element types and attributes, but at the same time sought to phase out Netscape's visual markup features by marking them as &lt;a href="http://en.wikipedia.org/wiki/Deprecation" title="Deprecation"&gt;deprecated&lt;/a&gt; in favor of style sheets.&lt;/dd&gt;&lt;/dl&gt; &lt;dl&gt;&lt;dt&gt;April 1998&lt;/dt&gt;&lt;dd&gt;HTML 4.0&lt;sup id="cite_ref-14" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-14" title=""&gt;&lt;span&gt;[&lt;/span&gt;15&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; was reissued with minor edits without incrementing the version number.&lt;/dd&gt;&lt;/dl&gt; &lt;dl&gt;&lt;dt&gt;December 1999&lt;/dt&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML_4.01" title="HTML 4.01" class="mw-redirect"&gt;HTML 4.01&lt;/a&gt;&lt;sup id="cite_ref-15" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-15" title=""&gt;&lt;span&gt;[&lt;/span&gt;16&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; was published as a W3C Recommendation. It offers the same three flavors as HTML 4.0, and its last &lt;a href="http://www.w3.org/MarkUp/html4-updates/errata" class="external text" title="http://www.w3.org/MarkUp/html4-updates/errata" rel="nofollow"&gt;errata&lt;/a&gt; were published &lt;a href="http://en.wikipedia.org/wiki/May_12" title="May 12"&gt;May 12&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/2001" title="2001"&gt;2001&lt;/a&gt;.&lt;/dd&gt;&lt;/dl&gt; &lt;dl&gt;&lt;dt&gt;May 2000&lt;/dt&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/w/index.php?title=ISO/IEC_15445:2000&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="ISO/IEC 15445:2000 (page does not exist)"&gt;ISO/IEC 15445:2000&lt;/a&gt;&lt;sup id="cite_ref-16" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-16" title=""&gt;&lt;span&gt;[&lt;/span&gt;17&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; ("&lt;a href="http://en.wikipedia.org/wiki/International_Organization_for_Standardization" title="International Organization for Standardization"&gt;ISO&lt;/a&gt; HTML", based on HTML 4.01 Strict) was published as an ISO/IEC international standard.&lt;/dd&gt;&lt;/dl&gt; &lt;p&gt;As of mid-2008, HTML 4.01 and ISO/IEC 15445:2000 are the most recent versions of HTML. Development of the parallel, XML-based language XHTML occupied the W3C's HTML Working Group through the early and mid-2000s.&lt;/p&gt; &lt;p&gt;&lt;a name="Drafts" id="Drafts"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h5&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="font-style: italic;" class="mw-headline"&gt;Drafts&lt;/span&gt;&lt;/h5&gt; &lt;dl&gt;&lt;dt&gt;October 1991&lt;/dt&gt;&lt;dd&gt;&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML_Tags" title="HTML Tags" class="mw-redirect"&gt;HTML Tags&lt;/a&gt;&lt;/i&gt;,&lt;sup id="cite_ref-tagshtml_1-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-tagshtml-1" title=""&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; an informal CERN document listing twelve HTML tags, was first mentioned in public. November 1992.&lt;/dd&gt;&lt;/dl&gt; &lt;dl&gt;&lt;dt&gt;July 1993&lt;/dt&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/w/index.php?title=Hypertext_Markup_Language_%28Internet_draft%29&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="Hypertext Markup Language (Internet draft) (page does not exist)"&gt;Hypertext Markup Language&lt;/a&gt;&lt;sup id="cite_ref-17" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-17" title=""&gt;&lt;span&gt;[&lt;/span&gt;18&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; was published by the &lt;a href="http://en.wikipedia.org/wiki/Internet_Engineering_Task_Force" title="Internet Engineering Task Force"&gt;IETF&lt;/a&gt; as an Internet-Draft (a rough proposal for a standard). It expired in January 1994.&lt;/dd&gt;&lt;/dl&gt; &lt;dl&gt;&lt;dt&gt;November 1993&lt;/dt&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML%2B" title="HTML+" class="mw-redirect"&gt;HTML+&lt;/a&gt; was published by the IETF as an Internet-Draft and was a competing proposal to the Hypertext Markup Language draft. It expired in May 1994.&lt;/dd&gt;&lt;/dl&gt; &lt;dl&gt;&lt;dt&gt;April 1995 (authored March 1995)&lt;/dt&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/w/index.php?title=HTML_3.0&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="HTML 3.0 (page does not exist)"&gt;HTML 3.0&lt;/a&gt;&lt;sup id="cite_ref-18" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-18" title=""&gt;&lt;span&gt;[&lt;/span&gt;19&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; was proposed as a standard to the IETF, but the proposal expired five months later without further action. It included many of the capabilities that were in Raggett's HTML+ proposal, such as support for tables, text flow around figures, and the display of complex mathematical formulas.&lt;sup id="cite_ref-19" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-19" title=""&gt;&lt;span&gt;[&lt;/span&gt;20&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/dd&gt;&lt;/dl&gt; &lt;p&gt;A demonstration appeared in W3C's own &lt;a href="http://en.wikipedia.org/wiki/Arena_%28web_browser%29" title="Arena (web browser)"&gt;Arena browser&lt;/a&gt;. HTML 3.0 did not succeed for several reasons. The pace of browser development, as well as the number of interested parties, had outstripped the resources of the IETF.&lt;sup id="cite_ref-raggett_9-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-raggett-9" title=""&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Netscape continued to introduce HTML elements that specified the visual appearance of documents,&lt;sup id="cite_ref-20" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-20" title=""&gt;&lt;span&gt;[&lt;/span&gt;21&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; contrary to the goals of the newly-formed W3C, which sought to limit HTML to describing logical structure.&lt;sup id="cite_ref-21" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-21" title=""&gt;&lt;span&gt;[&lt;/span&gt;22&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Microsoft, a newcomer at the time, played to all sides by creating its own tags, implementing Netscape's elements for compatibility, and supporting W3C features such as Cascading Style Sheets.&lt;sup id="cite_ref-raggett_9-3" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-raggett-9" title=""&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;dl&gt;&lt;dt&gt;January 2008&lt;/dt&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML5" title="HTML5" class="mw-redirect"&gt;HTML5&lt;/a&gt;&lt;sup id="cite_ref-22" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-22" title=""&gt;&lt;span&gt;[&lt;/span&gt;23&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; was published as a Working Draft by the W3C.&lt;/dd&gt;&lt;/dl&gt; &lt;p&gt;&lt;a name="XHTML_versions" id="XHTML_versions"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span style="font-style: italic;" class="mw-headline"&gt;XHTML versions&lt;/span&gt;&lt;/h4&gt; &lt;dl&gt;&lt;dd&gt; &lt;div class="noprint relarticle mainarticle"&gt;&lt;i&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/XHTML" title="XHTML"&gt;XHTML&lt;/a&gt;&lt;/i&gt;&lt;/div&gt; &lt;/dd&gt;&lt;/dl&gt; &lt;p&gt;XHTML is a separate language that began as a reformulation of HTML 4.01 using &lt;a href="http://en.wikipedia.org/wiki/XML" title="XML"&gt;XML&lt;/a&gt; 1.0. It continues to be developed:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/XHTML_1.0" title="XHTML 1.0" class="mw-redirect"&gt;XHTML 1.0&lt;/a&gt;,&lt;sup id="cite_ref-23" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-23" title=""&gt;&lt;span&gt;[&lt;/span&gt;24&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; published January 26, 2000 as a W3C Recommendation, later revised and republished August 1, 2002. It offers the same three flavors as HTML 4.0 and 4.01, reformulated in XML, with minor restrictions.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/XHTML_1.1" title="XHTML 1.1" class="mw-redirect"&gt;XHTML 1.1&lt;/a&gt;,&lt;sup id="cite_ref-24" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-24" title=""&gt;&lt;span&gt;[&lt;/span&gt;25&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; published May 31, 2001 as a W3C Recommendation. It is based on XHTML 1.0 Strict, but includes minor changes, can be customized, and is reformulated using modules from &lt;a href="http://www.w3.org/TR/xhtml-modularization/" class="external text" title="http://www.w3.org/TR/xhtml-modularization/" rel="nofollow"&gt;Modularization of XHTML&lt;/a&gt;, which was published April 10, 2001 as a W3C Recommendation.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/XHTML_2.0" title="XHTML 2.0" class="mw-redirect"&gt;XHTML 2.0&lt;/a&gt;,&lt;sup id="cite_ref-25" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-25" title=""&gt;&lt;span&gt;[&lt;/span&gt;26&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; is still a W3C Working Draft. XHTML 2.0 is incompatible with XHTML 1.x and, therefore, would be more accurate to characterize as an XHTML-inspired new language than an update to XHTML 1.x.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/XHTML5" title="XHTML5" class="mw-redirect"&gt;XHTML5&lt;/a&gt;, which is an update to XHTML 1.x, is being defined alongside &lt;a href="http://en.wikipedia.org/wiki/HTML5" title="HTML5" class="mw-redirect"&gt;HTML5&lt;/a&gt; in the HTML5 draft.&lt;sup id="cite_ref-26" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML#cite_note-26" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-6856560234233435696?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/6856560234233435696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=6856560234233435696' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6856560234233435696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6856560234233435696'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/new-one.html' title='The New One...'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-8311429988453877964</id><published>2009-01-25T11:50:00.000-08:00</published><updated>2009-01-25T11:50:00.866-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>♦♦♦ array (additional info) ♦♦♦</title><content type='html'>&lt;h3 class="dynamic"&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt; Array. . . &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/h3&gt; &lt;p&gt;     &lt;span style="color: rgb(255, 255, 153);"&gt; Arrays are a vital part of programming, as they allow the programmer to store more than one value in a variable, whilst retaining a single reference. If we think of a variable as a single slot in memory (or a box) that can contain data of a certain type - number, character, etc. - then an array is the equivalent of a box divided into partitions, each containing a piece of data. Of course, because the array box is storing more information than a single variable box, it is much bigger : it needs more memory.&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(255, 255, 153);"&gt;      We can use the same &lt;i&gt;name&lt;/i&gt; to access the variable, but we need some way to differentiate between the individual slots. To to this we use an &lt;i&gt;index&lt;/i&gt; into the array. For example, supposing we have an array that is 100 units wide, we might access the hundredth unit thus:&lt;/p&gt; &lt;p style="text-align: center; color: rgb(255, 255, 153);"&gt;myArray[99] = 3;&lt;/p&gt; &lt;p style="color: rgb(255, 255, 153);"&gt;      This example also illustrates another feature of most arrays - the index is usually zero based. In other words, the index to the first item is [0] and the index to the last item is [number of elements - 1].&lt;/p&gt; &lt;p style="color: rgb(255, 255, 153);"&gt;      In many programming languages, a string is treated as an array of characters. Usually these arrays are terminated with a null character to indicate the end of the string. This allows software to process strings without knowing the dimension of the array at design time. A collection of strings is still possible, however, by using a multidimensional array.&lt;/p&gt; &lt;h3 style="font-style: italic;" class="dynamic"&gt;&lt;span style="font-size:180%;"&gt;Multi-Dimensional Arrays&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;       &lt;span style="color: rgb(255, 255, 153);"&gt; A multi-dimensional array is an array of arrays. If we think of a one-dimensional array as a row of slots in a box, then a two dimensional array is a grid of slots, and a three dimensional array is a cube of slots. Beyond three dimensions it becomes difficult to conceptualize, but theoretically at at least, arrays can have any dimension.&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(255, 255, 153);"&gt;        If we wish to represent a simple grid (a chessboard for example), we could define the array as:&lt;/p&gt; &lt;p style="text-align: center; color: rgb(255, 255, 153);"&gt;myArray[8][8]&lt;/p&gt; &lt;p style="color: rgb(255, 255, 153);"&gt;         The square at row 3, column 5 would be referenced thus:&lt;/p&gt; &lt;p style="text-align: center; color: rgb(255, 255, 153);"&gt;myArray[3][5] = 1;&lt;/p&gt; &lt;p style="color: rgb(255, 255, 153);"&gt;         We note from this example, that the convention for accessing arrays is often [row, column]. The reason for this is that if we want to store an array of strings, it makes sense to access an individual character in a single string as:&lt;/p&gt; &lt;p style="color: rgb(255, 255, 153);"&gt;myStringArray[3][1]&lt;/p&gt; &lt;p style="color: rgb(255, 255, 153);"&gt;        This references the second character in the fourth string in the array.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-8311429988453877964?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/8311429988453877964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=8311429988453877964' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/8311429988453877964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/8311429988453877964'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/array-additional-info.html' title='♦♦♦ array (additional info) ♦♦♦'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-9127101223190116796</id><published>2009-01-24T23:59:00.000-08:00</published><updated>2009-01-25T00:16:21.609-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>pieces of  it......</title><content type='html'>&lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);font-size:180%;" &gt;ARRAYS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 51);"&gt; An &lt;/span&gt;&lt;i style="color: rgb(255, 255, 51);"&gt;array&lt;/i&gt;&lt;span style="color: rgb(255, 255, 51);"&gt; is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. You've seen an example of arrays already, in the &lt;/span&gt;&lt;code style="color: rgb(255, 255, 51);"&gt;&lt;span style="font-size: 10pt; line-height: 150%;"&gt;main&lt;/span&gt;&lt;/code&gt;&lt;span style="color: rgb(255, 255, 51);"&gt; method of the "Hello World!" application. This section discusses arrays in greater detail.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 255);"&gt; It is a data structure that contains a number of variables called the elements of the array. The array elements are accessed through computed indexes. C# arrays are zero indexed; that is, the array indexes start at zero. All of the array elements must be of the same type, which is called the element type of the array. Array elements can be of any type, including an array type. An array can be a single-dimensional array, or a multidimensional array.&lt;/span&gt;&lt;/p&gt;   &lt;p&gt; &lt;/p&gt;&lt;center&gt;  &lt;center&gt;&lt;p&gt;&lt;img src="http://java.sun.com/docs/books/tutorial/figures/java/objects-tenElementArray.gif" alt="Illustration of an array as 10 boxes numbered 0 through 9; an index of 0 indicates the first element in the array" align="bottom" height="145" width="400" /&gt;&lt;/p&gt;&lt;p class="FigureCaption"&gt;An array of ten elements&lt;/p&gt;&lt;/center&gt; &lt;/center&gt; &lt;p style="color: rgb(102, 255, 255);"&gt; Each item in an array is called an   &lt;i&gt;element&lt;/i&gt;, and each element is   accessed by its  numerical &lt;i&gt;index&lt;/i&gt;. As shown in the above illustration, numbering begins with 0. The 9th element, for example, would therefore be accessed at index 8.&lt;/p&gt;&lt;br /&gt;&lt;p style="color: rgb(102, 255, 255);"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(102, 255, 255);"&gt;  &lt;/p&gt;&lt;h2 style="line-height: 150%; color: rgb(255, 204, 51);"&gt;Indexed Versus Associative Arrays&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;  &lt;p class="body" style="line-height: 150%; color: rgb(255, 204, 51);"&gt;There are two kinds of arrays in PHP: indexed and associative. The keys of an &lt;em&gt;indexed&lt;/em&gt; array are integers, beginning at 0. Indexed arrays are used when you identify things by their position. &lt;em&gt;Associative&lt;/em&gt; arrays have strings as keys and behave more like two-column tables. The first column is the key, which is used to access the value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="body" style="line-height: 150%; color: rgb(255, 204, 51);"&gt;PHP internally stores all arrays as associative arrays, so the only difference between associative and indexed arrays is what the keys happen to be. Some array features are provided mainly for use with indexed arrays, because they assume that you have or want keys that are consecutive integers beginning at 0. In both cases, the keys are unique--that is, you can't have two elements with the same key, regardless of whether the key is a string or an integer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="body" style="line-height: 150%;"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;PHP arrays have an internal order to their elements that is independent of the keys and values, and there are functions that you can use to traverse the arrays based on this internal order. The order is normally that in which values were inserted into the array, but the sorting functions described later let you change the order to one based on keys, values, or anything else you choose.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 255, 255);"&gt;  &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-9127101223190116796?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/9127101223190116796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=9127101223190116796' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/9127101223190116796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/9127101223190116796'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/pieces-of-it.html' title='pieces of  it......'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-6495697704863190335</id><published>2009-01-24T17:54:00.000-08:00</published><updated>2009-01-30T23:56:47.585-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Cara Edenmay N. Bonjibon'/><title type='text'>Array</title><content type='html'>&lt;span style="color:#666666;"&gt;&lt;/span&gt;&lt;span style="color:#333333;"&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;An &lt;em&gt;&lt;strong&gt;array&lt;/strong&gt;&lt;/em&gt; is a data structure consisting of a group of elements that are accessed by indexing. In most programming languages each element has the same data type and the array occupies a contiguous area of storage.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;Array is sometimes really called an "associative array". Some programming languages support array programming which generalises operations and functions to work transparently over arrays as they do with scalars, instead of requiring looping over array members.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;Multi-dimensional arrays are accessed using more than one index: one for each dimension. Multidimensional indexing reduced to a lesser number of dimensions, for example, a two-dimensional array with consisting of 6 and 5 elements respectively could be represented using a one-dimensional array of 30 elements.&lt;br /&gt;Arrays can be classified as fixed-sized arrays (sometimes known as static arrays) whose size cannot change once their storage has been allocated, or dynamic arrays, which can be resized.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;strong&gt;Properties of arrays&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;There are properties of arrays such as permitting constant time (O(1)) random access to individual elements, which is optimal, but moving elements requires time proportional to the number of elements moved. On actual hardware, the presence of e.g. caches can make sequential iteration over an array noticeably faster than random access — a consequence of arrays having good locality of reference because their elements occupy contiguous memory locations — but this does not change the asymptotic complexity of access. Likewise, there are often facilities (such as memcpy) which can be used to move contiguous blocks of array elements faster than one can do through individual element access, but that does not change the asymptotic complexity either.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;strong&gt;Properties in Comparison of arrays&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;Dynamic arrays have similar characteristics to arrays, but can grow. The price for this is a memory overhead, due to elements being allocated but not used. With a constant per-element bound on the memory overhead, dynamic arrays can grow in constant amortized time per element.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;&lt;br /&gt;Associative arrays provide a mechanism for array-like functionality without huge storage overheads when the index values are sparse. Specialized associative arrays with integer keys include Patricia tries and Judy arrays.&lt;br /&gt;&lt;br /&gt;Balanced trees require O(log n) time for index access, but also permit inserting or deleting elements in Θ(log n) time. Arrays require O(n) time for insertion and deletion of elements.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Uses of arrays&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;There are different kinds of usage of arrays, such as implementing mathematical vectors and matrices, as well as other kinds of rectangular tables. In early programming languages, these were often the applications that motivated having arrays.&lt;br /&gt;Because of their performance characteristics, arrays are used to implement other data structures, such as heaps, hash tables, deques, queues, stacks, strings, and VLists.&lt;br /&gt;One or more large arrays are sometimes used to emulate in-program dynamic memory allocation, particularly memory pool allocation. Historically, this has sometimes been the only way to allocate "dynamic memory" portably.&lt;br /&gt;&lt;br /&gt;Array accesses with statically predictable access patterns are a major source of data parallelism.&lt;br /&gt;Some algorithms store a variable number of elements in part of a fixed-size array, which is equivalent to using dynamic array with a fixed capacity; the so-called Pascal strings are examples of this.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Multi-dimensional arrays&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;Ordinary arrays are indexed by a single integer. Also useful, particularly in numerical and graphics applications, is the concept of a multi-dimensional array, in which we index into the array using an ordered list of integers, such as in a[3,1,5]. The number of integers in the list used to index into the multi-dimensional array is always the same and is referred to as the array's dimensionality, and the bounds on each of these are called the array's dimensions. An array with dimensionality k is often called k-dimensional. One-dimensional arrays correspond to the simple arrays discussed thus far; two-dimensional arrays are a particularly common representation for matrices. In practice, the dimensionality of an array rarely exceeds three. Mapping a one-dimensional array into memory is obvious, since memory is logically itself a (very large) one-dimensional array. When we reach higher-dimensional arrays, however, the problem is no longer obvious. Suppose we want to represent this simple two-dimensional array:&lt;br /&gt;&lt;br /&gt;It is most common to index this array using the RC-convention, where elements are referred in row, column fashion or , such as:&lt;br /&gt;&lt;br /&gt;Common ways to index into multi-dimensional arrays include:&lt;br /&gt;&lt;br /&gt;Row-major order. Used most notably by statically-declared arrays in C. The elements of each row are stored in order.&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;&lt;br /&gt;Column-major order. Used most notably in Fortran. The elements of each column are stored in order.&lt;br /&gt;1&lt;br /&gt;4&lt;br /&gt;7&lt;br /&gt;2&lt;br /&gt;5&lt;br /&gt;8&lt;br /&gt;3&lt;br /&gt;6&lt;br /&gt;9&lt;br /&gt;Arrays of arrays. Multi-dimensional arrays are typically represented by one-dimensional arrays of references (Iliffe vectors) to other one-dimensional arrays. The subarrays can be either the rows or columns.&lt;br /&gt;&lt;a class="image" title="A two-dimensional array stored as a one-dimensional array of one-dimensional arrays." href="http://en.wikipedia.org/wiki/File:Array_of_array_storage.svg"&gt;&lt;/a&gt;&lt;br /&gt;The first two forms are more compact and have potentially better locality of reference, but are also more limiting; the arrays must be rectangular, meaning that no row can contain more elements than any other. Arrays of arrays, on the other hand, allow the creation of ragged arrays, also called jagged arrays, in which the valid range of one index depends on the value of another, or in this case, simply that different rows can be different sizes. Arrays of arrays are also of value in programming languages that only supply one-dimensional arrays as primitives.&lt;br /&gt;&lt;br /&gt;In many applications, such as numerical applications working with matrices, we iterate over rectangular two-dimensional arrays in predictable ways. For example, computing an element of the matrix product AB involves iterating over a row of A and a column of B simultaneously. In mapping the individual array indexes into memory, we wish to exploit locality of reference as much as we can. A compiler can sometimes automatically choose the layout for an array so that sequentially accessed elements are stored sequentially in memory; in our example, it might choose row-major order for A, and column-major order for B. Even more exotic orderings can be used, for example if we iterate over the main diagonal of a matrix.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Parallel Array&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In computing, a parallel array is a data structure for representing arrays of records. It keeps a separate, homogeneous array for each field of the record, each having the same number of elements. Then, objects located at the same index in each array are implicitly the fields of a single record. Pointers from one object to another are replaced by array indices. This contrasts with the normal approach of storing all fields of each record together in memory. For example, one might declare an array of 100 names, each a string, and 100 ages, each an integer, associating each name with the age that has the same index.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;An example in C using parallel arrays:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;int ages[] = {0, 17, 2, 52, 25};&lt;br /&gt;char *names[] = {"None", "Mike", "Billy", "Tom", "Stan"};&lt;br /&gt;int parent[] = {0 /*None*/, 3 /*Tom*/, 1 /*Mike*/, 0 /*None*/, 3 /*Tom*/};&lt;br /&gt;&lt;br /&gt;for(i = 1; i &lt;= 4; i++) { printf("Name: %s, Age: %d, Parent: %s \n", names[i], ages[i], names[parent[i]]); } &lt;strong&gt;Or, in Python:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;firstName = ['Joe', 'Bob', 'Frank', 'Hans' ]&lt;br /&gt;lastName = ['Smith','Seger','Sinatra','Schultze']&lt;br /&gt;heightInCM = [169, 158, 201, 199 ]&lt;br /&gt;&lt;br /&gt;for i in xrange(len(firstName)):&lt;br /&gt;print "Name: %s %s" % (firstName[i], LastName[i])&lt;br /&gt;print "Height in CM: %s" % heightInCM[i]&lt;br /&gt;&lt;br /&gt;Parallel arrays have a number of practical advantages over the normal approach:&lt;br /&gt;They can be used in languages which support only arrays of primitive types and not of records (or perhaps don't support records at all).&lt;br /&gt;Parallel arrays are simple to understand and use, and are often used where declaring a record is more trouble than it's worth.&lt;br /&gt;&lt;br /&gt;They can save a substantial amount of space in some cases by avoiding alignment issues. For example, one of the fields of the record can be a single bit, and its array would only need to reserve one bit for each record, whereas in the normal approach many more bits would "pad" the field so that it consumes an entire byte or a word.&lt;br /&gt;&lt;br /&gt;If the number of items is small, array indices can occupy significantly less space than full pointers, particularly on architectures with large words.&lt;br /&gt;&lt;br /&gt;Sequentially examining a single field of each record in the array is very fast on modern machines, since this amounts to a linear traversal of a single array, exhibiting ideal locality of reference and cache behavior.&lt;br /&gt;&lt;br /&gt;However, parallel arrays also have several strong disadvantages, which serves to explain why they are not generally preferred:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;br /&gt;They have significantly worse locality of reference when visiting the records sequentially and examining multiple fields of each record, which is the norm. &lt;/li&gt;&lt;li&gt;&lt;br /&gt;They obscure the relationship between fields of a single record. &lt;/li&gt;&lt;li&gt;&lt;br /&gt;They have little direct language support (the language and its syntax typically express no relationship between the arrays in the parallel array.) &lt;/li&gt;&lt;li&gt;&lt;br /&gt;They are expensive to grow or shrink, since each of several arrays must be reallocated. &lt;/li&gt;&lt;li&gt;&lt;br /&gt;The bad locality of reference is the worst issue. However, a compromise can be made in some cases: if a structure can be divided into groups of fields that are generally accessed together, an array can be constructed for each group, and its elements are records containing only these subsets of the larger structure's fields. This is a valuable way of speeding up access to very large structures with many members, while keeping the portions of the structure tied together. An alternative to tying them together using array indexes is to use references to tie the portions together, but this can be less efficient in time and space. Some compiler optimizations, particularly for vector processors, are able to perform this transformation automatically when arrays of structures are created in the program.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Variable-length arrays&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;In programming, a variable length array (or VLA) is an array data structure of automatic storage duration whose length is determined at run time (instead of at compile time).&lt;br /&gt;Programming languages that support VLAs include APL, COBOL, and C (added in C99).&lt;br /&gt;&lt;a id="Examples" name="Examples"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;p&gt;&lt;br /&gt;The following C99 function allocates a variable-length array of a specified size, fills it with floating-point values, then passes it to another function for processing. Because the array is declared as an automatic variable, its lifetime ends when the read_and_process function returns.&lt;/p&gt;&lt;p&gt;float read_and_process(int n)&lt;br /&gt;{&lt;br /&gt;float vals[n];&lt;br /&gt;&lt;br /&gt;for (int i = 0; i &lt;&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The following COBOL fragment declares a variable-length array of records.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;DATA DIVISION.&lt;br /&gt;WORKING-STORAGE SECTION.&lt;br /&gt;01 VAR-ITEM.&lt;br /&gt;05 VAR-CNT PIC S9(4) BINARY.&lt;br /&gt;05 VAR-PERSON OCCURS 0 TO 20 TIMES DEPENDING ON VAR-CNT.&lt;br /&gt;10 VAR-NAME PIC X(20).&lt;br /&gt;10 VAR-WAGE PIC S9(7)V99 PACKED-DECIMAL.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Languages such as C# and Java do not have variable-length arrays, because all arrays in those languages are dynamically allocated on the heap and therefore do not have automatic storage duration.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-6495697704863190335?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/6495697704863190335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=6495697704863190335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6495697704863190335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6495697704863190335'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/array.html' title='Array'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-6897570573516364717</id><published>2009-01-23T22:20:00.000-08:00</published><updated>2009-01-23T22:22:11.265-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>Well... That's The Way iT iS!</title><content type='html'>&lt;h1 id="firstHeading" class="firstHeading"&gt;Array&lt;/h1&gt;In &lt;a href="http://en.wikipedia.org/wiki/Computer_science" title="Computer science"&gt;computer science&lt;/a&gt;, an &lt;b&gt;array&lt;/b&gt;&lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Array#cite_note-0" title=""&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; is a &lt;a href="http://en.wikipedia.org/wiki/Data_structure" title="Data structure"&gt;data structure&lt;/a&gt; consisting of a group of &lt;a href="http://en.wikipedia.org/wiki/Element_%28mathematics%29" title="Element (mathematics)"&gt;elements&lt;/a&gt; that are accessed by &lt;a href="http://en.wikipedia.org/wiki/Index_%28information_technology%29" title="Index (information technology)"&gt;indexing&lt;/a&gt;. In most &lt;a href="http://en.wikipedia.org/wiki/Programming_language" title="Programming language"&gt;programming languages&lt;/a&gt; each element has the same &lt;a href="http://en.wikipedia.org/wiki/Data_type" title="Data type"&gt;data type&lt;/a&gt; and the array occupies a contiguous area of &lt;a href="http://en.wikipedia.org/wiki/Computer_memory" title="Computer memory" class="mw-redirect"&gt;storage&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;&lt;span class="mw-headline"&gt;Overview&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Most programming languages have a built-in &lt;i&gt;array&lt;/i&gt; data type, although what is called an array in the language documentation is sometimes really an &lt;a href="http://en.wikipedia.org/wiki/Associative_array" title="Associative array"&gt;associative array&lt;/a&gt;. Conversely, the contiguous storage kind of array discussed here may alternatively be called a &lt;i&gt;vector&lt;/i&gt;, &lt;i&gt;list&lt;/i&gt;,&lt;sup id="cite_ref-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Array#cite_note-1" title=""&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; or &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Tables" title="Tables" class="mw-redirect"&gt;table&lt;/a&gt;&lt;/i&gt;.&lt;sup id="cite_ref-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Array#cite_note-2" title=""&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Some programming languages support &lt;a href="http://en.wikipedia.org/wiki/Array_programming" title="Array programming"&gt;array programming&lt;/a&gt; (e.g., &lt;a href="http://en.wikipedia.org/wiki/APL_programming_language" title="APL programming language" class="mw-redirect"&gt;APL&lt;/a&gt;, newer versions of &lt;a href="http://en.wikipedia.org/wiki/Fortran" title="Fortran"&gt;Fortran&lt;/a&gt;) which generalises operations and functions to work transparently over arrays as they do with scalars, instead of requiring looping over array members.&lt;/p&gt; &lt;p&gt;&lt;b&gt;Multi-dimensional arrays&lt;/b&gt; are accessed using more than one index: one for each dimension. Multidimensional indexing reduced to a lesser number of dimensions, for example, a two-dimensional array with consisting of 6 and 5 elements respectively could be represented using a one-dimensional array of 30 elements.&lt;/p&gt; &lt;p&gt;Arrays can be classified as &lt;i&gt;fixed-sized arrays&lt;/i&gt; (sometimes known as &lt;i&gt;static arrays&lt;/i&gt;) whose size cannot change once their storage has been allocated, or &lt;b&gt;&lt;a href="http://en.wikipedia.org/wiki/Dynamic_array" title="Dynamic array"&gt;dynamic arrays&lt;/a&gt;&lt;/b&gt;, which can be resized.&lt;/p&gt; &lt;p&gt;&lt;a name="Properties" id="Properties"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline"&gt;Properties&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Arrays permit constant time (&lt;a href="http://en.wikipedia.org/wiki/Big_O_notation" title="Big O notation"&gt;O&lt;/a&gt;(1)) &lt;a href="http://en.wikipedia.org/wiki/Random_access" title="Random access"&gt;random access&lt;/a&gt; to individual elements, which is optimal, but moving elements requires time proportional to the number of elements moved. On actual hardware, the presence of e.g. &lt;a href="http://en.wikipedia.org/wiki/Cache" title="Cache"&gt;caches&lt;/a&gt; can make sequential iteration over an array noticeably faster than &lt;a href="http://en.wikipedia.org/wiki/Random_access" title="Random access"&gt;random access&lt;/a&gt; — a consequence of arrays having good &lt;a href="http://en.wikipedia.org/wiki/Locality_of_reference" title="Locality of reference"&gt;locality of reference&lt;/a&gt; because their elements occupy contiguous memory locations — but this does not change the asymptotic &lt;a href="http://en.wikipedia.org/wiki/Computational_complexity_theory" title="Computational complexity theory"&gt;complexity&lt;/a&gt; of access. Likewise, there are often facilities (such as &lt;a href="http://en.wikipedia.org/wiki/Memcpy" title="Memcpy" class="mw-redirect"&gt;memcpy&lt;/a&gt;) which can be used to move contiguous blocks of array elements faster than one can do through individual element access, but that does not change the asymptotic complexity either.&lt;/p&gt; &lt;p&gt;Memory-wise, arrays are compact data structures with no per-element &lt;a href="http://en.wikipedia.org/wiki/Computational_overhead" title="Computational overhead"&gt;overhead&lt;/a&gt;. There may be a per-array overhead, e.g. to store index bounds, but this is language-dependent. It can also happen that elements stored in an array require &lt;i&gt;less&lt;/i&gt; memory than the same elements stored in individual variables, because several array elements can be stored in a single &lt;a href="http://en.wikipedia.org/wiki/Word_%28computing%29" title="Word (computing)"&gt;word&lt;/a&gt;; such arrays are often called &lt;b&gt;packed&lt;/b&gt; arrays.&lt;/p&gt; &lt;p&gt;&lt;a name="Properties_in_comparison" id="Properties_in_comparison"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline"&gt;Properties in comparison&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Dynamic_array" title="Dynamic array"&gt;Dynamic arrays&lt;/a&gt; have similar characteristics to arrays, but can grow. The price for this is a memory overhead, due to elements being allocated but not used. With a constant per-element bound on the memory overhead, dynamic arrays can grow in constant &lt;a href="http://en.wikipedia.org/wiki/Amortized_time" title="Amortized time" class="mw-redirect"&gt;amortized time&lt;/a&gt; per element.&lt;/p&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Associative_array" title="Associative array"&gt;Associative arrays&lt;/a&gt; provide a mechanism for array-like functionality without huge storage overheads when the index values are sparse. Specialized associative arrays with integer keys include &lt;a href="http://en.wikipedia.org/wiki/Patricia_trie" title="Patricia trie" class="mw-redirect"&gt;Patricia tries&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Judy_array" title="Judy array"&gt;Judy arrays&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Balanced_trees" title="Balanced trees" class="mw-redirect"&gt;Balanced trees&lt;/a&gt; require O(log &lt;i&gt;n&lt;/i&gt;) time for index access, but also permit inserting or deleting elements in Θ(log &lt;i&gt;n&lt;/i&gt;) time.&lt;sup id="cite_ref-3" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Array#cite_note-3" title=""&gt;&lt;span&gt;[&lt;/span&gt;4&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Arrays require O(&lt;i&gt;n&lt;/i&gt;) time for insertion and deletion of elements.&lt;/p&gt; &lt;p&gt;&lt;a name="Applications" id="Applications"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline"&gt;Applications&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Arrays are used to implement mathematical &lt;a href="http://en.wikipedia.org/wiki/Coordinate_vector" title="Coordinate vector"&gt;vectors&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Matrix_%28mathematics%29" title="Matrix (mathematics)"&gt;matrices&lt;/a&gt;, as well as other kinds of rectangular tables. In early programming languages, these were often the applications that motivated having arrays.&lt;/p&gt; &lt;p&gt;Because of their performance characteristics, arrays are used to implement other data structures, such as &lt;a href="http://en.wikipedia.org/wiki/Heap_%28data_structure%29" title="Heap (data structure)"&gt;heaps&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Hash_table" title="Hash table"&gt;hash tables&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Deque" title="Deque"&gt;deques&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Queue_%28data_structure%29" title="Queue (data structure)"&gt;queues&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Stack_%28data_structure%29" title="Stack (data structure)"&gt;stacks&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/String_%28computer_science%29" title="String (computer science)"&gt;strings&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/VList" title="VList"&gt;VLists&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;One or more large arrays are sometimes used to emulate in-program &lt;a href="http://en.wikipedia.org/wiki/Dynamic_memory_allocation" title="Dynamic memory allocation"&gt;dynamic memory allocation&lt;/a&gt;, particularly &lt;a href="http://en.wikipedia.org/wiki/Memory_pool" title="Memory pool"&gt;memory pool&lt;/a&gt; allocation. Historically, this has sometimes been the only way to allocate "dynamic memory" portably.&lt;/p&gt; &lt;p&gt;Array accesses with statically predictable access patterns are a major source of &lt;a href="http://en.wikipedia.org/wiki/Data_parallelism" title="Data parallelism"&gt;data parallelism&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Some algorithms store a variable number of elements in part of a fixed-size array, which is equivalent to using &lt;a href="http://en.wikipedia.org/wiki/Dynamic_array" title="Dynamic array"&gt;dynamic array&lt;/a&gt; with a fixed capacity; the so-called &lt;a href="http://en.wikipedia.org/wiki/String_%28computer_science%29#Representations" title="String (computer science)"&gt;Pascal strings&lt;/a&gt; are examples of this.&lt;/p&gt; &lt;p&gt;&lt;a name="Indexing" id="Indexing"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline"&gt;Indexing&lt;/span&gt;&lt;/h2&gt;  &lt;p&gt;The valid index values of each dimension of an array are a bounded set of integers (or values of some &lt;a href="http://en.wikipedia.org/wiki/Enumerated_type" title="Enumerated type"&gt;enumerated type&lt;/a&gt;). Programming environments that check indexes for validity are said to perform &lt;a href="http://en.wikipedia.org/wiki/Bounds_checking" title="Bounds checking"&gt;bounds checking&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;a name="Index_of_the_first_element" id="Index_of_the_first_element"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline"&gt;Index of the first element&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The index of the first element (sometimes called the &lt;i&gt;"origin"&lt;/i&gt;) varies by language. There are three main implementations: &lt;i&gt;zero-based&lt;/i&gt;, &lt;i&gt;one-based&lt;/i&gt;, and &lt;i&gt;n-based&lt;/i&gt; arrays, for which the first element has an index of zero, one, or a programmer-specified value. The zero-based array is more natural in the root &lt;a href="http://en.wikipedia.org/wiki/Machine_language" title="Machine language" class="mw-redirect"&gt;machine language&lt;/a&gt; and was popularized by the &lt;a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)"&gt;C programming language&lt;/a&gt;, where the abstraction of &lt;i&gt;array&lt;/i&gt; is very weak, and an index &lt;i&gt;n&lt;/i&gt; of a one-dimensional array is simply the offset of the element accessed from the address of the first (or "zero&lt;sup&gt;th&lt;/sup&gt;") element (scaled by the size of the element). One-based arrays are based on traditional mathematics notation for &lt;a href="http://en.wikipedia.org/wiki/Matrix_%28mathematics%29" title="Matrix (mathematics)"&gt;matrices&lt;/a&gt; and most, but not all, mathematical &lt;a href="http://en.wikipedia.org/wiki/Sequence" title="Sequence"&gt;sequences&lt;/a&gt;. &lt;i&gt;n-based&lt;/i&gt; is made available so the programmer is free to choose the lower bound, which may even be negative, which is most naturally suited for the problem at hand.&lt;/p&gt; &lt;p&gt;The &lt;a href="http://en.wikipedia.org/wiki/Comparison_of_programming_languages_%28array%29" title="Comparison of programming languages (array)"&gt;Comparison of programming languages (array)&lt;/a&gt;, indicates the base index used by various languages.&lt;/p&gt; &lt;p&gt;Supporters of &lt;i&gt;zero-based&lt;/i&gt; indexing sometimes criticize &lt;i&gt;one-based&lt;/i&gt; and &lt;i&gt;n-based&lt;/i&gt; arrays for being slower. Often this criticism is mistaken when &lt;i&gt;one-based&lt;/i&gt; or &lt;i&gt;n-based&lt;/i&gt; array accesses are optimized with &lt;a href="http://en.wikipedia.org/wiki/Common_subexpression_elimination" title="Common subexpression elimination"&gt;common subexpression elimination&lt;/a&gt; (for single dimensioned arrays) and/or with well-defined &lt;a href="http://en.wikipedia.org/wiki/Dope_vector" title="Dope vector"&gt;dope vectors&lt;/a&gt; (for multi-dimensioned arrays). However, in multidimensional arrays where the net offset into linear memory is computed from all of the indices, &lt;i&gt;zero-based&lt;/i&gt; indexing is more natural, simpler, and faster. &lt;a href="http://en.wikipedia.org/wiki/Edsger_W._Dijkstra" title="Edsger W. Dijkstra"&gt;Edsger W. Dijkstra&lt;/a&gt; expressed an opinion in this debate: &lt;a href="http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html" class="external text" title="http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html" rel="nofollow"&gt;Why numbering should start at zero&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The 0-based/1-based debate is not limited to just programming languages. For example, the ground-floor of a building is elevator button "0" in France, but elevator button "1" in the USA.&lt;/p&gt; &lt;p&gt;&lt;a name="Index_of_the_last_element" id="Index_of_the_last_element"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline"&gt;Index of the last element&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The relation between numbers appearing in an array declaration and the index of that array's last element also varies by language. In some languages (e.g. &lt;a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)"&gt;C&lt;/a&gt;) the number of elements contained in the arrays must be specified, whereas in others (e.g. &lt;a href="http://en.wikipedia.org/wiki/Visual_Basic_.NET" title="Visual Basic .NET"&gt;Visual Basic .NET&lt;/a&gt;) the numeric value of the index of the last element must be specified.&lt;/p&gt; &lt;p&gt;&lt;a name="Indexing_methods" id="Indexing_methods"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline"&gt;Indexing methods&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;When an array is implemented as continuous storage, the index-based access, e.g. to element &lt;i&gt;n&lt;/i&gt;, is simply done (for zero-based indexing) by using the address of the first element and adding &lt;i&gt;n&lt;/i&gt; · sizeof(one element). So this is a Θ(1) operation.&lt;/p&gt; &lt;p&gt;&lt;a name="Multi-dimensional_arrays" id="Multi-dimensional_arrays"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline"&gt;Multi-dimensional arrays&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Ordinary arrays are indexed by a single integer. Also useful, particularly in numerical and graphics applications, is the concept of a &lt;i&gt;multi-dimensional array&lt;/i&gt;, in which we index into the array using an ordered list of integers, such as in &lt;i&gt;a&lt;/i&gt;[3,1,5]. The number of integers in the list used to index into the multi-dimensional array is always the same and is referred to as the array's &lt;i&gt;dimensionality&lt;/i&gt;, and the bounds on each of these are called the array's &lt;i&gt;dimensions&lt;/i&gt;. An array with dimensionality &lt;i&gt;k&lt;/i&gt; is often called &lt;i&gt;k&lt;/i&gt;-dimensional. One-dimensional arrays correspond to the simple arrays discussed thus far; two-dimensional arrays are a particularly common representation for &lt;a href="http://en.wikipedia.org/wiki/Matrix_%28math%29" title="Matrix (math)" class="mw-redirect"&gt;matrices&lt;/a&gt;. In practice, the dimensionality of an array rarely exceeds three. Mapping a one-dimensional array into memory is obvious, since memory is logically itself a (very large) one-dimensional array. When we reach higher-dimensional arrays, however, the problem is no longer obvious. Suppose we want to represent this simple two-dimensional array:&lt;/p&gt; &lt;dl&gt;&lt;dd&gt;&lt;img class="tex" alt="\mathbf{A} = \begin{bmatrix} 1 &amp;amp; 2 &amp;amp; 3 \\ 4 &amp;amp; 5 &amp;amp; 6 \\ 7 &amp;amp; 8 &amp;amp; 9 \end{bmatrix}." src="http://upload.wikimedia.org/math/9/e/c/9ec4b8e4d0e0c76d8e8ffa8b2b07ae71.png" /&gt;&lt;/dd&gt;&lt;/dl&gt; &lt;p&gt;It is most common to index this array using the &lt;i&gt;RC&lt;/i&gt;-convention, where elements are referred in &lt;i&gt;row&lt;/i&gt;, &lt;i&gt;column&lt;/i&gt; fashion or &lt;img class="tex" alt="A_{row,col}\," src="http://upload.wikimedia.org/math/c/6/9/c69850d52b60c4af9b8c500fd470475d.png" /&gt;, such as:&lt;/p&gt; &lt;dl&gt;&lt;dd&gt;&lt;img class="tex" alt="A_{1,1}=1,\ A_{1,2}=2,\ \ldots,\ A_{3,2}=8,\ A_{3,3}=9.\," src="http://upload.wikimedia.org/math/4/6/c/46c6304dcb749647e7185127d2f8a00f.png" /&gt;&lt;/dd&gt;&lt;/dl&gt; &lt;p&gt;Common ways to index into multi-dimensional arrays include:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Row-major_order" title="Row-major order"&gt;Row-major order&lt;/a&gt;. Used most notably by statically-declared arrays in &lt;a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)"&gt;C&lt;/a&gt;. The elements of each row are stored in order.&lt;/li&gt;&lt;/ul&gt; &lt;table border="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;6&lt;/td&gt; &lt;td&gt;7&lt;/td&gt; &lt;td&gt;8&lt;/td&gt; &lt;td&gt;9&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Column-major_order" title="Column-major order" class="mw-redirect"&gt;Column-major order&lt;/a&gt;. Used most notably in &lt;a href="http://en.wikipedia.org/wiki/Fortran" title="Fortran"&gt;Fortran&lt;/a&gt;. The elements of each column are stored in order.&lt;/li&gt;&lt;/ul&gt; &lt;table border="1"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;7&lt;/td&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;8&lt;/td&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;6&lt;/td&gt; &lt;td&gt;9&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;ul&gt;&lt;li&gt;Arrays of arrays. Multi-dimensional arrays are typically represented by one-dimensional arrays of &lt;a href="http://en.wikipedia.org/wiki/Reference_%28computer_science%29" title="Reference (computer science)"&gt;references&lt;/a&gt; (&lt;a href="http://en.wikipedia.org/wiki/Iliffe_vector" title="Iliffe vector"&gt;Iliffe vectors&lt;/a&gt;) to other one-dimensional arrays. The subarrays can be either the rows or columns.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Array_of_array_storage.svg" class="image" title="A two-dimensional array stored as a one-dimensional array of one-dimensional arrays."&gt;&lt;img alt="A two-dimensional array stored as a one-dimensional array of one-dimensional arrays." src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/01/Array_of_array_storage.svg/120px-Array_of_array_storage.svg.png" border="0" height="86" width="120" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;The first two forms are more compact and have potentially better locality of reference, but are also more limiting; the arrays must be &lt;i&gt;rectangular&lt;/i&gt;, meaning that no row can contain more elements than any other. Arrays of arrays, on the other hand, allow the creation of &lt;i&gt;ragged arrays&lt;/i&gt;, also called &lt;i&gt;jagged arrays&lt;/i&gt;, in which the valid range of one index depends on the value of another, or in this case, simply that different rows can be different sizes. Arrays of arrays are also of value in programming languages that only supply one-dimensional arrays as primitives.&lt;/p&gt; &lt;p&gt;In many applications, such as numerical applications working with &lt;a href="http://en.wikipedia.org/wiki/Matrix_%28math%29" title="Matrix (math)" class="mw-redirect"&gt;matrices&lt;/a&gt;, we iterate over rectangular two-dimensional arrays in predictable ways. For example, computing an element of the matrix product &lt;b&gt;AB&lt;/b&gt; involves iterating over a row of &lt;b&gt;A&lt;/b&gt; and a column of &lt;b&gt;B&lt;/b&gt; simultaneously. In mapping the individual array indexes into memory, we wish to exploit locality of reference as much as we can. A compiler can sometimes automatically choose the layout for an array so that sequentially accessed elements are stored sequentially in memory; in our example, it might choose row-major order for &lt;b&gt;A&lt;/b&gt;, and column-major order for &lt;b&gt;B&lt;/b&gt;. Even more exotic orderings can be used, for example if we iterate over the &lt;a href="http://en.wikipedia.org/wiki/Main_diagonal" title="Main diagonal"&gt;main diagonal&lt;/a&gt; of a matrix.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-6897570573516364717?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/6897570573516364717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=6897570573516364717' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6897570573516364717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6897570573516364717'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/well-thats-way-it-is.html' title='Well... That&apos;s The Way iT iS!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-7792181363697817367</id><published>2009-01-16T18:02:00.000-08:00</published><updated>2009-01-16T18:02:01.058-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>♥ ARRAY(a little part of it) ♥</title><content type='html'>&lt;div align="center"&gt;&lt;span style="font-family:verdana;font-size:180%;color:#6600cc;"&gt;◄ ARRAY ►&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;         &lt;span style="color:#993399;"&gt;This week I learned a &lt;span style="color:#3366ff;"&gt;little bit&lt;/span&gt; about &lt;span style="font-size:130%;"&gt;&lt;span style="color:#3333ff;"&gt;&lt;strong&gt;ARRAY&lt;/strong&gt;&lt;/span&gt;.&lt;br /&gt;&lt;/span&gt;Array is a collection of variables of the same data type that is referenced by a common name.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt; int array[4]={25,5,7,11,163};&lt;br /&gt;clrscr();&lt;br /&gt;printf(“%d %d %d %d %d”, array[0], array[1], array[2],array[3],array[4]);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Output:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;25 5 7 11 163&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;♫Array declaration♫&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;      The general form for any declaration is as follows:&lt;br /&gt;                                    &lt;br /&gt;                                          &lt;span style="color:#3366ff;"&gt;      type array_name[size];&lt;/span&gt;&lt;br /&gt;Where:&lt;br /&gt;            type is any valid data type in Turbo C which  declares the type of values that array will hold.&lt;br /&gt;&lt;br /&gt;            array_name is a valid variable name which will name the array.&lt;br /&gt;&lt;br /&gt;            size defines how many elements the array will hold.&lt;br /&gt;&lt;br /&gt;    The two declarations for arrays number and answer can be combined into a single declaration:&lt;br /&gt;&lt;br /&gt;int number[100] , answer [25];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;strong&gt;♫Array Initialization♫&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;     Arrays can give initial values during the declaration. This is called array initialization..&lt;br /&gt;&lt;br /&gt;                        int Array1[5]={25, 5, 7, 11, 163};&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="color:#6600cc;"&gt;☺☺☺This topic is the hardest part of the Third Periodical Examination☺☺☺&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-7792181363697817367?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/7792181363697817367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=7792181363697817367' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7792181363697817367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7792181363697817367'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/arraya-little-part-of-it.html' title='♥ ARRAY(a little part of it) ♥'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-6683474078888326326</id><published>2009-01-16T14:57:00.000-08:00</published><updated>2009-01-24T23:48:39.497-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>Sort of Array</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:16;"&gt;&lt;span style="color: rgb(255, 204, 51);font-size:130%;" &gt;ARRAY&lt;/span&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;Array is a collection of variables of the same data type that is referenced by a common name.&lt;/span&gt; &lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;b style="color: rgb(204, 102, 204);"&gt;PARTS OF AN ARRAY&lt;/b&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-size:14;"&gt;&lt;span style="color: rgb(51, 204, 255);font-size:100%;" &gt;Array[0] = 25&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p style="color: rgb(51, 204, 255);" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style=""&gt;Where: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 0.5in; color: rgb(51, 204, 255);"&gt;&lt;b&gt;Array-&lt;/b&gt; &lt;span style=""&gt;Array name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 0.5in; color: rgb(51, 204, 255);"&gt;&lt;b&gt;[0]-&lt;/b&gt; &lt;span style=""&gt;Subscript or index&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 0.5in;"&gt;&lt;b style="color: rgb(51, 204, 255);"&gt;25-&lt;/b&gt;&lt;span style=""&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;Array element&lt;/span&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;b style=""&gt;EXAMPLE:&lt;/b&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;#include&lt;stdio.h&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style=""&gt; &lt;/span&gt;int array[4]={25,5,7,11,163};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;clrscr();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;printf(“%d %d %d %d %d”, array[0], array[1], array[2],array[3],array[4]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;i&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;i&gt;Output:&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:130%;"&gt;&lt;b style="color: rgb(102, 0, 204);"&gt;&lt;i&gt;25 5 7 11 163&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(255, 204, 51);font-size:130%;" &gt;&lt;span style="font-family:verdana;"&gt;Array Declaration&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(255, 102, 102);"&gt;&lt;b style=""&gt;The general form for any declaration is as follows: &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style=""&gt;                                    &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;                                                &lt;/span&gt;&lt;span style=""&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;type array_name[size];&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;b&gt;Where:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;i style=""&gt;type&lt;/i&gt; is any valid data type in Turbo C which&lt;span style=""&gt;  &lt;/span&gt;declares the type of values that array will hold. &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;b&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;i style=""&gt;array_name &lt;/i&gt;is a valid variable name which will name the array.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;b&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;i style=""&gt;size&lt;/i&gt; defines how many elements the array will hold.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;b&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(255, 102, 102);"&gt;&lt;b&gt;The two declarations for arrays number and answer can be combined into a single declaration:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;b&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;int number[100] , answer [25];&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Array Initialization&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(153, 51, 153);"&gt;&lt;b&gt;Arrays can give initial values during the declaration. This is called array initialization..&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 51, 153);" class="MsoNormal"&gt;&lt;b&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: rgb(153, 51, 153);"&gt;                        int Array1[5]={25, 5, 7, 11, 163};&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;This week, we also had our exam in TLE and it's very hard..&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: rgb(153, 51, 153);"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-6683474078888326326?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/6683474078888326326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=6683474078888326326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6683474078888326326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/6683474078888326326'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/sort-of-array.html' title='Sort of Array'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-8031042024373768620</id><published>2009-01-14T09:53:00.000-08:00</published><updated>2009-01-16T17:55:41.219-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>At Last!!!</title><content type='html'>&lt;span style="color: rgb(255, 255, 255);font-family:Arial, Helvetica;" &gt;&lt;center style="color: rgb(255, 204, 153);"&gt;       &lt;span style="font-family:Arial,Helvetica;font-size:+2;"&gt;       &lt;b&gt;Advanced Programming&lt;br /&gt;Recursion Using C++&lt;/b&gt;&lt;/span&gt;       &lt;/center&gt;       &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;  &lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Introduction&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;A recursive function is a function that calls itself either directly or through another function.  Recursion can be direct or indirect. It is direct recursion when a function calls itself;  it is indirect recursion when a function calls another function and that function calls the first function. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;It is important to note that when a function calls itself, a new copy of that function is run.  The local variables in the second version are independent of the local variables in the first,  and they cannot affect one another directly, any more than the local variables in  the &lt;tt&gt;main()&lt;/tt&gt; function can affect the local variables in any function it calls. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;All recursive functions can be replaced by iterative functions.  Iteration solutions are often better than recursion with respect to performance,  because recursion produces a series of function calls and copies of variables,  requiring more overhead, that iteration can avoid.  Recursion is most effective when it mirrors the real-world problem more naturally than iteration,  thus the program is easier to understand and debug. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Some problems are most easily solved by recursion,  usually those in which you act on data and then act in the same way on the result. &lt;/span&gt;&lt;/p&gt;  &lt;h2&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Examples&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Below are two examples that use both iteration and recursion to solve the stated problem.  You should compare these approaches in terms of coding complexity, how well they model the problem  and, perhaps, in computer resources needed (e.g., time to completion). &lt;/span&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;GCD Example&lt;/span&gt;&lt;/h3&gt; &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;In mathematics, the greatest common divisor (gcd) of two non-zero integers,  is the largest positive integer that divides both numbers without remainder. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;The greatest common divisor of &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;b&lt;/tt&gt; is usually written as &lt;tt&gt;gcd(a, b)&lt;/tt&gt;  and read as "&lt;tt&gt;gcd&lt;/tt&gt; of a and b.".  For example, &lt;tt&gt;gcd(12, 18)&lt;/tt&gt; = 6, &lt;tt&gt;gcd(-4, 14)&lt;/tt&gt; = 2 and &lt;tt&gt;gcd(5, 0)&lt;/tt&gt; = 5.  Two numbers are called coprime or relatively prime if their greatest common divisor equals 1.  For example, 9 and 28 are relatively prime. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;&lt;u&gt;Euclid's Algorithm&lt;/u&gt;. Given two natural numbers &lt;b&gt;a&lt;/b&gt; and &lt;b&gt;b&lt;/b&gt;, not both equal to zero:  &lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;&lt;li&gt;check if &lt;b&gt;b&lt;/b&gt; is zero&lt;/li&gt;  &lt;li&gt;if yes, &lt;b&gt;a&lt;/b&gt; is the &lt;b&gt;gcd&lt;/b&gt;&lt;/li&gt;  &lt;li&gt;if not, repeat the process using, respectively, &lt;b&gt;b&lt;/b&gt;, and the remainder after dividing &lt;b&gt;a&lt;/b&gt; by &lt;b&gt;b&lt;/b&gt;.&lt;/li&gt;  &lt;/span&gt;&lt;/ol&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;The remainder after dividing &lt;b&gt;a&lt;/b&gt; by &lt;b&gt;b&lt;/b&gt; is usually written as &lt;tt&gt;a mod b&lt;/tt&gt;).  In C++ we implement &lt;tt&gt;a mod b&lt;/tt&gt; using the &lt;tt&gt;%&lt;/tt&gt; operator. &lt;/span&gt;  &lt;h4&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Using Iteration&lt;/span&gt;&lt;/h4&gt; &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;The following program finds the greatest common divisor using iteration and Euclid's algorithm.  For simplicity, we "hard code" two test cases in the program itself.  &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;// gcdLoop&lt;br /&gt;#include &lt;iostream&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int GreatestCommonDivisor(int, int);&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt; int a,b,gcd;&lt;br /&gt; a = 25;&lt;br /&gt; b = 15;&lt;br /&gt;&lt;br /&gt; gcd = GreatestCommonDivisor(a, b);&lt;br /&gt; cout &lt;&lt; "The GCD of " &lt;&lt; a  &lt;&lt; " and "&lt;br /&gt;      &lt;&lt; b &lt;&lt; " is " &lt;&lt; gcd &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; a = 129;&lt;br /&gt; b = 48;&lt;br /&gt; gcd = GreatestCommonDivisor(a, b);&lt;br /&gt; cout &lt;&lt; "The GCD of " &lt;&lt; a  &lt;&lt; " and "&lt;br /&gt;      &lt;&lt; b &lt;&lt; " is " &lt;&lt; gcd &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; return (0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Using Euclid's algorithm&lt;br /&gt;int GreatestCommonDivisor(int x, int y)&lt;br /&gt;{&lt;br /&gt; while (y != 0)&lt;br /&gt; {&lt;br /&gt;   const int temp = y;&lt;br /&gt;   y = x % y;&lt;br /&gt;   x = temp;&lt;br /&gt; }&lt;br /&gt; return x;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;   &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Compiling and running this program on the course server yields the following output. &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;et791:~/cset3150$ ./gcdLoop &lt;img src="http://cset.sp.utoledo.edu/cset3150/images/enter_key_03.gif" style="vertical-align: text-bottom;" width="29" border="0" height="15" /&gt;&lt;br /&gt;The GCD of 25 and 15 is 5&lt;br /&gt;The GCD of 129 and 48 is 3&lt;br /&gt;et791:~/cset3150$ _&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;&lt;u&gt;Try it&lt;/u&gt;! Cut-and-paste this program to the course server. Compile and run it to verify that it works. &lt;/span&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;&lt;u&gt;Change it&lt;/u&gt;. Use several different sets of test values and confirm the accuracy of the program's results.  Note that in changing the program to include different sets of test values,  you will be changing the &lt;tt&gt;main()&lt;/tt&gt; function - not the &lt;tt&gt;GreatestCommonDivisor()&lt;/tt&gt; function. &lt;/span&gt;&lt;/p&gt;  &lt;h4&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Using Recursion&lt;/span&gt;&lt;/h4&gt; &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;The program below finds the greatest common divisor using Euclid's algorithm and a recursive function. &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;// gcdRecursion&lt;br /&gt;#include &lt;iostream&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int GreatestCommonDivisor(int, int);&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt; int a,b,gcd;&lt;br /&gt; a = 25;&lt;br /&gt; b = 15;&lt;br /&gt;&lt;br /&gt; gcd = GreatestCommonDivisor(a, b);&lt;br /&gt; cout &lt;&lt; "The GCD of " &lt;&lt; a  &lt;&lt; " and "&lt;br /&gt;      &lt;&lt; b &lt;&lt; " is " &lt;&lt; gcd &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; a = 129;&lt;br /&gt; b = 48;&lt;br /&gt; gcd = GreatestCommonDivisor(a, b);&lt;br /&gt; cout &lt;&lt; "The GCD of " &lt;&lt; a  &lt;&lt; " and "&lt;br /&gt;      &lt;&lt; b &lt;&lt; " is " &lt;&lt; gcd &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; return (0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Using Recursion&lt;br /&gt;int GreatestCommonDivisor(const int x, const int y)&lt;br /&gt;{&lt;br /&gt; if (y==0) return x;&lt;br /&gt; return GreatestCommonDivisor(y,x%y);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;   &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Compiling and running this program on the course server yields the following output. &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;et791:~/cset3150$ ./gcdRecursion &lt;img src="http://cset.sp.utoledo.edu/cset3150/images/enter_key_03.gif" style="vertical-align: text-bottom;" width="29" border="0" height="15" /&gt;&lt;br /&gt;The GCD of 25 and 15 is 5&lt;br /&gt;The GCD of 129 and 48 is 3&lt;br /&gt;et791:~/cset3150$ _&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;This is identical to the result for the iterative version (&lt;tt&gt;gcdLoop.cpp&lt;/tt&gt;) shown previously. &lt;/span&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;&lt;u&gt;Try it&lt;/u&gt;! Compile and run the program in your own directory on the course server. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;&lt;u&gt;Change it&lt;/u&gt;. Rewrite the program above to accept input from the user for the two values. &lt;/span&gt;&lt;/p&gt;   &lt;h3&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Factorial Example&lt;/span&gt;&lt;/h3&gt; &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;A common example used to illustrate recursion is the &lt;b&gt;factorial&lt;/b&gt; function.  The factorial of a non-negative integer &lt;tt&gt;n&lt;/tt&gt; is defined as follows,  where the notation &lt;tt&gt;n!&lt;/tt&gt; means "the factorial of &lt;tt&gt;n&lt;/tt&gt;." &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;0! = 1&lt;br /&gt;n! = n * (n-1) * (n-2) * ... * 2 * 1   for n &gt; 0&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;So we would find the following: &lt;/span&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;0! = 1&lt;br /&gt;1! = 1&lt;br /&gt;2! = 2 * 1 = 2&lt;br /&gt;3! = 3 * 2 * 1 = 6&lt;br /&gt;4! = 4 * 3 * 2 * 1 = 24&lt;br /&gt;5! = 5 * 4 * 3 * 2 * 1 = 120&lt;br /&gt;&lt;img src="http://cset.sp.utoledo.edu/cset3150/images/dots_vert.gif" width="39" border="0" height="27" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;This definition of the factorial function leads easily to a normal iterative factorial function. &lt;/span&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;   &lt;/span&gt;&lt;h4&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Using Iteration&lt;/span&gt;&lt;/h4&gt; &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;The program below is written to implement and test the iterative version of the factorial function.  &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;// compute the factorial of n using iteration&lt;br /&gt;#include &lt;iostream&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;long factorial(int);&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt; int a,fact;&lt;br /&gt;&lt;br /&gt; a = 5;&lt;br /&gt; fact = factorial(a);&lt;br /&gt; cout &lt;&lt; "The Factorial of " &lt;&lt; a&lt;br /&gt;      &lt;&lt; " is " &lt;&lt; fact &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; a = 9;&lt;br /&gt; fact = factorial(a);&lt;br /&gt; cout &lt;&lt; "The Factorial of " &lt;&lt; a&lt;br /&gt;      &lt;&lt; " is " &lt;&lt; fact &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; a = 12;&lt;br /&gt; fact = factorial(a);&lt;br /&gt; cout &lt;&lt; "The Factorial of " &lt;&lt; a&lt;br /&gt;      &lt;&lt; " is " &lt;&lt; fact &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; return (0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;long factorial(int n)&lt;br /&gt;{&lt;br /&gt; int i;&lt;br /&gt; long result = 1;&lt;br /&gt;&lt;br /&gt; for (i = 2; i &lt;= n; i++)&lt;br /&gt; {&lt;br /&gt;    result = result * i;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; return (result);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;   &lt;/span&gt;&lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Compiling and running the program above on the course server yields the following output. &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;et791:~/cset3150$ ./factLoop &lt;img src="http://cset.sp.utoledo.edu/cset3150/images/enter_key_03.gif" style="vertical-align: text-bottom;" width="29" border="0" height="15" /&gt;&lt;br /&gt;The Factorial of 5 is 120&lt;br /&gt;The Factorial of 9 is 362880&lt;br /&gt;The Factorial of 12 is 479001600&lt;br /&gt;et791:~/cset3150$ _&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;&lt;u&gt;Try it&lt;/u&gt;! Compile and run the program in your own directory on the course server. &lt;/span&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;&lt;u&gt;Change it&lt;/u&gt;. Rewrite the program above to accept input from the user for the value  of the factorial to be calculated. What happens if the input value is 24?  Can you explain this result? &lt;/span&gt;&lt;/p&gt;  &lt;h4&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Using Recursion&lt;/span&gt;&lt;/h4&gt; &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;To write a recursive version of the factorial function,  we note the following: &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;0! = 1&lt;br /&gt;1! = 1&lt;br /&gt;2! = 2 * 1 = 2 = 2 * 1!&lt;br /&gt;3! = 3 * 2 * 1 = 6 = 3 * 2!&lt;br /&gt;4! = 4 * 3 * 2 * 1 = 24 = 4 * 3!&lt;br /&gt;5! = 5 * 4 * 3 * 2 * 1 = 120 = 5 * 4!&lt;br /&gt;&lt;img src="http://cset.sp.utoledo.edu/cset3150/images/dots_vert.gif" width="39" border="0" height="27" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;In other words, &lt;tt&gt;n&lt;/tt&gt; factorial is simply &lt;tt&gt;n&lt;/tt&gt; times &lt;tt&gt;n -1&lt;/tt&gt; factorial. &lt;/span&gt;  &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;This slightly different view of the factorial definition leads to a recursive factorial function.  This could be written as shown in the program example below:  &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;// compute the factorial of n using recursion&lt;br /&gt;#include &lt;iostream&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;long factorial(int);&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt; int a,fact;&lt;br /&gt;&lt;br /&gt; a = 5;&lt;br /&gt; fact = factorial(a);&lt;br /&gt; cout &lt;&lt; "The Factorial of " &lt;&lt; a&lt;br /&gt;      &lt;&lt; " is " &lt;&lt; fact &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; a = 9;&lt;br /&gt; fact = factorial(a);&lt;br /&gt; cout &lt;&lt; "The Factorial of " &lt;&lt; a&lt;br /&gt;      &lt;&lt; " is " &lt;&lt; fact &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; a = 12;&lt;br /&gt; fact = factorial(a);&lt;br /&gt; cout &lt;&lt; "The Factorial of " &lt;&lt; a&lt;br /&gt;      &lt;&lt; " is " &lt;&lt; fact &lt;&lt; endl;&lt;br /&gt;&lt;br /&gt; return (0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;long factorial(int n)&lt;br /&gt;{&lt;br /&gt; if ((n == 0) || (n == 1))   // base cases&lt;br /&gt; {&lt;br /&gt;    return (1);&lt;br /&gt; }&lt;br /&gt; else                        // recursive case&lt;br /&gt; {&lt;br /&gt;    return n * factorial(n - 1);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;   &lt;p&gt; &lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;Compiling and running the program above on the course server leads to the following output. &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Arial, Helvetica;font-size:85%;"&gt;et791:~/cset3150$ ./factRecursion &lt;img src="http://cset.sp.utoledo.edu/cset3150/images/enter_key_03.gif" style="vertical-align: text-bottom;" width="29" border="0" height="15" /&gt;&lt;br /&gt;The Factorial of 5 is 120&lt;br /&gt;The Factorial of 9 is 362880&lt;br /&gt;The Factorial of 12 is 479001600&lt;br /&gt;et791:~/cset3150$ _&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-8031042024373768620?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/8031042024373768620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=8031042024373768620' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/8031042024373768620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/8031042024373768620'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/at-last.html' title='At Last!!!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-7752504697528118516</id><published>2009-01-10T14:36:00.000-08:00</published><updated>2009-01-10T14:36:00.611-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>RECURSION</title><content type='html'>&lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;      &lt;span style="color: rgb(204, 102, 204);"&gt;This week we just tackled about &lt;span style="font-weight: bold; color: rgb(102, 102, 204);"&gt;RECURSION&lt;/span&gt;. Recursion defined as the repetitive process by which a functions calls itself  is called recursion or circular definition. This is a way of defining something in terms of itself. A function is said to be recursive if a statement in the body of the function calls the function that contains it. &lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 51, 153); font-weight: bold;" class="MsoNormal"&gt;Parts of the Recursive function&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(204, 102, 204);"&gt;&lt;span style="font-weight: bold;"&gt;☺ Base Case&lt;/span&gt; &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; color: rgb(204, 102, 204);"&gt;This is the part of the recursive function that is found on the if clause. This contains the condition that should be satisfied at one point of execution to terminate the repetitive process done by the recursive function.&lt;span style=""&gt;  &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(204, 102, 204);"&gt;&lt;span style="font-weight: bold;"&gt;☺General Case&lt;/span&gt; &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; color: rgb(204, 102, 204);"&gt;This is the part of the recursive function that is found on the else-clause. This contains the function call of the recursive function to itself. &lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style="font-weight: bold; color: rgb(204, 51, 204);"&gt;Example 1&lt;/span&gt; (This Example was given to us by our TLE teacher, Mr. Ernie Balbuena )&lt;/p&gt;&lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;factorial (int n)&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;/p&gt;  &lt;p style="color: rgb(153, 153, 255);" class="MsoNormal"&gt;&lt;span style=""&gt;                      &lt;span style="font-weight: bold; color: rgb(102, 102, 204);"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(102, 102, 204);"&gt;if (n == 1 || n == 0) return 1;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 102, 204); font-weight: bold;" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;else return (n * factorial (n-1));&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;If the n value is 4, &lt;span style=""&gt;                     &lt;/span&gt;4 * (factorial (4-1)&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;if the n value is 3, &lt;span style=""&gt;                     &lt;/span&gt;3 * (factorial (3-1)&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;if the n value is 2, &lt;span style=""&gt;                     &lt;/span&gt;2 * (factorial (2-1)&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;if the n value is 1,&lt;span style=""&gt;                                  &lt;/span&gt;1&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;factorial (int n)&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;if (n == 1 || n == 0) return 1;&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;else return (n * factorial (n-1));&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;Simplifying the expression……&lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                                    &lt;/span&gt;4 * (factorial (4-1)&lt;span style=""&gt;        &lt;/span&gt;= 24&lt;span style=""&gt;                 &lt;/span&gt;general case&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                                    &lt;/span&gt;3 * (factorial (3-1)&lt;span style=""&gt;        &lt;/span&gt;= 6&lt;span style=""&gt;                   &lt;/span&gt;general case&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                                    &lt;/span&gt;2 * (factorial (2-1)&lt;span style=""&gt;        &lt;/span&gt;= 2&lt;span style=""&gt;                   &lt;/span&gt;general case&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;&lt;span style=""&gt;                        &lt;/span&gt;1&lt;span style=""&gt;                                              &lt;/span&gt;base case&lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;span style=""&gt;                        &lt;/span&gt;Therefore, the final return value when n=4 is 24. &lt;/p&gt;  &lt;p style="color: rgb(204, 102, 204);" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-7752504697528118516?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/7752504697528118516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=7752504697528118516' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7752504697528118516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7752504697528118516'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/recursion.html' title='RECURSION'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-3953122203279223056</id><published>2009-01-10T11:37:00.000-08:00</published><updated>2009-01-30T21:50:28.260-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Cara Edenmay N. Bonjibon'/><title type='text'>Recursion</title><content type='html'>&lt;div align="center"&gt;&lt;em&gt;&lt;span style="font-family:trebuchet ms;font-size:180%;color:#ff6666;"&gt;&lt;u&gt;&lt;strong&gt;RECURSION&lt;/strong&gt;&lt;/u&gt;&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;color:#ffcccc;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt;Recursion&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt; in computer science is a way of thinking about and solving problems. It is, in fact, one of the central ideas of computer science. &lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt;Solving a problem using recursion means the solution depends on solutions to smaller instances of the same problem. &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt;"The power of recursion evidently lies in the possibility of defining an infinite set of objects by a finite statement. In the same manner, an infinite number of computations can be described by a finite recursive program, even if this program contains no explicit repetitions." &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt;Most high-level computer programming languages support recursion by allowing a function to call itself within the program text. &lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt;Imperative languages&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt; define looping constructs like “while” and “for” loops that are used to perform repetitive actions. Some functional &lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt;programming languages&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt; do not define any looping constructs but rely solely on recursion to repeatedly call code. &lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt;Computability theory&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#ffcccc;"&gt;&lt;strong&gt; has proven that these recursive only languages are mathematically equivalent to the imperative languages, meaning they can solve the same kinds of problems even without the typical control structures like “while” and “for”.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:130%;color:#3366ff;"&gt;&lt;strong&gt;Recursion in computer science&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="color:#33ccff;"&gt;A common method of simplification is to divide a problem into subproblems of the same type. As a &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;computer programming&lt;/span&gt;&lt;span style="color:#33ccff;"&gt; technique, this is called &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;divide and conquer&lt;/span&gt;&lt;span style="color:#33ccff;"&gt; and is key to the design of many important algorithms, as well as being a fundamental part of &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;dynamic programming&lt;/span&gt;&lt;span style="color:#33ccff;"&gt;.&lt;br /&gt;Recursion in computer programming is exemplified when a function is defined in terms of itself. One example application of recursion is in &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;parsers&lt;/span&gt;&lt;span style="color:#33ccff;"&gt; for programming languages. The great advantage of recursion is that an infinite set of possible sentences, designs or other data can be defined, parsed or produced by a finite computer program.&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#33ccff;"&gt;Recurrence relations&lt;/span&gt;&lt;span style="color:#33ccff;"&gt; are equations to define one or more sequences recursively. Some specific kinds of recurrence relation can be "solved" to obtain a non-recursive definition.&lt;br /&gt;A classic example of recursion is the definition of the &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;factorial&lt;/span&gt;&lt;span style="color:#33ccff;"&gt; function, given here in C code:&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ccff;"&gt;&lt;p&gt;&lt;br /&gt;unsigned int factorial(unsigned int n)&lt;/span&gt;&lt;span style="color:#33ccff;"&gt;&lt;br /&gt;{&lt;br /&gt;if (n &lt;= 1) return 1; return n * factorial(n-1); }&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ccff;"&gt;&lt;p&gt;&lt;br /&gt;The function calls itself recursively on a smaller version of the input (n - 1) and multiplies the result of the recursive call by n, until reaching the &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;base case&lt;/span&gt;&lt;span style="color:#33ccff;"&gt;, analogously to the mathematical definition of factorial.&lt;br /&gt;Use of recursion in an algorithm has both advantages and disadvantages. The main advantage is usually simplicity. The main disadvantage is often that the algorithm may require large amounts of memory if the depth of the recursion is very large. It has been claimed that recursive algorithms are easier to understand because the code is shorter and is closer to a mathematical definition, as seen in these factorial examples.&lt;br /&gt;It is often possible to replace a recursive call with a simple loop, as the following example of factorial shows:&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ccff;"&gt;&lt;p&gt;&lt;br /&gt;unsigned int factorial(unsigned int n) {&lt;br /&gt;if (n &lt;= 1) return 1; unsigned int result = n; while (--n) result *= n; return result; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;It should be noted that on most &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;CPUs&lt;/span&gt;&lt;span style="color:#33ccff;"&gt; the above examples give correct results only for small values of n, due to &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;arithmetic overflow.&lt;/span&gt;&lt;span style="color:#33ccff;"&gt;&lt;br /&gt;An example of a recursive algorithm is a procedure that processes (does something with) all the nodes of a &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;tree data structure&lt;/span&gt;&lt;span style="color:#33ccff;"&gt;:&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ccff;"&gt;&lt;p&gt;&lt;br /&gt;void ProcessTree(node x) {&lt;br /&gt;unsigned int i = 0;&lt;br /&gt;while (i &lt;&gt; &lt;p&gt;&lt;br /&gt;To process the whole tree, the procedure is called with a root node representing the tree as an initial parameter. The procedure calls itself recursively on all child nodes of the given node (i.e. sub-trees of the given tree), until reaching the &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;base case&lt;/span&gt;&lt;span style="color:#33ccff;"&gt; that is a node with no child nodes (i.e. a tree having no branches known as a "leaf").&lt;br /&gt;A &lt;/span&gt;&lt;span style="color:#33ccff;"&gt;tree data structure&lt;/span&gt;&lt;span style="color:#33ccff;"&gt; itself can be defined recursively (and so predestinated for recursive processing) like this:&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ccff;"&gt;&lt;p&gt;&lt;br /&gt;typedef struct {&lt;br /&gt;unsigned int count;&lt;br /&gt;node* children;&lt;br /&gt;} node&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#6666cc;"&gt;&lt;strong&gt;Recursive programming&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="color:#33ccff;"&gt;&lt;span style="color:#9999ff;"&gt;&lt;strong&gt;Creating a recursive procedure essentially requires defining a "base case", and then defining rules to break down more complex cases into the base case. Key to a recursive procedure is that with each recursive call, the problem domain must be reduced in such a way that eventually the base case is arrived at.&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ccff;"&gt;&lt;span style="color:#9999ff;"&gt;&lt;strong&gt;&lt;p&gt;&lt;br /&gt;Some authors classify recursion as either "generative" or "structural". The distinction is made based on where the procedure gets the data that it works on. If the data comes from a data structure like a list, then the procedure is "structurally recursive"; otherwise, it is "generatively recursive".&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Many well-known recursive algorithms generate an entirely new piece of data from the given data and recur on it. HTDP (How To Design Programs) refers to this kind as generative recursion. Examples of generative recursion include: &lt;/strong&gt;&lt;strong&gt;gcd&lt;/strong&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;strong&gt;quicksort&lt;/strong&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;strong&gt;binary search&lt;/strong&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;strong&gt;mergesort&lt;/strong&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;strong&gt;Newton's method&lt;/strong&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;strong&gt;fractals&lt;/strong&gt;&lt;strong&gt;, and &lt;/strong&gt;&lt;strong&gt;adaptive integration&lt;/strong&gt;&lt;strong&gt;.&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#006600;"&gt;Examples of Recursively defined procedures (generative recursion)&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="color:#009900;"&gt;Factorial&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#33ff33;"&gt;A classic example of a recursive procedure is the function used to calculate the &lt;/span&gt;&lt;a title="Factorial" href="http://en.wikipedia.org/wiki/Factorial"&gt;&lt;span style="color:#33ff33;"&gt;factorial&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; of an &lt;/span&gt;&lt;a title="Integer" href="http://en.wikipedia.org/wiki/Integer"&gt;&lt;span style="color:#33ff33;"&gt;integer&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt;.&lt;br /&gt;Function definition: 0 \\ \end{cases} " &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a title="Pseudocode" href="http://en.wikipedia.org/wiki/Pseudocode"&gt;&lt;span style="color:#33ff33;"&gt;Pseudocode&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; (recursive):&lt;br /&gt;function factorial is:input: integer n such that n &gt;= 1output: [n × (n-1) × (n-2) × … × 1]&lt;br /&gt;1. if n is 0, return 1&lt;br /&gt;2. otherwise, return [ n × factorial(n-1) ]&lt;br /&gt;end factorial&lt;br /&gt;A &lt;/span&gt;&lt;a title="Recurrence relation" href="http://en.wikipedia.org/wiki/Recurrence_relation"&gt;&lt;span style="color:#33ff33;"&gt;recurrence relation&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; is an equation that relates later terms in the sequence to earlier terms.Recurrence relation for factorial:bn = n * bn-1b0 = 1&lt;br /&gt;Computing the recurrence relation for n = 4:&lt;br /&gt;b4 = 4 * b3 = 4 * 3 * b2&lt;br /&gt;= 4 * 3 * 2 * b1&lt;br /&gt;= 4 * 3 * 2 * 1 * b0&lt;br /&gt;= 4 * 3 * 2 * 1 * 1&lt;br /&gt;= 4 * 3 * 2 * 1&lt;br /&gt;= 4 * 3 * 2&lt;br /&gt;= 4 * 6&lt;br /&gt;= 24&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ff33;"&gt;&lt;/span&gt;&lt;span style="color:#33ff33;"&gt;&lt;p&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#33ff33;"&gt;Example Implementations:&lt;/span&gt;&lt;br /&gt;&lt;a title="Scheme (programming language)" href="http://en.wikipedia.org/wiki/Scheme_(programming_language)"&gt;&lt;span style="color:#33ff33;"&gt;Scheme&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; (recursive)&lt;br /&gt;&lt;/span&gt;&lt;a title="C (programming language)" href="http://en.wikipedia.org/wiki/C_(programming_language)"&gt;&lt;span style="color:#33ff33;"&gt;C&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; (recursive)&lt;br /&gt;;; Input: Integer n such that n &gt;= 0&lt;br /&gt;(define (fact n)&lt;br /&gt;(if (= n 0)&lt;br /&gt;1&lt;br /&gt;(* n (fact (- n 1)))))&lt;br /&gt;//INPUT: n is an integer such that n &gt;= 0&lt;br /&gt;int fact(int n)&lt;br /&gt;{&lt;br /&gt;if (n == 0)&lt;br /&gt;return 1;&lt;br /&gt;else&lt;br /&gt;return n * fact(n - 1);&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ff33;"&gt;&lt;p&gt;&lt;br /&gt;This factorial function can also be described without using recursion by making use of the typical looping constructs found in imperative programming languages:&lt;br /&gt;&lt;/span&gt;&lt;a title="Pseudocode" href="http://en.wikipedia.org/wiki/Pseudocode"&gt;&lt;span style="color:#33ff33;"&gt;Pseudocode&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; (iterative):&lt;br /&gt;function factorial is:input: integer n such that n &gt;= 0output: [n × (n-1) × (n-2) × … × 1]&lt;br /&gt;1. create new variable called running_total with a value of 1&lt;br /&gt;2. begin loop&lt;br /&gt;1. if n is 0, exit loop&lt;br /&gt;2. set running_total to (running_total × n)&lt;br /&gt;3. decrement n&lt;br /&gt;4. repeat loop&lt;br /&gt;3. return running_total&lt;br /&gt;end factorial&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ff33;"&gt;&lt;p&gt;&lt;br /&gt;&lt;/span&gt;&lt;a title="Scheme (programming language)" href="http://en.wikipedia.org/wiki/Scheme_(programming_language)"&gt;&lt;span style="color:#33ff33;"&gt;Scheme&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt;, however, is a &lt;/span&gt;&lt;a class="mw-redirect" title="Functional programming language" href="http://en.wikipedia.org/wiki/Functional_programming_language"&gt;&lt;span style="color:#33ff33;"&gt;functional programming language&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; and does not define any looping constructs. It relies solely upon recursion to perform all looping. Because Scheme is tail-recursive, a recursive procedure can be defined that implements the factorial procedure as an iterative process — meaning that it uses constant space but linear time.&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ff33;"&gt;&lt;p&gt;&lt;br /&gt;Example implementations:&lt;br /&gt;&lt;/span&gt;&lt;a title="Scheme (programming language)" href="http://en.wikipedia.org/wiki/Scheme_(programming_language)"&gt;&lt;span style="color:#33ff33;"&gt;Scheme&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; (iterative)&lt;br /&gt;&lt;/span&gt;&lt;a title="C (programming language)" href="http://en.wikipedia.org/wiki/C_(programming_language)"&gt;&lt;span style="color:#33ff33;"&gt;C&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; (iterative)&lt;br /&gt;;; Input: Integer n such that n &gt;= 0&lt;br /&gt;(define (fact n)&lt;br /&gt;(fact-iter 1 n))&lt;br /&gt;(define (fact-iter running_total n)&lt;br /&gt;(if (= n 0)&lt;br /&gt;running_total&lt;br /&gt;(fact-iter (* running_total n) (- n 1))))&lt;br /&gt;int fact(int n)&lt;br /&gt;{&lt;br /&gt;int running_total;&lt;br /&gt;for (running_total = 1; n != 0; --n)&lt;br /&gt;running_total *= n;&lt;br /&gt;return running_total;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;a id="Fibonacci" name="Fibonacci"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;Fibonacci&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#33ff33;"&gt;Another well known recursive sequence is the &lt;/span&gt;&lt;a title="Fibonacci number" href="http://en.wikipedia.org/wiki/Fibonacci_number"&gt;&lt;span style="color:#33ff33;"&gt;Fibonacci numbers&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt;. The first few elements of this sequence are: 0, 1, 1, 2, 3, 5, 8, 13, 21...&lt;br /&gt;Function definition: = 2 \\ \end{cases} " &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a title="Pseudocode" href="http://en.wikipedia.org/wiki/Pseudocode"&gt;&lt;span style="color:#33ff33;"&gt;Pseudocode&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#33ff33;"&gt;function fib is:&lt;br /&gt;input: integer n such that n &gt;= 0&lt;br /&gt;1. if n is 0, return 0&lt;br /&gt;2. if n is 1, return 1&lt;br /&gt;3. otherwise, return [ fib(n-1) + fib(n-2) ]&lt;br /&gt;end fib&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#33ff33;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a title="Recurrence relation" href="http://en.wikipedia.org/wiki/Recurrence_relation"&gt;&lt;span style="color:#33ff33;"&gt;Recurrence relation&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#33ff33;"&gt; for Fibonacci:bn = bn-1 + bn-2b1 = 1, b0 = 0&lt;br /&gt;Computing the recurrence relation for n = 4:&lt;br /&gt;b4 = b3 + b2&lt;br /&gt;= b2 + b1 + b1 + b0&lt;br /&gt;= b1 + b0 + 1 + 1 + 0&lt;br /&gt;= 1 + 0 + 1 + 1 + 0&lt;br /&gt;= 3&lt;/span&gt;&lt;/p&gt;&lt;span style="color:#33ff33;"&gt;&lt;p&gt;&lt;br /&gt;Example Implementations:&lt;br /&gt;&lt;/span&gt;&lt;a title="Scheme (programming language)" href="http://en.wikipedia.org/wiki/Scheme_(programming_language)"&gt;&lt;span style="color:#33ff33;"&gt;Scheme&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a title="C (programming language)" href="http://en.wikipedia.org/wiki/C_(programming_language)"&gt;&lt;span style="color:#33ff33;"&gt;C&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a title="Python (programming language)" href="http://en.wikipedia.org/wiki/Python_(programming_language)"&gt;&lt;span style="color:#33ff33;"&gt;Python&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#33ff33;"&gt;;; n is an integer such that n &gt;= 0&lt;br /&gt;(define (fib n)&lt;br /&gt;(cond ((= n 0) 0)&lt;br /&gt;((= n 1) 1)&lt;br /&gt;(else&lt;br /&gt;(+ (fib (- n 1))&lt;br /&gt;(fib (- n 2))))))&lt;br /&gt;int fib(int n)&lt;br /&gt;{&lt;br /&gt;if (n == 0)&lt;br /&gt;return 0;&lt;br /&gt;else if (n == 1)&lt;br /&gt;return 1;&lt;br /&gt;else&lt;br /&gt;return fib(n-1) + fib(n-2);&lt;br /&gt;}&lt;br /&gt;def fib(n):&lt;br /&gt;if n == 0:&lt;br /&gt;return 0&lt;br /&gt;elif n == 1:&lt;br /&gt;return 1&lt;br /&gt;else:&lt;br /&gt;return fib(n-1) + fib(n-2)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#33ff33;"&gt;&lt;br /&gt;These implementations are especially bad because each time the function is executed, it will make two function calls to itself each of which in turn makes two more function calls and so on until they "bottom out" at 1 or 0. This is an example of "tree recursion", and grows exponentially in time and linearly in space requirements.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-3953122203279223056?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/3953122203279223056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=3953122203279223056' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3953122203279223056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3953122203279223056'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/recursion_28.html' title='Recursion'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-9100752208590377997</id><published>2009-01-10T06:02:00.000-08:00</published><updated>2009-01-16T06:15:00.654-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>Recursion Learnings</title><content type='html'>&lt;p style="color: rgb(102, 0, 204);"&gt;&lt;b style=""&gt;&lt;span style="font-size: 16pt;"&gt;Recursion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;The repetitive process by which a functions calls itself&lt;span style=""&gt;  &lt;/span&gt;is called recursion or circular definition. &lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;This is a way of defining something in terms of itself. &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(102, 0, 204);"&gt;A function is said to be recursive if a statement in the body of the function calls the function that contains it.&lt;/span&gt; &lt;/li&gt;&lt;/ul&gt;  &lt;p style="color: rgb(51, 204, 255);"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt;"&gt;Parts of the Recursive function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt 0.25in; color: rgb(51, 204, 255);"&gt;&lt;span style="font-size: 14pt;"&gt;Base Case &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt 0.25in; text-indent: 0.25in; color: rgb(51, 204, 255);"&gt;This is the part of the recursive function that is found on the if clause. This contains the condition that should be satisfied at one point of execution to terminate the repetitive process done by the recursive function. &lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt 0.25in; color: rgb(51, 204, 255);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt 0.25in; color: rgb(51, 204, 255);"&gt;&lt;span style="font-size: 14pt;"&gt;General Case &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt 0.25in; text-indent: 0.25in;"&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;This is the part of the recursive function that is found on the else-clause. This contains the function call of the recursive function to itself.&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt 0.25in;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 14pt;"&gt;&lt;span style="color: rgb(255, 204, 102);"&gt;ILLUSTRATIVE EXAMPLE:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style="font-size: 14pt;"&gt;Give the output of the ff. program when the value entered for a=5.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;            &lt;/span&gt;#include&lt;stdio.h&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;            &lt;/span&gt;main()&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;            &lt;/span&gt;{ &lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;                        &lt;/span&gt;int a, b;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;                        &lt;/span&gt;clrscr();&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;                        &lt;/span&gt;printf(“Enter a value:”);&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;                        &lt;/span&gt;scanf(“%d”, &amp;amp;a);&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;                        &lt;/span&gt;b= solve (a);&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;                        &lt;/span&gt;printf(“The new value is %d”, b);&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;                        &lt;/span&gt;getch();&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;solve (int a)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;{&lt;br /&gt;&lt;span style=""&gt;      &lt;/span&gt;if (a == 1) return 2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;&lt;span style=""&gt;      &lt;/span&gt;else return (solve (a-1) + 2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 0.0001pt; color: rgb(153, 51, 153);"&gt;&lt;span style=""&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 51, 153);"&gt;OUTPUT:&lt;/p&gt;  &lt;p style="color: rgb(153, 51, 153);"&gt;&lt;b&gt;Enter a value: 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;span style="color: rgb(153, 51, 153);"&gt;The new value is 10.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 153, 255);"&gt;&lt;b style=""&gt;&lt;span style="font-size: 14pt;"&gt;Direct and Indirect Recursion &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(153, 153, 255);"&gt;Direct recursions are recursive functions that can call itself through a function call directly inside the body of the function.&lt;/span&gt; &lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(153, 153, 255);"&gt;&lt;li&gt;Indirect recursions are recursive functions that can call another functions outside its function.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-9100752208590377997?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/9100752208590377997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=9100752208590377997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/9100752208590377997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/9100752208590377997'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/recursion-learnings.html' title='Recursion Learnings'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-8218618531395223577</id><published>2009-01-09T16:31:00.000-08:00</published><updated>2009-01-09T21:35:58.806-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>A Whole New Year... Whole New Excitement?</title><content type='html'>&lt;h4  style="font-style: italic; color: rgb(255, 255, 153);font-family:verdana;"&gt;&lt;span style="font-size:180%;"&gt;Scope of Variables in Function&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;In this C++ Tutorial you will learn about Scope of Variables in Function viz Local Variables - Scope of Local Variables, Global Variables - Scope of Global Variables.&lt;/p&gt;&lt;p&gt;The scope of the variables can be broadly be classified as &lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Local Variables &lt;/li&gt;&lt;li&gt;Global Variables &lt;/li&gt;&lt;/ul&gt; &lt;h4&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&lt;span style="color: rgb(255, 204, 102);"&gt;Local Variables:&lt;/span&gt; &lt;/span&gt;&lt;/h4&gt; &lt;p&gt;The variables defined local to the block of the function would be accessible only within the block of the function and not outside the function. Such variables are called local variables. That is in other words the scope of the local variables is limited to the function in which these variables are declared. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;Let us see this with a small example:&lt;/p&gt;&lt;br /&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;    &lt;span style="font-family:Courier New;"&gt;#include &lt;iostream.h&gt;&lt;br /&gt;   int exforsys(int,int);&lt;br /&gt;   void main( )&lt;br /&gt;   {&lt;br /&gt;       int b;&lt;br /&gt;       int s=5,u=6;&lt;br /&gt;       b=exforsys(s,u);&lt;br /&gt;       cout&lt;&lt;”\n The Output is:”&lt;&lt;b; int="" z="x+y;"&gt;&lt;/b;&gt;&lt;/iostream.h&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;In the above program the variables x, y, z are accessible only inside the function exforsys( ) and their scope is limited only to the function exforsys( ) and not outside the function. Thus the variables x, y, z are local to the function exforsys. Similarly one would not be able to access variable b inside the function exforsys as such. This is because variable b is local to function main.&lt;/p&gt;&lt;br /&gt;&lt;h4 style="color: rgb(255, 204, 102);"&gt;Global Variables:&lt;/h4&gt; &lt;p&gt;Global variables are one which are visible in any part of the program code and can be used within all functions and outside all functions used in the program. The method of declaring global variables is to declare the variable outside the function or block.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;For instance&lt;/p&gt;&lt;br /&gt;&lt;p&gt; &lt;span style="color: rgb(255, 255, 255);"&gt;   &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;#include &lt;iostream.h&gt;&lt;br /&gt;   int x,y,z;       &lt;/iostream.h&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 102, 102);font-family:Arial;font-size:85%;"  &gt;//Global Variables&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;&lt;br /&gt;   float a,b,c;     &lt;/span&gt;&lt;span style="color: rgb(102, 102, 102);font-family:Arial;font-size:85%;"  &gt;//Global Variables&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;&lt;br /&gt;   void main( )&lt;br /&gt;   {&lt;br /&gt;       int s,u;     &lt;/span&gt;&lt;span style="color: rgb(102, 102, 102);font-family:Arial;font-size:85%;"  &gt;//Local Variables&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;&lt;br /&gt;       float w,q;&lt;/span&gt;&lt;span style="color: rgb(102, 102, 102);font-family:Arial;font-size:85%;"  &gt;       //Local Variables&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;&lt;br /&gt;       ……..&lt;br /&gt;       …………….&lt;br /&gt;   }&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;In the above the integer variables x, y and z and the float variables a, b and c which are declared outside the block are global variables and the integer variables s and u and the float variables w and q which are declared inside the function block are called local variables.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Thus the scope of global variables is between the point of declaration and the end of compilation unit whereas scope of local variables is between the point of declaration and the end of innermost enclosing compound statement.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Let us see an example which has number of local and global variable declarations with number of inner blocks to understand the concept of local and global variables scope in detail.&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;&lt;span style="color: rgb(255, 255, 255);"&gt;#include &lt;iostream.h&gt;&lt;/iostream.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;     int g;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;     void main( )&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;     {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;         int a;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);font-family:Courier New;" &gt;&lt;span style="background-color: rgb(255, 0, 0);"&gt;        {         &lt;br /&gt;           int b;  &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;&lt;span style="background-color: rgb(255, 255, 0);"&gt;&lt;br /&gt;           b=25; &lt;br /&gt;           a=45; &lt;br /&gt;           g=65;   &lt;/span&gt;&lt;br /&gt;       }&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;       &lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);font-family:Courier New;" &gt; a=50;     &lt;br /&gt;       exforsys( );&lt;br /&gt;   }  &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;           &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;     void exforsys( )&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;     {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;         g = 30; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 102, 102);font-family:Arial;font-size:85%;"  &gt;//Scope of g is throughout the program and so is used between function calls&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);font-family:Courier New;" &gt;&lt;br /&gt;   }&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);" class="MsoNormal"&gt;&lt;span style="font-family:Courier New;"&gt;Scope of b is till the first braces shaded as Yellow&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="color: rgb(255, 255, 255);" class="MsoNormal"&gt;&lt;span style="font-family:Courier New;"&gt;Scope of a is till the end of main brace shaded as red&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-8218618531395223577?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/8218618531395223577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=8218618531395223577' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/8218618531395223577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/8218618531395223577'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2009/01/whole-new-year-whole-new-excitement.html' title='A Whole New Year... Whole New Excitement?'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-3008047925457289547</id><published>2008-12-20T21:27:00.000-08:00</published><updated>2009-01-09T21:30:59.103-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>Let It Flow...</title><content type='html'>&lt;h4 style="font-family: verdana; font-weight: bold; color: rgb(255, 255, 153);"&gt;&lt;span style="font-size:130%;"&gt;What is a function?&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;A function is a structure that has a number of program statements grouped as a unit with a name given to the unit. Function can be invoked from any part of the C++ program.&lt;/p&gt;&lt;br /&gt;&lt;h4 style="font-style: italic; color: rgb(255, 204, 153);"&gt;Features of Function:&lt;/h4&gt; &lt;p&gt;To understand why the program structure is written separately and given a name, the programmer must have a clear idea of the features and benefits of function. This will encourage better understanding of function usage:&lt;/p&gt;&lt;br /&gt; &lt;ul style="font-style: italic;"&gt;&lt;li style="color: rgb(255, 255, 204);"&gt;Use of Functions gives a Structured Programming Approach &lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 255, 204);"&gt;Reduces Program Size:&lt;/span&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The piece of code that needs to be executed, or the piece of code that is repeated in different parts of the program, can be written separately as a function and stored in a place in memory. Whenever and wherever needed, the programmer can invoke the function and use the code to be executed. Thus, the program size is reduced.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Having known about the function and its features let us see how to declare, define and call a function in a C++ program. &lt;/p&gt;&lt;br /&gt;&lt;h4 style="font-style: italic; color: rgb(255, 204, 153);"&gt;Declaring a Function:&lt;/h4&gt; &lt;p&gt;It has been discussed that, in order for a variable to be used, it must be declared. Just like &lt;nobr&gt;&lt;a style="border-bottom: 1px solid rgb(0, 100, 0); color: rgb(0, 100, 0); text-decoration: underline; display: inline; background-color: transparent; font-size: 1em; padding-bottom: 1px; line-height: 1em; position: relative;" class="tfTextLink" href="javascript:void(0)"&gt;variables&lt;/a&gt;&lt;/nobr&gt;, it follows that function definitions must be declared. The general method of declaring a function is to declare the function in the beginning of the program.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The general format for declaring a function is&lt;/p&gt;&lt;br /&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-family:Courier New;"&gt;return_datatype function name(arguments);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;Suppose we have a function named as exforsys which return nothing from the function it is declared as&lt;/p&gt;&lt;br /&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-family:Courier New;"&gt;void exforsys( );&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;This declared would inform the compiler that the presence of the function exforsys is there in the program. In the above the return type void tells the compiler that the function has no return value and also the empty braces ( ) indicate that the function takes no arguments. &lt;/p&gt;&lt;br /&gt;&lt;h4 style="color: rgb(255, 204, 153); font-style: italic;"&gt;Defining a function:&lt;/h4&gt; &lt;p&gt;The definition is the place where the actual function program statements or in other words the program code is placed. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;The general format of the function definition is as follows:&lt;/p&gt;&lt;br /&gt; &lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-family:Courier New;"&gt;return_datatype functionname(arguments&lt;span style="background-color: rgb(255, 255, 255);"&gt;) &lt;span style="font-family:Arial;"&gt;//Declarator&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;{&lt;br /&gt;program statements &lt;span style="font-family:Arial;"&gt;//Function Body&lt;/span&gt;&lt;br /&gt;……..&lt;br /&gt;……….&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;In the above the declarator must match the function declaration already made. That is the function name, the return type and the number of arguments all must be same as the function declaration made. In fact if arguments are declared and defined.  The order of arguments defined here must match the order declared in the function declaration.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;After the declarator the braces starts and the function body is placed. The function body has the set of program statements which are to be executed by the function. Then the function definition ends with } ending braces.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;For example let us see how to define a function exforsys declared as void that prints first five integers.&lt;/p&gt;&lt;br /&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-family:Courier New;"&gt;void exforsys( )&lt;br /&gt;{&lt;br /&gt;int i;&lt;br /&gt;for (i=1;i&lt;=5;i++)&lt;br /&gt;cout&lt;&lt; i;&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;The output of the function when it is called would be&lt;/p&gt;&lt;br /&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-family:Courier New;"&gt;12345&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;h4 style="font-style: italic; color: rgb(255, 204, 153);"&gt;Calling the function:&lt;/h4&gt; &lt;p&gt;The function must be called for it to get executed. This process is performed by calling the function wherever required. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;The general format for making the function call would be as follows:&lt;/p&gt;&lt;br /&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-family:Courier New;"&gt;functionname();&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;When the function is called the control, transfers to the function and all the statements present in the function definition gets executed and after which the control, returns back to the statement following the function call.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;In the above example when the programmer executes the function exforsys, he can call the function in main as follows:&lt;/p&gt;&lt;br /&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-family:Courier New;"&gt;exforsys();&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;Let us see a complete program in C++ to help the programmer to understand the function concepts described above:&lt;/p&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-family:Courier New;"&gt;#include &lt;iostream.h&gt;&lt;/iostream.h&gt;&lt;br /&gt;void main( )&lt;br /&gt;{&lt;br /&gt;void exforsys( ); &lt;span style="font-family:Arial;"&gt;//Function Declaration&lt;/span&gt;&lt;br /&gt;exforsys( ); &lt;span style="font-family:Arial;"&gt;//Function Called&lt;/span&gt;&lt;br /&gt;cout&lt;&lt;”\n End of Program”;&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;br /&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-family:Courier New;"&gt;void exforsys( ) &lt;span style="font-family:Arial;"&gt;//Function Definition&lt;/span&gt;&lt;br /&gt;{&lt;br /&gt;int i;&lt;br /&gt;for(i=1;i&lt;=5;i++)&lt;br /&gt;cout&lt;&lt; i;&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;The output of the above program is&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;12345&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-3008047925457289547?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/3008047925457289547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=3008047925457289547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3008047925457289547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3008047925457289547'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/12/let-it-flow.html' title='Let It Flow...'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-448393928008851870</id><published>2008-12-20T10:23:00.000-08:00</published><updated>2009-01-09T22:35:42.427-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>my Learnings of the Week</title><content type='html'>&lt;span style="color: rgb(204, 102, 204);"&gt;  This week we just have an activity. . .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;      Our &lt;span style="color: rgb(153, 51, 153); font-weight: bold;"&gt;problem&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;is to write a program containing a function that will change the five-digit number to its reverse form.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 51, 153);"&gt;example: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 153); font-weight: bold;"&gt;       ☺inputed value: 54321&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 153); font-weight: bold;"&gt;       ☺output: 12345&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 153); font-weight: bold;"&gt;The Solution:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;#define p printf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;#define s scanf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;main()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;int x;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;clrscr();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;p("enter a fine digit number:");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;s("%d",&amp;amp;x);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;reverse(x);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;getch();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;reverse(int c)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;int a,b;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;for (a=1;a&lt;=5;a++)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;b=c%10;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;p("%d",b);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;c=c/10&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-448393928008851870?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/448393928008851870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=448393928008851870' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/448393928008851870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/448393928008851870'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/12/my-learnings-of-week.html' title='my Learnings of the Week'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-148903665828462366</id><published>2008-12-20T05:52:00.000-08:00</published><updated>2009-01-16T05:59:34.059-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>Teaching Ur Self</title><content type='html'>&lt;h3&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;A Function Defined&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;  &lt;p&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;First the definition: A &lt;/span&gt;&lt;i style="color: rgb(51, 204, 0);"&gt;function&lt;/i&gt;&lt;span style="color: rgb(51, 204, 0);"&gt; is a named, independent section of C code that performs a specific task and optionally returns a value to the calling program. Now let's look at the parts of this definition:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="color: rgb(255, 255, 102);"&gt;&lt;i&gt;A&lt;/i&gt; &lt;i&gt;function is named&lt;/i&gt;.      Each function has a unique name. By using that name in another part of the      program, you can execute the statements contained in the function. This is      known as &lt;i&gt;calling&lt;/i&gt; the function. A function can be called from within      another function. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: rgb(255, 255, 102);"&gt;&lt;i&gt;A&lt;/i&gt; &lt;i&gt;function is      independent&lt;/i&gt;. A function can perform its task without interference from      or interfering with other parts of the program. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: rgb(255, 255, 102);"&gt;&lt;i&gt;A function performs a      specific task&lt;/i&gt;. This is the easy part of the definition. A task is a      discrete job that your program must perform as part of its overall      operation, such as sending a line of text to a printer, sorting an array      into numerical order, or calculating a cube root. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;i style="color: rgb(255, 255, 102);"&gt;A function can return a      value to the calling program&lt;/i&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;. When your program calls a function, the      statements it contains are executed. If you want them to, these statements      can pass information back to the calling program.&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;h4 style="color: rgb(51, 51, 255);"&gt;A program that uses a function to calculate the cube of a number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;  &lt;pre style="font-family: courier new; color: rgb(153, 153, 255);"&gt;&lt;span style="font-size:100%;"&gt;Enter an integer value: &lt;b&gt;100&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(153, 153, 255);"&gt;&lt;span style="font-size:100%;"&gt;The cube of 100 is 1000000.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(153, 153, 255);"&gt;&lt;span style="font-size:100%;"&gt;Enter an integer value: &lt;b&gt;9&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(153, 153, 255);"&gt;&lt;span style="font-size:100%;"&gt;The cube of 9 is 729.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(153, 153, 255);"&gt;&lt;span style="font-size:100%;"&gt;Enter an integer value: &lt;b&gt;3&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(153, 153, 255);"&gt;The cube of 3 is 27.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;Demonstrates a simple function&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;   &lt;/span&gt;#include &lt;stdio.h&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;   &lt;/span&gt;long cube(long x);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;   &lt;/span&gt;long input, answer;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;   &lt;/span&gt;main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;   &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;printf("Enter an integer value: ");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;scanf("%d", &amp;amp;input);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;answer = cube(input);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;/* Note: %ld is the conversion specifier for */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;/* a long integer */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;printf("\nThe cube of %ld is %ld.\n", input, answer);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;return 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;  &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;  &lt;/span&gt;/* Function: cube() - Calculates the cubed value of a variable */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;  &lt;/span&gt;long cube(long x)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;  &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;long x_cubed;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;x_cubed = x * x * x;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: courier new; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;return x_cubed;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: courier new; color: rgb(102, 0, 204);font-size:100%;" &gt;&lt;span style=""&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-148903665828462366?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/148903665828462366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=148903665828462366' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/148903665828462366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/148903665828462366'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/12/teaching-ur-self.html' title='Teaching Ur Self'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-3634715765097685882</id><published>2008-12-13T18:23:00.000-08:00</published><updated>2009-01-09T21:26:31.511-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>What???</title><content type='html'>&lt;h4 style="color: rgb(255, 204, 255);"&gt;What is an argument?&lt;/h4&gt; &lt;p&gt;An argument is the value that is passed from the program to the function call. This can also be considered as input to the function from the program from which it is called.&lt;/p&gt; &lt;h4 style="color: rgb(255, 255, 255);"&gt;How to declare a function passed with argument&lt;/h4&gt; &lt;h4 style="color: rgb(255, 204, 255);"&gt;Declaring a function:&lt;/h4&gt; &lt;p&gt;The general format for declaring the function remains the same as before except the &lt;nobr&gt;&lt;a style="border-bottom: 1px solid rgb(0, 100, 0); color: rgb(0, 100, 0); text-decoration: underline; display: inline; background-color: transparent; font-size: 1em; padding-bottom: 1px; line-height: 1em; position: relative;" class="tfTextLink" href="javascript:void(0)"&gt;data type&lt;/a&gt;&lt;/nobr&gt; passed as arguments in functions are in the same order in which it is defined in function.&lt;br /&gt;&lt;br /&gt;The format for declaring a function with arguments is:&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;return_datatype functionname(datatype1,datatype2,..);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;In this example, the data types are the types of data passed in the function definition as arguments to the function. Care must be taken to mention the number of arguments and the order of arguments in the same way as in function definition.&lt;br /&gt;&lt;br /&gt;For example, suppose a function named exforsys takes two integer values as arguments in its functions definition and returns an integer value. The function declaration of exforsys would be written:&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;int exforsys(int,int);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;h4 style="color: rgb(255, 204, 255);"&gt;Function Definition:&lt;/h4&gt; &lt;p&gt;The function definition has the same syntax as the function definition previously defined, but with added arguments. The general format for defining a function with arguments is written as:&lt;/p&gt;&lt;br /&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;return_datatype functionname(datatype1 variable1,datatype2 variable2,..)&lt;br /&gt;{&lt;br /&gt;     ………….&lt;br /&gt;     Program statements&lt;br /&gt;     ………….&lt;br /&gt;     return( variable);&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;In the above example, the return data type defines the data type of the value returned by the function. The arguments are passed inside the function name after parentheses with the data type and the variable of each argument. Care must be taken to mention the number of arguments and the order of arguments in the same way as in function declaration.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;For example, if the function exforsys takes two integer values x and y and adds them and returns the value z the function definition would be defined as follows:&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;int exforsys(int x,int y)&lt;br /&gt;{&lt;br /&gt;     int z;&lt;br /&gt;     z=x+y;&lt;br /&gt;     return(z);&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;In the above program segment, a return statement takes the general format&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;return(variable) ;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;This value specified in the return as argument would be returned to the calling program. In this example, the value returned is z, which is an integer value, the data type returned by the function exforsys is mentioned as int.&lt;/p&gt;&lt;br /&gt;&lt;h4 style="color: rgb(255, 204, 255);"&gt;Calling the function:&lt;/h4&gt; &lt;p&gt;The calling of function takes the same syntax as the name of the function but with value for the arguments passed. The function call is made in the calling program and this is where the value of arguments or the input to the function definition is given.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The general format for calling the function with arguments is&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;functionname(value1,value2,…);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;In the above exforsys function suppose integer value 5 and 6 are passed, the function call would be as follows:&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;exforsys(5,6);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;As soon as the function call exforsys is made the control, transfers to the function definition and the assignment of 5 to x and 6 to y are made as below.&lt;/p&gt;&lt;br /&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;int exforsys(int x,int y)&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;exforsys(5,6);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;int b;&lt;br /&gt;b = exforsys(5,6);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;The above statement assigns the returned value of the function exforsys. The value z is then added to the value of x and y to the variable b. So, variable b takes the value 11.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Let us see the whole program to understand in brief the concept of function with arguments &lt;/p&gt;&lt;br /&gt;&lt;p&gt;The output of the above program would be&lt;/p&gt;&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;table id="AutoNumber1" style="width: 508px; border-collapse: collapse; height: 276px; color: rgb(255, 255, 255);" border="1" border cellpadding="0" cellspacing="0" height="276" width="508"&gt;     &lt;tbody&gt;         &lt;tr&gt;             &lt;td style="padding-left: 25px;color:#c0c0c0;" bg height="181" width="100%"&gt;&lt;span class="table_2_cell_2"&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;#include &lt;iostream.h&gt;&lt;/iostream.h&gt;&lt;br /&gt;            int exforsys(int,int);&lt;br /&gt;            void main()&lt;br /&gt;            {&lt;br /&gt;                 int b;&lt;br /&gt;                 int s=5,u=6;&lt;br /&gt;                 b=exforsys(s,u);&lt;br /&gt;                 cout&amp;lt;&amp;lt;”\n The Output is:”&amp;lt;&lt;br /&gt;            }&lt;br /&gt;           &lt;br /&gt;            int exforsys(int x,int y)&lt;br /&gt;            {&lt;br /&gt;                 int z;&lt;br /&gt;                 z=x+y;&lt;br /&gt;                 return(z);&lt;br /&gt;            }&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;         &lt;/tr&gt;     &lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;The Output is:11&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-3634715765097685882?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/3634715765097685882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=3634715765097685882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3634715765097685882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3634715765097685882'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/12/what.html' title='What???'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-1254046266131273607</id><published>2008-12-13T09:49:00.000-08:00</published><updated>2009-01-16T05:52:03.512-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>This and That</title><content type='html'>&lt;h2&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;FACTS on Functions and Structured Programming&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;  &lt;p&gt;&lt;span style="color: rgb(102, 204, 204);"&gt;By using functions in your C programs, you can practice &lt;/span&gt;&lt;i style="color: rgb(102, 204, 204);"&gt;structured&lt;/i&gt;&lt;span style="color: rgb(102, 204, 204);"&gt; &lt;/span&gt;&lt;i style="color: rgb(102, 204, 204);"&gt;programming,&lt;/i&gt;&lt;span style="color: rgb(102, 204, 204);"&gt; in which individual program tasks are performed by independent sections of program code. "Independent sections of program code" sounds just like part of the definition of functions given earlier, doesn't it? Functions and structured programming are closely related.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;h3&gt;&lt;a name="Heading6"&gt;&lt;/a&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;The Advantages of Structured Programming&lt;/span&gt;&lt;o:p style="color: rgb(255, 255, 0);"&gt;&lt;/o:p&gt;&lt;/h3&gt;  &lt;p style="color: rgb(255, 255, 0);"&gt;Why is structured programming so great? There are two important reasons:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;ul style="color: rgb(255, 255, 0);" type="disc"&gt;&lt;li class="MsoNormal" style=""&gt;It's easier to write a      structured program, because complex programming problems are broken into a      number of smaller, simpler tasks. Each task is performed by a function in      which code and variables are isolated from the rest of the program. You      can progress more quickly by dealing with these relatively simple tasks      one at a time. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;It's easier to debug a      structured program. If your program has a &lt;i&gt;bug&lt;/i&gt; (something that      causes it to work improperly), a structured design makes it easy to      isolate the problem to a specific section of code (a specific function). &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;A related advantage of structured programming is the time you can save. If you write a function to perform a certain task in one program, you can quickly and easily use it in another program that needs to execute the same task. Even if the new program needs to accomplish a slightly different task, you'll often find that modifying a function you created earlier is easier than writing a new one from scratch. Consider how much you've used the two functions printf() and scanf() even though you probably haven't seen the code they contain. If your functions have been created to perform a single task, using them in other programs is much easier.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;h3&gt;&lt;a name="Heading7"&gt;&lt;/a&gt;&lt;span style="color: rgb(204, 51, 204);"&gt;Planning a Structured Program&lt;/span&gt;&lt;o:p style="color: rgb(204, 51, 204);"&gt;&lt;/o:p&gt;&lt;/h3&gt;  &lt;p style="color: rgb(204, 51, 204);"&gt;If you're going to write a structured program, you need to do some planning first. This planning should take place before you write a single line of code, and it usually can be done with nothing more than pencil and paper. Your plan should be a list of the specific tasks your program performs. Begin with a global idea of the program's function. If you were planning a program to manage your name and address list, what would you want the program to do? Here are some obvious things:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;ul style="color: rgb(204, 51, 204);" type="disc"&gt;&lt;li class="MsoNormal" style=""&gt;Enter new names and      addresses. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Modify existing entries. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Sort entries by last name. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Print mailing labels. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p style="color: rgb(204, 51, 204);"&gt;With this list, you've divided the program into four main tasks, each of which can be assigned to a function. Now you can go a step further, dividing these tasks into subtasks. For example, the "Enter new names and addresses" task can be subdivided into these subtasks:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;ul style="color: rgb(204, 51, 204);" type="disc"&gt;&lt;li class="MsoNormal" style=""&gt;Read the existing address      list from disk. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Prompt the user for one or      more new entries. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Add the new data to the list.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Save the updated list to disk.      &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p style="color: rgb(204, 51, 204);"&gt;Likewise, the "Modify existing entries" task can be subdivided as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;ul style="color: rgb(204, 51, 204);" type="disc"&gt;&lt;li class="MsoNormal" style=""&gt;Read the existing address      list from disk. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Modify one or more entries. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;Save the updated list to      disk. &lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p style="color: rgb(204, 51, 204);"&gt;You might have noticed that these two lists have two subtasks in common--the ones dealing with reading from and saving to disk. You can write one function to "Read the existing address list from disk," and that function can be called by both the "Enter new names and addresses" function and the "Modify existing entries" function. The same is true for "Save the updated list to disk."&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="color: rgb(204, 51, 204);"&gt;Already you should see at least one advantage of structured programming. By carefully dividing the program into tasks, you can identify parts of the program that share common tasks. You can write "double-duty" disk access functions, saving yourself time and making your program smaller and more efficient.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-1254046266131273607?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/1254046266131273607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=1254046266131273607' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/1254046266131273607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/1254046266131273607'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/12/this-and-that.html' title='This and That'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-4548731072777039842</id><published>2008-12-06T20:25:00.000-08:00</published><updated>2009-01-16T05:38:43.387-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>This Week..</title><content type='html'>This week,we randomly go to our computer laboratory  to  have an activity. Instead,  we were having our reporting  inside our class room.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Nearly close to our reports:&lt;/span&gt;&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;include&lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt; struct person&lt;br /&gt;{&lt;br /&gt;   char *name;&lt;br /&gt;   int age;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt; int main()&lt;br /&gt;{&lt;br /&gt;   struct person p;&lt;br /&gt;   p.name = "Jenny Turbo";&lt;br /&gt;   p.age = 25;&lt;br /&gt;   printf("%s",p.name);&lt;br /&gt;   printf("%d",p.age);&lt;br /&gt;   return 0;&lt;br /&gt;}&lt;/code&gt;&lt;span style="font-family: courier new;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-4548731072777039842?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/4548731072777039842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=4548731072777039842' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4548731072777039842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/4548731072777039842'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/12/this-week.html' title='This Week..'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-5012204496225320760</id><published>2008-12-06T15:55:00.000-08:00</published><updated>2008-12-06T15:55:01.285-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'></title><content type='html'>This week, we just have a reporting about the given assignment by group!!!&lt;br /&gt;its about the &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Functions and Structured Programming in CHAPTER 10.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;      Our problem is to have a program that will display A!-Excellent if the grade enter is greater than or equal to 90. B!-Good if it is lesser than 90 but greater than or equal to 75 and C!-Poor otherwise.&lt;br /&gt;&lt;br /&gt;     &lt;span style="color: rgb(51, 51, 255);"&gt;Our Answer:&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;#define p printf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;#define s scanf&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int x;&lt;br /&gt;clrsr();&lt;br /&gt;p("enter a grade:");&lt;br /&gt;s("%d",&amp;amp; x);&lt;br /&gt;Equigrade();&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Equigrade (int x)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;if(x&gt;=90)&lt;br /&gt;p("A!-Excellent");&lt;br /&gt;&lt;br /&gt;if(x&lt;90&gt;=75)&lt;br /&gt;p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;("B!-Good");&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;if(x&lt;75)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;("C!-Poor")&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Thats all!!!&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-5012204496225320760?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/5012204496225320760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=5012204496225320760' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/5012204496225320760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/5012204496225320760'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/12/this-week-we-just-have-reporting-about.html' title=''/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-2076414882717668236</id><published>2008-12-06T15:27:00.000-08:00</published><updated>2009-01-09T21:23:31.569-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>Let's Get Further...</title><content type='html'>&lt;h4 style="font-family: trebuchet ms; font-weight: bold; color: rgb(255, 153, 0);"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-style: italic;"&gt;Structure Members Initialization:&lt;/span&gt; &lt;/span&gt;&lt;/h4&gt; &lt;p&gt;As with arrays and variables, structure members can also be initialized. This is performed by enclosing the values to be initialized inside the braces &lt;span style="font-size:85%;color:#800000;"&gt;&lt;span style="font-family:Courier New;"&gt;{&lt;/span&gt;&lt;/span&gt; and &lt;span style="font-size:85%;color:#800000;"&gt;&lt;span style="font-family:Courier New;"&gt;}&lt;/span&gt;&lt;/span&gt; after the structure variable name while it is defined. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;For Example: &lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;table style="border-collapse: collapse;color:#111111;" border="0" border cellpadding="0" cellspacing="0"&gt;     &lt;tbody&gt;         &lt;tr&gt;             &lt;td style="border: 1px solid ;color:#fffbec;" bg height="1" width="555"&gt;&lt;blockquote&gt;             &lt;p style="margin-top: 0px; margin-bottom: 0px;"&gt;&lt;span style="font-family:Courier New;font-size:85%;color:#0000ff;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-family:Courier New;font-size:85%;color:#800000;"&gt;#include &lt;iostream.h&gt;&lt;/iostream.h&gt;&lt;br /&gt;            struct Customer&lt;br /&gt;            {&lt;br /&gt;            &lt;nobr&gt;&lt;a style="border-bottom: 1px solid rgb(0, 100, 0); color: rgb(0, 100, 0); text-decoration: underline; display: inline; background-color: transparent; font-size: 1em; padding-bottom: 1px; line-height: 1em; position: relative;" class="tfTextLink" href="javascript:void(0)"&gt;int&lt;/a&gt;&lt;/nobr&gt; custnum;&lt;br /&gt;            int salary;&lt;br /&gt;            float commission;&lt;br /&gt;            };&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;color:#800000;"&gt;void main( )&lt;br /&gt;            {&lt;br /&gt;            Customer cust1={100,2000,35.5};&lt;br /&gt;            Customer cust2;&lt;br /&gt;cout &lt;&lt;”\n Customer Number: “&lt; cout &lt;&lt;”; Salary: Rs.“&lt; cout &lt;&lt;”; Commission: Rs.“&lt; cust2=cust1;&lt;br /&gt;            cout &lt;&lt;”\n Customer Number: “&lt; cout &lt;&lt;”; Salary: Rs.“&lt; cout &lt;&lt;”; Commission: Rs.“&lt;&lt;br /&gt;            }&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/blockquote&gt;&lt;/td&gt;         &lt;/tr&gt;     &lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;p&gt;The output of the above program is&lt;/p&gt;&lt;br /&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;color:#800000;"&gt;Customer Number: 100; Salary: Rs.2000; Commission: Rs.35.5&lt;br /&gt;Customer Number: 100; Salary: Rs.2000; Commission: Rs.35.5&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;In the above example, the structure variable can be assigned to each by using assignment operator ‘=’. The programmer must consider that only structure variables of the same type can be initialized. If a programmer tries to initialize two structure variables of different types to each other it would result in compiler error. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;It is wrong to initialize as: &lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;color:#800000;"&gt;Customer cust1;&lt;br /&gt;cust1= {100,2000,35.5};&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;h4 style="font-family: trebuchet ms; color: rgb(255, 153, 0);"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-style: italic;"&gt;Nesting of structures:&lt;/span&gt; &lt;/span&gt;&lt;/h4&gt; &lt;p&gt;Nesting of structures is placing structures within structure. How to declare nesting of structures? How to access structure members in case of nesting of structures? &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;For Example: &lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;table style="border-collapse: collapse;color:#111111;" border="0" border cellpadding="0" cellspacing="0"&gt;     &lt;tbody&gt;         &lt;tr&gt;             &lt;td style="border: 1px solid ;color:#fffbec;" bg height="1" width="555"&gt;&lt;blockquote&gt;             &lt;p style="margin-top: 0px; margin-bottom: 0px;"&gt;&lt;span style="font-family:Courier New;font-size:85%;color:#0000ff;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-family:Courier New;font-size:85%;color:#800000;"&gt;#include &lt;iostream.h&gt;&lt;/iostream.h&gt;&lt;br /&gt;            struct course&lt;br /&gt;            {&lt;br /&gt;            int couno;&lt;br /&gt;            int coufees;&lt;br /&gt;            };&lt;br /&gt;           &lt;br /&gt;            struct student&lt;br /&gt;            {&lt;br /&gt;            int studno;&lt;br /&gt;            course sc;&lt;br /&gt;            course sc1;&lt;br /&gt;            };&lt;br /&gt;           &lt;br /&gt;            void main( )&lt;br /&gt;            {&lt;br /&gt;            student s1;&lt;br /&gt;            s1.studno=100;&lt;br /&gt;            s1.sc.couno=123;&lt;br /&gt;            s1.sc.coufees=5000;&lt;br /&gt;            s1.sc1.couno=200;&lt;br /&gt;            s1.sc1.coufees=5000;&lt;br /&gt;            int x = s1.sc.coufees + s1.sc1.coufees;&lt;br /&gt;            cout&lt;&lt; “\n Student Number: ”&lt; cout&lt;&lt;”\n Total Fees: Rs.”&lt;&lt; x;&lt;br /&gt;            }&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/blockquote&gt;&lt;/td&gt;         &lt;/tr&gt;     &lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;p&gt;The output of the above program is&lt;/p&gt;&lt;br /&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt; &lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;color:#800000;"&gt;Student Number: 100&lt;br /&gt;Total Fees: Rs.10000&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;In the above example, the structure course is nested inside the structure student. To access such nested structure members, the programmer must use dot operator in the above case twice to access the nested structure members. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;In the above example: &lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-size:85%;color:#800000;"&gt;&lt;span style="font-family:Courier New;"&gt;s1.sc.couno &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;s1 is the name of the structure variable. sc is the member in the outer structure student. couno is the member in the inner structure course. This is how nested structure members are accessed.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;One more important feature of C++ structure is it can hold both data and functions. This is in contrast to C where structures can hold only data. Though C++ structures can hold both data and functions, most classes are used for the purpose of holding both data and functions and structures are used to hold data. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-2076414882717668236?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/2076414882717668236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=2076414882717668236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2076414882717668236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2076414882717668236'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/12/lets-get-further.html' title='Let&apos;s Get Further...'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-311844443274519736</id><published>2008-11-29T17:13:00.000-08:00</published><updated>2009-01-16T05:24:10.843-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>Structure and function...</title><content type='html'>&lt;h1&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="SECTION00430000000000000000"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="SECTION00430000000000000000"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="SECTION00430000000000000000"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1&gt;  &lt;/h1&gt;&lt;h1 style="color: rgb(204, 102, 0);"&gt;&lt;span style="font-size: 14pt;"&gt;For the continuation of our lesson in structure and function of programming...&lt;/span&gt;  &lt;/h1&gt;&lt;h1&gt;&lt;span style="font-size: 14pt;"&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;I also learned about the following:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;    &lt;p style="font-weight: bold;" class="MsoNormal"&gt;&lt;&lt;span style="color: rgb(102, 0, 204);"&gt;#include&lt;math.h&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;sqrt(x)&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;fabs(x)&lt;span style=""&gt;  &lt;/span&gt;- calculates the absolute value of a number&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;ceil(x)&lt;span style=""&gt;   &lt;/span&gt;- ceil (11.25)=12&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;floor(x)&lt;span style=""&gt; &lt;/span&gt;- floor(11.25)=11&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;sin(x)&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;cos(x)&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;tan(x)&lt;/li&gt;&lt;/ul&gt;  &lt;ul style="color: rgb(102, 0, 204);"&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;pow(x)&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;    &lt;h1 style="color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="SECTION00430000000000000000"&gt;C Program Structure&lt;/a&gt;&lt;/span&gt; &lt;/h1&gt; &lt;p style="color: rgb(255, 153, 102);"&gt;&lt;span style="font-size:100%;"&gt; A C program basically has the following form: &lt;/span&gt;&lt;/p&gt;&lt;ul style="color: rgb(255, 153, 102);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; Preprocessor Commands &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; Type definitions &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; Function prototypes -- declare function types and variables passed to function. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; Variables &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; Functions &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p style="color: rgb(255, 153, 102);"&gt;&lt;span style="font-size:100%;"&gt; We must have a &lt;tt&gt;main()&lt;/tt&gt; function. &lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 153, 102);"&gt; &lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="color: rgb(255, 153, 102);"&gt;&lt;span style="font-size:100%;"&gt; A function has the form: &lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 153, 102);"&gt;&lt;span style="font-size:100%;"&gt;&lt;tt&gt; &lt;pre&gt;&lt;tt&gt;&lt;br /&gt;&lt;em&gt;type&lt;/em&gt; function_name (&lt;em&gt;parameters&lt;/em&gt;)&lt;br /&gt;  {&lt;br /&gt;     &lt;em&gt;local variables&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;     &lt;em&gt;C Statements&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;/tt&gt;&lt;/pre&gt; &lt;/tt&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="color: rgb(255, 153, 102);"&gt;&lt;span style="font-size:100%;"&gt; If the type definition is omitted C assumes that function returns an &lt;b&gt;  integer&lt;/b&gt; type. &lt;b&gt;NOTE:&lt;/b&gt; This can be a source of problems in a program. &lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 153, 102);"&gt;&lt;span style="font-size:100%;"&gt; So returning to our first C program: &lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 153, 102);"&gt;&lt;span style="font-size:100%;"&gt;&lt;tt&gt; &lt;/tt&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style="color: rgb(255, 153, 102);"&gt;&lt;span style="font-size:100%;"&gt;&lt;tt&gt;&lt;tt&gt;&lt;br /&gt;  /* Sample program */&lt;br /&gt;&lt;br /&gt;  main()&lt;br /&gt;     {&lt;br /&gt;&lt;br /&gt;     printf( ``I Like C&lt;span style="color: rgb(255, 153, 0);"&gt; &lt;/span&gt;\n'' );&lt;br /&gt;     exit ( 0 );&lt;br /&gt;&lt;br /&gt;     }&lt;br /&gt;&lt;/tt&gt;&lt;/tt&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;span style="color: rgb(255, 153, 102);font-size:100%;" &gt;&lt;tt&gt; &lt;b&gt;NOTE&lt;/b&gt;:&lt;/tt&gt;&lt;/span&gt;&lt;ul style="color: rgb(255, 153, 102);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;tt&gt; C requires a semicolon at the end of &lt;b&gt;every&lt;/b&gt; statement. &lt;/tt&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;tt&gt; &lt;tt&gt;printf is a &lt;em&gt;standard&lt;/em&gt; C function -- called from &lt;tt&gt;main&lt;/tt&gt;. &lt;/tt&gt;&lt;/tt&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;tt&gt;&lt;tt&gt; \n signifies newline. &lt;b&gt;Formatted output&lt;/b&gt; -- more later. &lt;/tt&gt;&lt;/tt&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;tt&gt;&lt;tt&gt; &lt;tt&gt;exit()&lt;/tt&gt; is also a standard function that causes the program to terminate. Strictly speaking it is not needed here as it is the last line of &lt;tt&gt;main()&lt;/tt&gt; and the program will terminate anyway. &lt;/tt&gt;&lt;/tt&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p style="color: rgb(255, 153, 102);"&gt; &lt;span style="font-size:100%;"&gt;&lt;tt&gt;&lt;tt&gt;Let us look at another printing statement:&lt;br /&gt;  &lt;tt&gt; printf(``.\n.1\n..2\n...3\n'');&lt;/tt&gt;&lt;br /&gt;&lt;/tt&gt;&lt;/tt&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 153, 102);"&gt; &lt;tt&gt;&lt;tt&gt;&lt;span style="font-size:100%;"&gt;The output of this would be: &lt;/span&gt;&lt;tt&gt; &lt;pre&gt;&lt;tt&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;    .&lt;br /&gt;  .1&lt;br /&gt;  ..2&lt;br /&gt;  ...3&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/tt&gt;&lt;p:colorscheme colors="#ffffe1,#000000,#330033,#330033,#cccc99,#ff0000,#990033,#b2b2b2"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p:colorscheme&gt;&lt;/pre&gt;&lt;/tt&gt;&lt;/tt&gt;&lt;/tt&gt;&lt;/p&gt;  &lt;p&gt;&lt;tt&gt;&lt;tt&gt;&lt;tt&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/tt&gt; &lt;/tt&gt;&lt;/tt&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-311844443274519736?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/311844443274519736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=311844443274519736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/311844443274519736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/311844443274519736'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/structure-and-function.html' title='Structure and function...'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-1286352527086811536</id><published>2008-11-29T16:19:00.000-08:00</published><updated>2009-01-09T21:20:25.256-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>For What???</title><content type='html'>&lt;h4 style="font-family: arial; font-weight: bold; font-style: italic;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-family: verdana; color: rgb(255, 204, 204);"&gt;C++ Structure&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;h4 style="font-style: italic; color: rgb(204, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;What is a Structure?&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;Structure is a collection of &lt;nobr&gt;&lt;a style="border-bottom: 1px solid rgb(0, 100, 0); color: rgb(0, 100, 0); text-decoration: underline; display: inline; background-color: transparent; font-size: 1em; padding-bottom: 1px; line-height: 1em; position: relative;" class="tfTextLink" href="javascript:void(0)"&gt;variables&lt;/a&gt;&lt;/nobr&gt; under a single name. Variables can be of any type: int, float, char etc. The main difference between structure and &lt;nobr&gt;&lt;a style="border-bottom: 1px solid rgb(0, 100, 0); color: rgb(0, 100, 0); text-decoration: underline; display: inline; background-color: transparent; font-size: 1em; padding-bottom: 1px; line-height: 1em; position: relative;" class="tfTextLink" href="javascript:void(0)"&gt;array&lt;/a&gt;&lt;/nobr&gt; is that arrays are collections of the same data type and structure is a collection of variables under a single name. &lt;/p&gt;&lt;br /&gt;&lt;h4 style="font-style: italic; color: rgb(204, 255, 255);"&gt;How to declare and create a Structure&lt;/h4&gt; &lt;h4&gt;&lt;em&gt;&lt;span style="color:#ff6600;"&gt;Declaring a Structure:&lt;/span&gt;&lt;/em&gt;&lt;/h4&gt; &lt;p&gt;The structure is declared by using the keyword struct followed by structure name, also called a tag. Then the structure members (variables) are defined with their type and variable names inside the open and close braces { and }. Finally, the closed braces end with a semicolon denoted as ; following the statement. The above structure declaration is also called a Structure Specifier.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Example: &lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Three variables: &lt;em&gt;custnum &lt;/em&gt;of type int, &lt;em&gt;salary&lt;/em&gt; of type int, &lt;em&gt;commission&lt;/em&gt; of type float are structure members and the structure name is Customer. This structure is declared as follows: &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img src="http://www.exforsys.com/images/Sripri/CPPS01.JPG" height="180" width="526" /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;In the above example, it is seen that variables of different types such as int and float are grouped in a single structure name Customer.&lt;br /&gt;&lt;br /&gt;Arrays behave in the same way, declaring structures does not mean that memory is allocated. Structure declaration gives a skeleton or template for the structure.&lt;br /&gt;&lt;br /&gt;After declaring the structure, the next step is to define a structure variable. &lt;/p&gt;&lt;br /&gt;&lt;h4 style="font-style: italic; color: rgb(204, 255, 255);"&gt;How to declare Structure Variable?&lt;/h4&gt; &lt;p&gt;This is similar to variable declaration. For variable declaration, data type is defined followed by variable name. For structure variable declaration, the data type is the name of the structure followed by the structure variable name.&lt;br /&gt;&lt;br /&gt;In the above example, structure variable cust1 is defined as: &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img src="http://www.exforsys.com/images/Sripri/CPPS02.JPG" /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;What happens when this is defined? When structure is defined, it allocates or reserves space in memory. The memory space allocated will be cumulative of all defined structure members. In the above example, there are 3 structure members: custnum, salary and commission. Of these, two are of type in and one is of type float. If integer space allocated by a system is 2 bytes and float four bytes the above would allo9acter 2bytes for custnum, 2 bytes for salary and 4 bytes for commission.&lt;/p&gt;&lt;strong&gt;For example:&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;A programmer wants to assign 2000 for the structure member &lt;em&gt;salary&lt;/em&gt; in the above example of structure &lt;em&gt;Customer&lt;/em&gt; with structure variable &lt;em&gt;cust1&lt;/em&gt; this is written as:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img src="http://www.exforsys.com/images/Sripri/CPPS03.JPG" /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-1286352527086811536?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/1286352527086811536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=1286352527086811536' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/1286352527086811536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/1286352527086811536'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/for-what.html' title='For What???'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-2387366513347405995</id><published>2008-11-29T13:38:00.000-08:00</published><updated>2008-12-05T20:04:18.262-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>chapter 10_con't</title><content type='html'>This blog is the continuation of my last blog. . .&lt;br /&gt;&lt;br /&gt;This is my additional learnings. . .&lt;br /&gt;&lt;br /&gt; &lt;p class="MsoNormal"&gt;Type of functions&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;♫&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Void Functions – which does not return any value when invoked. &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;♫&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Function that returns a value once invoked. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;Actual and Formal Parameters &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;♫&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Actual Parameters are the variables found in the function call whose values will be passed to the formal parameters of the called function. &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;♫&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Formal Parameters are the variables found in the function header that will receive from the actual parameters. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;That's all. . .&lt;br /&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-2387366513347405995?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/2387366513347405995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=2387366513347405995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2387366513347405995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/2387366513347405995'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/chapter-10cont.html' title='chapter 10_con&apos;t'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-870213239117830465</id><published>2008-11-23T17:49:00.000-08:00</published><updated>2008-12-05T18:54:44.495-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>Chapter 10_discussion</title><content type='html'>&lt;span style="color: rgb(204, 51, 204); font-weight: bold;"&gt;In our discussion this week, we are finished with our lesson about looping! And we are now in Chapter 10 which is  about the Functions and Structured Programming  This includes the following facts:&lt;/span&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; color: rgb(102, 0, 204);"&gt;-&lt;span style=""&gt;     &lt;/span&gt;In functions and structured programming, it is a C Program that is composed at least one function which is the main() function and it executes the program that begins with main() and also ends with the main() function. It is also composed of other functions aside from main() function.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; color: rgb(102, 0, 204);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; text-align: justify; text-indent: -0.25in; color: rgb(102, 255, 255);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;-&lt;span style=""&gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;The functions are defined as the “building blocks of C” in which all program activity occurs. It is also called as a subprogram or subroutine. It performs a task, operation or computation then may return to the calling part of the program. Other functions can be executed by the program through a “function call”. This function call is used to call a function to execute C statements found inside the function body.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center; color: rgb(102, 0, 204);" align="center"&gt;&lt;b style=""&gt;The General form of a Function&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;b&gt;function_type function_name (parameters list)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;body of the function;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(102, 0, 204);" class="MsoNormal"&gt;&lt;b&gt;}&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in; color: rgb(255, 153, 255);"&gt;Where:&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 153, 255);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=""&gt;function_type&lt;/b&gt; specifies the type of value that the function will return.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 153, 255);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=""&gt;function_name&lt;/b&gt; is any valid identifier name which will name the function.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 153, 255);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=""&gt;Parameters list&lt;/b&gt; is a comma separated list of variables that receive the values when the function is called.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 153, 255);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=""&gt;body of the function&lt;/b&gt; is composed of valid c statements that the function will execute.&lt;span style=""&gt;  &lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 153, 255);" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; color: rgb(255, 102, 0);"&gt;-&lt;span style=""&gt;  &lt;/span&gt;The types of functions include the Void Functions which does not return any value when invoked and the Functions that return a value once invoked.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; color: rgb(255, 102, 0);"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; color: rgb(255, 102, 0);"&gt;-&lt;span style=""&gt;  &lt;/span&gt;In parameters list, there are two kinds; the actual parameters are the variables found in the function call whose values will be passed to the formal parameters of the called functions and the Formal Parameters are the variables found in the function header that will receive from the actual parameters.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; color: rgb(255, 102, 0);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 135pt; text-align: justify; text-indent: -99pt; color: rgb(204, 51, 204);"&gt;&lt;b style=""&gt;Call by Value&lt;/b&gt; – in this method, the values of the actual parameters are passed to the formal parameters. The changes that will happen to the values of the formal parameters inside the function will not affect the values of the actual parameters. &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 135pt; text-align: justify; text-indent: -99pt; color: rgb(204, 51, 204);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 135pt; text-align: justify; text-indent: -99pt; color: rgb(204, 51, 204);"&gt;&lt;b style=""&gt;Pass by Value &lt;/b&gt;– in this method, the actual parameters pass their value to the formal parameters. The changes that will happen to the values of the formal parameters inside the function will affect the values of the actual parameters.&lt;span style=""&gt;  &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; color: rgb(204, 51, 204);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; color: rgb(255, 255, 0);"&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;span style="color: rgb(102, 0, 204);"&gt;&lt;#include&lt;/span&gt;&lt;math.h&gt;&lt;math.h&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/math.h&gt;&lt;/math.h&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; color: rgb(255, 153, 0);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;sqrt(x)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; color: rgb(255, 153, 0);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;fabs(x)&lt;span style=""&gt;  &lt;/span&gt;- calculates the absolute value of a number&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; color: rgb(255, 153, 0);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;ceil(x)&lt;span style=""&gt;   &lt;/span&gt;- ceil (11.25)=12&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; color: rgb(255, 153, 0);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;floor(x)&lt;span style=""&gt; &lt;/span&gt;- floor(11.25)=11&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; color: rgb(255, 153, 0);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;sin(x)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; color: rgb(255, 153, 0);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;cos(x)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; color: rgb(255, 153, 0);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;tan(x)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; color: rgb(255, 153, 0);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;=&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;pow(x,y)&lt;/p&gt;&lt;br /&gt;&lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; color: rgb(255, 153, 0);"&gt;&lt;span style="color: rgb(153, 51, 153);"&gt;This are one of the facts that is important in this chapter! ♥&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-870213239117830465?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/870213239117830465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=870213239117830465' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/870213239117830465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/870213239117830465'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/chapter-10discussion.html' title='Chapter 10_discussion'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-3742008408666461898</id><published>2008-11-23T16:56:00.000-08:00</published><updated>2009-01-16T05:03:57.773-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>My Learnings of the Week</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;b&gt;For this week we've taking up about FUNCTIONS AND STRUCTURED PROGRAMMING...&lt;/b&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;A c program is composed of&lt;span style=""&gt;  &lt;/span&gt;at least one function definition, that is the main() function.&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Execution of the program begins with main() and also ends with the main() function. &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;However, a C program can also be composed of other functions aside from the main(). &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;The c program presented in previous slide is composed of 3 functions: the main function, the function greet1 and the function greet2.&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Therefore we can say that we can create a program that is composed of other function aside from the main function. &lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"&gt;Example:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;#include&lt;stdio.h&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;{&lt;br /&gt;&lt;span style=""&gt;            &lt;/span&gt;clrscr( );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;&lt;span style=""&gt;            &lt;/span&gt;printf (“Hi”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;&lt;span style=""&gt;            &lt;/span&gt;greet1( );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;&lt;span style=""&gt;            &lt;/span&gt;greet2( );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;&lt;span style=""&gt;            &lt;/span&gt;getch( );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;greet1 ( )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: trebuchet ms; color: rgb(255, 204, 0);"&gt;&lt;span style=";font-size:100%;" &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms; color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;printf ( “Hello”);&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms; color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms; color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms; color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;greet2 ( )&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms; color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;{&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms; color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style=";font-size:100%;" &gt;      &lt;/span&gt;&lt;span style="font-size:100%;"&gt;printf (“How are you”);&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: trebuchet ms; color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Output:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;Hi! Hello! How are you?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Functions are the building blocks of C in which all program activity occurs. &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;A function is also called a subprogram or subroutine. It is a part of a C program that performs a task, operation or computation then may return to the calling part of the program. &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Other functions aside from the main( ) can only be executed by the program through a “function call”.&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Note: Function call is a C statement that is used to call a function to execute C statements found inside the function body. &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Going back to the example, greet1( ); is an example of a function call, calling the function greet ( ). &lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Type of Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Void Functions – which does not return any value when invoked. &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Function that returns a value once invoked. &lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Actual and Formal Parameters &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Actual Parameters are the variables found in the function call whose values will be passed to the formal parameters of the called function. &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Formal Parameters are the variables found in the function header that will receive from the actual parameters. &lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Call by value&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;In the method call by value, the values of the actual parameters are passed to the formal parameters. &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Changes that happen to the values of the formal parameters inside the function will not affect the values of the actual parameters. &lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Pass by value or Call by reference&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;The actual parameters also pass their value to the formal parameters. &lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;But the changes that happen to the values of the formal parameters inside the function will affect the values of the actual parameters.&lt;span style=""&gt;  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;This is because the actual address of the variables is passed using the address of operator (&amp;amp;) together with the pointer operator (*).&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-3742008408666461898?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/3742008408666461898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=3742008408666461898' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3742008408666461898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3742008408666461898'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/my-learnings-of-week.html' title='My Learnings of the Week'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-3356668527512951855</id><published>2008-11-22T19:10:00.000-08:00</published><updated>2009-01-09T21:15:28.055-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>I Found Something!</title><content type='html'>&lt;h4 style="font-style: italic; font-family: verdana; color: rgb(255, 255, 204);"&gt;Concepts of Arrays in C++&lt;/h4&gt; &lt;p&gt;In this C++ Tutorial you will learn about&lt;span style="color:#000000;"&gt; Concepts of Arrays in C++, What is an array?, How to access an array element, Declaration of Array and How to Access Array Elements.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;h4 style="font-style: italic; font-family: verdana; color: rgb(255, 153, 102);"&gt;What is an array?&lt;/h4&gt; &lt;p&gt;An array is a group of elements of the same type that are placed in contiguous memory locations.&lt;/p&gt;&lt;br /&gt;&lt;h4 style="font-style: italic; font-family: verdana; color: rgb(255, 255, 204);"&gt;How to access an array element?&lt;/h4&gt; &lt;p&gt;You can access an element of an array by adding an index to a unique identifier.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;For example&lt;/strong&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;Suppose &lt;span style="font-family:Courier New;color:#800000;"&gt;Exforsys&lt;/span&gt; is an array that has 4 integer values in it that is of &lt;span style="font-family:Courier New;color:#800000;"&gt;int &lt;/span&gt;data type, then &lt;span style="font-family:Courier New;color:#800000;"&gt;Exforsys&lt;/span&gt; is internally represented as:&lt;/p&gt;&lt;br /&gt;&lt;div align="center"&gt; &lt;table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" align="left" border="1" cellpadding="0" cellspacing="0"&gt;     &lt;tbody&gt;         &lt;tr&gt;             &lt;td style="border: medium none ; padding: 0in 5.4pt; width: 103.7pt;" valign="top" width="138"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt; &lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 5.4pt; width: 63.75pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;0&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 5.4pt; width: 63.75pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;1&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 5.4pt; width: 63.75pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;2&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 5.4pt; width: 63.75pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;3&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;         &lt;/tr&gt;         &lt;tr style="height: 30.1pt;"&gt;             &lt;td style="border-style: none solid none none; border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 103.7pt; height: 30.1pt;" width="138"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;Exforsys&lt;br /&gt;            Data Type : int&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63.75pt; height: 30.1pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal"&gt; &lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63.75pt; height: 30.1pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal"&gt; &lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63.75pt; height: 30.1pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal"&gt; &lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63.75pt; height: 30.1pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal"&gt; &lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;         &lt;/tr&gt;     &lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;/div&gt; &lt;h4&gt; &lt;/h4&gt; &lt;h4&gt; &lt;/h4&gt; &lt;h4&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#ffffff;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana; font-style: italic; color: rgb(255, 153, 102);"&gt; Declaration of Array:&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;Just like variables, We have to declare arrays before using them. The general syntax for declaring an array is&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;data type array name[number of elements];&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;In the above example the declaration of array &lt;span style="font-family:Courier New;color:#800000;"&gt;Exforsys&lt;/span&gt; would be written as:&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;int Exforsys[4];&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;One of the key points when declaring arrays is the number of elements defined in the array argument must be a constant value. The size of the array must be known before its execution. This relates to the concept of dynamic memory allocation in C++ which will be covered later in the tutorial.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;After declaration the next step is the initialization of array values.&lt;/p&gt;&lt;br /&gt;&lt;h4 style="font-family: verdana; font-style: italic; color: rgb(255, 255, 204);"&gt;Initialization of array:&lt;/h4&gt; &lt;p&gt;If a programmer wants to initialize an array elements it can be done by specifying the values enclosed within braces&lt;span style="font-family:Courier New;color:#800000;"&gt; { }.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;For example, using the array &lt;span style="font-family:Courier New;color:#800000;"&gt;Exforsys&lt;/span&gt;, if a programmer wants to initialize integer values 10, 20, 30, 40 respectively to each of the array positions it can be written.&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;int Exforsys[4] = {10,20,30,40};&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;So the above array would take values as below&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" align="left" border="1" cellpadding="0" cellspacing="0"&gt;     &lt;tbody&gt;         &lt;tr&gt;             &lt;td style="border: medium none ; padding: 0in 5.4pt; width: 103.7pt;" valign="top" width="138"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt; &lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 5.4pt; width: 63.75pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;0&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 5.4pt; width: 63.75pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;1&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 5.4pt; width: 63.75pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;2&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 5.4pt; width: 63.75pt;" valign="top" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;3&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;         &lt;/tr&gt;         &lt;tr style="height: 30.1pt;"&gt;             &lt;td style="border-style: none solid none none; border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 103.7pt; height: 30.1pt;" width="138"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;Exforsys&lt;br /&gt;            Data Type : int&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63.75pt; height: 30.1pt;" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;10&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63.75pt; height: 30.1pt;" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;20&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63.75pt; height: 30.1pt;" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;30&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;             &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63.75pt; height: 30.1pt;" width="85"&gt;             &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color: black;"&gt;40&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;            &lt;/td&gt;         &lt;/tr&gt;     &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt; &lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;One interesting fact is that the size of the array element can also be left blank, in which case the array takes the size of the array as the number of elements initialized within &lt;span style="font-family:Courier New;color:#800000;"&gt;{ }.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;For example if the array takes the form as&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;int Exforsys = {10,20,30,40,50};&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;Then the size of the array &lt;span style="font-family:Courier New;color:#800000;"&gt;Exforsys&lt;/span&gt; is 5 which is the number of elements initialized within &lt;span style="font-family:Courier New;color:#800000;"&gt;{ }.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Now the next step is to know how to access the array elements.&lt;/p&gt;&lt;br /&gt;&lt;h4 style="font-family: verdana; font-style: italic; color: rgb(255, 153, 102);"&gt;How to Access Array Elements:&lt;/h4&gt; &lt;p&gt;Just like variable sit is possible to access any element of the array for reading or modifying.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The general format for accessing arrays:&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;array name[index]&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;For example in the above example of array initialized with&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;int Exforsys[4] = {10,20,30,40};&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;When a programmer wants to access the 30 this can be written: &lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;Exforsys[2]&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;p&gt;Note that the array starts with index 0 and hence to access third element namely 30 one has to write array name with index 2.&lt;/p&gt;Let us see the whole concept with a example:&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;table id="AutoNumber2" style="width: 244px; border-collapse: collapse; height: 220px;color:#111111;" border="1" border cellpadding="0" cellspacing="0" width="244"&gt;     &lt;tbody&gt;         &lt;tr&gt;             &lt;td bg width="100%" style="color:#c0c0c0;"&gt;&lt;span class="table_2_cell_2"&gt;&lt;span nd="57"   style="font-family:Courier New;font-size:85%;"&gt;#include &amp;lt;iostream.h&amp;gt;&lt;br /&gt;            int Exforsys[ ] = { 10,20,30,40,50};&lt;br /&gt;            int i, outp=0;&lt;br /&gt;            void main()&lt;br /&gt;            {&lt;br /&gt;               for(i=0;i&amp;lt;5;i++)&lt;br /&gt;               {&lt;br /&gt;                   outp=outp+ Exfosys[i];&lt;br /&gt;               }&lt;br /&gt;               cout&amp;lt;&amp;lt; outp;&lt;br /&gt;            }&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;         &lt;/tr&gt;     &lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#ffffff;"&gt;.&lt;/span&gt;&lt;br /&gt;The output of the above program is:&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Courier New;color:#800000;"&gt;150&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-3356668527512951855?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/3356668527512951855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=3356668527512951855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3356668527512951855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3356668527512951855'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/i-found-something.html' title='I Found Something!'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-3674315226032805734</id><published>2008-11-16T18:43:00.000-08:00</published><updated>2008-12-05T18:48:48.001-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'></title><content type='html'>&lt;span style="font-size:130%;"&gt;    &lt;span style="color: rgb(102, 51, 255);"&gt;     This week we don't have a session with our teacher Mr. Ernie Balbuena because I am one of the Science Investigatory Project Regional DepEd-Intel Contestant. But based on my classmates, our lesson is still about looping or interative satements. . . ♥&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-3674315226032805734?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/3674315226032805734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=3674315226032805734' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3674315226032805734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/3674315226032805734'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/this-week-we-dont-have-session-with-our.html' title=''/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-7257664647247183577</id><published>2008-11-15T21:03:00.000-08:00</published><updated>2009-01-09T21:09:34.701-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>Just Finding Out New...</title><content type='html'>&lt;h3 style="font-weight: bold; font-style: italic; color: rgb(255, 153, 0); font-family: trebuchet ms;"&gt;&lt;span style="font-size:180%;"&gt;C++ Tutorials&lt;/span&gt; &lt;/h3&gt; &lt;p&gt;Created by Bjarne Stroustrup of AT&amp;amp;T Bell Labs as an extension of C, C++ is an object-oriented computer language used in the development of enterprise and commercial applications. Microsoft’s Visual C++ became the premier language of choice among developers and programmers. &lt;/p&gt; &lt;p&gt;As a procedural programming language, C++ uses program structures such as i/o (input/output), assignment statement, iterative statements, conditional statements and subprograms. Data structures of C++ include integer, real, char, arrays, structs and pointers. &lt;/p&gt; &lt;p&gt;Employment opportunities are numerous and well paid for C++ programmers and developers looking to work in the field of Software Engineering or as an IT Professional. Oftentimes, C++ Professionals will also be familiar with C, Linux, Unix, Java, .NET and VB (Visual Basic). Developers working with C++ can expect to participate in a variety of programming opportunities: developing systems for trading applications for an Investment Bank, developing cutting edge software applications for groundbreaking new technologies (Smartphone, PDA, etc.) to creating applications for 3-D Imaging Software or spectroscopic systems. &lt;/p&gt; &lt;p&gt;C++ Tutorials available in this section include explanations for simple to more advanced concepts of C++ in detail with sample coding information. A new programmer or developer interested in learning about C++ programming language and finding out why C++ is one of the most widely used programming languages for creating large-scale applications can utilize the tutorials and articles on C++ made available in this section. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-7257664647247183577?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/7257664647247183577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=7257664647247183577' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7257664647247183577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/7257664647247183577'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/just-finding-out-new.html' title='Just Finding Out New...'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-693703925220995139</id><published>2008-11-15T14:44:00.000-08:00</published><updated>2009-01-15T02:48:49.434-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Rhea-Lyn R. Butay'/><title type='text'>Out of Class...</title><content type='html'>For this week, we didn't tackle any any lesson since I and my co-contestants in Intel-Philippines are busy with our research entries...But according to my classmates we we're still in iterative statements..&lt;br /&gt;&lt;br /&gt;Research:&lt;br /&gt;&lt;br /&gt;Iteration may be performed over an arithmetic progression of integers or over  any finite enumerated structure. Iterative statements may be nested. If nested  iterations occur over the same enumerated structure, abbreviations such as  &lt;tt&gt;for x, y in X do&lt;/tt&gt; may be used; the leftmost identifier will correspond  to the outermost loop, etc.&lt;br /&gt;&lt;br /&gt;&lt;h3 style="color: rgb(255, 0, 0);"&gt;&lt;span class="mw-headline"&gt;do-while&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The do-while statement is a post-test loop, meaning that the evaluation of  the escape condition is only done after the code inside the loop has been  executed. This means that the body of the loop is always executed at least once  before the expression is evaluated.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style="color: rgb(255, 102, 102);"&gt;&lt;span class="mw-headline"&gt;while&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The while statement is a pretest loop. This means the evaluation of the  escape condition is done before the code inside the loop has been executed.  Because of this, it is possible that the body of the loop is never executed.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style="color: rgb(255, 0, 0);"&gt;&lt;span class="mw-headline"&gt;for&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The for statement is also a pretest loop with the added capabilities of  variable initialization before entering the loop and defining postloop code to  be entered.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style="color: rgb(255, 102, 102);"&gt;&lt;span class="mw-headline"&gt;for-in&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;The for-in statement is a strict iterative statement. It is used to enumerate  the properties of an object. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-693703925220995139?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/693703925220995139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=693703925220995139' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/693703925220995139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/693703925220995139'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/out-of-class.html' title='Out of Class...'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-8600610708815396854</id><published>2008-11-09T10:20:00.000-08:00</published><updated>2008-11-09T22:28:39.146-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Posted By: Prince Rainier A. Yamyamin'/><title type='text'>learnings of the week</title><content type='html'>&lt;span style="color:#cc66cc;"&gt;         In last week’s discussion, we tackled about the &lt;span style="font-size:180%;"&gt;&lt;span style="font-size:130%;color:#ff0000;"&gt;iterative statements&lt;/span&gt; &lt;/span&gt;or commonly known as loops. This allows a set of instruction to be executed or performed several until conditions are met. It can be predefined as in the loop, or open ended as in while and do-while.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;        &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#33ff33;"&gt;    There are three types of Iterative Statements&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#6666cc;"&gt;              1. The For statements&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#6666cc;"&gt;              2. The While statements&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#6666cc;"&gt;              3. The Do-While statements &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;span style="font-size:130%;color:#33ff33;"&gt;The For statements&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;br /&gt;  The For statement or for loop is considered as a predefined loop because the number or times it iterates to perform its body is predetermined in the loop’s definition. The For loop contains a counter whose values determine the number of times the loop iterates. The iteration stops upon reaching the number of times specified in the loop. &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;The general form of the for statement is:&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt; for (initialization; condition; increment) &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt; statement_sequence;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt; } &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;Where: &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;for is a reserve word in C Initialization is an assignment statement that is used to set the loop’s counter.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;Condition is a relational boolean expression that determines when the loop will exit.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;Increment defines how the loop’s counter will change each time the loop is separated.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;Statement sequence may either be a single C statement or a block of C statements that make up the loop body.&lt;br /&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#33ff33;"&gt;The While statement&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#cc66cc;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;          The while statement or while loop is an open-ended or event-controlled loop. The while loop iterates while the condition is TRUE (1). When it becomes FALSE (0), the program control passes to the line after the loop code. &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;The general form of the while statement is: &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;while (condition) &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;statement_sequence; &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#33ff33;"&gt;The Do-While statement&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;The second type of open-ended or event-controlled loop is the do-while statement or do-while loop. &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;The general form of the do-while statement is: &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt; statement_sequence;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc66cc;"&gt; } while (condition);&lt;br /&gt;&lt;br /&gt;= = = END = = =&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1856193923388806939-8600610708815396854?l=absolutelearners.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://absolutelearners.blogspot.com/feeds/8600610708815396854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1856193923388806939&amp;postID=8600610708815396854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/8600610708815396854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1856193923388806939/posts/default/8600610708815396854'/><link rel='alternate' type='text/html' href='http://absolutelearners.blogspot.com/2008/11/learnings-of-week.html' title='learnings of the week'/><author><name>plaridels advanced</name><uri>http://www.blogger.com/profile/10448528703347277311</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1856193923388806939.post-1466942814548691141</id><published>2008-11-08T19:45:00.000-08:00</published><updated>2008-11-09T22:12:05.971-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Charmine P. Agulto'/><title type='text'>first learnings of the week</title><content type='html'>&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#3366ff;"&gt;        This week we tackled about &lt;span style="color:#ff99ff;"&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;Iterative statements (loops)&lt;/strong&gt;.&lt;/span&gt;&lt;/span&gt; What is iterative statement?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;        &lt;strong&gt;Iterative statements (loops)&lt;/strong&gt;&lt;/span&gt; allow a set of instruction to be executed or performed several until condition are met. It can be predefined as in the loop, or open ended as in while and do-while.&lt;br /&gt;&lt;br /&gt;   &lt;strong&gt;&lt;span style="font-size:130%;"&gt;    Types of Iterative Statements&lt;/span&gt;&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#3366ff;"&gt;&lt;br /&gt;             &lt;span style="color:#ff0000;"&gt;1. The For statements&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99ff;"&gt;             2. The While statements&lt;/span&gt;&lt;span style="color:#ff9966;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style="color:#33ff33;"&gt;          3. The Do-While statements&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;♥ The For statements ♥&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;      The For statement or for loop is considered as a predefined loop because the number or times it iterates to perform its body is predetermined in the loop’s definition.&lt;br /&gt;The For loop contains a counter whose values determine the number of times the loop iterates. The iteration stops upon reaching the number of times specified in the loop.&lt;br /&gt;The general form of the for statement is:&lt;br /&gt;&lt;br /&gt;for (initialization; condition; increment)&lt;br /&gt;{&lt;br /&gt;statement_sequence;&lt;br /&gt;} &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;Where:&lt;br /&gt;for is a reserve word in C&lt;br /&gt;Initialization is an assignment statement that is used to set the loop’s counter.&lt;br /&gt;Condition is a relational boolean expression that determines when the loop will exit.&lt;br /&gt;Increment defines how the loop’s counter will change each time the loop is separated.&lt;br /&gt;Statement sequence may either be a single C statement or a block of C statements that make up the loop body.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;▼ Example:&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;Write a program that will print the numbers 1 to 10 using a for statement. &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;#include&lt;stdio.h&gt;&lt;br /&gt;int x;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;for (x=1; x&lt;=10; x++) &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;printf (“%d\n”,x); &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;getch(); &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;} &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;sample output:&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;1 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:georgia;color:#ff0000;"&gt;2 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span styl
