<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3889981274156227716</atom:id><lastBuildDate>Fri, 20 Sep 2024 20:41:45 +0000</lastBuildDate><category>C#</category><category>Visual Studio</category><category>basics</category><category>.net</category><category>99materials</category><category>Application</category><category>lessons</category><category>+ operator</category><category>- operator</category><category>Advance</category><category>C# basics</category><category>Integers</category><category>Long Integers</category><category>Quad-Word</category><category>Signed Integers</category><category>Unsigned</category><category>assignment</category><category>class</category><category>classes</category><category>classes fundamentals</category><category>comma</category><category>data type</category><category>double-quotes</category><category>empty project</category><category>int</category><category>managing files</category><category>materials</category><category>microsoft visual studio</category><category>nanda kishore reddy</category><category>new project</category><category>object</category><category>operators</category><category>parentheses</category><category>program</category><category>semicolon</category><category>single-quote</category><category>solution explorer</category><category>square brackets</category><category>tutorials</category><category>uint</category><category>values</category><category>var</category><category>variable</category><category>variables</category><category>vs</category><title>Find Your Programming Materials</title><description></description><link>http://99materials.blogspot.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3889981274156227716.post-6136987417376541385</guid><pubDate>Fri, 24 Feb 2012 07:43:00 +0000</pubDate><atom:updated>2012-02-24T10:39:19.006-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">99materials</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">class</category><category domain="http://www.blogger.com/atom/ns#">classes</category><category domain="http://www.blogger.com/atom/ns#">classes fundamentals</category><category domain="http://www.blogger.com/atom/ns#">data type</category><category domain="http://www.blogger.com/atom/ns#">empty project</category><category domain="http://www.blogger.com/atom/ns#">int</category><category domain="http://www.blogger.com/atom/ns#">lessons</category><category domain="http://www.blogger.com/atom/ns#">nanda kishore reddy</category><category domain="http://www.blogger.com/atom/ns#">new project</category><category domain="http://www.blogger.com/atom/ns#">object</category><category domain="http://www.blogger.com/atom/ns#">tutorials</category><category domain="http://www.blogger.com/atom/ns#">var</category><category domain="http://www.blogger.com/atom/ns#">variable</category><title>Introduction to Classes</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 21px; font-weight: bold; text-align: justify;&quot;&gt;Classes Fundamentals &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-weight: bold; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #eeeeee; font-size: xx-small;&quot;&gt;99materials&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold;&quot;&gt;Introduction:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;To use a variable, we can declare it using either&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;var&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&amp;nbsp;keyword or a known and simple data type. For example, we can use an integer to declare a variable that represented the number of bedrooms of a house. Here is an example:&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px;&quot;&gt;class Program
{
    static void Main()
    {
        &lt;span style=&quot;color: red;&quot;&gt;int bedrooms = 3;&lt;/span&gt;
    }
}&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white;&quot;&gt;&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
As opposed to a simple variable, in C#, you can use one or more variables to create a more complete or complex object.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
A class is a technique of using one or a group of variables to be used as a foundation for a more detailed variable. When creating a class, you start with the&amp;nbsp;&lt;b&gt;class&lt;/b&gt;&amp;nbsp;keyword followed by a name and its body delimited by curly brackets.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold; text-align: left;&quot;&gt;Application: Introducing Classes &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #eeeeee; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: xx-small; font-weight: bold;&quot;&gt;99materials&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Start Microsoft Visual Studio&lt;/li&gt;
&lt;li style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To create a new application, on the main menu, click File -&amp;gt; New Project&lt;/li&gt;
&lt;li style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the middle list, click Empty Project&lt;/li&gt;
&lt;li style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Change the Name to&amp;nbsp;&lt;b&gt;DepartmentStore1&lt;/b&gt;&lt;/li&gt;
&lt;li style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Click OK&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 19px;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold; white-space: normal;&quot;&gt;Naming a Class&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #eeeeee; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: xx-small; font-weight: bold; text-align: justify; white-space: normal;&quot;&gt;99materials&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Like a variable, a class must have a name. The name primarily follows the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;same rules as the variables&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;. You can then add your own rules. In our lessons:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If the name of a class is in one word, the first letter will be in uppercase. Examples are Identification, Vehicle, or Student&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;If the name of a class is a combination of words, the first letter of each word will be in uppercase. Examples are DrivingRecord, GeometricShape, or SocialSecurityInformation.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 21px; font-weight: bold;&quot;&gt;Managing Classes&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #eeeeee; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: xx-small; font-weight: bold;&quot;&gt;99materials&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;width: 680px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Introduction&lt;/div&gt;
&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: justify;&quot;&gt;Microsoft Visual Studio provides many tools and visual objects used to manage classes of an application.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: justify;&quot;&gt;The studio makes it possible to conveniently rename a class (or one of its members) or to easily navigate to a&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: justify;&quot;&gt;class.&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
The Class View
&lt;/div&gt;
&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Probably the best window to manage classes is called the Class View. To get the Class View:&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If the Class View is not yet displaying, on the main menu, you can click View -&amp;gt; Class View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If the Class View is showing already, click its tab&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The Class View is made of six sections. The title bar and the use of the Class View follow the same&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
description&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;as for the Solution Explorer:&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhseDtMHtKr-yB5z-EbM0XpmbQFL50_Ld2SmMCKHODRp0QJ7FHBwM7ecPNOSqz5aWBNF7k6MYG_SMJgN991zetl6CwYdjNYQEDsIl24DmEqiyV67UtTIK4Ts_48efrAZXmSmT8_3KPCP9q2/s1600/99materials-classview.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhseDtMHtKr-yB5z-EbM0XpmbQFL50_Ld2SmMCKHODRp0QJ7FHBwM7ecPNOSqz5aWBNF7k6MYG_SMJgN991zetl6CwYdjNYQEDsIl24DmEqiyV67UtTIK4Ts_48efrAZXmSmT8_3KPCP9q2/s320/99materials-classview.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;99materials classview&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: 10pt; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: 10pt; text-align: justify;&quot;&gt;The second part of the title bar is its toolbar&amp;nbsp;.&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnuEQCWbkzBSjWUycgajRYx8QeyCPH6Cs1rBnpT4_XWGPSmNtKrF1kKswUOLq2eY7w079nIYVNrbdhDxMYAfkkjtrssQ0E9cm0CT01nVerHU6NgZ1BwcGIkWyoz8UKCurnD9WmZMyp4NXV/s1600/99materials-toolbar.gif&quot; imageanchor=&quot;1&quot; style=&quot;background-color: white; font-size: 10pt; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnuEQCWbkzBSjWUycgajRYx8QeyCPH6Cs1rBnpT4_XWGPSmNtKrF1kKswUOLq2eY7w079nIYVNrbdhDxMYAfkkjtrssQ0E9cm0CT01nVerHU6NgZ1BwcGIkWyoz8UKCurnD9WmZMyp4NXV/s1600/99materials-toolbar.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The Class View New Folder button allows you to create and add a new folder to the project. The Back and&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
the Forward buttons allow you to navigate among the classes.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Under the toolbar, there is another bar made of a combo box and a button. These allow you to search.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The body of the Class View is made of two sections. The first node of the upper section displays the&lt;br /&gt;
&lt;br /&gt;
name of the project. Under the project node, the names of classes display. The bottom section of the&lt;br /&gt;
&lt;br /&gt;
Class View is used to display the members of a class. To see the members of a class, you can click it&lt;br /&gt;
&lt;br /&gt;
in the top window. Here is an example:&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiY3hWKLj2FB9_y0tUh3CijpUG77o6foqcqYOR_sT1VSDrFOvXUeM5rgvwTtnSc5BblHzg28anK1WhntSDBoHkU2cbKYMX81aX3CVUu6B5IZspTauUdpXgsglY6UFcogmz-2f1tSuJj2l8/s1600/99materials-members.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiY3hWKLj2FB9_y0tUh3CijpUG77o6foqcqYOR_sT1VSDrFOvXUeM5rgvwTtnSc5BblHzg28anK1WhntSDBoHkU2cbKYMX81aX3CVUu6B5IZspTauUdpXgsglY6UFcogmz-2f1tSuJj2l8/s320/99materials-members.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;99materials-class members&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;ClassCreation&quot;&gt;&lt;/a&gt;Creating a Class&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #eeeeee; font-size: xx-small; text-align: justify;&quot;&gt;99materials&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
There are various ways you can create a class. If you are working from a text editor, start a file, type class,&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&amp;nbsp;followed by a name, and followed by curly brackets. Here is an example of a class named House:&lt;/div&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class House
{
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
From your text editor, save the file with the extension .cs. The name of the file doesn&#39;t have to be the same&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
as the class. You should save the file in the same folder that contains the other files of the same project.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A class is created in a code file. As such, you can include it in the first file of your project. Here is an example:&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;class House
{
}&lt;/span&gt;

class Exercise
{
    static void Main()
    {
        int bedrooms = 3;
    }
}&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
If you are creating your project using Microsoft Visual C# 2010 Express or Microsoft Visual Studio, it can&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
assist you with creating a class. In Lesson 1, we saw&amp;nbsp;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://99astro.blogspot.com/&quot; target=&quot;_blank&quot;&gt;how to create a code file&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;. After creating one, you&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
can just type the code for the class. When you use the Add New Item option from the main menu or&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
from the Solution Explorer, you can select any type of file you want to create, including a class. Otherwise,&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
&amp;nbsp;you can explicitly indicate that you want to create a class. This would automatically select the Class option&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
in the Add New Item dialog box.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
To create a new class:&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: -webkit-auto; white-space: normal;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;On the main menu, click Project -&amp;gt; Add Class... (or Project -&amp;gt; Add New Item... In the middle list of the&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; white-space: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add New Item dialog box, click Class)&lt;/span&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: -webkit-auto; white-space: normal;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the Solution Explorer, right-click the name of the project, position the mouse on Add, and click Class&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the Class View, right-click the name of the Project, position the mouse on Add, and click Class&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
Any of these actions would display the Add New Item dialog box with the Class option selected. If you had&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
selected the Add New Item from the main menu or the Solution Explorer, you can click Class. In the Name&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
text box, accept or change the default name and click Add. A new file named after the class with the&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
.cs extension would be added to your project.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;
You can also use skeleton code to start a class:&amp;nbsp;&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: -webkit-auto; white-space: normal;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the section of the Code Editor where you want to add the class, right-click and click Insert Snippet...&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; white-space: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Double-click Visual C#. In the list that appears, double-click class &amp;nbsp;&lt;/span&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; white-space: normal;&quot;&gt;&amp;nbsp;

&lt;/span&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;background-color: white; float: left; font-family: Verdana, Helvetica, Arial, sans-serif; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-JnfzyLu0TfTbwVo_57CoD6Do38BU8BW_9kjGXRt05wl7LB0mOjb5HLO2hucNy0MyOtwzFLVfupHq0Rz-QaUrjgweUhEfAI6Dq4PaUb8M1xk8O-gF8dyo36n5HPBYjdOSIGnD4nYgaZ2s/s1600/99materials-class1.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-JnfzyLu0TfTbwVo_57CoD6Do38BU8BW_9kjGXRt05wl7LB0mOjb5HLO2hucNy0MyOtwzFLVfupHq0Rz-QaUrjgweUhEfAI6Dq4PaUb8M1xk8O-gF8dyo36n5HPBYjdOSIGnD4nYgaZ2s/s400/99materials-class1.gif&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;99materials
&lt;br /&gt;
&lt;br /&gt;
If you had already written code, such as declaring some variables, and you want to include that code in&lt;br /&gt;
&lt;br /&gt;
a new class, select that code. Right-click it and click Surround With...&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;background-color: white; float: left; font-family: Verdana, Helvetica, Arial, sans-serif; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxpPkMYTJ09qppD5ay6Cji1HVl6tcZaBTGSlzZ05KIuchd90M2h0AdTqjW5ULzXVtOkmst75rsZhRxeTag7agEIV-Udqp2zriusi5qMqfCjSMoiZrxWOAAuqRRswmhqmLr4ZUe2DkAlalH/s1600/99materials-surroung.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxpPkMYTJ09qppD5ay6Cji1HVl6tcZaBTGSlzZ05KIuchd90M2h0AdTqjW5ULzXVtOkmst75rsZhRxeTag7agEIV-Udqp2zriusi5qMqfCjSMoiZrxWOAAuqRRswmhqmLr4ZUe2DkAlalH/s400/99materials-surroung.gif&quot; width=&quot;380&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot;&gt;99materials&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: -webkit-auto; white-space: normal;&quot;&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWrPewutVbXbv120qjmCLnON_I6yi1aBT4cOjOeuXOjnx01oLtME15PPSe3aoPxv_k4eRILc5EwvlH8_aGx4WFSkYdssxMcELxCC7wgGkXRVEkxtObfK1YbD3zTjQf6_kz6Ju5_y0xdxoP/s1600/99materials-class2.gif&quot; imageanchor=&quot;1&quot; style=&quot;background-color: white; font-size: 10pt; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWrPewutVbXbv120qjmCLnON_I6yi1aBT4cOjOeuXOjnx01oLtME15PPSe3aoPxv_k4eRILc5EwvlH8_aGx4WFSkYdssxMcELxCC7wgGkXRVEkxtObfK1YbD3zTjQf6_kz6Ju5_y0xdxoP/s400/99materials-class2.gif&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;99materials&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify; white-space: normal;&quot;&gt;

&lt;/div&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://99materials.blogspot.com/2012/02/introduction-to-classes.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhseDtMHtKr-yB5z-EbM0XpmbQFL50_Ld2SmMCKHODRp0QJ7FHBwM7ecPNOSqz5aWBNF7k6MYG_SMJgN991zetl6CwYdjNYQEDsIl24DmEqiyV67UtTIK4Ts_48efrAZXmSmT8_3KPCP9q2/s72-c/99materials-classview.gif" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3889981274156227716.post-8375546354574348959</guid><pubDate>Thu, 23 Feb 2012 09:01:00 +0000</pubDate><atom:updated>2012-02-23T01:02:15.249-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">+ operator</category><category domain="http://www.blogger.com/atom/ns#">- operator</category><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">99materials</category><category domain="http://www.blogger.com/atom/ns#">Application</category><category domain="http://www.blogger.com/atom/ns#">assignment</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">C# basics</category><category domain="http://www.blogger.com/atom/ns#">comma</category><category domain="http://www.blogger.com/atom/ns#">double-quotes</category><category domain="http://www.blogger.com/atom/ns#">lessons</category><category domain="http://www.blogger.com/atom/ns#">materials</category><category domain="http://www.blogger.com/atom/ns#">microsoft visual studio</category><category domain="http://www.blogger.com/atom/ns#">operators</category><category domain="http://www.blogger.com/atom/ns#">parentheses</category><category domain="http://www.blogger.com/atom/ns#">semicolon</category><category domain="http://www.blogger.com/atom/ns#">single-quote</category><category domain="http://www.blogger.com/atom/ns#">square brackets</category><title>Lesson no:5</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; style=&quot;background-color: white; color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold;&quot; width=&quot;19&quot; /&gt;&lt;span style=&quot;background-color: white; color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold;&quot;&gt;Application: Introducing Operators and Operands&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 19px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Start Microsoft Visual Studio&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;To create a new application, on the main menu, click File -&amp;gt; New Project...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;In the middle list, click Empty Project&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Change the Name to&amp;nbsp;&lt;b&gt;gdcs4&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;and click OK&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;To create a file for the code, on the main menu, click Project -&amp;gt; Add New Item...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;In the middle list, click Code File&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Change the Name to&amp;nbsp;&lt;strong&gt;CleaningOrder&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Click Add&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;table border=&quot;0&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; text-align: justify; width: 860px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;680&quot;&gt;&lt;table border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Curly Brackets { }&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Curly brackets are probably the most used and the most tolerant operators of C#. Fundamentally, curly brackets are used to create a section of code. As such they are required to delimit the bodies of namespaces, classes, structures, exceptions, etc. They are also optionally used in conditional statements. Curly brackets are also used to create variable scope.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using Curly Brackets&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the empty document, type the following:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
}&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Parentheses&quot;&gt;&lt;/a&gt;Parentheses ( )&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Parentheses are used to isolate a group of items that must be considered as belonging to one entity. For example, parentheses are used to differentiate a method such as&amp;nbsp;&lt;strong&gt;Main&lt;/strong&gt;&amp;nbsp;from a regular variable. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main&lt;span style=&quot;color: red;&quot;&gt;()&lt;/span&gt;
    {
    }
}
&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Parentheses can also be used to isolate an operation or an expression with regard to another operation or expression.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using Parentheses&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use parentheses, change the document as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    &lt;span style=&quot;color: red;&quot;&gt;static void Main()
    {
    }&lt;/span&gt;
}&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Semi-Colon;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The semi-colon is used to indicate the end of an expression or a declaration. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;int number&lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As we will learn, there are other uses of the semi-colon.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Introducing the Semi-Colon&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the empty document, type the following:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        &lt;span style=&quot;color: red;&quot;&gt;double mondayDiscount;&lt;/span&gt;
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Comma&quot;&gt;&lt;/a&gt;The Comma ,&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The comma is used to separate variables used in a group. For example, a comma can be used to delimit the names of variables that are declared with the same data type. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 string firstName&lt;span style=&quot;color: red;&quot;&gt;,&lt;/span&gt; lastName&lt;span style=&quot;color: red;&quot;&gt;,&lt;/span&gt; fullName;
    }
} &lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The comma can also be used to separate the member of an enumeration or the arguments of a method. We will review all of them when the time comes.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using Commas&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use commas, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        &lt;span style=&quot;color: red;&quot;&gt;string customerName, homePhone;
        uint numberOfShirts, numberOfPants, numberOfDresses;
        decimal priceOneShirt, priceAPairOfPants, priceOneDress;
        uint orderMonth, orderDay, orderYear;&lt;/span&gt;
        double mondayDiscount;
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Assignment&quot;&gt;&lt;/a&gt;The Assignment =&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When you declare a variable, a memory space is reserved for it. That memory space may be empty until you fill it with a value. To &quot;put&quot; a value in the memory space allocated to a variable, you can use the assignment operator represented as =. Based on this, the assignment operation gives a value to a variable. Its syntax is:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;i&gt;VariableName&lt;/i&gt; = &lt;i&gt;Value&lt;/i&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;i&gt;VariableName&lt;/i&gt;&amp;nbsp;factor must be a valid variable name. It cannot be a value such as a numeric value or a (double-quoted) string. Here is an example that assigns a numeric value to a variable:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 decimal salary;

 // Using the assignment operator
 &lt;span style=&quot;color: red;&quot;&gt;salary = 12.55M;&lt;/span&gt;
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Once a variable has been declared and assigned a value, you can call&amp;nbsp;&lt;b&gt;Write()&lt;/b&gt;&amp;nbsp;or&amp;nbsp;&lt;b&gt;WriteLine()&lt;/b&gt;&amp;nbsp;to display its value.&amp;nbsp; Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 decimal salary;

 // Using the assignment operator
 salary = 12.55M;
 System.Console.Write(&quot;Employee&#39;s Hourly Salary: &quot;);
 System.Console.WriteLine(salary);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Employee&#39;s Hourly Salary: $12.55&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The above code declares a variable before assigning it a value. You will usually perform this assignment when you want to change the value held by a variable. Providing a starting value to a variable when the variable is declared is referred to as initializing the variable. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 // Using the assignment operator
 decimal salary = 12.55M;

 System.Console.Write(&quot;Employee&#39;s Hourly Salary: &quot;);
 System.Console.WriteLine(salary);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
We saw that you can declare various variables at once by using the same data type but separating their names with commas. When doing this, you can also initialize each variable by assigning it the desired value before the comma or the semi-colon. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 // Initializing various variables when declaring them with the same data type
 &lt;span style=&quot;color: red;&quot;&gt;double value1 = 224.58, value2 = 1548.26;&lt;/span&gt;
   
 System.Console.Write(&quot;Value 1 = &quot;);
 System.Console.WriteLine(value1);
 System.Console.Write(&quot;Value 2 = &quot;);
 System.Console.WriteLine(value2);
 System.Console.WriteLine();
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Value 1 = 224.58
Value 2 = 1548.26&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Assigning Values to Variables&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use the assignment operator, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        string  customerName, homePhone;
        uint    numberOfShirts &lt;span style=&quot;color: red;&quot;&gt;= 5&lt;/span&gt;,
                numberOfPants &lt;span style=&quot;color: red;&quot;&gt;= 2&lt;/span&gt;,
                numberOfDresses &lt;span style=&quot;color: red;&quot;&gt;= 0&lt;/span&gt;;
        decimal priceOneShirt &lt;span style=&quot;color: red;&quot;&gt;= 0.95M&lt;/span&gt;,
                priceAPairOfPants &lt;span style=&quot;color: red;&quot;&gt;= 2.95M&lt;/span&gt;,
                priceOneDress &lt;span style=&quot;color: red;&quot;&gt;= 4.55M&lt;/span&gt;;
        uint    orderMonth &lt;span style=&quot;color: red;&quot;&gt;= 3&lt;/span&gt;, orderDay &lt;span style=&quot;color: red;&quot;&gt;= 15&lt;/span&gt;, orderYear &lt;span style=&quot;color: red;&quot;&gt;= 2002&lt;/span&gt;;
        double  mondayDiscount &lt;span style=&quot;color: red;&quot;&gt;= 0.25&lt;/span&gt;; // 25%;
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;SingleQuote&quot;&gt;&lt;/a&gt;Single-Quote &#39;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The single quote is used to include one character to initialize, or assign a symbol to, a variable declared as&amp;nbsp;&lt;b&gt;char&lt;/b&gt;. A single-quote is usually combined with another and a character is included between them. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 char gender;
 string firstName, lastName, fullName;

 gender = &lt;span style=&quot;color: red;&quot;&gt;&#39;M&#39;&lt;/span&gt;;
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can include only one character between single-quotes except if the combination of symbols can be evaluated to one character. This is the case for escape sequences. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 System.Console.WriteLine(&lt;span style=&quot;color: red;&quot;&gt;&#39;\n&#39;&lt;/span&gt;);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;DoubleQuotes&quot;&gt;&lt;/a&gt;Double-Quotes &quot;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The double-quote &quot; is used to delimit a string. Like the single-quote, the double-quote is usually combined with another. Between the combination of double-quotes, you can include an empty space, a character, a word, or a group of words, making it a string. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 System.Console.WriteLine(&lt;span style=&quot;color: red;&quot;&gt;&quot;The Wonderful World of C#!!!&quot;&lt;/span&gt;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A double-quoted string can also be declared and then assigned to a variable.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using Quotes&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use single and double-quotes, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        string  customerName &lt;span style=&quot;color: red;&quot;&gt;= &quot;James Burreck&quot;&lt;/span&gt;,
                homePhone &lt;span style=&quot;color: red;&quot;&gt;= &quot;(202) 301-7030&quot;&lt;/span&gt;;
        uint    numberOfShirts = 1,
                numberOfPants = 1,
                numberOfDresses = 1;
        decimal priceOneShirt = 0.95M,
                priceAPairOfPants = 2.95M,
                priceOneDress = 4.55M;
        uint    orderMonth = 3, orderDay = 15, orderYear = 2002;
        double  mondayDiscount = 0.25; // 25%;

        &lt;span style=&quot;color: red;&quot;&gt;System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;========================&quot;);
        System.Console.Write(&quot;Customer:   &quot;);
        System.Console.WriteLine(customerName);
        System.Console.Write(&quot;Home Phone: &quot;);
        System.Console.WriteLine(homePhone);
        System.Console.Write(&quot;Order Date: &quot;);
        System.Console.Write(orderMonth);
        System.Console.Write(&#39;/&#39;);
        System.Console.Write(orderDay);
        System.Console.Write(&#39;/&#39;);
        System.Console.WriteLine(orderYear);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty Sub-Total&quot;);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.Write(numberOfShirts);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(priceOneShirt);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.Write(numberOfPants);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(priceAPairOfPants);
        System.Console.Write(&quot;Dresses     &quot;);
        System.Console.Write(numberOfDresses);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(priceOneDress);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.Write(&quot;Monday Discount: &quot;);
        System.Console.Write(mondayDiscount);
        System.Console.WriteLine(&#39;%&#39;);
        System.Console.WriteLine(&quot;========================&quot;);
        
        System.Console.ReadKey();&lt;/span&gt;
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the application to se the result. This would produce:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;-/- Georgetown Cleaning Services -/-
========================
Customer:   James Burreck
Home Phone: (202) 301-7030
Order Date: 3/15/2002
------------------------
Item Type  Qty Sub-Total
------------------------
Shirts      1     0.95
Pants       1     2.95
Dresses     1     4.55
------------------------
Monday Discount: 0.25%
========================
&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Press Enter and return to your programming environment&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Square Brackets [ ]&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Square brackets are mostly used to control the dimension or index of an&amp;nbsp;&lt;a href=&quot;http://www.functionx.com/csharp4/Lesson33.htm&quot; style=&quot;color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;array&lt;/a&gt;. We will learn how to use them when we study arrays.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Positive&quot;&gt;&lt;/a&gt;The Positive Operator +&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Algebra uses a type of ruler to classify numbers. This ruler has a middle position of zero. The numbers on the left side of the 0 are referred to as negative while the numbers on the right side of the rulers are considered positive:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-∞&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-6&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-5&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-3&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;3&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;5&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;6&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;5%&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;5%&quot;&gt;+∞&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CCCCCC&quot; colspan=&quot;17&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;100%&quot;&gt;&amp;nbsp;&amp;nbsp; 0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-∞&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-6&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-5&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-3&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;-1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;3&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;5&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;6%&quot;&gt;6&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;5%&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;5%&quot;&gt;+∞&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A value on the right side of 0 is considered positive. To express that a number is positive, you can write a + sign on its left. Examples are +4, +228, +90335. In this case the + symbol is called a unary operator because it acts on only one operand. The positive unary operator, when used, must be positioned on the left side of its operand, never on the right side.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As a mathematical convention, when a value is positive, you don&#39;t need to express it with the + operator. Just writing the number without any symbol signifies that the number is positive. Therefore, the numbers +4, +228, and +90335 can be, and are better, expressed as 4, 228, 90335. Because the value doesn&#39;t display a sign, it is referred as&amp;nbsp;&lt;b&gt;unsigned&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To express a variable as positive or&amp;nbsp;&lt;b&gt;unsigned&lt;/b&gt;, you can just type it. here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 // Displaying an unsigned number
 System.Console.Write(&quot;Number = &quot;);
 System.Console.WriteLine(+802);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Number = 802&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Negative&quot;&gt;&lt;/a&gt;The Negative Operator -&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As you can see on the above ruler, in order to express any number on the left side of 0, it must be appended with a sign, namely the - symbol. Examples are -12, -448, -32706. A value accompanied by - is referred to as negative. The - sign must be typed on the left side of the number it is used to negate. Remember that if a number does not have a sign, it is considered positive. Therefore, whenever a number is negative, it MUST have a - sign. In the same way, if you want to change a value from positive to negative, you can just add a - sign to its left.&lt;br /&gt;
&lt;br /&gt;
Here is an example that uses two variables. One has a positive value while the other has a negative value:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
 static void Main()
 {
  // Displaying an unsigned number
  System.Console.Write(&quot;First Number  &quot;);
  System.Console.WriteLine(+802);
  // Displaying a negative number
  System.Console.Write(&quot;Second Number &quot;);
  System.Console.WriteLine(-802);
 }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;First Number  802
Second Number -802&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;sizeof&quot;&gt;&lt;/a&gt;Unary Operators: The sizeof Operator&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
We have already seen that when declaring a variable, the compiler reserves a portion of space in the computer memory to hold that variable. We also illustrated how much space some data types need to store their variable. C# provides the unary&amp;nbsp;&lt;b&gt;sizeof&lt;/b&gt;&amp;nbsp;operator that allows you to find out how much space a data type.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To find out how much memory space a data type uses, type it between the parentheses of the&amp;nbsp;&lt;b&gt;sizeof&lt;/b&gt;&amp;nbsp;operator. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 double period = 155.50;
 int size = sizeof(double);

 System.Console.Write(&quot;The value &quot;);
 System.Console.Write(period);
 System.Console.Write(&quot; uses &quot;);
 System.Console.Write(size);
 System.Console.WriteLine(&quot; bytes\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;The value 155.5 uses 8 bytes&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Here are a few more example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        // The sizeof operator used to get the memory size used by 
        // a variable declared with a certain a data type
        System.Console.WriteLine(&quot;The sizeof Operator&quot;);
        System.Console.WriteLine(&quot;==========================&quot;);
        System.Console.WriteLine(&quot;Data Type     Memory Size&quot;);
        System.Console.WriteLine(&quot;--------------------------&quot;);
        System.Console.Write(&quot;char           &quot;);
        System.Console.Write(sizeof(char));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;bool           &quot;);
        System.Console.Write(sizeof(bool));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;int            &quot;);
        System.Console.Write(sizeof(int));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;uint           &quot;);
        System.Console.Write(sizeof(uint));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;short          &quot;);
        System.Console.Write(sizeof(short));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;ushort         &quot;);
        System.Console.Write(sizeof(ushort));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;byte           &quot;);
        System.Console.Write(sizeof(byte));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;sbyte          &quot;);
        System.Console.Write(sizeof(sbyte));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;float          &quot;);
        System.Console.Write(sizeof(float));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;double         &quot;);
        System.Console.Write(sizeof(double));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;decimal        &quot;);
        System.Console.Write(sizeof(decimal));
        System.Console.WriteLine(&quot; Bytes&quot;);
        System.Console.Write(&quot;long           &quot;);
        System.Console.Write(sizeof(long));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.Write(&quot;ulong          &quot;);
        System.Console.Write(sizeof(ulong));
        System.Console.WriteLine(&quot;  Bytes&quot;);
        System.Console.WriteLine(&quot;===========================&quot;);
        System.Console.WriteLine();
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;The sizeof Operator
==========================
Data Type     Memory Size
--------------------------
char            2 Bytes
bool            1 Bytes
int             4 Bytes
uint            4 Bytes
short           2 Bytes
ushort          2 Bytes
byte            1 Bytes
sbyte           1 Bytes
float           4 Bytes
double          8 Bytes
decimal        16 Bytes
long            8 Bytes
ulong           8 Bytes
===========================&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Addition&quot;&gt;&lt;/a&gt;The Addition Operations&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Introduction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The addition is an operation used to add things of the same nature one to another, as many as necessary. Sometimes, the items are added one group to another. The concept is still the same, except that this last example is faster. The addition is performed in mathematics using the + sign. The same sign is used in C#.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To get the addition of two values, you add the first one to the other. After the addition of two values has been performed, you get a new value. This means that if you add value1 to value2, you would write value1 + value2. The result is another value we could call Value3. You can also add more than two values, like a + b + c.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
With numbers, the order you use to add two or more values doesn&#39;t matter. This means that value1 + value2 is the same as value2 + value1. In the same way a + b + c is the same as a + c + b the same as b + a + c and the same as c + b + a&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Here is an example that adds two numbers:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 System.Console.Write(&quot;244 + 835 = &quot;);
 System.Console.WriteLine(244 + 835);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Here is the result:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;244 + 835 = 1079&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can also add some values already declared and initialized in your program. You can also get the values from the user.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
In C#, you can also add string variables to add a new string. The operation is performed as if you were using numbers. For example, &quot;Pie&quot; + &quot;Chart&quot; would produce &quot;PieChart&quot;. You can also add add as many strings as possible by including the + operator between them. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var firstName = &quot;Alexander&quot;;
        var lastName = &quot;Kallack&quot;;
        var fullName = &lt;span style=&quot;color: red;&quot;&gt;firstName + &quot; &quot; + lastName&lt;/span&gt;;

        System.Console.Write(&quot;Full Name: &quot;);
        System.Console.WriteLine(fullName);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Full Name: Alexander Kallack
Press any key to continue . . .&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using the Addition Operator&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use the addition, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        string customerName = &quot;James Burreck&quot;,
                   homePhone = &quot;(202) 301-7030&quot;;
        uint numberOfShirts = 1,
             numberOfPants = 1,
             numberOfDresses = 1;
        &lt;span style=&quot;color: red;&quot;&gt;uint totalNumberOfItems;&lt;/span&gt;
        decimal priceOneShirt = 0.95M,
                priceAPairOfPants = 2.95M,
                priceOneDress = 4.55M;
        uint orderMonth = 3, orderDay = 15, orderYear = 2002;

        &lt;span style=&quot;color: red;&quot;&gt;totalNumberOfItems = numberOfShirts + numberOfPants + numberOfDresses;&lt;/span&gt;

        System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;========================&quot;);
        System.Console.Write(&quot;Customer:   &quot;);
        System.Console.WriteLine(customerName);
        System.Console.Write(&quot;Home Phone: &quot;);
        System.Console.WriteLine(homePhone);
        System.Console.Write(&quot;Order Date: &quot;);
        System.Console.Write(orderMonth);
        System.Console.Write(&#39;/&#39;);
        System.Console.Write(orderDay);
        System.Console.Write(&#39;/&#39;);
        System.Console.WriteLine(orderYear);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty Sub-Total&quot;);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.Write(numberOfShirts);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(priceOneShirt);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.Write(numberOfPants);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(priceAPairOfPants);
        System.Console.Write(&quot;Dresses     &quot;);
        System.Console.Write(numberOfDresses);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(priceOneDress);
        System.Console.WriteLine(&quot;------------------------&quot;);
        &lt;span style=&quot;color: red;&quot;&gt;System.Console.Write(&quot;Number of Items: &quot;);
        System.Console.WriteLine(totalNumberOfItems);
        System.Console.WriteLine(&quot;========================&quot;);&lt;/span&gt;
        
        System.Console.ReadKey();
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the program. This would produce:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;-/- Georgetown Cleaning Services -/-
========================
Customer:   James Burreck
Home Phone: (202) 301-7030
Order Date: 3/15/2002
------------------------
Item Type  Qty Sub-Total
------------------------
Shirts      1     0.95
Pants       1     2.95
Dresses     1     4.55
------------------------
Number of Items: 3
========================&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close the DOS window and return to your programming environment&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Incrementing a Variable&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
We are used to counting numbers such as 1, 2, 3, 4, etc. In reality, when counting such numbers, we are simply adding 1 to a number in order to get the next number in the range. The simplest technique of incrementing a value consists of adding 1 to it. After adding 1, the value or the variable is (permanently) modified and the variable would hold the new value. This is illustrated in the following example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value incrementing

public class Exercise
{
    static void Main()
    {
 var value = 12;

 System.Console.WriteLine(&quot;Techniques of incrementing a value&quot;);
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 &lt;span style=&quot;color: red;&quot;&gt;value = value + 1&lt;/span&gt;;

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Techniques of incrementing a value
Value = 12
Value = 13&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
C# provides a special operator that takes care of this operation. The operator is called the increment operator and is represented by ++. Instead of writing Value = Value + 1, you can write Value++ and you would get the same result. The above program can be re-written as follows:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value incrementing

public class Exercise
{
    static void Main()
    {
 var value = 12;

 System.Console.WriteLine(&quot;Techniques of incrementing a value&quot;);
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 &lt;span style=&quot;color: red;&quot;&gt;value++&lt;/span&gt;;

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The ++ is a unary operator because it operates on only one variable. It is used to modify the value of the variable by adding 1 to it. Every time the Value++ is executed, the compiler takes the previous value of the variable, adds 1 to it, and the variable holds the incremented value:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value incrementing

public class Exercise
{
    static void Main()
    {
 var value = 12;

 System.Console.WriteLine(&quot;Techniques of incrementing a value&quot;);

 &lt;span style=&quot;color: red;&quot;&gt;value++&lt;/span&gt;;
 
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 &lt;span style=&quot;color: red;&quot;&gt;value++&lt;/span&gt;;
 
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
  
 &lt;span style=&quot;color: red;&quot;&gt;Value++&lt;/span&gt;;

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Techniques of incrementing a value
Value = 13
Value = 14
Value = 15&lt;/pre&gt;
&lt;table border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Pre and Post-Increment&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When using the ++ operator, the position of the operator with regard to the variable it is modifying can be significant. To increment the value of the variable before re-using it, you should position the operator on the left of the variable:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value incrementing

public class Exercise
{
    static void Main()
    {
 var value = 12;

 System.Console.WriteLine(&quot;Techniques of incrementing a value&quot;);

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(&lt;span style=&quot;color: red;&quot;&gt;++value&lt;/span&gt;);
  
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Techniques of incrementing a value
Value = 12
Value = 13
Value = 13&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When writing ++Value, the value of the variable is incremented before being called. On the other hand, if you want to first use a variable, then increment it, in other words, if you want to increment the variable after calling it, position the increment operator on the right side of the variable:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value incrementing

public class Exercise
{
    static void Main()
    {
 var value = 12;

 System.Console.WriteLine(&quot;Techniques of incrementing a value&quot;);

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(&lt;span style=&quot;color: red;&quot;&gt;value++&lt;/span&gt;);
  
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Techniques of incrementing a value
Value = 12
Value = 12
Value = 13&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Compound Addition&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
It is not unusual to add a constant value to a variable. All you have to do is to declare another variable that would hold the new value. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value incrementing and decrementing

public class Exercise
{
    static void Main()
    {
 double value = 12.75;
 double newValue;

 System.Console.WriteLine(&quot;Techniques of incrementing and decrementing a value&quot;);
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 &lt;span style=&quot;color: red;&quot;&gt;newValue = value + 2.42;&lt;/span&gt;
  
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(newValue);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Techniques of incrementing and decrementing a value
Value = 12.75
Value = 15.17&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The above technique requires that you use an extra variable in your application. The advantage is that each value can hold its own value although the value of the second variable depends on whatever would happen to the original or source variable. Sometimes in your program you will not need to keep the original value of the source variable. You may want to permanently modify the value that a variable is holding. In this case, you can perform the addition operation directly on the variable by adding the desired value to the variable. This operation modifies whatever value a variable is holding and does not need an additional variable.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To add a value to a variable and change the value that the variable is holding, you can combine the assignment ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ=ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â and the addition ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ+ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â operators to produce a new operator as +=. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value incrementing and decrementing

public class Exercise
{
    static void Main()
    {
 var value = 12.75;

 System.Console.WriteLine(&quot;Techniques of incrementing and decrementing a value&quot;);
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 &lt;span style=&quot;color: red;&quot;&gt;value += 2.42;&lt;/span&gt;
  
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This program produces the same result as the previous.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Multiplication&quot;&gt;&lt;/a&gt;The Multiplication Operations&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Introduction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The multiplication allows adding one value to itself a certain number of times, set by a second value. As an example, instead of adding a value to itself in this manner: A + A + A + A, since the variable a is repeated over and over again, you could simply find out how many times A is added to itself, then multiply a by that number which, is this case, is 4. This would mean adding a to itself 4 times, and you would get the same result.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Just like the addition, the multiplication is associative: a * b * c = c * b * a. When it comes to programming syntax, the rules we learned with the addition operation also apply to the multiplication.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        // Initializing various variables when declaring them with the same data type
        double value1 = 224.58, value2 = 1548.26;
        var result = &lt;span style=&quot;color: red;&quot;&gt;value1 * value2&lt;/span&gt;;

        System.Console.Write(value1);
        System.Console.Write(&quot; * &quot;);
        System.Console.Write(value2);
        System.Console.Write(&quot; = &quot;);
        System.Console.WriteLine(result);
        System.Console.WriteLine();
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;224.58 * 1548.26 = 347708.2308

Press any key to continue . . .&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using the Multiplication Operator&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To multiply, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        const decimal priceOneShirt = 0.95M;
        const decimal priceAPairOfPants = 2.95M;
        const decimal priceOneDress = 4.55M;
        string customerName = &quot;James Burreck&quot;,
               homePhone = &quot;(202) 301-7030&quot;;
        uint numberOfShirts = 5,
             numberOfPants = 2,
             numberOfDresses = 3;
        uint totalNumberOfItems;
        decimal subTotalShirts, subTotalPants, subTotalDresses;
        decimal totalOrder;
        uint orderMonth = 3, orderDay = 15, orderYear = 2002;

        totalNumberOfItems = numberOfShirts + numberOfPants + numberOfDresses;
        subTotalShirts = priceOneShirt * numberOfShirts;
        subTotalPants = priceAPairOfPants * numberOfPants;
        subTotalDresses = numberOfDresses * priceOneDress;
        totalOrder = subTotalShirts + subTotalPants + subTotalDresses;

        System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;====================================&quot;);
        System.Console.Write(&quot;Customer:   &quot;);
        System.Console.WriteLine(customerName);
        System.Console.Write(&quot;Home Phone: &quot;);
        System.Console.WriteLine(homePhone);
        System.Console.Write(&quot;Order Date: &quot;);
        System.Console.Write(orderMonth);
        System.Console.Write(&#39;/&#39;);
        System.Console.Write(orderDay);
        System.Console.Write(&#39;/&#39;);
        System.Console.WriteLine(orderYear);
        System.Console.WriteLine(&quot;------------------------------------&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty Unit/Price Sub-Total&quot;);
        System.Console.WriteLine(&quot;------------------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.Write(numberOfShirts);
        System.Console.Write(&quot;     &quot;);
        System.Console.Write(priceOneShirt);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(subTotalShirts);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.Write(numberOfPants);
        System.Console.Write(&quot;     &quot;);
        System.Console.Write(priceAPairOfPants);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(subTotalPants);
        System.Console.Write(&quot;Dresses     &quot;);
        System.Console.Write(numberOfDresses);
        System.Console.Write(&quot;     &quot;);
        System.Console.Write(priceOneDress);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(subTotalDresses);
        System.Console.WriteLine(&quot;------------------------------------&quot;);
        System.Console.Write(&quot;Number of Items: &quot;);
        System.Console.WriteLine(totalNumberOfItems);
        System.Console.Write(&quot;Total Order:     &quot;);
        System.Console.WriteLine(totalOrder);
        System.Console.WriteLine(&quot;====================================&quot;);
        
        System.Console.ReadKey();
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the application to see the result. This would produce:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;-/- Georgetown Cleaning Services -/-
====================================
Customer:   James Burreck
Home Phone: (202) 301-7030
Order Date: 3/15/2002
------------------------------------
Item Type  Qty Unit/Price Sub-Total
------------------------------------
Shirts      5     0.95     4.75
Pants       2     2.95     5.90
Dresses     3     4.55     13.65
------------------------------------
Number of Items: 10
Total Order:     24.30
====================================&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close the DOS window and return to your programming environment&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Compound Multiplication&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
We saw that you could add or subtract a value to a variable and assign the result to the same variable. You can perform the same operation with the multiplication. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        double value = 12.75;

        System.Console.Write(&quot;Value = &quot;);
        System.Console.WriteLine(value);

        &lt;span style=&quot;color: red;&quot;&gt;value = Value * 2.42;&lt;/span&gt;

        System.Console.Write(&quot;Value = &quot;);
        System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Value = 12.75
Value = 30.855
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To make this operation easy, the C# language supports the compound multiplication assignment operator represented as *=. To use it, use the *= operator and assign the desired value to the variable. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        double value = 12.75;

        System.Console.Write(&quot;Value = &quot;);
        System.Console.WriteLine(value);

        &lt;span style=&quot;color: red;&quot;&gt;value *= 2.42;&lt;/span&gt;

        System.Console.Write(&quot;Value = &quot;);
        System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Addition&quot;&gt;&lt;/a&gt;The Subtraction Operations&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Introduction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The subtraction operation is used to take out or subtract a value from another value. It is essentially the opposite of the addition. The subtraction is performed with the - sign. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 // Values used in this program
 double value1 = 224.58, value2 = 1548.26;
 var result = &lt;span style=&quot;color: red;&quot;&gt;value1 - value2&lt;/span&gt;;

 System.Console.Write(value1);
 System.Console.Write(&quot; - &quot;);
 System.Console.Write(value2);
 System.Console.Write(&quot; = &quot;);
 System.Console.WriteLine(result);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;224.58 - 1548.26 = -1323.68

Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Unlike the addition, the subtraction is not associative. In other words, a - b - c is not the same as c - b - a. Consider the following program that illustrates this:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 // This tests whether the addition is associative
 System.Console.WriteLine(&quot; =+= Addition =+=&quot;);
 System.Console.Write(&quot;128 + 42 +   5 = &quot;);
 System.Console.WriteLine(128 + 42 + 5);
 System.Console.Write(&quot;  5 + 42 + 128 = &quot;);
 System.Console.WriteLine(5 + 42 + 128);

 System.Console.WriteLine();

 // This tests whether the subtraction is associative
 System.Console.WriteLine(&quot; =-= Subtraction =-=&quot;);
 System.Console.Write(&quot;128 - 42 -   5 = &quot;);
 System.Console.WriteLine(128 - 42 - 5);
 System.Console.Write(&quot;  5 - 42 - 128 = &quot;);
 System.Console.WriteLine(5 - 42 - 128);
   
 System.Console.WriteLine();
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;=+= Addition =+=
128 + 42 +   5 = 175
  5 + 42 + 128 = 175

 =-= Subtraction =-=
128 - 42 -   5 = 81
  5 - 42 - 128 = -165&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Notice that both operations of the addition convey the same result. In the subtraction section, the numbers follow the same order but produce different results.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using the Subtraction Operator&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To subtract, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        const decimal priceOneShirt = 0.95M;
        const decimal priceAPairOfPants = 2.95M;
        const decimal priceOneDress = 4.55M;
        const decimal salestaxRate = 0.0575M; // 5.75%

        string customerName = &quot;James Burreck&quot;,
               homePhone = &quot;(202) 301-7030&quot;;
        uint numberOfShirts = 5,
             numberOfPants = 2,
             numberOfDresses = 3;
        uint totalNumberOfItems;
        decimal subTotalShirts, subTotalPants, subTotalDresses;
        decimal taxAmount, totalOrder, netPrice;
        uint orderMonth = 3, orderDay = 15, orderYear = 2002;

        totalNumberOfItems = numberOfShirts + numberOfPants + numberOfDresses;
        subTotalShirts = priceOneShirt * numberOfShirts;
        subTotalPants = priceAPairOfPants * numberOfPants;
        subTotalDresses = numberOfDresses * priceOneDress;
        totalOrder = subTotalShirts + subTotalPants + subTotalDresses;
        taxAmount = totalOrder * salestaxRate;
        netPrice = totalOrder - taxAmount;

        System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;====================================&quot;);
        System.Console.Write(&quot;Customer:   &quot;);
        System.Console.WriteLine(customerName);
        System.Console.Write(&quot;Home Phone: &quot;);
        System.Console.WriteLine(homePhone);
        System.Console.Write(&quot;Order Date: &quot;);
        System.Console.Write(orderMonth);
        System.Console.Write(&#39;/&#39;);
        System.Console.Write(orderDay);
        System.Console.Write(&#39;/&#39;);
        System.Console.WriteLine(orderYear);
        System.Console.WriteLine(&quot;------------------------------------&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty Unit/Price Sub-Total&quot;);
        System.Console.WriteLine(&quot;------------------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.Write(numberOfShirts);
        System.Console.Write(&quot;     &quot;);
        System.Console.Write(priceOneShirt);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(subTotalShirts);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.Write(numberOfPants);
        System.Console.Write(&quot;     &quot;);
        System.Console.Write(priceAPairOfPants);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(subTotalPants);
        System.Console.Write(&quot;Dresses     &quot;);
        System.Console.Write(numberOfDresses);
        System.Console.Write(&quot;     &quot;);
        System.Console.Write(priceOneDress);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(subTotalDresses);
        System.Console.WriteLine(&quot;------------------------------------&quot;);
        System.Console.Write(&quot;Number of Items: &quot;);
        System.Console.WriteLine(totalNumberOfItems);
        System.Console.Write(&quot;Total Order:     &quot;);
        System.Console.WriteLine(totalOrder);
        System.Console.Write(&quot;Tax Rate:        &quot;);
        System.Console.Write(salestaxRate * 100);
        System.Console.WriteLine(&#39;%&#39;);
        System.Console.Write(&quot;Tax Amount:      &quot;);
        System.Console.WriteLine(taxAmount);
        System.Console.Write(&quot;Net Price:       &quot;);
        System.Console.WriteLine(netPrice);
        System.Console.WriteLine(&quot;====================================&quot;);
        
        System.Console.ReadKey();
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the program. This would produce:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;-/- Georgetown Cleaning Services -/-
====================================
Customer:   James Burreck
Home Phone: (202) 301-7030
Order Date: 3/15/2002
------------------------------------
Item Type  Qty Unit/Price Sub-Total
------------------------------------
Shirts      5     0.95     4.75
Pants       2     2.95     5.90
Dresses     3     4.55     13.65
------------------------------------
Number of Items: 10
Total Order:     24.30
Tax Rate:        5.7500%
Tax Amount:      1.397250
Net Price:       22.902750
====================================&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close the DOS window and return to your programming environment&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Decrementing a Variable&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When counting numbers backward, such as 8, 7, 6, 5, etc, we are in fact subtracting 1 from a value in order to get the lesser value. This operation is referred to as decrementing a value. This operation works as if a value is decremented by 1, as in Value = Value ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“ 1:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value decrementing

public class Exercise
{
    static void Main()
    {
 var value = 12;

 System.Console.WriteLine(&quot;Techniques of decrementing a value&quot;);
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 &lt;span style=&quot;color: red;&quot;&gt;value = value - 1&lt;/span&gt;;

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Techniques of decrementing a value
Value = 12
Value = 11&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As done to increment, C# provides a quicker way of subtracting 1 from a value. This is done using the decrement operator, that is --. To use the decrement operator, type ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“- on the left or the right side of the variable when this operation is desired. Using the decrement operator, the above program could be written:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value decrementing

public class Exercise
{
    static void Main()
    {
 var value = 12;

 System.Console.WriteLine(&quot;Techniques of decrementing a value&quot;);
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 &lt;span style=&quot;color: red;&quot;&gt;value--&lt;/span&gt;;

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Pre-Decrementing a Value&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Once again, the position of the operator can be important. If you want to decrement the variable before calling it, position the decrement operator on the left side of the operand. This is illustrated in the following program:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value decrementing

public class Exercise
{
    static void Main()
    {
 var value = 12;

 System.Console.WriteLine(&quot;Techniques of decrementing a value&quot;);
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(&lt;span style=&quot;color: red;&quot;&gt;--value&lt;/span&gt;);
  
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Techniques of decrementing a value
Value = 12
Value = 11
Value = 11&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you plan to decrement a variable only after it has been accessed, position the operator on the right side of the variable. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value decrementing

public class Exercise
{
    static void Main()
    {
 var value = 12;

 System.Console.WriteLine(&quot;Techniques of decrementing a value&quot;);
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(&lt;span style=&quot;color: red;&quot;&gt;Value--&lt;/span&gt;);
  
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Techniques of decrementing a value
Value = 12
Value = 12
Value = 11&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Compound Subtraction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You may want to subtract a constant value from a variable. To decrement a value from a variable, use the subtraction and apply the same technique. This is done with the -= operator. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;// This program studies value incrementing and decrementing

public class Exercise
{
    static void Main()
    {
 var value = 12.75;

 System.Console.WriteLine(&quot;Techniques of incrementing and decrementing a value&quot;);
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);

 &lt;span style=&quot;color: red;&quot;&gt;value -= 2.42&lt;/span&gt;;
  
 System.Console.Write(&quot;Value = &quot;);
 System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Techniques of incrementing and decrementing a value
Value = 12.75
Value = 10.33&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Division&quot;&gt;&lt;/a&gt;The Division Operation&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Introduction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Dividing an item means cutting it in pieces or fractions of a set value. For example, when you cut an apple in the middle, you are dividing it in 2 pieces. If you cut each one of the resulting pieces, you will get 4 pieces or fractions. This is considered that you have divided the apple in 4 parts. Therefore, the division is used to get the fraction of one number in terms of another. The division is performed with the forward slash /. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
 // Initializing various variables when declaring them with the same data type
 double value1 = 224.58, value2 = 1548.26;
 var result = value1 / value2;
   
 System.Console.Write(value1);
 System.Console.Write(&quot; / &quot;);
 System.Console.Write(value2);
 System.Console.Write(&quot; = &quot;);
 System.Console.WriteLine(result);
 System.Console.WriteLine();
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;224.58 / 1548.26 = 0.145053156446592

Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When performing the division, be aware of its many rules. Never divide by zero (0). Make sure that you know the relationship(s) between the numbers involved in the operation.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using the Division Operator&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use the division, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        const decimal priceOneShirt = 0.95M;
        const decimal priceAPairOfPants = 2.95M;
        const decimal priceOneDress = 4.55M;
        const decimal discountRate = 0.20M; // 20%
        const decimal taxRate = 5.75M;  // 5.75%

        string customerName = &quot;James Burreck&quot;,
               homePhone = &quot;(202) 301-7030&quot;;
        uint numberOfShirts = 5,
             numberOfPants = 2,
             numberOfDresses = 3;
        uint totalNumberOfItems;
        decimal subTotalShirts, subTotalPants, subTotalDresses;
        decimal DiscountAmount, totalOrder, netPrice, taxAmount, salesTotal;
        decimal amountTended, difference;
        uint orderMonth = 3, orderDay = 15, orderYear = 2002;

        totalNumberOfItems = numberOfShirts + numberOfPants + numberOfDresses;
        subTotalShirts = priceOneShirt * numberOfShirts;
        subTotalPants = priceAPairOfPants * numberOfPants;
        subTotalDresses = numberOfDresses * priceOneDress;
        totalOrder = subTotalShirts + subTotalPants + subTotalDresses;
        DiscountAmount = totalOrder * discountRate;
        netPrice = totalOrder - DiscountAmount;
        taxAmount = totalOrder * taxRate / 100;
        salesTotal = netPrice + taxAmount;
        amountTended = 50M;
        Difference = amountTended - salesTotal;

        System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;====================================&quot;);
        System.Console.Write(&quot;Customer:   &quot;);
        System.Console.WriteLine(customerName);
        System.Console.Write(&quot;Home Phone: &quot;);
        System.Console.WriteLine(homePhone);
        System.Console.Write(&quot;Order Date: &quot;);
        System.Console.Write(orderMonth);
        System.Console.Write(&#39;/&#39;);
        System.Console.Write(orderDay);
        System.Console.Write(&#39;/&#39;);
        System.Console.WriteLine(orderYear);
        System.Console.WriteLine(&quot;------------------------------------&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty Unit/Price Sub-Total&quot;);
        System.Console.WriteLine(&quot;------------------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.Write(numberOfShirts);
        System.Console.Write(&quot;     &quot;);
        System.Console.Write(priceOneShirt);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(subTotalShirts);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.Write(numberOfPants);
        System.Console.Write(&quot;     &quot;);
        System.Console.Write(priceAPairOfPants);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(subTotalPants);
        System.Console.Write(&quot;Dresses     &quot;);
        System.Console.Write(numberOfDresses);
        System.Console.Write(&quot;     &quot;);
        System.Console.Write(priceOneDress);
        System.Console.Write(&quot;     &quot;);
        System.Console.WriteLine(subTotalDresses);
        System.Console.WriteLine(&quot;------------------------------------&quot;);
        System.Console.Write(&quot;Number of Items: &quot;);
        System.Console.WriteLine(totalNumberOfItems);
        System.Console.Write(&quot;Total Order:     &quot;);
        System.Console.WriteLine(totalOrder);
        System.Console.Write(&quot;Discount Rate:   &quot;);
        System.Console.Write(discountRate * 100);
        System.Console.WriteLine(&#39;%&#39;);
        System.Console.Write(&quot;Discount Amount: &quot;);
        System.Console.WriteLine(DiscountAmount);
        System.Console.Write(&quot;After Discount:  &quot;);
        System.Console.WriteLine(netPrice);
        System.Console.Write(&quot;Tax Rate:        &quot;);
        System.Console.Write(taxRate);
        System.Console.WriteLine(&#39;%&#39;);
        System.Console.Write(&quot;Tax Amount:      &quot;);
        System.Console.WriteLine(taxAmount);
        System.Console.Write(&quot;Net Price:       &quot;);
        System.Console.WriteLine(salesTotal);
        System.Console.WriteLine(&quot;====================================&quot;);
        System.Console.Write(&quot;Amount Tended:   &quot;);
        System.Console.WriteLine(amountTended);
        System.Console.Write(&quot;Difference:      &quot;);
        System.Console.WriteLine(Difference);
        System.Console.WriteLine(&quot;====================================&quot;);

        System.Console.ReadKey();
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the application to see the result. This would produce:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;-/- Georgetown Cleaning Services -/-
====================================
Customer:   James Burreck
Home Phone: (202) 301-7030
Order Date: 3/15/2002
------------------------------------
Item Type  Qty Unit/Price Sub-Total
------------------------------------
Shirts      5     0.95     4.75
Pants       2     2.95     5.90
Dresses     3     4.55     13.65
------------------------------------
Number of Items: 10
Total Order:     24.30
Discount Rate:   20.00%
Discount Amount: 4.8600
After Discount:  19.4400
Tax Rate:        5.75%
Tax Amount:      1.39725
Net Price:       20.83725
====================================
Amount Tended:   50
Difference:      29.16275
====================================&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close the DOS window and return to your programming environment&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Compound Division&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Remember that you can add, subtract, or multiply a value to a variable and assign the result to the variable itself. You can also perform this operation using the division. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        double value = 12.75;

        System.Console.Write(&quot;Value = &quot;);
        System.Console.WriteLine(value);

        &lt;span style=&quot;color: red;&quot;&gt;value = value / 2.42;&lt;/span&gt;

        System.Console.Write(&quot;Value = &quot;);
        System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Value = 12.75
Value = 5.26859504132231
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To perform this operation faster, the C# language provides the /= operator. Here is an example of using it:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        double value = 12.75;

        System.Console.Write(&quot;Value = &quot;);
        System.Console.WriteLine(value);

        &lt;span style=&quot;color: red;&quot;&gt;value /= 2.42;&lt;/span&gt;

        System.Console.Write(&quot;Value = &quot;);
        System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Remainder&quot;&gt;&lt;/a&gt;The Remainder&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Introduction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The division program gives a result of a number with decimal values if you provide an odd number (like 147), which is fine in some circumstances. Sometimes you will want to get the value remaining after a division renders a natural result. Imagine you have 26 kids at a football (soccer) stadium and they are about to start. You know that you need 11 kids for each team to start. If the game starts with the right amount of players, how many will seat and wait?&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The remainder operation is performed with the percent sign (%) which is gotten from pressing Shift + 5.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var players = 18;
        var remainder = &lt;span style=&quot;color: red;&quot;&gt;players % 11&lt;/span&gt;;

        // When the game starts, how many players will wait?.
        System.Console.Write(&quot;Out of &quot;);
        System.Console.Write(players);
        System.Console.Write(&quot; players, &quot;);
        System.Console.Write(remainder);
        System.Console.WriteLine(&quot; players will have to wait when the game starts.\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;Out of 18 players, 7 players will have to wait when the game starts.

Press any key to continue . . .&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
The Compound Remainder&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As seen with the other arithmetic operators, you can find the remainder of a variable and assign the result to the variable itself. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var players = 18;

        // When the game starts, how many players will wait?.
        System.Console.Write(&quot;Out of &quot;);
        System.Console.Write(players);
        System.Console.Write(&quot; players, &quot;);

        &lt;span style=&quot;color: red;&quot;&gt;players = players % 11&lt;/span&gt;;
            
        System.Console.Write(players);
        System.Console.WriteLine(&quot; players will have to wait when the game starts.\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To support a faster version of this operation, the C# language provides the compound remainder operator represented as %=. To use it, assign its value to the variable. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var Players = 18;

        // When the game starts, how many players will wait?.
        System.Console.Write(&quot;Out of &quot;);
        System.Console.Write(players);
        System.Console.Write(&quot; players, &quot;);

        &lt;span style=&quot;color: red;&quot;&gt;players %= 11&lt;/span&gt;;
 
        System.Console.Write(players);
        System.Console.WriteLine(&quot; players will have to wait when the game starts.\n&quot;);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
Bit Operations&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Introduction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
From our introduction to variables, you may remember that the computer stores its data in memory using small locations that each contains a bit of information. Because a bit can be represented only either as 1 or 0, we can say that each bit contains 1 or 0. Bit manipulation consists of changing the value (1 or 0, or 0 or 1) in a bit. As we will see in the next few operations, it is not just about changing a value. It can involve reversing a value or kind of &quot;moving&quot; a bit from its current position to the next position.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The operations on bits are performed on 1s and 0s only. This means that any number is decimal or hexadecimal format involved in a bit operation must be converted to binary first.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You will almost never perform some of the operations we are going to review. You will hardly perform some other operations. There is only one operation you will perform on a regular basis. The&amp;nbsp;&lt;b&gt;OR&lt;/b&gt;&amp;nbsp;operation is very regular in Microsoft Windows (Win32) programming so much that we were obliged to include this whole section in the lesson, as opposed to mentioning only&amp;nbsp;&lt;b&gt;OR&lt;/b&gt;.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&quot;Reversing&quot; a Bit&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Remember that, at any time, a box (or chunk) in memory contains either 1 or 0:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Bits&quot; height=&quot;149&quot; src=&quot;http://www.functionx.com/illustrations/bits1.gif&quot; width=&quot;234&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Bit reversal consists of changing the value of a bit. If the box contains 1, it would become 0. If it contains 0, it would become 1. To support this operation, the C# language provides the bitwise negation operator represented with the ~ symbol.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As an example, consider the number 286. The decimal number 286 converted to binary is 100011110. You can reverse each bit as follows:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 320px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;54&quot;&gt;286&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;54&quot;&gt;Not 286&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To use the bitwise negation operator, type ~ on the left side of the value. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number1 = 286;

        System.Console.Write(&quot;286 = &quot;);
        System.Console.WriteLine(number1);
        System.Console.Write(&quot;Not 286 = &quot;);
        System.Console.WriteLine(&lt;span style=&quot;color: red;&quot;&gt;~number1&lt;/span&gt;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;286 = 286
Not 286 = -287
Press any key to continue . . .&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Bitwise Conjunction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Bitwise conjunction consists of adding the content of a bit to the content of another bit. To support the bitwise conjunction operation, the C# language provides the &amp;amp; operator.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To perform the bit addition on two numbers, remember that they must be converted to binary first. Then:&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If a bit with value 0 is added to a bit with value 0, the result is 0&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 131px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0 And Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If a bit with value 1 is added to a bit with value 0, the result is 0&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 131px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0 And Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If a bit with value 0 is added to a bit with value 1, the result is 0&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 131px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0 And Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If a bit with value 1 is added to a bit with value 1, the result is 1&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 131px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0 And Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As an example, consider the number 286 bit-added to 475. The decimal number 286 converted to binary is 100011110. The decimal number 4075 converted to binary is 111111101011. Based on the above 4 points, we can add these two numbers as follows:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 381px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;286&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;4075&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;286 &amp;amp; 4075&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Therefore, 286 &amp;amp; 4075 produces 100001010 which is equivalent to:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 381px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;Bit8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;Bit7&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;Bit6&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;Bit5&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;Bit4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;Bit3&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;Bit2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;Bit0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;256&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;128&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;64&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;32&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;16&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;286 &amp;amp; 4075&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;256&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This means that 286 &amp;amp; 4075 = 256 + 16 + 2 = 266. To perform a bitwise conjunction, use the &amp;amp; operator. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number1 = 286;
        var number2 = 4075;
        var result = &lt;span style=&quot;color: red;&quot;&gt;number1 &amp;amp; number2&lt;/span&gt;;

        System.Console.Write(&quot;286 &amp;amp; 4075 = &quot;);
        System.Console.WriteLine(result);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;286 &amp;amp; 4075 = 266
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can perform a bitwise conjunction on a variable and assign the result to the same variable. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = 286;
        System.Console.WriteLine(number);

        &lt;span style=&quot;color: red;&quot;&gt;number = number &amp;amp; 48&lt;/span&gt;;
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;286
16
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Instead of performing the operation on two steps, a shorter version of this operator consists of using the &amp;amp;= operator. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = 286;
        System.Console.WriteLine(number);

        number &lt;span style=&quot;color: red;&quot;&gt;&amp;amp;=&lt;/span&gt; 48;
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Bitwise Disjunction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Bitwise disjunction consists of disjoining a bit from another bit. To support this operation, the C# language provides the bitwise disjunction operator represented with |.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To perform a bitwise conjunction on two numbers, remember that they must be converted to binary first. Then:&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If a bit with value 0 is added to a bit with value 0, the result is 0&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 131px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0 Or Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If a bit with value 1 is added to a bit with value 0, the result is 1&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 131px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0 Or Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If a bit with value 0 is added to a bit with value 1, the result is 1&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 131px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0 Or Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If a bit with value 1 is added to a bit with value 1, the result is 1&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 131px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;87&quot;&gt;Bit0 Or Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;28&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As an example, consider the number 305 bit-disjoined to 2853. The decimal number 305 converted to binary is 100110001. The decimal number 2853 converted to binary is 101100100101. Based on the above 4 points, we can disjoin these two numbers as follows:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 381px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;305&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;2853&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;305 | 2853&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Therefore, 305 | 2853 produces 101100110101 which is equivalent to:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 481px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;82&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;Bit11&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;Bit10&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;Bit9&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit7&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit6&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit5&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit3&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;82&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;2048&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;1024&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;512&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;256&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;128&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;64&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;32&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;16&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;82&quot;&gt;305 Or 2853&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;82&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;2048&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;512&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;256&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;32&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;16&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This means that 286 | 4075 = 2048 + 512 + 256 + 32 + 16 + 4 + 1 = 2869&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This can also be programmatically calculated as follows:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number1 = 305;
        var number2 = 2853;
        var result = &lt;span style=&quot;color: red;&quot;&gt;number1 | number2&lt;/span&gt;;

        System.Console.Write(&quot;305 Or 2853 = &quot;);
        System.Console.WriteLine(result);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;305 Or 2853 = 2869
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can disjoint a number of bits on a variable and assign the result to the same variable. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = 305;
        System.Console.WriteLine(number);

        &lt;span style=&quot;color: red;&quot;&gt;number = number | 22&lt;/span&gt;;
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;305
311
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A short version of this operation consists of using the |= operator. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = 305;
        System.Console.WriteLine(number);

        &lt;span style=&quot;color: red;&quot;&gt;number |= 22&lt;/span&gt;;
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Bitwise Exclusion&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Bitwise exclusion consists of adding two bits with the following rules. To support bitwise exclusion, the C# language provides the ^ operator:&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If both bits have the same value, the result is 0&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 150px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;109&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;29&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;109&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;29&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;109&quot;&gt;Bit0 ^ Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;29&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If both bits have different values, the result is 1&lt;br /&gt;&amp;nbsp;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 150px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;109&quot;&gt;Bit0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;29&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;109&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;29&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;109&quot;&gt;Bit0 ^ Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;29&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As an example, consider the number 618 bit-excluded from 2548. The decimal number 618 converted to binary is 1001101010. The decimal number 2548 converted to binary is 100111110100. Based on the above 2 points, we can bit-exclude these two numbers as follows:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 381px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;618&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;2548&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;93&quot;&gt;618 ^ 2548&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Therefore, 305 ^ 2853 produces 101110011110 which is equivalent to:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 492px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;92&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;35&quot;&gt;Bit11&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;Bit10&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;Bit9&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit7&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit6&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit5&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit3&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;92&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;35&quot;&gt;2048&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;1024&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;512&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;256&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;128&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;64&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;32&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;16&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;92&quot;&gt;618 ^ 2548&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;35&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;92&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;35&quot;&gt;2048&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;512&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;256&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;128&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;16&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This means that 286 ^ 4075 = 2048 + 512 + 256 + 128 + 16 + 8 + 4 + 2 = 2974&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This can also be programmatically calculated as follows:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number1 = 618;
        var number2 = 2548;
        var result = &lt;span style=&quot;color: red;&quot;&gt;number1 ^ number2&lt;/span&gt;;

        System.Console.WriteLine(result);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;2974
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can bitwise exclude a number of bits from a variable and assign the result to the variable itself. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = 618;
        System.Console.WriteLine(number);

        &lt;span style=&quot;color: red;&quot;&gt;number = number ^ 38&lt;/span&gt;;
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;618
588
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As an alternative, you can use the ^= operator to get the same result. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = 618;
        System.Console.WriteLine(number);

        &lt;span style=&quot;color: red;&quot;&gt;number ^= 38&lt;/span&gt;;
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Left-Shifting the Bits&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Left shifting the bits consists of pushing each bit from right to left. You can do this by one ore more bits. Once again, to perform this operation, the number has to be converted to its binary equivalent. To support this operation, the C# language provides an operator represented as &amp;lt;&amp;lt;.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Imagine you have a number as 741. Its binary equivalent is 1011100101 and can be represented as:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; height=&quot;18&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;1&lt;/td&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;0&lt;/td&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;1&lt;/td&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;1&lt;/td&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;1&lt;/td&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;0&lt;/td&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;0&lt;/td&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;1&lt;/td&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;0&lt;/td&gt;&lt;td height=&quot;12&quot; style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;10%&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To perform a left shift operation on these bits, you push each from its position to the left, depending on the number of pushes you want. For example, to left-shift by 1 bit, you push each bit to the left by one position. Actually, you consider the bit at position x and the bit to its left at position y. You replace the value of Bit y by the value of Bit x. If Bit x is the most right bit, it receives a value of 0. This can be illustrated as follows:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;64&quot;&gt;Original&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;22&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;22&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;64&quot;&gt;&amp;lt;&amp;lt; by 1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;22&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;22&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;23&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As a result, we get 10111001010. The decimal result can be calculated as follows:&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 500px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;82&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;Bit10&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;Bit9&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit7&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit6&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit5&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit3&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;Bit0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;82&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;1024&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;512&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;256&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;128&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;64&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;32&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;16&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;82&quot;&gt;741 &amp;lt;&amp;lt; 1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt; text-align: right;&quot; width=&quot;82&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;34&quot;&gt;1024&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;24&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;256&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;128&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;64&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;8&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;font-size: 10pt; text-align: center;&quot; width=&quot;25&quot;&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Consequently, 741 &amp;lt;&amp;lt; 1 = 1024 + 256 + 128 + 64 + 8 + 2 = 1482. To programmatically perform this operation, use the &amp;lt;&amp;lt; operator. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        System.Console.WriteLine(741 &amp;lt;&amp;lt; 1);
    }
}
&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;1482
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
In the same way, you can push the bits to the left by more than one unit. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = &lt;span style=&quot;color: red;&quot;&gt;248 &amp;lt;&amp;lt; 5&lt;/span&gt;;

        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;7936
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can push a few bits to the left of a variable and assign the result to the variable itself. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = 248;
        System.Console.WriteLine(number);

        &lt;span style=&quot;color: red;&quot;&gt;number = number &amp;lt;&amp;lt; 5&lt;/span&gt;;
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;248
7936
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To provide another version of this operation, the C# language is equipped with the &amp;lt;&amp;lt;= operator. Here is an example of using it:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = 248;
        System.Console.WriteLine(number);

        &lt;span style=&quot;color: red;&quot;&gt;number &amp;lt;&amp;lt;= 5&lt;/span&gt;;
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
Right-Shifting the Bits&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can shift the bits to the right. Everything is done as reviewed for the left shift but in reverse order. To support this operation, the C# language provides the &amp;gt;&amp;gt; operator.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Ending the Lesson&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close your programming environment&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;When asked whether you want to save, click No&lt;/li&gt;
&lt;/ol&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://99materials.blogspot.com/2012/02/lesson-no5.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3889981274156227716.post-4660481216317010379</guid><pubDate>Mon, 13 Feb 2012 05:37:00 +0000</pubDate><atom:updated>2012-02-12T21:37:07.677-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">Application</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Integers</category><category domain="http://www.blogger.com/atom/ns#">Long Integers</category><category domain="http://www.blogger.com/atom/ns#">Quad-Word</category><category domain="http://www.blogger.com/atom/ns#">Signed Integers</category><category domain="http://www.blogger.com/atom/ns#">uint</category><category domain="http://www.blogger.com/atom/ns#">Unsigned</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio</category><title>Lesson no:4</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;&lt;a href=&quot;http://99healthtipz.blogspot.com/&quot; target=&quot;_blank&quot;&gt;Application: Using Unsigned Integers&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Start Microsoft Visual Studio&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To create a new application, on the main menu, click File -&amp;gt; New Project...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the middle list, click Empty Project&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Change the Name to&amp;nbsp;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;gdcs3&lt;/a&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;and click OK&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To create a file for the code, on the main menu, click Project -&amp;gt; Add New Item...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the middle list, click Code File&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Change the Name to&amp;nbsp;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;CleaningOrder&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Click Add&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the empty document, type the following:&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
     byte?   shirts     = null;
        byte?   pants      = null;
        ushort? otherItems = null;

        shirts     = 4;
        pants      = 0;
        otherItems = 3;

        System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;========================&quot;);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty&quot;);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.WriteLine(shirts);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.WriteLine(pants);
        System.Console.Write(&quot;Other Items &quot;);
        System.Console.WriteLine(otherItems);
        System.Console.WriteLine(&quot;========================&quot;);
        
        System.Console.ReadKey();
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the program to see the result&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close the DOS window&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;int&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Signed Integers&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A double-word is large enough to contain double the amount of data that can be stored in a word. This is equivalent to 32 bits or 4 bytes or 4,294,967,295. Therefore, a double-word is used for large numbers that would not fit in a word.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To use a variable that would hold quite large numbers, besides the&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;keyword, you can declare it using the&amp;nbsp;&lt;b&gt;int&lt;/b&gt;keyword. A variable declared as&amp;nbsp;&lt;b&gt;int&lt;/b&gt;&amp;nbsp;can store values between 2,147,483,648 and 2,147,484,647 negative or positive, that can fit in 32 bits.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Here are examples:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;int coordX;
 int coordY;&lt;/span&gt;
 
 coordX = 12;
 coordY = -8;

 System.Console.Write(&quot;Cartesian Coordinate System: &quot;);
 System.Console.Write(&quot;P(&quot;);
 System.Console.Write(coordX);
 System.Console.Write(&quot;, &quot;);
 System.Console.Write(coordY);
 System.Console.WriteLine(&quot;)\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When executed, the program would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Cartesian Coordinate System: P(12, -8)&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you declare an integer variable using the&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;keyword and initialize it with a value lower than 2,147,484,647, the compiler concludes that the memory needed to store that variable is 32 bits:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;If you declare an integer variable using the var keyword and initialize it with a value lower than 2,147,484,647, the compiler concludes that the memory needed to store that variable is 32 bits&quot; border=&quot;0&quot; height=&quot;366&quot; src=&quot;http://www.functionx.com/csharp/windows/value1.gif&quot; width=&quot;575&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When initializing an integral variable, instead of a decimal number, you can also initialize it with a hexadecimal value whose decimal equivalent is less than 2,147,484,647. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = &lt;span style=&quot;color: red;&quot;&gt;0xF0488EA&lt;/span&gt;;

        System.Console.Write(&quot;Number: &quot;);
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Number: 251955434
Press any key to continue . . .&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;uint&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Unsigned Integers&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If the variable must hold only positive natural numbers, you can declared it using the&amp;nbsp;&lt;b&gt;uint&lt;/b&gt;&amp;nbsp;keyword, which represents an&amp;nbsp; unsigned integer. The&amp;nbsp;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;uint&lt;/a&gt;&amp;nbsp;keyword is used to identify a 32-bit positive integer whose value would range from 0 to 4,294,967,295. Here are examples:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span style=&quot;color: red;&quot;&gt;uint dayOfBirth;
 uint monthOfBirth;
 uint yearOfBirth;&lt;/span&gt;
 
 dayOfBirth   = 8;
 monthOfBirth = 11;
 yearOfBirth  = 1996;

 System.Console.WriteLine(&quot;Red Oak High School&quot;);
 System.Console.Write(&quot;Student Date of Birth: &quot;);
 System.Console.Write(monthOfBirth);
 System.Console.Write(&quot;/&quot;);
 System.Console.Write(dayOfBirth);
 System.Console.Write(&quot;/&quot;);
 System.Console.Write(yearOfBirth);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Red Oak High School
Student Date of Birth: 11/8/1996&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Application: Using Unsigned Integers&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use unsigned variables, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        byte?   shirts     = null;
        byte?   pants      = null;
        ushort? otherItems = null;

        uint? orderDay   = null;
        uint? orderMonth = null;
        uint? orderYear  = null;

        shirts     = 4;
        pants      = 0;
        otherItems = 3;
        &lt;span style=&quot;color: red;&quot;&gt;orderDay   = 15;
        orderMonth = 7;
        orderYear  = 2002;&lt;/span&gt;

        System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;========================&quot;);
        &lt;span style=&quot;color: red;&quot;&gt;System.Console.Write(&quot;Order Date: &quot;);
        System.Console.Write(orderMonth);
        System.Console.Write(&#39;/&#39;);
        System.Console.Write(orderDay);
        System.Console.Write(&#39;/&#39;);
        System.Console.WriteLine(orderYear);&lt;/span&gt;
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty&quot;);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.WriteLine(shirts);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.WriteLine(pants);
        System.Console.Write(&quot;Other Items &quot;);
        System.Console.WriteLine(otherItems);
        System.Console.WriteLine(&quot;========================&quot;);
        
        System.Console.ReadKey();
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the program. This would produce:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;-/- Georgetown Cleaning Services -/-
========================
Order Date: 7/15/2002
------------------------
Item Type  Qty
------------------------
Shirts      4
Pants       0
Other Items 3
========================&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close the DOS window&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;QuadWord&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;A Quad-Word&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Introduction&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Sometimes you may want to store values that a double-word cannot handle. To store a very large number in a variable, you can consider a combination of 64 bits. The group can also be referred to as a quad-word. A quad-word is so large it can store numbers in the range of -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you declare an integer variable using the&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;keyword and initialize it with a value between 2,147,484,647 and 9,223,372,036,854,775,807, the compiler concludes that the memory needed to store that variable is 64 bits:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;If you declare an integer variable using the var keyword and initialize it with a value between 2,147,484,647 and 9,223,372,036,854,775,807, the compiler concludes that the memory needed to store that variable is 64 bits&quot; border=&quot;0&quot; height=&quot;365&quot; src=&quot;http://www.functionx.com/csharp/windows/value2.gif&quot; width=&quot;574&quot; /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;long&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Long Integers&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you want to use a variable that can hold very large numbers that would require up to 64 bits, you can declare it using either the&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;or the&amp;nbsp;&lt;b&gt;long&lt;/b&gt;&amp;nbsp;keyword.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As stated previously, if you initialize the variable with a value lower than 2,147,484,647, the compiler would allocate 32 bits of memory for it. If you initialize the variable with a value between 2,147,484,647 and 9,223,372,036,854,775,807, the compiler would allocate 64 bits of memory for it. If the value is higher than 9,223,372,036,854,775,807, which is too large, the compiler would present an error:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;As stated previously, if you initialize the variable with a value lower than 2,147,484,647, the compiler would allocate 32 bits of memory for it. If you initialize the variable with a value between 2,147,484,647 and 9,223,372,036,854,775,807, the compiler would allocate 64 bits of memory for it. If the value is higher than 9,223,372,036,854,775,807, which is too large, the compiler would present an error&quot; border=&quot;0&quot; height=&quot;365&quot; src=&quot;http://www.functionx.com/csharp/windows/value3.gif&quot; width=&quot;573&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This means that you should limit the values assigned to integral variables to 64 bits, which is very significant.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
        &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;var countryArea = 5638648;&lt;/span&gt;

        System.Console.Write(&quot;Country Area: &quot;);
        System.Console.Write(countryArea);
        System.Console.Write(&quot;km2\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Country Area: 5638648km2
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As mentioned for other integral types, you can initialize a&amp;nbsp;&lt;b&gt;long&lt;/b&gt;&amp;nbsp;variable with a hexadecimal value.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Although the&amp;nbsp;&lt;b&gt;long&lt;/b&gt;&amp;nbsp;data type is used for large numbers, it mainly indicates the amount of space available but you don&#39;t have to use the whole space. For example, you can use the&amp;nbsp;&lt;b&gt;long&lt;/b&gt;&amp;nbsp;keyword to declare a variable that would hold the same range of numbers as the&amp;nbsp;&lt;b&gt;short&lt;/b&gt;, the&amp;nbsp;&lt;b&gt;int&lt;/b&gt;, or the&amp;nbsp;&lt;b&gt;uint&lt;/b&gt;&amp;nbsp;data types. If you declare a variable as&amp;nbsp;&lt;strong&gt;long&lt;/strong&gt;&amp;nbsp;but use it for small numbers that don&#39;t require 64 bits, the compiler would allocate the appropriate amount of space to accommodate the values of the variable. Consequently, the amount of space made available may not be as large as 64 bits. If you insist and want the compiler to reserve 64 bits, when assigning a value to the variable, add an&amp;nbsp;&lt;b&gt;L&lt;/b&gt;&amp;nbsp;suffix to it. Here is an example that uses a&amp;nbsp;&lt;strong&gt;long&lt;/strong&gt;&amp;nbsp;variable to store a number that would fit in 32 bits:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span style=&quot;color: red;&quot;&gt;long countryArea;&lt;/span&gt;
  
 countryArea = 5638648L;

 System.Console.Write(&quot;Country Area: &quot;);
 System.Console.Write(countryArea);
 System.Console.Write(&quot;km2\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Therefore, keep in mind that an&amp;nbsp;&lt;b&gt;int&lt;/b&gt;, a&amp;nbsp;&lt;b&gt;uint&lt;/b&gt;, a&amp;nbsp;&lt;b&gt;short&lt;/b&gt;, or a&amp;nbsp;&lt;b&gt;ushort&lt;/b&gt;&amp;nbsp;can fit in a long variable.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Unsigned Long Integers&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can use a combination of 64 bits to store positive or negative integers. In some cases, you will need a variable to hold only positive, though large, numbers. To declare such a variable, you can use the&amp;nbsp;&lt;b&gt;ulong&lt;/b&gt;&amp;nbsp;data type. A variable declared as&amp;nbsp;&lt;b&gt;ulong&lt;/b&gt;&amp;nbsp;can handle extremely positive numbers that range from 0 to 18,446,744,073,709,551,615 to fit in 64 bits.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Real Numbers&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Introduction&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A real number is a number that displays a decimal part. This means that the number can be made of two sections separated by a symbol that is referred to as the Decimal Separator or Decimal Symbol. This symbol is different by language, country, group of languages, or group of countries. In US English, this symbol is the period as can be verified from the Regional (and Language) Settings of the Control Panel:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Regional&quot; border=&quot;0&quot; height=&quot;478&quot; src=&quot;http://www.functionx.com/dlgboxes/regional2.gif&quot; width=&quot;404&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
On both sides of the decimal symbol, digits are used to specify the value of the number. The number of digits on the right side of the symbol determines how much precision the number offers.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Floating-Point Numbers&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The integers we have used so far have the main limitation of not allowing decimal values. C# provides floating values that would solve this problem. The most fundamental floating variable is declared with the&amp;nbsp;&lt;b&gt;float&lt;/b&gt;&amp;nbsp;keyword. A variable declared as&amp;nbsp;&lt;strong&gt;float&lt;/strong&gt;&amp;nbsp;can store real numbers that range from Ã‚Â±1.5&amp;nbsp;xÃ‚Â&amp;nbsp;10âˆ’&lt;sup&gt;45&lt;/sup&gt;&amp;nbsp;to Ã‚Â±3.4&amp;nbsp;xÃ‚Â&amp;nbsp;10&lt;sup&gt;38&lt;/sup&gt;&amp;nbsp;with a precision of 7 digits in 32 bits. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span style=&quot;color: red;&quot;&gt;float&lt;/span&gt; distance;
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Double-Precision Numbers&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When a variable is larger than the&amp;nbsp;&lt;b&gt;float&lt;/b&gt;&amp;nbsp;can handle and requires more precision, you should declare it using either the&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;or the the&amp;nbsp;&lt;b&gt;double&lt;/b&gt;&amp;nbsp;keyword. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
        &lt;span style=&quot;color: red;&quot;&gt;var number = 62834.9023;&lt;/span&gt;

        System.Console.Write(&quot;Number: &quot;);
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Number: 62834.9023
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A variable declared as&amp;nbsp;&lt;b&gt;double&lt;/b&gt;&amp;nbsp;uses 64 bits to store very large numbers ranging from Ã‚Â±5.0&amp;nbsp;x&amp;nbsp;10âˆ’&lt;sup&gt;324&lt;/sup&gt;&amp;nbsp;to Ã‚Â±1.7&amp;nbsp;x Ã‚Â10&lt;sup&gt;308&lt;/sup&gt;&amp;nbsp;with a precision of 15 or 16 digits. Because the&amp;nbsp;&lt;b&gt;double&lt;/b&gt;&amp;nbsp;data type provides a better result with better precision than the&amp;nbsp;&lt;b&gt;float&lt;/b&gt;, whenever you declare a variable using either the&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;or the&amp;nbsp;&lt;b&gt;float&lt;/b&gt;&amp;nbsp;keyword and assign it a value, the compiler allocates 64 bits to store the values of the variable. If you insist on the variable being treated as&amp;nbsp;&lt;b&gt;float&lt;/b&gt;, when assigning it a value, add an&amp;nbsp;&lt;b&gt;f&lt;/b&gt;&amp;nbsp;or an&amp;nbsp;&lt;b&gt;F&lt;/b&gt;&amp;nbsp;suffix to the value. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
 float distance;
  
 distance = 248.38&lt;span style=&quot;color: red;&quot;&gt;F&lt;/span&gt;;

 System.Console.Write(&quot;Distance = &quot;);
 System.Console.Write(distance);
 System.Console.WriteLine(&quot;km\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Distance = 248.38km&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Remember that if you declare the variable as&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;and want to treat it as a value with single precision, add an&amp;nbsp;&lt;b&gt;f&lt;/b&gt;&amp;nbsp;or an&lt;strong&gt;F&lt;/strong&gt;&amp;nbsp;suffix to the value assigned to it. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
        &lt;span style=&quot;color: red;&quot;&gt;var  number = 62834.9023F;&lt;/span&gt;

        System.Console.Write(&quot;Number: &quot;);
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
On the other hand, if you want a value to be treated with double-precision, add a&amp;nbsp;&lt;b&gt;d&lt;/b&gt;&amp;nbsp;or a&amp;nbsp;&lt;strong&gt;D&lt;/strong&gt;&amp;nbsp;suffix to it. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
        var  number = 62834.9023&lt;span style=&quot;color: red;&quot;&gt;D&lt;/span&gt;;

        System.Console.Write(&quot;Number: &quot;);
        System.Console.WriteLine(number);
    }
}&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Application: Using a Double-Precision Variable&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use a double-precision value, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
        byte?   shirts     = null;
        byte?   pants      = null;
        ushort? otherItems = null;

        uint? orderDay   = null;
        uint? orderMonth = null;
        uint? orderYear  = null;

        &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;double? mondayDiscount = null;&lt;/span&gt;

        shirts         = 4;
        pants          = 0;
        otherItems     = 3;
        orderDay       = 15;
        orderMonth     = 7;
        orderYear      = 2002;
        &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;mondayDiscount = 0.25D;&lt;/span&gt; // 25%

        System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;========================&quot;);
        System.Console.Write(&quot;Order Date: &quot;);
        System.Console.Write(orderMonth);
        System.Console.Write(&#39;/&#39;);
        System.Console.Write(orderDay);
        System.Console.Write(&#39;/&#39;);
        System.Console.WriteLine(orderYear);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty&quot;);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.WriteLine(shirts);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.WriteLine(pants);
        System.Console.Write(&quot;Other Items &quot;);
        System.Console.WriteLine(otherItems);
        &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.Write(&quot;Monday Discount: &quot;);
        System.Console.Write(mondayDiscount);
        System.Console.WriteLine(&#39;%&#39;);&lt;/span&gt;
        System.Console.WriteLine(&quot;========================&quot;);

        System.Console.ReadKey();
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the application to see the result:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;-/- Georgetown Cleaning Services -/-
========================
Order Date: 7/15/2002
------------------------
Item Type  Qty
------------------------
Shirts      4
Pants       0
Other Items 3
------------------------
Monday Discount: 0.25%
========================&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close the DOS window&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Decimal&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;b&gt;decimal&lt;/b&gt;&amp;nbsp;data type can be used to declare a variable that would hold significantly large values that can be stored in a combination of 128 bits. You declare such a variable using the&amp;nbsp;&lt;b&gt;decimal&lt;/b&gt;&amp;nbsp;keyword. The values stored in a decimal variable can range from Â±1.0&amp;nbsp;xÂ&amp;nbsp;10âˆ’&lt;sup&gt;28&lt;/sup&gt;&amp;nbsp;to Â±7.9&amp;nbsp;xÂ&amp;nbsp;10&lt;sup&gt;28&lt;/sup&gt;&amp;nbsp;with a precision of 28 to 29 digits. Because of this high level of precision, the&amp;nbsp;&lt;b&gt;decimal&lt;/b&gt;&amp;nbsp;data type is suitable for currency values.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
After declaring a decimal variable, you can initialize it with a natural number. To indicate that the variable holds a decimal value, when initializing it, add an&amp;nbsp;&lt;b&gt;m&lt;/b&gt;&amp;nbsp;or an&amp;nbsp;&lt;b&gt;M&lt;/b&gt;&amp;nbsp;suffix to its value. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;decimal hourlySalary;&lt;/span&gt;
  
 hourlySalary = 24.25&lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;M&lt;/span&gt;;

 System.Console.Write(&quot;Hourly Salary = &quot;);
 System.Console.WriteLine(hourlySalary);
 System.Console.WriteLine();
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Hourly Salary = 24&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As seen in previous sections and this one, when declaring and initializing a real variable, the suffix you give to its assigned value indicates to the compiler the actual type of value and the type of memory that would be allocated for the variable:&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If the value receives an&amp;nbsp;&lt;b&gt;f&lt;/b&gt;&amp;nbsp;or an&amp;nbsp;&lt;strong&gt;F&lt;/strong&gt;&amp;nbsp;suffix, it is considered a&amp;nbsp;&lt;strong&gt;float&lt;/strong&gt;ing point number with single precision&lt;br /&gt;&lt;br /&gt;&lt;img alt=&quot;If the value receives an F suffix, it is considered a floating point number with single precision&quot; border=&quot;0&quot; height=&quot;433&quot; src=&quot;http://www.functionx.com/csharp/windows/value4a.gif&quot; width=&quot;576&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If the value receives a&amp;nbsp;&lt;b&gt;d&lt;/b&gt;&amp;nbsp;or a&amp;nbsp;&lt;strong&gt;D&lt;/strong&gt;&amp;nbsp;suffix, it is considered a floating point number with&amp;nbsp;&lt;strong&gt;double&lt;/strong&gt;&amp;nbsp;precision&lt;br /&gt;&lt;br /&gt;&lt;img alt=&quot;If the value receives an D suffix, it is considered a floating point number with double precision&quot; border=&quot;0&quot; height=&quot;432&quot; src=&quot;http://www.functionx.com/csharp/windows/value4b.gif&quot; width=&quot;576&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;If the value receives an&amp;nbsp;&lt;b&gt;m&lt;/b&gt;&amp;nbsp;or an&amp;nbsp;&lt;strong&gt;M&lt;/strong&gt;&amp;nbsp;suffix, it is considered a large decimal number&lt;br /&gt;&lt;br /&gt;&lt;img alt=&quot;If the value receives an M suffix, it is considered a large decimal number&quot; border=&quot;0&quot; height=&quot;430&quot; src=&quot;http://www.functionx.com/csharp/windows/value4c.gif&quot; width=&quot;575&quot; /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Consider the following program:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Program
{
    static void Main()
    {
        System.Console.Write(&quot;560 / 672 = &quot;);
        System.Console.WriteLine(560 / 672);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The purpose of this program is to get the division of 560 by 672. This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;560 / 672 = 0
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Notice that, when such numbers are submitted to the program, the compiler decides that these are integers and the result produces 0. If you write such an equation and want the result to appear as a real number, you must explicitly indicate it to the compiler. One way you can do this consists of adding decimal places to at least one of the numbers. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Program
{
    static void Main()
    {
        System.Console.Write(&quot;560 / 672 = &quot;);
        System.Console.WriteLine(560&lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;.00&lt;/span&gt; / 672&lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;.00&lt;/span&gt;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This time, the compiler will conclude that the value is a floating-point number; but which one? By default, the compiler would apply the&amp;nbsp;&lt;strong&gt;double&lt;/strong&gt;&amp;nbsp;data type. This version of the program would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;560 / 672 = 0.833333333333333
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you want to indicate that the value is a&amp;nbsp;&lt;strong&gt;float&lt;/strong&gt;, a&amp;nbsp;&lt;strong&gt;double&lt;/strong&gt;, or a&amp;nbsp;&lt;strong&gt;decimal&lt;/strong&gt;, add the appropriate prefix to it:&amp;nbsp;&lt;b&gt;f&lt;/b&gt;,&amp;nbsp;&lt;b&gt;F&lt;/b&gt;,&amp;nbsp;&lt;b&gt;d&lt;/b&gt;,&amp;nbsp;&lt;b&gt;D&lt;/b&gt;,&lt;b&gt;m&lt;/b&gt;, or&amp;nbsp;&lt;b&gt;M&lt;/b&gt;. Here are examples:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Program
{
    static void Main()
    {
        System.Console.Write(&quot;560 / 672 = &quot;);
        System.Console.WriteLine(560&lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;F&lt;/span&gt; / 672&lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;f&lt;/span&gt;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&amp;nbsp;This version of the program would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;560 / 672 = 0.8333333
Press any key to continue . . .&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Application: Using Decimal Values&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use decimal variables, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
            byte?    shirts            = null;
            &lt;span style=&quot;color: red;&quot;&gt;decimal? priceOneShirt     = null;&lt;/span&gt;
            byte?    pants             = null;
            &lt;span style=&quot;color: red;&quot;&gt;decimal? priceAPairOfPants = null;&lt;/span&gt;
            ushort?  otherItems        = null;
            &lt;span style=&quot;color: red;&quot;&gt;decimal? priceOtherItems   = null;&lt;/span&gt;

            uint? orderDay   = null;
            uint? orderMonth = null;
            uint? orderYear  = null;

            double? mondayDiscount = null;

            shirts = 5;
            &lt;span style=&quot;color: red;&quot;&gt;priceOneShirt = 0.95M;&lt;/span&gt;
            pants = 2;
            &lt;span style=&quot;color: red;&quot;&gt;priceAPairOfPants = 1.95M;&lt;/span&gt;
            otherItems = 3;
            &lt;span style=&quot;color: red;&quot;&gt;priceOtherItems = 4.55M;&lt;/span&gt;
            orderDay = 15;
            orderMonth = 7;
            orderYear = 2002;
            mondayDiscount = 0.25D; // 25%

            System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
            System.Console.WriteLine(&quot;========================&quot;);
            System.Console.Write(&quot;Order Date: &quot;);
            System.Console.Write(orderMonth);
            System.Console.Write(&#39;/&#39;);
            System.Console.Write(orderDay);
            System.Console.Write(&#39;/&#39;);
            System.Console.WriteLine(orderYear);
            System.Console.WriteLine(&quot;------------------------&quot;);
            System.Console.WriteLine(&quot;Item Type  Qty &lt;span style=&quot;color: red;&quot;&gt;Unit Price&lt;/span&gt;&quot;);
            System.Console.WriteLine(&quot;------------------------&quot;);
            System.Console.Write(&quot;Shirts      &quot;);
            System.Console.Write(shirts);
            &lt;span style=&quot;color: red;&quot;&gt;System.Console.Write(&quot;     &quot;);
            System.Console.WriteLine(priceOneShirt);&lt;/span&gt;
            System.Console.Write(&quot;Pants       &quot;);
            System.Console.Write(pants);
            &lt;span style=&quot;color: red;&quot;&gt;System.Console.Write(&quot;     &quot;);
            System.Console.WriteLine(priceAPairOfPants);&lt;/span&gt;
            System.Console.Write(&quot;Other Items &quot;);
            System.Console.Write(otherItems);
            &lt;span style=&quot;color: red;&quot;&gt;System.Console.Write(&quot;     &quot;);
            System.Console.WriteLine(priceOtherItems);&lt;/span&gt;
            System.Console.WriteLine(&quot;------------------------&quot;);
            System.Console.Write(&quot;Monday Discount: &quot;);
            System.Console.Write(mondayDiscount);
            System.Console.WriteLine(&#39;%&#39;);
            System.Console.WriteLine(&quot;========================&quot;);
            
            System.Console.ReadKey();
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the program. This would produce:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;-/- Georgetown Cleaning Services -/-
========================
Order Date: 7/15/2002
------------------------
Item Type  Qty Unit Price
------------------------
Shirts      5     0.95
Pants       2     1.95
Other Items 3     4.55
------------------------
Monday Discount: 0.25%
========================&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close the DOS window&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Accessory Data Types&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Strings&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A string is an empty space, a character, a word, or a group of words that you want the compiler to consider &quot;as is&quot;, that is, not to pay too much attention to what the string is made of, unless you explicitly ask it to. This means that, in the strict sense, you can put in a string anything you want.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Primarily, the value of a string starts with a double quote and ends with a double-quote. An example of a string is &quot;Welcome to the World of C# Programming!&quot;. You can include such a string in&amp;nbsp;&lt;b&gt;System.Console.Write()&lt;/b&gt;&amp;nbsp;to display it on the console. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
 System.Console.WriteLine(&lt;span style=&quot;color: red;&quot;&gt;&quot;Welcome to the World of C# Programming!&quot;&lt;/span&gt;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Welcome to the World of C# Programming!
Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Sometimes, you will need to use a string whose value is not known in advance. Therefore, you can first declare a string variable. To do this, use either the&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;or the&amp;nbsp;&lt;b&gt;string&lt;/b&gt;&amp;nbsp;keyword followed by a name for the variable. When declaring a string variable, you can initialize it with an empty space, a character, a symbol, a word, a group of words, or&amp;nbsp;&lt;strong&gt;null&lt;/strong&gt;&amp;nbsp;(but you must not use&amp;nbsp;&lt;b&gt;string&lt;span style=&quot;color: red;&quot;&gt;?&lt;/span&gt;&lt;/b&gt;). If not using&amp;nbsp;&lt;strong&gt;null&lt;/strong&gt;, the value given to a string must be included in double-quotes. Here are two examples:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
        &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;var team = &quot;Real Madrid&quot;;
        string country = &quot;GuinÃ©e Equatoriale&quot;;&lt;/span&gt;

        System.Console.WriteLine(&quot;Welcome to the World of C# Programming!&quot;);
        System.Console.Write(&quot;Team:    &quot;);
        System.Console.WriteLine(team);
        System.Console.Write(&quot;Country: &quot;);
        System.Console.WriteLine(country);
        System.Console.WriteLine();
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Welcome to the World of C# Programming!
Team:    Real Madrid
Country: GuinÃ©e Equatoriale

Press any key to continue . . .&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Application: Using Strings&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;To use strings, change the file as follows:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;class Order
{
    static void Main()
    {
            &lt;span style=&quot;color: red;&quot;&gt;string customerName;
            string customerHomePhone;&lt;/span&gt;

            byte? shirts = null;
            decimal? priceOneShirt = null;
            byte? pants = null;
            decimal? priceAPairOfPants = null;
            ushort? otherItems = null;
            decimal? priceOtherItems = null;

            uint? orderDay = null;
            uint? orderMonth = null;
            uint? orderYear = null;

            double? mondayDiscount = null;

            &lt;span style=&quot;color: red;&quot;&gt;customerName = &quot;Gregory Almas&quot;;
            customerHomePhone = &quot;(301) 723-4425&quot;;&lt;/span&gt;
            shirts = 5;
            priceOneShirt = 0.95M;
            pants = 2;
            priceAPairOfPants = 1.95M;
            otherItems = 3;
            priceOtherItems = 4.55M;
            orderDay = 15;
            orderMonth = 7;
            orderYear = 2002;
            mondayDiscount = 0.25D; // 25%

            System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
            System.Console.WriteLine(&quot;========================&quot;);
            &lt;span style=&quot;color: red;&quot;&gt;System.Console.Write(&quot;Customer:   &quot;);
            System.Console.WriteLine(customerName);
            System.Console.Write(&quot;Home Phone: &quot;);
            System.Console.WriteLine(customerHomePhone);&lt;/span&gt;
            System.Console.Write(&quot;Order Date: &quot;);
            System.Console.Write(orderMonth);
            System.Console.Write(&#39;/&#39;);
            System.Console.Write(orderDay);
            System.Console.Write(&#39;/&#39;);
            System.Console.WriteLine(orderYear);
            System.Console.WriteLine(&quot;------------------------&quot;);
            System.Console.WriteLine(&quot;Item Type  Qty Unit Price&quot;);
            System.Console.WriteLine(&quot;------------------------&quot;);
            System.Console.Write(&quot;Shirts      &quot;);
            System.Console.Write(shirts);
            System.Console.Write(&quot;     &quot;);
            System.Console.WriteLine(priceOneShirt);
            System.Console.Write(&quot;Pants       &quot;);
            System.Console.Write(pants);
            System.Console.Write(&quot;     &quot;);
            System.Console.WriteLine(priceAPairOfPants);
            System.Console.Write(&quot;Other Items &quot;);
            System.Console.Write(otherItems);
            System.Console.Write(&quot;     &quot;);
            System.Console.WriteLine(priceOtherItems);
            System.Console.WriteLine(&quot;------------------------&quot;);
            System.Console.Write(&quot;Monday Discount: &quot;);
            System.Console.Write(mondayDiscount);
            System.Console.WriteLine(&#39;%&#39;);
            System.Console.WriteLine(&quot;========================&quot;);
            
            System.Console.ReadKey();
    }
}&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Execute the program. This would produce:&lt;br /&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;-/- Georgetown Cleaning Services -/-
========================
Customer:   Gregory Almas
Home Phone: (301) 723-4425
Order Date: 7/15/2002
------------------------
Item Type  Qty Unit Price
------------------------
Shirts      5     0.95
Pants       2     1.95
Other Items 3     4.55
------------------------
Monday Discount: 0.25%
========================&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close the DOS window&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Dates and Times&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A date is a unit that measures the number of years, months, or days elapsed in a specific period. A time is a unit that counts the number of seconds that have elapsed since midnight of the day considered. Although dates and times are large subjects that would require a detailed study, at this time, we will consider them in simple terms.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To declare a variable that would hold date or time values, use the&amp;nbsp;&lt;b&gt;DateTime&lt;/b&gt;&amp;nbsp;data type.&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span style=&quot;color: red;&quot;&gt;DateTime&lt;/span&gt; DateHired;
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The .NET Framework sets its starting periodic date to January 1, 0001 at midnight (12:00:00 or 0:00 AM). If not assigned a specific value (in future lessons, we will learn that this is equivalent to declaring a variable using the default constructor), the variable is initialized to 1/1/0001 at midnight.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Objects&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;b&gt;object&lt;/b&gt;&amp;nbsp;data type is used to declare a variable whose type is not primarily defined and can be any of the other data types we have introduced. After creating an object variable, you can use its value as you see fit. For example, you can enter the variable in the parentheses of&amp;nbsp;&lt;b&gt;System.Console.Write()&lt;/b&gt;&amp;nbsp;or&amp;nbsp;&lt;b&gt;System.Console.WriteLine()&lt;/b&gt;&amp;nbsp;to display it in the console window. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
        var EmployeeName = &quot;Ernestine Lamb&quot;;
        &lt;span style=&quot;color: red;&quot;&gt;object Address = &quot;10244 Lockwood Drive&quot;;&lt;/span&gt;

        System.Console.Write(&quot;Employee Name: &quot;);
        System.Console.WriteLine(EmployeeName);
        System.Console.Write(&quot;Home Address:  &quot;);
        System.Console.WriteLine(Address);
        System.Console.WriteLine();
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;Employee Name: Ernestine Lamb
Home Address:  10244 Lockwood Drive

Press any key to continue . . .&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A variable declared with&amp;nbsp;&lt;b&gt;object&lt;/b&gt;&amp;nbsp;can embrace almost any value. This means that, when initializing the variable, you can use any of the types of values we have seen so far. Here are examples:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Program
{
    static void Main()
    {
        &lt;span style=&quot;color: red;&quot;&gt;object propertyNumber = &quot;293749&quot;;
        object propertyType = &#39;S&#39;;
        object stories = 3;
        object bedrooms = 4;
        object value = 425880;&lt;/span&gt;

        System.Console.WriteLine(&quot;=//= Altair Realtors =//=&quot;);
        System.Console.WriteLine(&quot;Properties Inventory&quot;);
        System.Console.Write(&quot;Property #:    &quot;);
        System.Console.WriteLine(propertyNumber);
        System.Console.Write(&quot;Property Type:  &quot;);
        System.Console.WriteLine(propertyType);
        System.Console.Write(&quot;Stories:        &quot;);
        System.Console.WriteLine(stories);
        System.Console.Write(&quot;Bedrooms:       &quot;);
        System.Console.WriteLine(bedrooms);
        System.Console.Write(&quot;Market Value:   &quot;);
        System.Console.WriteLine(value);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;=//= Altair Realtors =//=
Properties Inventory
Property #:    293749
Property Type:  S
Stories:        3
Bedrooms:       4
Market Value:   425880
Press any key to continue . . .&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Constants&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Custom Constants&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Suppose you intend to use a number such as 39.37 over and over again. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
 double meter, inch;
  
 meter = 12.52D;
 inch = Meter * &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;39.37&lt;/span&gt;D;

        System.Console.Write(meter);
        System.Console.Write(&quot;m = &quot;);
        System.Console.Write(inch);
        System.Console.WriteLine(&quot;in\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Here is an example of running the program:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;12.52m = 492.9124in&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you use this 39.37 many times in your program, at one time, you may make a mistake and type it as 3937 or 3.937 or else. Consider the following program:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
        double meter, inch;

        meter = 12.52D;
        inch = Meter * 39.37;

        System.Console.Write(meter);
        System.Console.Write(&quot;m = &quot;);
        System.Console.Write(inch);
        System.Console.WriteLine(&quot;in\n&quot;);

        meter = 12.52D;
        Inch = Meter * 3.937;
        System.Console.Write(meter);
        System.Console.Write(&quot;m = &quot;);
        System.Console.Write(inch);
        System.Console.WriteLine(&quot;in\n&quot;);

        meter = 12.52D;
        Inch = Meter * 393.7;
        System.Console.Write(meter);
        System.Console.Write(&quot;m = &quot;);
        System.Console.Write(inch);
        System.Console.WriteLine(&quot;in\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;12.52m = 492.9124in

12.52m = 49.29124in

12.52m = 4929.124in&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Because of mistakes in the way to represent the number, the same calculation produces different results. To make sure that this is unlikely, you can instead use a variable that holds the value. Then, when you need that value, you can access the variable instead of the value itself. A number such as 39.37 is called a constant.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
A constant is a value that never changes such as 244, &quot;ASEC Mimosa&quot;, 39.37, or True. These are constant values you can use in your program any time. You can also declare a variable and make it a constant; that is, use it so that its value is always the same.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To create a constant, type the&amp;nbsp;&lt;b&gt;const&lt;/b&gt;&amp;nbsp;keyword to its left. When declaring a constant, you must initialize it with an appropriate value. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;const double ConversionFactor = 39.37D;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Once a constant has been created and it has been appropriately initialized, you can use its name where the desired constant would be used. Here is an example of a constant variable used various times:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Exercise
{
    static void Main()
    {
        &lt;span style=&quot;color: red;&quot;&gt;const double conversionFactor = 39.37D;&lt;/span&gt;
        double meter, inch;

        meter = 12.52D;
        inch = Meter * &lt;span style=&quot;color: red;&quot;&gt;ConversionFactor&lt;/span&gt;;

        System.Console.Write(meter);
        System.Console.Write(&quot;m = &quot;);
        System.Console.Write(inch);
        System.Console.WriteLine(&quot;in\n&quot;);

        meter = 12.52D;
        inch = Meter * &lt;span style=&quot;color: red;&quot;&gt;ConversionFactor&lt;/span&gt;;

        System.Console.Write(meter);
        System.Console.Write(&quot;m = &quot;);
        System.Console.Write(inch);
        System.Console.WriteLine(&quot;in\n&quot;);

        meter = 12.52D;
        inch = Meter * &lt;span style=&quot;color: red;&quot;&gt;ConversionFactor&lt;/span&gt;;

        System.Console.Write(meter);
        System.Console.Write(&quot;m = &quot;);
        System.Console.Write(inch);
        System.Console.WriteLine(&quot;in\n&quot;);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;12.52m = 492.9124in

12.52m = 492.9124in

12.52m = 492.9124in&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Notice that, this time, the calculation is more accurate. Also, this time, if you mistype the name of the variable in an operation, you would receive an error, giving you the time to fix it.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To initialize a constant variable, the value on the right side of the assignment operator &quot;=&quot; must be a constant or a value that the compiler can determine as constant. Instead of using a known constant, you can also assign it another variable that has already been declared as constant.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Built-in Constants&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
There are two main categories of constants you will use in your programs. You can create your own constant as we saw above. The C# language also provides various constants. Some constants are part of the C# language. Some other constants are part of the .NET Framework. Before using a constant, of course, you must first know that it exists. Second, you must know how to access it. A constant that is part of the C# language can be accessed anywhere in your code (normally, those constant are defined in the&amp;nbsp;&lt;b&gt;System&lt;/b&gt;&amp;nbsp;namespace; other constant are defined in various appropriate namespaces).&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;b&gt;null&lt;/b&gt;: The&amp;nbsp;&lt;strong&gt;null&lt;/strong&gt;&amp;nbsp;keyword is a constant used to indicate that a variable doesn&#39;t hold a known value&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;b&gt;PI&lt;/b&gt;: PI is a constant used as the ratio of the circumference of a circle to its diameter. PI is defined in Math. To use it, you would type&amp;nbsp;&lt;b&gt;Math.PI&lt;/b&gt;.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Managing Code&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Introduction&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The primary means of creating a program consists of adding code to a document. This is done by typing code using the keyboard. Once the code exists, you can do various things on it. In most cases, you must first select the text. Normally, from your experience of using computers, you should already know how to select text, using the mouse, or a combination of the mouse and keyboard.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Accessing a Variable&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As mentioned already, you will write your code in normal text editors, whether using Notepad, the Code Editor of Microsoft Visual Studio, or else. Also, you may be familiar already with how to look for a character, a symbol, a word, or a group of words in a document. Just as reminder, on the main menu of the application, you can click Edit -&amp;gt; Find...&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Name Selection&quot; height=&quot;334&quot; src=&quot;http://www.functionx.com/csharp/windows/find1.gif&quot; width=&quot;383&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would display a dialog box where you can type the item and click Find. If you are using Microsoft Visual Studio and if you want to find different occurrences of a known character, symbol, word, or group of words, first select that item. Then:&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;On the main menu, click Edit -&amp;gt; Quick Find&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Press Ctrl + F&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
In the same way, if you have a variable that is used more than once in your code and you want to see all places where that variable is used, simply click the name (and wait two seconds) and all of its occurrences would be highlighted:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Name Selection&quot; height=&quot;293&quot; src=&quot;http://www.functionx.com/csharp/editor/select1.gif&quot; width=&quot;368&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To get a list of all sections where the variable is used, if you are using Microsoft Visual Studio:&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;In the Code Editor, right-click the name of the variable and click Find All References&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Find All References&quot; height=&quot;532&quot; src=&quot;http://www.functionx.com/csharp/editor/far1.gif&quot; width=&quot;656&quot; /&gt;&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Press Ctrl + F12&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would produce a list of all sections where the variable is used and would display the list in the&amp;nbsp; Find Symbol Results window:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Find All References&quot; height=&quot;504&quot; src=&quot;http://www.functionx.com/csharp/editor/far2.gif&quot; width=&quot;627&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To access a particular section where the variable is used, double-click its entry in the list.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Cutting, Copying, and Pasting Code&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Normally, from your knowledge of using computers, you probably already know how to select, cut, and copy text. These two operations can be valuable to save code in Microsoft Visual Studio. This means that, if you have code you want to use in different sections, you can preserve it somewhere to access it whenever necessary.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To save code to use over and over again, first type the code in any text editor, whether in Notepad, Microsoft Word, or the Code Editor of Microsoft Visual Studio. You can use code from any document where text can be copied, including a web page. Select that code and copy it to the clipboard. To preserve it, in Microsoft Visual Studio, display the Toolbox (on the main menu, you can click View -&amp;gt; Toolbox). Right-click an empty area on the Toolbox and click Paste:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Toolbox&quot; height=&quot;407&quot; src=&quot;http://www.functionx.com/csharp/windows/toolbox1.gif&quot; width=&quot;322&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
An alternative is to select the code, whether in the Code Editor or in a text editor. Then drag it and drop it on the Toolbox. In the same way, you can add different code items to the Toolbox. After pasting or adding the code to the Toolbox, it becomes available. To use that code, drag it from the Toolbox and drop it in the section of the Code Editor where you want to use it.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Renaming a Variable&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
As we will see throughout our lessons, there are many names you will use in your programs. After creating a name, in some cases you will have to change it. You can find where the name is and edit it. If the name is used in many places, you can continue looking for it and modify it. There is a chance you will make a mistake. If you are writing your code using a text editor, you can use the Edit -&amp;gt; Replace option of the main menu to find and replace every instance of that name. You can use the same approach in the Code Editor. Unfortunately, this technique works for only one file. If your project has many files and the name is used in those files, it would be cumbersome to remember to change the name in all of them.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Microsoft Visual Studio makes it easy to find and change a name wherever it is used. Consider the following code:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal;&quot;&gt;class Order
{
    static void Main()
    {
        int nbr = 148;

        System.Console.WriteLine(nbr);
    }
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To change the name of a variable, in the Code Editor:&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Double-click the name of the variable and edit (change) it. The name will then have a small underline:&lt;br /&gt;&lt;br /&gt;&lt;img alt=&quot;Rename&quot; height=&quot;220&quot; src=&quot;http://www.functionx.com/csharp/editor/rename2.gif&quot; width=&quot;346&quot; /&gt;&lt;br /&gt;&lt;br /&gt;If you position your mouse on it, a tag would appear and you can click the arrow to reveal a short menu:&lt;br /&gt;&lt;br /&gt;&lt;img alt=&quot;Rename&quot; height=&quot;227&quot; src=&quot;http://www.functionx.com/csharp/editor/rename2b.gif&quot; width=&quot;417&quot; /&gt;&lt;br /&gt;&lt;br /&gt;If you click the first option, all instances of the variable would be changed. If you want to display a preview window (next), click the second option&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Right-click it, position the mouse on Refactor, and click Rename...&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;sectover&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal; overflow-x: auto; overflow-y: auto; width: 640px;&quot;&gt;&lt;img alt=&quot;Rename&quot; height=&quot;466&quot; src=&quot;http://www.functionx.com/csharp/editor/rename1.gif&quot; width=&quot;691&quot; /&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would display the Rename dialog box with the primary name. If you want to change it, type the new name:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Rename&quot; height=&quot;301&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/rename1.gif&quot; width=&quot;511&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you want the studio to find and change the name inside the comments, click the Search in Comments check box. If the name is used in strings and you want to replace it, click the Search in Strings check box. When you click OK, the Preview Changes - Rename dialog box would come up. It shows the various parts where the name is used and will be replaced:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Rename&quot; height=&quot;451&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/rename2.gif&quot; width=&quot;562&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you still want to replace, click Apply.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Accessing a Variable&#39;s Declaration&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you create a long document that has many lines of code, in a certain section you may encounter a variable but you want to find out where it was declared. If you are using Microsoft Visual Studio, to access the place where a variable was declared:&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Right-click the variable and click Go To Definition...&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;img alt=&quot;Go To Definition&quot; height=&quot;676&quot; src=&quot;http://www.functionx.com/csharp/windows/goto1.gif&quot; width=&quot;654&quot; /&gt;&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Click the name of the variable and press Shift + F2&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
In both cases, the caret would jump to where the variable was declared.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Accessing a Line of Code by its Index&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you are using the Code Editor of Microsoft Visual Studio, if you create a long document that has many lines of code, if you want to jump to a certain line of code:&lt;/div&gt;
&lt;ul style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;On the main menu, click Edit -&amp;gt; Go To...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Press Ctrl + G&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This would display a dialog box. Enter the line number and click OK or press Enter.&lt;/div&gt;
&lt;span style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;&lt;a href=&quot;http://99healthtipz.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Application: Ending the Lesson&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;Close your programming environment&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;When asked whether you want to save, click No&lt;/li&gt;
&lt;/ol&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</description><link>http://99materials.blogspot.com/2012/02/lesson-no4.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3889981274156227716.post-4625745597148804344</guid><pubDate>Sat, 11 Feb 2012 13:00:00 +0000</pubDate><atom:updated>2012-02-11T05:06:20.741-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">basics</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">program</category><category domain="http://www.blogger.com/atom/ns#">values</category><category domain="http://www.blogger.com/atom/ns#">variables</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio</category><title>Introduction to Values of a Program</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;&lt;b&gt;Lesson no.3&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold; text-align: left;&quot; width=&quot;19&quot; /&gt;&lt;span style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold; text-align: left;&quot;&gt;Application: Introducing Variables&lt;/span&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Start Microsoft Visual C# 2010 Express or Microsoft Visual Studio 2010&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;table border=&quot;0&quot; style=&quot;width: 500px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Author Note&quot; border=&quot;0&quot; height=&quot;29&quot; src=&quot;http://www.functionx.com/images/authornote1.gif&quot; width=&quot;45&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;432&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;From now on, we will only refer to Microsoft Visual C#&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;To create a new application, on the Start Page, click New Project...&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;In the middle list, click Empty Project&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Change the Name to&amp;nbsp;&lt;b&gt;gdcs2&lt;/b&gt;&amp;nbsp;(which stands for Georgetown Dry Cleaning Services 2)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Click OK&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;To create a file for the code, on the main menu, click Project -&amp;gt; Add New Item...&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;In the middle list, click Code File&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Change the Name to&amp;nbsp;&lt;strong&gt;CleaningOrder&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Click Add&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;In the empty document, type the following:&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Order
{
    static void Main()
    {
     System.Console.WriteLine(&quot;Georgetown Dry Cleaning Services&quot;);
        System.Console.ReadKey();
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Names&quot;&gt;&lt;/a&gt;Names&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A variable must have a name and there are stricts rules you must follow to create a name. To start, there are words, called keywords, that you must not use because the language itself uses them. These keywords are:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 660px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#abstract&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;abstract&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson18.htm#continue&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;continue&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson40.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;finally&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#interface&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;interface&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson52.htm#out&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;out (generic)&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#short&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;short&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson30.htm#typeof&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;typeof&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;as&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#decimal&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;decimal&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;fixed&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#interface&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;internal&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson07AllMethods.htm#out&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;out (methods)&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson05.htm#sizeof&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;sizeof&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#uint&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;uint&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson22.htm#Base&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;base&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#default&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;default&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#float&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;float&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#is&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;is&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#override&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;override&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;stackalloc&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#ulong&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;ulong&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#bool&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;bool&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson53.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;delegate&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson18.htm#for&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;for&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson19.htm#lock&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;lock&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson34.htm#params&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;params&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson07AllMethods.htm#static&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;static&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;unchecked&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#switch&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;break&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson18.htm#do&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;do&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson37.htm#forin&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;foreach&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#long&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;long&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson06.htm#private&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;private&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#string&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;string&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#unsafe&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;unsafe&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#Byte&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;byte&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#double&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;double&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson18.htm#goto&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;goto&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson10.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;namespace&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#Protected&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;protected&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson10a.htm#Struct&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;struct&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#ushort&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;ushort&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#switch&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;case&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#else&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;else&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#if&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;if&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson48.htm#new&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;new (generic)&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson10a.htm#private&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;public&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#switch&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;switch&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson10.htm#using&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;using&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson32.htm#Except&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;catch&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#enum&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;enum&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;implicit&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/keywords/new2.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;new (LINQ)&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson07AllMethods.htm#readonly&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;readonly&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson10a.htm#This&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;this&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#Virtual&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;virtual&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#char&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;char&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson53.htm#Events&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;event&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson37.htm#forin&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;in (foreach)&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson22.htm#NewMod&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;new (variable)&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson09a.htm#ref&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;ref&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson32.htm#Throw&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;throw&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#void&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;void&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;checked&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;explicit&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson52.htm#in&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;in (generic)&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#null&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;null&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson07.htm#Return&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;return&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#bool&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;true&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;volatile&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson10a.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;class&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson11.htm#extern&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;extern&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#int&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;int&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#object&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;object&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#sbyte&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;sbyte&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson32.htm#Except&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;try&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson18.htm#while&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;while&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#constants&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;const&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson17.htm#bool&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;false&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson24.htm#operator&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;operator&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#sealed&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;sealed&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;There are other names that are not considered C#Keywords but should be avoided because they may cause a conflict in your code. They are referred to as contextual keywords and they are:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 660px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson53.htm#add&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;add&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson10.htm#global&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;global&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/keywords/let.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;let&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#Partial&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;partial (type)&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson21.htm#set&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;set&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson48.htm#where&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;where (generic)&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson11.htm#dynamic&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;dynamic&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/keywords/group.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;group&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/keywords/orderby.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;orderby&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson53.htm#add&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;remove&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson21.htm#value&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/keywords/where2.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;where (query)&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/keywords/from.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;from&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/keywords/into.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;into&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson29.htm#Partial&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;partial (method)&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/keywords/from.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;select&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#var&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;var&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson46.htm#yield&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;yield&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson21.htm#get&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;get&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://www.functionx.com/csharp/keywords/join.htm&quot; style=&quot;background-color: white; color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;join&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;As mentioned already, there are rules you must observe to name anything in your program. There are rules specified by the C# language standard but there are also rules you can add for your own taste. In our lessons, here are the rules we will follow to name things:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;A name can consist of one letter (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, or z). Although these are letters of the US English alphabet, the C# language accepts international (non-US English) letters (that follow the Unicode standard)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;The C# language allows that a name be made of an underscore only _. Although this is allowed, you should refrain from using the underscore as the only character of a name. It makes the code difficult to read&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Except for the underscore, special symbols are not used anywhere in a name. Therefore, don&#39;t use |, !, &quot;, /, $, %, ?, &amp;amp;, *, (, ), +, #, \, @, &amp;lt;, &amp;gt;, [, ], ;, {, }, or the comma inside any name&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;If the name is made of more than one character, it must start with either a letter or an underscore&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;After the first letter or underscore, the name can have a combination of letters, digits (0, 1, 2, 3, 4, 5, 6, 7, 8, or 9), and/or underscores&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;The name cannot have a space&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Besides these rules, you can also create your own rules but that follow the above restrictions. For example:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;It the name of a variable is in one word, many people use lowercase letters&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;If the name is a combination of words, many people use the camel notation in which the first word is in lowercase and the first letter of each subsequent word is in uppercase&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;C# is case-sensitive. This means that the names Case, case, and CASE are completely different. For example, main is always written&amp;nbsp;&lt;b&gt;Main&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Values and Variables on the Console&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The applications of a C# language display their results in a dark object called the DOS window. Here is an example:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;331&quot; src=&quot;http://www.functionx.com/csharp/windows/dos1.gif&quot; width=&quot;668&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;To display a value in this window, you can enter it in the parentheses of&amp;nbsp;&lt;b&gt;System.Console.Write()&lt;/b&gt;&amp;nbsp;or&lt;b&gt;System.Console.WriteLine()&lt;/b&gt;. Here are two examples:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
        &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;System.Console.WriteLine(248);
        System.Console.Write(1);&lt;/span&gt;
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;If you write&amp;nbsp;&lt;b&gt;System.Console.WriteLine()&lt;/b&gt;&amp;nbsp;with empty parentheses, an empty line would be displayed.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;NumericSystems&quot;&gt;&lt;/a&gt;Numeric Representations&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Introduction&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A computer program is a series of instructions that tell the computer what to do, when to do something, and how to do it. You, as the programmer, create these instructions. As mentioned in the previous lessons, you write the instructions in a text editor based on rules of the C# language but using a familiar language, which is English. An example of an instruction would ask the program to store a number in the computer memory. Another instruction could ask the computer to add a number to the previously stored number. Another instructor could ask the computer to move something from one part to another. The instructions you write must be transmitted to the computer.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;As you can imagine, different people write various and all types of instructions. In fact, since C# is not the only computer language in the world, people use different means of giving instructions to the machine. To understand all of them and in fact to bring all these disparate instructions to one common language, the computer uses its own that all languages should understand and must follow. And actually, they don&#39;t. Instead, a computer language such as C#, that uses English, submits its instructions to an intermediary program named an assembler. The assembler transforms the previous instructions into a shorter version that uses new words but that are still in English. Using this new version, the assembler transforms the instructions in an even more simplified version (in reality, there is nothing simple with this process) that the computer can understand.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The simplified language the computer understands uses a combination of 1s and 0s. This means that the assembler must bring your C# instructions to 1s and 0s. The combinations or sequences of 1s and 0s indicate what needs to be done.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;BinarySystem0&quot;&gt;&lt;/a&gt;Numeric Systems&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;We are familiar with the system that uses 10 digits as 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. A combination of these 10 digits can produce any number we want. Because this system uses 10 digits. It is named the decimal system.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;As mentioned already, the language of the computer is made of combinations of two values: 1 and 0. This is called the binary system (because it is based on two values only). Examples of numbers in the binary system, or binary numbers, are 1, 10, 1001, or 1010110111. When you submit a value to a computer, the value must be changed into a compbination of 1s and 0s.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;You can imagine how hard it would be to represent a large number. One alternative uses the 10 digits of the decimal system and uses the first 6 letters of the English alphabets: A, B, C, E, D, and F or a, b, c, d, e, and f. This means that this system uses a combination of 16 characters to create any number. For this reason, it is called the hexadecimal system. To differenciate a hexadecimal number from a word, the number must start with 0x. Examples are 0x2, or 0xED8, or 0x962AAED3.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Signed&quot;&gt;&lt;/a&gt;Signed and Unsigned&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;One of the characteristics of a number is to indicate whether it is lower than 0, equal to 0, or higher than 0. A number that is lower than 0 is said to be negative. Such a number must be preceded by -. If a number is higher than 0, it is said to be positive. Such a number can be preceded by + or no sign. The ability for a number to hold a sign makes it possible to say that such a number is&amp;nbsp;&lt;strong&gt;signed&lt;/strong&gt;. It is important to know that, when a number is said to be&lt;strong&gt;signed&lt;/strong&gt;, that number can be negative or positive.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Any number that uses neither - or + is said to be positive and, because it doesn&#39;t use a sign, it is said to be&lt;strong&gt;unsigned&lt;/strong&gt;. Normally, the 0 number doesn&#39;t use a sign.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Variable Declaration&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Representing Memory Bits&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;We mentioned that, to store a value in the computer memory, you must indicate how much memory you will need and you must give it a name. The amount of memory you need is referred to as a data type. As you can imagine, different values require different amount of memory. We also mentioned that the computer considers a value as a combination of 1s and 0s. The area of memory that holds a single piece of 1 or 0 is called a bit.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Consider a bit like a small object (like a cup of a cup cake) that can be full or can be empty:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Variable Representation&quot; border=&quot;0&quot; height=&quot;152&quot; src=&quot;http://www.functionx.com/illustrations/variable1.gif&quot; width=&quot;411&quot; /&gt;&lt;/span&gt;&lt;/center&gt;&lt;br /&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;When it is empty, a bit holds a value or 0. When it is full, it holds a value of 1:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Variable Representation&quot; border=&quot;0&quot; height=&quot;118&quot; src=&quot;http://www.functionx.com/illustrations/variable2.gif&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/center&gt;&lt;br /&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Different combinations of empty (0) and full (1) objects produce the necessary values.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Declaring a Variable&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;To use a combination of bits, you let the compiler know that you want a variable. This is referred to as declaring a variable. As mentioned already, the amount of memory you need is called a data type. Therefore, when declaring a variable, you must specify the desired data type. In C# (and many other languages, but not all languages), a data type is represented by a keyword (in some languages such as C and C++, a data type can be specified using a combination of keywords).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;To actually declare a variable, you have two options.&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;If you know the type of value you want to store in memory, use the following formula:&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;i&gt;DataType&lt;/i&gt; &lt;i&gt;VariableName&lt;/i&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
In later sections, we will seen what data types are available&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;If you don&#39;t want to specify the type of value, you have other options&lt;/span&gt;&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;You can use the&amp;nbsp;&lt;strong&gt;var&lt;/strong&gt;&amp;nbsp;keyword&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;You can use the&amp;nbsp;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#object&quot; style=&quot;color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;object&lt;/a&gt;&amp;nbsp;keyword&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;You can use the&amp;nbsp;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm&quot; style=&quot;color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;dynamic&lt;/a&gt;&amp;nbsp;keyword&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Initializing a Variable&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The Nullity of a Variable&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;When you declare a variable, you ask the compiler to reserve a certain area and amount of memory to eventually hold a value for that variable. At that time, no clear value is stored in that reserved area of memory (some languages, such as Visual Basic, put an initial value in that area, depending on the type of value you specified). Instead, the area gets filled with garbage (with some languages, such as C/C++, you can find out what that garbage is; some other languages, such as C#, don&#39;t allow you to access that garbage; after all, it is garbage and it is useless). A value is referred to as null when it cannot be clearly determined. A null value is not 0 because 0 is a an actual value.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;In C#, normally, not all variables can hold null values. When declaring a variable, to indicate that it can hold either an actual value or it can be null, after its data type, add the question mark. This can be done as follows:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;i&gt;DataType&lt;/i&gt;&lt;span style=&quot;color: red;&quot;&gt;?&lt;/span&gt; &lt;i&gt;VariableName&lt;/i&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Assigning a Value to a Variable&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Initializing a variable consists of storing an initial value in that reserved area. The technique you use is the same for all types but the type of value you want to store depends: you should not and must not try to store just any type of value.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;To assign a value to a variable:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;var&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;var0&quot;&gt;&lt;/a&gt;Type its data type, followed by a name for the variable, followed by =, followed by the desired but appropriate value. This can be done as follows:&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span style=&quot;color: red;&quot;&gt;&lt;em&gt;DataType VariableName&lt;/em&gt; = &lt;i&gt;DesiredValue&lt;/i&gt;;&lt;/span&gt;
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
If you use this approach, you can first declare the variable by specifing its name and its data type ended by a semicolon. Then, on another line, type the name of the variable, followed by =, and the value. This can be done as follows:&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span style=&quot;color: red;&quot;&gt;&lt;i&gt;DataType VariableName&lt;/i&gt;;

 &lt;i&gt;VariableName&lt;/i&gt; = &lt;i&gt;DesiredValue&lt;/i&gt;;&lt;/span&gt;
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Type the keyword&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;followed by the variable&#39;s name, followed by =, and followed by the value. This can be done as follows:&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span style=&quot;color: red;&quot;&gt;var &lt;em&gt;VariableName&lt;/em&gt; = &lt;i&gt;DesiredValue&lt;/i&gt;;&lt;/span&gt;
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
This time, you must do this at once: you cannot first declare the variable on one line using the&amp;nbsp;&lt;strong&gt;var&lt;/strong&gt;&amp;nbsp;keyword and ending with a semicolon, then initialize the variable on another line. You would receive an error. The following formula will not work:&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span style=&quot;color: red;&quot;&gt;var &lt;em&gt;VariableName&lt;/em&gt;;
 
 &lt;i&gt;VariableName&lt;/i&gt; = &lt;i&gt;DesiredValue&lt;/i&gt;;&lt;/span&gt; // Error
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Two other options consist of using the&amp;nbsp;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson03.htm#object&quot; style=&quot;color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;object&lt;/a&gt;&amp;nbsp;or the&amp;nbsp;&lt;a href=&quot;http://www.functionx.com/csharp/Lesson10#dynamic&quot; style=&quot;color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot;&gt;dynamic&lt;/a&gt;&amp;nbsp;keywords&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;When you declare a variable and initialize it, the compiler stores its value in the memory that was reserved for it. You can then access that value when you want. And of course, you can change it if necessary.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;null&quot;&gt;&lt;/a&gt;The null Value&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;As mentioned already, when declaring a variable, you can indicate that it can hold a null value by adding a question mark to its data type. To let you initialize the variable, the C# language provides the&amp;nbsp;&lt;strong&gt;null&lt;/strong&gt;&amp;nbsp;keyword. To initialize a variable with it, simply assign&amp;nbsp;&lt;strong&gt;null&lt;/strong&gt;&amp;nbsp;to it:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;You can assign null when declaring the variable:&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;i&gt;DataType&lt;/i&gt;&lt;span style=&quot;color: red;&quot;&gt;?&lt;/span&gt; &lt;em&gt;VariableName&lt;/em&gt; &lt;span style=&quot;color: red;&quot;&gt;= null&lt;/span&gt;;
 
 // You can use the variable
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;You can assign null after the variable has been declared:&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;i&gt;DataType&lt;/i&gt;&lt;span style=&quot;color: red;&quot;&gt;?&lt;/span&gt; &lt;em&gt;VariableName&lt;/em&gt;;
 
 &lt;i&gt;VariableName&lt;/i&gt; &lt;span style=&quot;color: red;&quot;&gt;= null;&lt;/span&gt;
 
 // You can use the variable
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The rule is that you must assign the value before the variable can be used.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A Byte&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A Combination of Four Bits&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Although there are cases where you can use or access a bit, you cannot actually store a value in it. That is, you cannot ask the compiler to store the value 1 is a certain bit. This is because even the simplest value in C# needs more than one bit to store itself. Still, the minimum combination of bits you can be concerned with is four (in some languages, or in some implementations of the Assembly language, a combination of four bits is called a nibble).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;By creating different combinations of empty (0) and full (1) objects grouped in four, you can get 16 combinations:&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; border=&quot;1&quot; bordercolor=&quot;silver&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; width: 400pt;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Combinations of Four Bits&quot; border=&quot;0&quot; height=&quot;127&quot; src=&quot;http://www.functionx.com/illustrations/variable3a.gif&quot; width=&quot;321&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Combinations of Four Bits&quot; border=&quot;0&quot; height=&quot;127&quot; src=&quot;http://www.functionx.com/illustrations/variable3b.gif&quot; width=&quot;321&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Combinations of Four Bits&quot; border=&quot;0&quot; height=&quot;127&quot; src=&quot;http://www.functionx.com/illustrations/variable3c.gif&quot; width=&quot;321&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Combinations of Four Bits&quot; border=&quot;0&quot; height=&quot;127&quot; src=&quot;http://www.functionx.com/illustrations/variable3d.gif&quot; width=&quot;321&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;In a combination of four bits, the bits are counted as 0, 1, 2, and 3. The bit on the most right side is Bit 0 and it is called the low order bit (or LOBIT):&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Four Bits&quot; border=&quot;0&quot; height=&quot;217&quot; src=&quot;http://www.functionx.com/illustrations/variable4.gif&quot; width=&quot;517&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The last bit, the bit on the most left side, is Bit 3 and it is called the high order bit (or HIBIT).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;If you represent the four-combination bits in binary formats, you get 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111, which produces 16 combinations. In decimal format, these combinations produce 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, and 15. In hexadecimal format, these combinations produce 0x0 (0x0000), 0x1 (or 0x0001), 0x2 (or 0x0002), 0x3 (or 0x0003), 0x4 (or 0x0004), 0x5 (0x0005), 0x6 (0x0006), 0x7 (or 0x0007), 0x8 (or 0x0008), 0x9 (or 0x0009), 0xA (or 0xa), 0xB (or 0xb), 0xC (or 0xc), 0xD (or 0xd), 0xE (or 0xe), and 0xF (or 0xF).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;As a result, we get a table as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; style=&quot;width: 300px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Decimal&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Binary&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Hexadecimal&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0000&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x0&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0001&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x1&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;2&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0010&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x2&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;3&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0011&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x3&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;4&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0100&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x4&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;5&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0101&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x5&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;6&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0110&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x6&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;7&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0111&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x7&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;8&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1000&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x8&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;9&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1001&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x9&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;10&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1010&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0xA&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;11&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1011&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0xB&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;12&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1100&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0xC&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;13&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1101&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0xD&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;14&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1110&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0xE&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;15&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1111&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;33%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0xF&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;Table of Numeric Conversions&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The minimum and maximum values in a combination of four bits are:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; height=&quot;60&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Decimal&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Hexadecimal&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Binary&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Minimum&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x0&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0000&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Maximum&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;15&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0xf&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; height=&quot;16&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1111&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;You will never be concerned with combinations of four bits because you cannot store anything in it (these combinations are too small). We presented them here for two reasons. First, you should be aware of such a thing as a combination of four bits so you will know where the number 16 comes from when you see it mentioned in different places. Second, it allowed us the introduce the byte.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A Combination of 8 Bits&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A byte is a combination of eight adjacent bits. The first bit, located on the most right side, is Bit 0. The last bit, on the most left side, is Bit 7:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Byte Representation&quot; border=&quot;0&quot; height=&quot;202&quot; src=&quot;http://www.functionx.com/illustrations/byte1.gif&quot; width=&quot;354&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Bit 0 is called the least significant bit. It is also valled the low order bit or&amp;nbsp;&lt;b&gt;LOBIT&lt;/b&gt;. Bit 7 is called the most significant bit. It is also called the high order bit or&amp;nbsp;&lt;b&gt;HIBIT&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;If you create different combinations of empty (0) and full (1) objects grouped in eight, in binary formats, you get 00000000, 00000001, 00000010, 00000011, 00000100, 00000101, 00000110, 00000111, 00001000, 00001001, 00001010, 00001011, 00001100, 00001101, 00001110, 00001111, etc, up to 11111111. When a large number is represented in binary format, it can be difficult to read. An alternative is to create groups of four bits so that instead of writing 01001011, you would write 0100 1011.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;To evaluate the number of combinations in decimal format, you use the number 2 that represents decimal, you elevate it to the power of the position of the bit (0, 1, 2, 3, 4, 5, 6, or 7), and you add the number. This can be done as follows:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;2&lt;sup&gt;7&lt;/sup&gt; + 2&lt;sup&gt;6&lt;/sup&gt; + 2&lt;sup&gt;5&lt;/sup&gt; + 2&lt;sup&gt;4&lt;/sup&gt; + 2&lt;sup&gt;3&lt;/sup&gt; + 2&lt;sup&gt;2&lt;/sup&gt; + 2&lt;sup&gt;1&lt;/sup&gt; + 2&lt;sup&gt;0&lt;/sup&gt;
= 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
= 255&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Therefore, we 255 possible combinations of eight bits. The combinations can also be represented in hexadecimal format as 0x1, 0x2, ..., 0xA, 0xA1, ..., 0xC8, ..., up to 0xFFFF&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;In the three numeric systems, we get:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Decimal&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Hexadecimal&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Binary&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Minimum&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0x0&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0000&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white; font-size: x-small;&quot;&gt;Maximum&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;255&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;0xff&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;25%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1111 1111&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The minimum storage area offered by the (Intel) computer is the byte. As you know already, a byte is a group of 8 consecutive bits. The amount of memory space offered by a byte can be used to store just a single symbol, such as those you see on your keyboard. These symbols, also called characters, have been organized by the American Standard Code for Information Exchange (ASCII) in a set list. But, ASCII uses only 128 decimal numbers (based on a 7-bit format) to represent symbols counted from 0 to 127. To compensate for the remaining 1 bit, IBM used it to organize special characters, foreign language characters, mathematical symbols, small graphics, etc. Each one of these characters has a decimal, a hexadecimal, and a binary equivalents.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Each one of the characters you see on your keyboard is represented as a numeric value, but whether it appears as a number, a letter, or a symbol, each one of these is considered a character. To display any character on your screen, you can pass it to&amp;nbsp;&lt;b&gt;Write()&lt;/b&gt;&amp;nbsp;or&amp;nbsp;&lt;b&gt;WriteLine()&lt;/b&gt;&amp;nbsp;and include the character between single-quotes, as follows:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 System.Console.WriteLine(&lt;span style=&quot;color: red;&quot;&gt;&#39;n&#39;&lt;/span&gt;);
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Code&quot; height=&quot;178&quot; src=&quot;http://www.functionx.com/csharp/windows/code1.gif&quot; width=&quot;359&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The file was saved as Exercise.cs in a folder named Variables on the C:\ drive. When compiled and executed, it displayed the letter n&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Variable&quot; border=&quot;0&quot; height=&quot;246&quot; src=&quot;http://www.functionx.com/csharp/cmd/variables1.gif&quot; width=&quot;677&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;char&quot;&gt;&lt;/a&gt;Characters&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;In the English alphabet, a letter is one of the following symbols: a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, and Z. Besides these readable characters, the following symbols are called digits and they are used to represent numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. In addition, some symbols on the (US QWERTY) keyboard are also called characters or symbols. They are ` ~ ! @ # $ % ^ &amp;amp; * ( ) - _ = + [ { ] } \ | ; : &#39; &amp;lt; ? . / , &amp;gt; &quot;. Besides the English language, other languages use other or additional characters that represent verbal or written expressions.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;C# recognizes that everything that can be displayed as a symbol is called a character. To declare a variable whose value would be a character, you can use the&amp;nbsp;&lt;strong&gt;var&lt;/strong&gt;&amp;nbsp;keyword and initialize the variable with a character in single-quotes. Here is an example:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
        &lt;span style=&quot;color: red;&quot;&gt;var gender = &#39;F&#39;;&lt;/span&gt;

        System.Console.Write(&quot;Student Gender: &quot;);
        System.Console.WriteLine(gender);
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;This would produce:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Variable&quot; border=&quot;0&quot; height=&quot;330&quot; src=&quot;http://www.functionx.com/csharp/cmd/variables2.gif&quot; width=&quot;677&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; width: 680px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Alternatively, you can use the&amp;nbsp;&lt;b&gt;char&lt;/b&gt;&amp;nbsp;keyword. Here is an example:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;char gender = &#39;M&#39;;&lt;/span&gt;

 System.Console.Write(&quot;Student Gender: &quot;);
 System.Console.WriteLine(gender);
 System.Console.ReadKey();
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;This would produce:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Student Gender: M&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot; width=&quot;120&quot;&gt;&lt;strong style=&quot;background-color: white;&quot;&gt;Note&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;All C-based languages support the char data type&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;escsq&quot;&gt;&lt;/a&gt;Escape Sequences&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; width: 680px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;An escape sequence is a special character that displays non-visibly. For example, you can use this type of character to indicate the end of line, that is, to ask the program to continue on the next line. An escape sequence is represented by a backslash character, \, followed by another character or symbol. For example, the escape sequence that moves to the next line is \n.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;An escape can be included in single-quotes as in &#39;\n&#39;. It can also be provided in double-quotes as &quot;\n&quot;.&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Note:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;All C-based languages support these escape sequencces&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The C# language recognizes other escape sequences:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; style=&quot;width: 524px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;71&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white;&quot;&gt;Escape Sequence&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white;&quot;&gt;Name&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#666666&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;339&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: white;&quot;&gt;Description&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\a&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Bell (alert)&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Makes a sound from the computer&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\b&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Backspace&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Takes the cursor back&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\t&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Horizontal Tab&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Takes the cursor to the next tab stop&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\n&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;New line&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Takes the cursor to the beginning of the next line&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\v&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Vertical Tab&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Performs a vertical tab&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\f&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Form feed&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\r&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Carriage return&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Causes a carriage return&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\&quot;&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Double Quote&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Displays a quotation mark (&quot;)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\&#39;&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Apostrophe&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Displays an apostrophe (&#39;)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\?&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Question mark&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Displays a question mark&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\\&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Backslash&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Displays a backslash (\)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;71&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;\0&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot; width=&quot;104&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Null&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;339&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Displays a null character&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;To use an escape sequence, you can also first declare a char variable and initialize it with the desired escape sequence in single-quotes.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Byte&quot;&gt;&lt;/a&gt;The Byte Data Type&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; width: 680px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A byte is an unsigned number whose value can range from 0 to 255 and therefore can be stored in one byte. You can use it when you know a variable would hold a relatively small value such as people&#39;s age, the number of children of one mother, etc. To declare a variable that would hold a small natural number, use the&amp;nbsp;&lt;b&gt;byte&lt;/b&gt;&amp;nbsp;keyword. Here is an example:&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Note:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;C and C++ don&#39;t have a byte data type&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;byte Age;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;You can initialize a&amp;nbsp;&lt;b&gt;byte&lt;/b&gt;&amp;nbsp;variable when declaring it or afterwards. Here is an example that uses the&amp;nbsp;&lt;b&gt;byte&lt;/b&gt;&amp;nbsp;data type:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span style=&quot;color: red;&quot;&gt;byte age = 14;&lt;/span&gt;
 System.Console.Write(&quot;Student Age: &quot;);
 System.Console.WriteLine(age);

 &lt;span style=&quot;color: red;&quot;&gt;age = 12;&lt;/span&gt;
 System.Console.Write(&quot;Student Age: &quot;);
 System.Console.WriteLine(age);
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;This would produce:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Byte&quot; border=&quot;0&quot; height=&quot;174&quot; src=&quot;http://www.functionx.com/csharp/cmd/variables3.gif&quot; width=&quot;677&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Make sure you don&#39;t use a value that is higher than 255 for a&amp;nbsp;&lt;b&gt;byte&lt;/b&gt;&amp;nbsp;variable, you would receive an error. When in doubt, or when you think that there is a possibility a variable would hold a bigger value, don&#39;t use the&amp;nbsp;&lt;b&gt;byte&lt;/b&gt;&amp;nbsp;data type as it doesn&#39;t like exceeding the 255 value limit.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Alternatively, you can also use the&amp;nbsp;&lt;strong&gt;var&lt;/strong&gt;&amp;nbsp;keyword to declare the variable and initialize it with a small number. Here is an example:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
        &lt;span style=&quot;color: red;&quot;&gt;var age = 14;&lt;/span&gt;
        System.Console.Write(&quot;Student Age: &quot;);
        System.Console.WriteLine(age);

        age = 12;
        System.Console.Write(&quot;Student Age: &quot;);
        System.Console.WriteLine(age);
 System.Console.ReadKey();
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Instead of a decimal number, you can also initialize an integral variable with a hexadecimal value. When doing this, make sure the decimal equivalent is less than 255. Here is an example:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
        var number = &lt;span style=&quot;color: red;&quot;&gt;0xFE&lt;/span&gt;;

        System.Console.Write(&quot;Number: &quot;);
        System.Console.WriteLine(number);
 System.Console.ReadKey();
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;This would produce:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Number: 254
Press any key to continue . . .&lt;/span&gt;&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using Bytes&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Change the Program.cs file as follows:&amp;nbsp;&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Order
{
    static void Main()
    {
        &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;byte? shirts = null;
        byte? pants  = null;

        shirts = 4;
        pants  = 1;

        System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;========================&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty&quot;);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.WriteLine(shirts);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.WriteLine(pants);
        System.Console.WriteLine(&quot;========================&quot;);&lt;/span&gt;
        
        System.Console.ReadKey();
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;To execute the application, on the main menu, click Debug -&amp;gt; Start Debugging. This would produce:&amp;nbsp;&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;-/- Georgetown Cleaning Services -/-
========================
Item Type  Qty
------------------------
Shirts      4
Pants       1
========================&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;To close the DOS window, press Enter&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;sbyte&quot;&gt;&lt;/a&gt;Signed Byte&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A&amp;nbsp;&lt;b&gt;byte&lt;/b&gt;&amp;nbsp;number is referred to as signed if it can hold a negative or a positive value that ranges from -128 to 127, which can therefore fit in a byte. To declare a variable for that kind of value, use the&amp;nbsp;&lt;b&gt;sbyte&lt;/b&gt;&amp;nbsp;keyword. Here is an example:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;sbyte roomTemperature = -88;&lt;/span&gt;

 System.Console.Write(&quot;When we entered, the room temperature was &quot;);
 System.Console.WriteLine(roomTemperature);
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;This would produce:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;When we entered, the room temperature was -88&lt;/span&gt;&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Word&quot;&gt;&lt;/a&gt;A Word&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Introduction&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A word is a group of 16 consecutive bits. The bits are counted from right to left starting at 0:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;101&quot; src=&quot;http://www.functionx.com/illustrations/word1.gif&quot; width=&quot;463&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Considered as a group of 16 bits, the most right bit of a word, bit 0, is called the least significant bit or low order bit or LO bit or&amp;nbsp;&lt;b&gt;LOBIT&lt;/b&gt;. The most left bit, bit 15, is called the most significant bit or high order bit or HI bit or&amp;nbsp;&lt;b&gt;HIBIT&lt;/b&gt;. The other bits are referred to using their positions: bit 1, bit 2, bit 3, etc.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Considering that a word is made of two bytes, the group of the right 8 bits is called the least significant byte or low order byte or LO byte or&amp;nbsp;&lt;b&gt;LOBYTE&lt;/b&gt;. The other group is called the most significant byte or high order byte or HI byte or&amp;nbsp;&lt;b&gt;HIBYTE&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The representation of a word in binary format is 0000000000000000. To make it easier to read, you can group bits by 4, like this: 0000 0000 0000 0000. Therefore, the minimum binary value represented by a word is 0000 0000 0000 0000. The minimum decimal value of a word is 0. The minimum hexadecimal value you can store in a word is 0x0000000000000000. This is also represented as 0x00000000, or 0x0000, or 0x0. All these numbers produce the same value, which is 0x0.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;The maximum binary value represented by a word is 1111 1111 1111 1111. To find out the maximum decimal value of a word, you can use the base 2 formula, filling out each bit with 1:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;1*2&lt;sup&gt;15&lt;/sup&gt;+1*2&lt;sup&gt;14&lt;/sup&gt;+1*2&lt;sup&gt;13&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;12&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;11&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;10&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;9&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;8&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;7&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;6&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;5&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;4&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;3&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;2&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;1&lt;/sup&gt;&amp;nbsp;+ 1*2&lt;sup&gt;0&lt;/sup&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;= 32768 + 16384 + 8192 + 4096 + 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;= 65535&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;To find out the maximum hexadecimal number you can store in a word, replace every group of 4 bits with an f or F:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#C0C0C0&quot; style=&quot;width: 177px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;38&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1111&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;40&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1111&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;39&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1111&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;1111&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;38&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;f&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;40&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;f&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;39&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;f&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;font-size: 10pt;&quot; width=&quot;34&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;f&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; colspan=&quot;4&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;table border=&quot;0&quot; style=&quot;width: 100px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;= 0xffff&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;= 0xFFFF&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;= 0Xffff&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;= 0XFFFF&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;short&quot;&gt;&lt;/a&gt;Short Integers&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A word, which is a group of 16 contiguous bits or 2 bytes, can be used to hold a natural number. As we have studied, the maximum numeric value that can fit in a word is 65535. To declare a variable for such a value, you can use the&amp;nbsp;&lt;strong&gt;var&lt;/strong&gt;&amp;nbsp;keyword and initialize the variable with a value between -32768 et 32767. Here is an example:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
        &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;var schoolEffective = 1400;&lt;/span&gt; // Number of Students

        System.Console.Write(&quot;School Effective: &quot;);
        System.Console.WriteLine(schoolEffective);
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;This would produce:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;School Effective: 1400
Press any key to continue . . .&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Since the byte is used for characters and very small numbers, whenever you plan to use a number in your program, the minimum representation you should use is a word.&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; width: 680px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;A natural number is also called an integer. If you want to declare the variable using a data type, the smallest integer you can store in a word is declared with the&amp;nbsp;&lt;b&gt;short&lt;/b&gt;&amp;nbsp;keyword. Because a&lt;b&gt;short&lt;/b&gt;&amp;nbsp;integer is&amp;nbsp;&lt;b&gt;signed&lt;/b&gt;&amp;nbsp;by default, it can store a value that ranges from -32768 to 32767. Here is an example program that uses two&amp;nbsp;&lt;b&gt;short&lt;/b&gt;&amp;nbsp;integers:&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;strong style=&quot;background-color: white;&quot;&gt;Note:&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;C++ supports the&amp;nbsp;&lt;strong&gt;signed&lt;/strong&gt;&amp;nbsp;and the&amp;nbsp;&lt;strong&gt;signed short&lt;/strong&gt;data types.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;short numberOfPages;
 short temperature;&lt;/span&gt;

 numberOfPages = 842;
 temperature   = -1544;

 System.Console.Write(&quot;Number of Pages of the book: &quot;);
 System.Console.WriteLine(numberOfPages);
 System.Console.Write(&quot;Temperature to reach during the experiment: &quot;);
 System.Console.Write(temperature);
 System.Console.WriteLine(&quot; degrees\n&quot;);
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;This would produce:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Number of Pages of the book: 842
Temperature to reach during the experiment: -1544 degrees&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Because a short integer handles numbers that are larger than the signed&lt;b&gt;&amp;nbsp;byte&lt;/b&gt;, any variable you can declare for a signed&amp;nbsp;&lt;b&gt;byte&lt;/b&gt;&amp;nbsp;can also be declared for a&amp;nbsp;&lt;b&gt;short&lt;/b&gt;&amp;nbsp;variable.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;ushort&quot;&gt;&lt;/a&gt;Unsigned Short Integers&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; width: 680px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;parajust&quot; style=&quot;font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;If a variable must hold positive and relatively small numbers, it is referred as an unsigned short integer. Such a variable can be declared using either the&amp;nbsp;&lt;b&gt;var&lt;/b&gt;&amp;nbsp;or the&amp;nbsp;&lt;b&gt;ushort&lt;/b&gt;&amp;nbsp;keyword. An unsigned short integer can hold numbers that range from 0 to 65535 and therefore can fit in 16 bits. Here are examples:&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Note:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;the C++ equivalent is&lt;strong&gt;unsigned short&lt;/strong&gt;.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Exercise
{
    static void Main()
    {
 // These variables must hold only positive integers
 &lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;ushort numberOfTracks;
 ushort musicCategory;&lt;/span&gt;

 numberOfTracks = 16;
 musicCategory  = 2;

 System.Console.Write(&quot;This music album contains &quot;);
 System.Console.Write(numberOfTracks);
 System.Console.WriteLine(&quot; tracks&quot;);
 System.Console.Write(&quot;Music Category: &quot;);
 System.Console.Write(musicCategory);
 System.Console.WriteLine();
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;This would produce:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;This music album contains 16 tracks
Music Category: 2&lt;/span&gt;&lt;/pre&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Using Unsigned Short Integers&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;To use unsigned short integers, change the file as follows:&amp;nbsp;&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;class Order
{
    static void Main()
    {
        byte? shirts = null;
        byte? pants  = null;
        &lt;span style=&quot;color: red;&quot;&gt;ushort? otherItems = null;&lt;/span&gt;

        shirts     = 4;
        pants      = 1;
        &lt;span style=&quot;color: red;&quot;&gt;otherItems = 3;&lt;/span&gt;

        System.Console.WriteLine(&quot;-/- Georgetown Cleaning Services -/-&quot;);
        System.Console.WriteLine(&quot;========================&quot;);
        System.Console.WriteLine(&quot;Item Type  Qty&quot;);
        System.Console.WriteLine(&quot;------------------------&quot;);
        System.Console.Write(&quot;Shirts      &quot;);
        System.Console.WriteLine(shirts);
        System.Console.Write(&quot;Pants       &quot;);
        System.Console.WriteLine(pants);
        &lt;span style=&quot;color: red;&quot;&gt;System.Console.Write(&quot;Other Items &quot;);
        System.Console.WriteLine(otherItems);&lt;/span&gt;
        System.Console.WriteLine(&quot;========================&quot;);
        
        System.Console.ReadKey();
    }  
}&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;To execute the program, on the main menu, click Debug -&amp;gt; Start Debugging. This would produce:&amp;nbsp;&lt;/span&gt;&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;-/- Georgetown Cleaning Services -/-
========================
Order Date: 7/15/2002
------------------------
Item Type  Qty
------------------------
Shirts      4
Pants       1
Other Items 3
========================&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;To close the DOS window, press Enter&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Close your programming environment&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;When asked whether you want to save, click No&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 21px; font-weight: bold; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 19px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://99materials.blogspot.com/2012/02/introduction-to-values-of-program.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3889981274156227716.post-1815224889231361564</guid><pubDate>Thu, 09 Feb 2012 04:25:00 +0000</pubDate><atom:updated>2012-02-11T05:02:16.552-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">basics</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">managing files</category><category domain="http://www.blogger.com/atom/ns#">solution explorer</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio</category><title>Continuation</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #cc3300; font-family: &#39;Times New Roman&#39;, Garamond, Georgia, serif; font-size: 32px; font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: #fff9ee; color: #0b5394; font-family: Georgia, Utopia, &#39;Palatino Linotype&#39;, Palatino, serif; font-size: x-large; text-align: justify;&quot;&gt;Lesson2:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #cc3300; font-family: &#39;Times New Roman&#39;, Garamond, Georgia, serif; font-size: 32px; font-weight: bold; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Introduction to C# Projects&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #cc3300; font-family: &#39;Times New Roman&#39;, Garamond, Georgia, serif; font-size: 32px; font-weight: bold; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold;&quot;&gt;Introduction to C# as a Computer Language&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 19px; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;A computer programming language, also called a computer language, or a programming language, is used to give instructions to a computer to perform a specific assignment. Like a spoken language, a computer language has meaning words, syntaxes, grammar, formulas, and rules that must be followed to construct meaningful sentences.&lt;/span&gt;&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;Just like there are many languages, there are also various types of computer languages. A significant characteristic of computer languages, as opposed to human languages, is that they are categorized by roles or purposes.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;Hardware is a series of objects that can receive instructions from a computer language. The hardware can consist of all the parts used on a cell phone, a microwave oven, a car, the roller coaster of an amusement park, a health care machine, or a personal computer. Some languages deal with specific hardware or some instructions can target a specific environment, such as a cell phone or a roller coaster. Such an environment uses a specific operating system that cannot be carried from one machine to another. Some other languages do not specify the hardware they are meant to serve.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;Some languages are used to solve a specific type of problem and they cannot perform general assignments. For example, some languages used on the Internet are meant to display things on a browser. Such languages cannot perform arithmetic or geometric calculations. Some other languages are used to operate on specific values, such as true or&amp;nbsp; false values. Some other languages are used to solve all, or almost all, types of problems. Languages in this latter category are probably the most regularly used. These are&amp;nbsp;referred&amp;nbsp;to as general purpose languages.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;C#, pronounced c sharp, is a general purpose programming language used to create instructions for the computer to solve a problem or to assist a user with performing an assignment. C# is a universal language that is used on many operating systems, including Microsoft Windows. C# is one of the languages used in the Microsoft .NET Framework. The Microsoft .NET Framework is a library of objects that create or draw things on the computer.&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Introduction to C# Projects&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A computer project is a group of files and objects that contain the necessary instructions for the intended application to produced the desired results. A C# project is made of one or more files that contain the instructions of the project. A simple C# project can contain one file that holds all the necessairy instructions. An advanced project would contain more than that. To narrow our goal, our lessons will focus only on the C# language. The language is very huge so much that we may need more than fourty lessons just to cover the essentials. But don&#39;t be discouraged. This language is fun and helps you understand many things about computer programming. Also, we assume you don&#39;t know any language. So we will learn scratch.&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
Introduction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Console Applications&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The C# language is used to create applications that display on a black window referred to as the DOS prompt or DOS window. Those are the types of applications we will create in our lessons. To start such an application, you can write the instructions in a normal text editor such as Notepad or you can use a programming environment such as Microsoft Visual Studio or Microsoft Visual C# 2010 Express. Our lessons assume that you have access to one of those. We also assume that you have installed the programming environment you will use to follow the lessons, unless you decide to use Notepad, which is part of Microsoft Windows.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To launch Microsoft Visual C# 2010 Express, you can click Start -&amp;gt; (All) Programs -&amp;gt; Microsoft Visual Studio 2010 Express -&amp;gt; Microsoft Visual C# 2010 Express:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.functionx.com/csharp/windows/ide1.gif&quot; style=&quot;color: green; font-size: 10pt; font-weight: bold; text-decoration: none;&quot; target=&quot;_new&quot;&gt;&lt;img alt=&quot;Microsoft Visual C# 2010 Express Edition&quot; border=&quot;0&quot; height=&quot;349&quot; src=&quot;http://www.functionx.com/csharp/windows/ide1.gif&quot; width=&quot;523&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
To launch Microsoft Visual Studio 2010, you can click Start -&amp;gt; (All) Programs -&amp;gt; Microsoft Visual Studio 2010.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;GeorgetownCleaningServices1&quot;&gt;&lt;/a&gt;&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Starting a Project&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;http://www.functionx.com/csharp/dlgboxes/newproject1.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;http://www.functionx.com/csharp/dlgboxes/newproject1.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;http://www.functionx.com/csharp/dlgboxes/newproject1.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;http://www.functionx.com/csharp/dlgboxes/newproject1.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;http://www.functionx.com/csharp/dlgboxes/newproject1.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;New Project&quot; border=&quot;0&quot; height=&quot;441&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/newproject1.gif&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;http://www.functionx.com/csharp/dlgboxes/newproject1.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Start Microsoft Visual C# 2010 Express or Microsoft Visual Studio 2010&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;To create a new application, on the main menu, click File -&amp;gt; New Project...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;In the middle list, click Console Application&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;Change the Name to&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: 10pt;&quot;&gt;gdcs1&lt;/b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;(which stands for Georgetown Dry Cleaning Services 1)&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;sectover&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; overflow-x: auto; overflow-y: auto; text-align: justify; width: 640px;&quot;&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Click OK&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;file&quot;&gt;&lt;/a&gt;Creating a File for Code&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The programs we will write are meant to give instructions to the computer. You write these instructions in easy to understand English words. We will find out what those words are. This means that a regular instruction uses normal text with alphabetic characters, numbers, and non-readable symbols.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
You can write your instructions using any text editor such as Notepad, WordPad, WordPerfect, or Microsoft Word, etc. When writing your instructions, there are rules your must follow and suggestions you should observe. The group of instructions used by your program is also referred to as code.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To assist you with writing code, if you use Microsoft Visual C# Express or Microsoft Visual Studio Professional, it includes a text editor referred to as the Code Editor. If you create your project as a Console Application, a default file would be created and you can customize it. If you start your program as an empty project, you must explicitly add a file to it. To do that:&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the main menu, click Project -&amp;gt; Add New Item...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;In the Solution Explorer, right-click the name of the project, position the mouse on Add, and click New Item...&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Any of these actions would display the Add New Item dialog box. From there, in the middle list, click Code File. Accept the name or change it. When you click OK, a blank document would display. In the same way, you can add as many files as you need for your project.&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;GeorgetownCleaningServices3&quot;&gt;&lt;/a&gt;&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Creating a File&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;pre class=&quot;sectover&quot; style=&quot;clear: left; color: blue; float: left; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt; margin-bottom: 1em; margin-right: 1em; overflow-x: auto; overflow-y: auto; text-align: justify; width: 640px;&quot;&gt;&lt;img alt=&quot;Add New Item&quot; height=&quot;441&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/addnewitem1.gif&quot; width=&quot;640&quot; /&gt;&lt;/pre&gt;
&lt;/ol&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&amp;nbsp;    &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; To add a file for the code, on the main menu, click Project -&amp;gt; Add New Item... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;If you are using Microsoft Visual Studio, in the left list, expand Visual C# Items and click Code.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;In the middle list, click Code File&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;Change the name to&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-size: 10pt;&quot;&gt;CleaningOrder&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Click Add&lt;/li&gt;
&lt;/ol&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Primary&quot;&gt;&lt;/a&gt;The Primary C# Code&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
To create the most basic application in C#, there is a very basic code you must write. This code looks as follows:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
class Exercise&lt;/div&gt;
{
&lt;div style=&quot;text-align: justify;&quot;&gt;
static void Main()
 &lt;/div&gt;
{
&lt;div style=&quot;text-align: justify;&quot;&gt;
System.Console.WriteLine(&quot;Hello world&quot;);
    }&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
}&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
This code contains many things, in fact all of its things, we cannot explain at this time. We rather wait for appropriate sections in later lessons. Unfortunately, each one of the items in this code is required:&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The&amp;nbsp;&lt;strong&gt;class&lt;/strong&gt;&amp;nbsp;keyword will be introduced in Next Tutorials&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The word Exercise is just a name. We will review the rules of names in the next lesson&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;&amp;nbsp;The curly brackets, { and }, and the parentheses, ( and ), will be introduced in Lesson 4 but various ways of using them will be explained in many other lessons&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The use of the&amp;nbsp;&lt;strong&gt;static&lt;/strong&gt;&amp;nbsp;keyword will be explained in&amp;nbsp;
Next Tutorials&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The meaning of the&amp;nbsp;&lt;strong&gt;void&lt;/strong&gt;&amp;nbsp;keyword will be reviewed in&amp;nbsp;
Next Tutorials&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;&lt;strong&gt;Main&lt;/strong&gt;&amp;nbsp;will be introduced in&amp;nbsp;
Next Tutorials&amp;nbsp;&amp;nbsp;and expanded in&amp;nbsp;
Next Tutorials&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The role of the word&amp;nbsp;&lt;strong&gt;System&lt;/strong&gt;&amp;nbsp;is explained in&amp;nbsp;
Next Tutorials&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The role of the period &quot;.&quot; will be introduced in&amp;nbsp;
Next Tutorials&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;&lt;strong&gt;Console&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;WriteLine&lt;/strong&gt;&amp;nbsp;will be introduced in&amp;nbsp;
Next Tutorials&amp;nbsp;&amp;nbsp;and expanded in other lessons&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The double-quotes &quot; will be formally introduced in&amp;nbsp;
Next Tutorials&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
We kept this code to a minimum. Every word and every operator in this code is required but there are various ways that each of these words and operators can be used. For now, please use this code &quot;as is&quot;. We can safely promise that by the end of these lessons, you will know everything about those words.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;GeorgetownCleaningServices4&quot;&gt;&lt;/a&gt;&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Writing Primary Code&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;In the empty document, write the following code&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;class Order&lt;/span&gt;&lt;/div&gt;
{
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;  static void Main()
 &lt;/span&gt;&lt;/div&gt;
{
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;System.Console.WriteLine(&quot;Georgetown Dry Cleaning Services&quot;);
     &lt;/span&gt;&lt;/div&gt;
System.Console.ReadKey();
    }
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
}&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Comments&quot;&gt;&lt;/a&gt;Comments&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
A comment is a line or paragraph of text that will not be considered as part of your code. There are two types of comments recognized by C#.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
To display a comment on a line of text, start the line with two forward slashes //. Anything on the right side of // would be ignored. Here is an example:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;// This line will be ignored. I can write in it anything I want&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
The above type of comment is used on only one line. You can also start a comment with /*. This type of comment ends with */. Anything between this combination of /* and */ would not be read. Therefore, you can use this technique to span a comment on more than one line.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Creating Comments&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;To create comments, change the file as follows:&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&lt;div style=&quot;color: blue; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red; font-size: 10pt;&quot;&gt;//  Application Name: Georgetown Dry Cleaning Services&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;class Order&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;    //  This application is used to perform processing orders for this business&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;    static void Main()&lt;/span&gt;&lt;/div&gt;
{
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;/* Always greet the customers before processing an order.&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;span class=&quot;codered&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;          Check the types of clothes a customer has brought.
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;            Find out the type of cleaning (starch, etc) the customer wants.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;           If there are special needs the customer has, make a note. */&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;    System.Console.WriteLine(&quot;Georgetown Dry Cleaning Services&quot;);
&lt;/span&gt;&lt;/div&gt;
System.Console.ReadKey();
    }
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
}&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
Managing Files&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Introduction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
In Microsoft Visual C# 2010 Express and in Microsoft Visual Studio, when a project is made of various files, each file is represented by a label in the top section of the Code Editor.Each file is also represented in the main menu under Windows.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify; width: 680px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
The Solution Explorer&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The Solution Explorer is a window that displays a list of the files that make up a project. To access the Solution Explorer:&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;If the Solution Explorer is not yet showing on the screen:&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the main menu, click View -&amp;gt; Solution Explorer&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the Standard toolbar, click the Solution Explorer button&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;If the Solution Explorer is already showing, click its tab&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The Solution Explorer is made of four sections. Like every regular window, the Solution Explorer is equipped with a title bar that displays its name on the left side and three buttons on the right side:&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;The Window Position button&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;img alt=&quot;Window Position&quot; height=&quot;15&quot; src=&quot;http://www.functionx.com/buttons/wndpos1.gif&quot; style=&quot;font-size: 10pt;&quot; width=&quot;15&quot; /&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;displays a menu when you click it:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Window Position&quot; height=&quot;144&quot; src=&quot;http://www.functionx.com/csharp/solexpl/wndpos1.gif&quot; style=&quot;font-size: 10pt;&quot; width=&quot;338&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;The Float option is enabled if the window is docked to a side of the screen. The Float option is disabled if the window is already floating. If the window is docked and you click Float, it would be moved from its docked position and would float. As an alternative to float a docked window, drag its title bar away from its docked position:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Floating Window&quot; height=&quot;211&quot; src=&quot;http://www.functionx.com/csharp/solexpl/floating1.gif&quot; style=&quot;font-size: 10pt;&quot; width=&quot;329&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;To dock a floating&amp;nbsp; window, drag its title bar&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Under its title bar, the second section of the Solution Explorer is a toolbar:&lt;img alt=&quot;Toolbar&quot; height=&quot;26&quot; src=&quot;http://www.functionx.com/csharp/solexpl/toolbar1.gif&quot; width=&quot;162&quot; /&gt;:&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The Properties button allows you to display the Properties window&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The Show All Files button is used to show the hidden files of the project&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;As its name indicates, the Refresh button is used to refresh the list of files and resources of the project&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;The View Code button is used to show the code of a class&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The third part of the Solution Explorer is its body. It shows the folders, files, and resources that are part of the current project. To expand a node, you can either click its button or double-click its name. To collapse a node, either click its button or double-click it.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The root of the list is the name of the solution. Under the root is the name of the current project. If the solution contains more than one project, the name of each project is represented under the solution. Inside of the project are its folders, files, and resources. The first item under a project name is References. After the References node, there are the names of the classes that are part of the project.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The fourth part of the Solution Explorer is its tab.&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify; width: 680px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
The Properties Window&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The Properties window shows the Windows operating system&#39;s details of the files or resources used in a project. To display it:&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;If the Properties window is not yet displaying&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the main menu, click View -&amp;gt; Properties window&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the Standard toolbar, click the Properties button&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;If the Properties window is displaying already, click its tab&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The display and rectangular behavior of the Properties window follows the description we had for the Solution Explorer.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To show the operating system&#39;s characteristics of a project or a file, in the Solution Explorer, click the object:&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;If you click a solution, the Properties window would show its name and its location&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;If you click a project, the Properties window would show its project file&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;If you click a file, the Properties window would show its name (in the File Name field) and its location (in the Full Path) field&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The Properties window displays different fields depending on the item selected in the Solution Explorer. You can change some things in the Properties window. When a field is disabled, it means you cannot modify it.&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Accessing or Opening a File&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you are using a text editor to write your code, you can use that editor to open a file. For example, in Notepad, you can click File -&amp;gt; Open... If you are trying to open a C# file, first change the file type combo box to All Files (*). Then locate the file from its folder and click Open.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If a file is a member of the current project, to open it:&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On&lt;span class=&quot;style1&quot; style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;the main menu, click Window and click the name of the file&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;In the top section of the Code Editor, click the label that holds the name of the file&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;In the Solution Explorer, double-click the name of the file&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you are using Microsoft Visual C# 2010 Express or Microsoft Visual Studio, to open a file:&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the main menu, click File -&amp;gt; Open File...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the Standard toolbar, click the Open File button&amp;nbsp;&lt;img alt=&quot;Open File&quot; height=&quot;22&quot; src=&quot;http://www.functionx.com/buttons/open1.gif&quot; width=&quot;22&quot; /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Any of these actions would display the Open File dialog box. From there, locate the file from its folder and click it. When you click Open, Microsoft Visual Studio will try to open the file. If it can, it would display it inside its interface. If it cannot, it would start looking for a program in the computer that can open the file and hand the job to it. That application would then decide whether it can open the file or not. For example, if you try opening a video (a file with AVI, MOD or another video extension), Microsoft Visual Studio would launch the Windows Media Player that would then try to play the video.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Besides the Code Editor, the integrated development interface (IDE) of the Microsoft Visual C# 2010 is made of various parts, which we will review when necessary.&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
Solution and Project Management&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Introduction&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
We have seen how to create a console application. Microsoft Visual Studio allows you to create various other types of applications. This is why you should first display the New Project dialog box to select your option. Besides console applications, in future lessons, we will also learn how to create a library using the Class Library option.&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Code Snippets&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Microsoft Visual C# ships with many skeleton codes you can use and customize. It writes the primary code for you and add all the necessary default behaviors. Once it has done this, you can change or remove any section. To access these code skeletons, in the section of the file where you want to add it, right-click and click Insert Snippet...:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Insert Snippet&quot; height=&quot;400&quot; src=&quot;http://www.functionx.com/csharp/editor/snippet1.gif&quot; width=&quot;378&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
In the menu that comes up, double-click Visual C#:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Insert Snippet&quot; height=&quot;161&quot; src=&quot;http://www.functionx.com/csharp/editor/snippet2.gif&quot; width=&quot;448&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
This would display a list of codes:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Insert Snippet&quot; height=&quot;347&quot; src=&quot;http://www.functionx.com/csharp/editor/snippet3.gif&quot; width=&quot;444&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you see the type of code you want to use, double-click it.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In some cases, if you have already written some code, you may want to change it or rather add some code to it. The Code Editor provides some skeleton codes you can use. To use this approach, right-click the code you want to modify and click Surround With... In the list that appears, double-click the desired option.&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Code Colors&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Code is written in a wide area with a white background. This is the area you use the keyboard to insert code with common readable characters. The Code Editor uses some colors to differentiate categories of words or lines of text.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Options&quot;&gt;&lt;/a&gt;The colors used are highly customizable. To change the colors, on the main menu, you can click Tools -&amp;gt; Options... In the Options dialog box, in the Environment section, click Fonts and Colors. To set the color of a category, in the Display Items section, click the category. In the Item Foreground combo box, select the desired color. If you want the words of the category to have a colored background, click the arrow of the Item Background combo box and select one:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;sectover&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; overflow-x: auto; overflow-y: auto; width: 640px;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;375&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/options1.gif&quot; width=&quot;644&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In both cases, the combo boxes display a fixed list of colors. If you want more colors, you can click a Custom button to display the Color dialog box that allows you to &quot;create&quot; a color.&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Indentation&quot;&gt;&lt;/a&gt;Indentation&amp;nbsp;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Indentation is another feature that makes your program easy to read. Indentation is a technique of grouping lines of code by category. To delimit the items of your code, you should indent them by two empty spaces or one tab. Indentation should be incremental. That is, when a line of code appears to be a child of the previous line, the new line should be indented.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To control the indentation of your code, on the main menu, click Tools -&amp;gt; Options... In the left list, expand C#, followed by Formatting and click Indentation. Then change the options on the right side:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;sectover&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; overflow-x: auto; overflow-y: auto; width: 640px;&quot;&gt;
&lt;img alt=&quot;Indentation&quot; border=&quot;0&quot; height=&quot;375&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/options2.gif&quot; width=&quot;644&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
After making the changes, click OK to validate or Cancel to ignore.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Saving a Project&amp;nbsp;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you are creating your application using a text editor, you must save your file(s) in a folder you will create.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In previous versions of Microsoft Visual C# (namely 2002 and 2003), you always had to formally create a project in order to use one and you always had to save it. After realizing that many of the projects that developers or students create are for experimental purposes, Microsoft provided the ability to only temporarily create a project, then to save it or not. Saving a project allows you to keep it on a medium so you can refer to it later.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
When Microsoft Visual Studio 2010 (any edition) is installed, it creates a folder named Visual Studio 2010 in your Documents folder. The Documents folder is called your personal drive or your personal directory. Inside of the Visual Studio 2010 folder, it creates a sub-folder named Projects. By default, this is where it would save your projects, each with its own folder.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To save a project, on the Standard toolbar, you can click the Save All button&amp;nbsp;&lt;img alt=&quot;Save All&quot; border=&quot;0&quot; height=&quot;22&quot; src=&quot;http://www.functionx.com/buttons/saveall1.gif&quot; width=&quot;22&quot; /&gt;. Alternatively, on the main menu, you can click File -&amp;gt; Save All. If the project had already been saved but you want to save it under a different name, on the main menu, you can click File -&amp;gt; Save&amp;nbsp;&lt;i&gt;project name&lt;/i&gt;&amp;nbsp;As...&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Opening a Project&amp;nbsp;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are a various ways you can open an existing project:&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the main menu, click File -&amp;gt; Open Project...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the Start Page, click Open Project...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Press Ctrl + Shift + O&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
A Solution&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A solution is used to coordinate the different aspects of an application that is being created. When you create a project, it represents one detail of the application you have in mind. Besides the code you are writing, you may want to add other items. Instead of one project, in the next sections, we will see that a solution can contain more than one project.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
When creating a project, the solution holds the same name as the project. You can see their names in the Solution Explorer:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Solution Explorer&quot; border=&quot;0&quot; height=&quot;145&quot; src=&quot;http://www.functionx.com/csharp/solexpl/names1.gif&quot; width=&quot;313&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
The solution and a project can have different names. While working on a project, to rename the solution, in the Solution Explorer, you can click the first node, which is the name of the solution starting with Solution. Then, in the Properties window, click (Name) and type the name of your choice:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Solution Explorer&quot; border=&quot;0&quot; height=&quot;388&quot; src=&quot;http://www.functionx.com/csharp/solexpl/rename1.gif&quot; width=&quot;383&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
This name is temporary, especially if you have not yet saved the project. If you want to permanently save a solution for later use, there are two techniques you can use.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you start saving a project for the first time, it would bring the Save Project dialog box. By default, Microsoft Visual Studio selects your personal directory as the path to the solution. This is called the location. In the location, Microsoft Visual Studio creates a folder as the solution of the project. The solution must have, or must be stored, in its own folder. As mentioned earlier, Microsoft Visual Studio uses the name of the project as the name of the solution. To rename the solution, you can change the string in the Solution Name text box. Remember that you can enter the name of the project in the Name text box. Here is an example:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;sectover&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; overflow-x: auto; overflow-y: auto; width: 640px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;img alt=&quot;Save Project&quot; border=&quot;0&quot; height=&quot;149&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/saveproject2.gif&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
When you save a project (for the first time), by default, Microsoft Visual C# creates a new folder for it in the My Documents\Visual Studio 2008\Projects folder. It uses the name of the solution to name the folder. It creates some files and stores them in that new folder. Then, it creates a sub-folder, using the name of the project, inside of the folder of the solution. Besides the sub-folder with the name as the project, it creates another folder named&amp;nbsp;&lt;b&gt;debug&lt;/b&gt;. It also creates another folder named&amp;nbsp;&lt;b&gt;Debug&lt;/b&gt;&amp;nbsp;in the sub-folder of the name of the project. In each folder and some other folders, it creates some files that we will not pay attention to for now.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
If the project had already been saved but you want to change the name of the solution, on the main menu, you can click File -&amp;gt; Save&amp;nbsp;&lt;i&gt;solution-name&lt;/i&gt;.sln As... This would bring the Save File As dialog box where you can specify the name of the solution and click Save.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;execute&quot;&gt;&lt;/a&gt;Building a Project&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
After creating a project and writing code, you may want to see the result. To do this, you must first build the application. This would create an executable.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To allow you to create programs, a computer language such as C# is equipped with an application named a compiler. A compiler is a computer program made of internal other sub-programs. One of the sub-programs, in fact probably the first, of a compiler is called a parser. A parser &quot;scans&quot; a file that contains (part of) the program. It checks the syntax, keywords, unknown words, and some other routines. If the parser finds a problem, which could be anything, either it stops or it continues making a list of the mistakes it found. Then it displays this list to you to fix. Sometimes it would point to the exact line where the/a problem was found. Sometimes it would point to the line where the problem showed its impact although the problem may be found somewhere else. With experience, you will know how to fix the programs or troubleshoot the problems.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If the parser doesn&#39;t find any problem, or after you have fixed the problems, it (the parser) passes its result(s) to the compiler. The compiler calls another program called a linker. If the program contains just one file, the linker considers it. If the program contains more than one file, the linker considers them. The linker gathers some of the files that the C# compiler shipped with (those files that your program needs in order to work, since your program doesn&#39;t need all possible files that the .NET Framework provides), puts them together (&quot;links&quot; them) with your file(s) to get your instructions in a manner that can produce a suitable result. If there is no significant problem, the compiler creates the program. This doesn&#39;t mean that everything is alright, it only means that the compiler thinks that everything is alright: it is still possible that the result may not be what you would expect. We will come back to these issues when studying debugging.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To make your life easier, all of the sub-programs (parser, linker, debugger, etc) that ship with C# are grouped in one large program: the compiler. Therefore, from now on, we will use the word &quot;compiler&quot; to refer to the program you use to &quot;translate&quot; your English instructions into a computer-based language.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The compiler that Microsoft created, and that we will use, that is, the compiler of the Microsoft .NET Framework is called&amp;nbsp;&lt;b&gt;csc&lt;/b&gt;. Like most other programs, it has the extension .exe. This&amp;nbsp;&lt;b&gt;csc&amp;nbsp;&lt;/b&gt;name is not standard. This means that another C# compiler may have another name;&amp;nbsp;&lt;b&gt;csc.exe&lt;/b&gt;&amp;nbsp;is just the name of the compiler we will use.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The csc compiler is freely available if you download the .NET Framework from the Microsoft web site.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To build an application at the Command Prompt, you use the&amp;nbsp;&lt;b&gt;csc.exe&lt;/b&gt;&amp;nbsp;compiler. After download the .NET Framework, you must install it. What interests us is the csc.exe application. By default, it is installed in&lt;b&gt;C:\Windows\Microsoft.NET\Framework\v4.0.21006&lt;/b&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
You should add the path of the csc.exe to the Path of the Environment Variables. To start, use a file utility such as Windows Explorer and display the folder where csc is installed.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Select the path in the top combo box and copy it to the clipboard. Start the Control Panel. Click System and Security:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In the System and Security section, click System:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In the System window, click Change Settings. In the System Properties dialog box, click the Advanced tab. Click the Environment Variables button:&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;System Properties&quot; height=&quot;461&quot; src=&quot;http://www.functionx.com/dlgboxes/sp1.gif&quot; width=&quot;416&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
In the System Variables section, double-click Path or click it and click Edit:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Environment Variables&quot; height=&quot;423&quot; src=&quot;http://www.functionx.com/dlgboxes/path1.gif&quot; width=&quot;384&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
Press the End key, type a semi-colon &quot;;&quot;. Paste the value you had copied from the clipboard:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Path&quot; height=&quot;140&quot; src=&quot;http://www.functionx.com/dlgboxes/path2.gif&quot; width=&quot;347&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
Click OK three times.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
Open the Command Prompt. Type&amp;nbsp;&lt;strong&gt;CD\&lt;/strong&gt;&amp;nbsp;and press Enter to move to the root drive. Type&amp;nbsp;&lt;strong&gt;CD&lt;/strong&gt;&amp;nbsp;and a space, followed by the folder (and sub-folder(s)) where the file is located, and press Enter. To compile, type&amp;nbsp;&lt;strong&gt;csc&lt;/strong&gt;&amp;nbsp;followed by the name of the file and its extension:&lt;/div&gt;
&lt;div class=&quot;sectover&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; overflow-x: auto; overflow-y: auto; width: 640px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
The file produced from this operation has the extension .exe. By default, it holds same name as the file you had used. If you want to get an executable using a name of your choice, after csc, type&amp;nbsp;&lt;strong&gt;/out:&lt;/strong&gt;&amp;nbsp;followed by the name you want, followed by a .exe extension, followed by a space, and followed by the name of the file you had created, with its extension. The formula to follow would be:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;csc /out:&lt;em&gt;NameOfExecutate&lt;/em&gt;.exe &lt;em&gt;Filename&lt;/em&gt;.cs&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
&lt;i&gt;The NameOfExecutate&lt;/i&gt;&amp;nbsp;represents the name you want the executable to have. If the name you want is in one word, you can just type it. If you want a name made of various words, you can include those words in double-quotes.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
If you are creating your application using a text editor and if you create many files, when compiling the project, you must remember to reference each file. To do that, in the last section, add the name of each file with its extension:&lt;/div&gt;
&lt;pre style=&quot;color: blue; font-family: &#39;Courier New&#39;, Verdana, Helvetica, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;csc &lt;em&gt;FileName1&lt;/em&gt;.cs &lt;em&gt;FileName2&lt;/em&gt;.cs &lt;em&gt;FileName_n&lt;/em&gt;.cs&lt;/pre&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
The executable you get is the one you can use on other computers and that you can distribute to other people.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;execute0&quot;&gt;&lt;/a&gt;Executing a Project&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
After building a project, you and your users can execute it. If you are working from the Command Prompt, to execute the project, type the name of the file that has the .exe extension and press Enter:&lt;/div&gt;
&lt;div class=&quot;sectover&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; overflow-x: auto; overflow-y: auto; width: 640px;&quot;&gt;
&lt;img alt=&quot;Compiling from th Command Prompt&quot; height=&quot;342&quot; src=&quot;http://www.functionx.com/csharp/cmd/execute1.gif&quot; width=&quot;677&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt;&quot;&gt;
If you are working from Microsoft Visual C# 2010 Express or from Microsoft Visual Studio, to execute an application, on the main menu, you can click Debug -&amp;gt; Start Debugging.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;exotitle&quot; style=&quot;color: #cc3300; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;img alt=&quot;Application&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;http://www.functionx.com/images/practical1.gif&quot; width=&quot;19&quot; /&gt;Application: Executing an Application&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#CC3300&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;To execute the application, on the main menu, click Debug -&amp;gt; Start Debugging&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;After viewing the result in a DOS window, press Enter to close it&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Close Microsoft Visual C# 2010 Express or Microsoft Visual Studio&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;When asked whether you want to save, click No&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;&lt;/div&gt;</description><link>http://99materials.blogspot.com/2012/02/continuation.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3889981274156227716.post-5633399157059993778</guid><pubDate>Wed, 08 Feb 2012 14:09:00 +0000</pubDate><atom:updated>2012-02-11T05:01:21.981-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Advance</category><category domain="http://www.blogger.com/atom/ns#">basics</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio</category><category domain="http://www.blogger.com/atom/ns#">vs</category><title>C# Tutorial Basics to Advance</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #0b5394; font-family: Georgia, Garamond, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b style=&quot;color: #0b5394; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Lesson1:&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #cc3300; font-family: &#39;Times New Roman&#39;, Garamond, Georgia, serif; font-size: 32px; font-weight: bold; text-align: center;&quot;&gt;Introduction to Microsoft Visual Studio&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #cc3300; font-family: &#39;Times New Roman&#39;, Garamond, Georgia, serif; font-size: 32px; font-weight: bold; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;C#, pronounced c sharp, is a programming language that can be used to give instructions to a computer. The instructions can be written from a text editor such as Notepad. Another way is to use a programming environment that is equipped with many tools that make it easy to work on projects, to create the necessary files, and to distribute a completed application.&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;Many programming environments are available. Probably the most popular programming environment you can use to write C# instructions is Microsoft Visual Studio. This is commercial application available for purchase from Microsoft. If your primary goal is to learn the C# language, Microsoft provides a free programming studio you can use: Microsoft Visual C# 2010 Express.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-weight: bold;&quot;&gt;Starting Microsoft Visual C# Express&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: justify;&quot;&gt;To launch Microsoft Visual C# 2010 Express, you can click Start -&amp;gt; (All) Programs -&amp;gt; Microsoft Visual Studio 2010 Express -&amp;gt; Microsoft Visual C# 2010 Express:&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.functionx.com/csharp/windows/ide1.gif&quot; style=&quot;background-color: white; color: red; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; font-weight: bold; text-decoration: none;&quot; target=&quot;_new&quot;&gt;&lt;img alt=&quot;Microsoft Visual C# 2010 Express&quot; border=&quot;0&quot; height=&quot;349&quot; src=&quot;http://www.functionx.com/csharp/windows/ide1.gif&quot; width=&quot;523&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;paratitle&quot; style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 16pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: justify; text-decoration: none;&quot;&gt;
The Microsoft Visual Studio Interface&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#FF0000&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
The Main Menu&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The top section of Microsoft Visual Studio displays the main menu divided in categories such as File or Edit. The main menu is used like the menu of a normal application.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Toolbars&quot;&gt;&lt;/a&gt;The Toolbars&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Under the main menu, there is a toolbar. Normally, when the studio is launched, it displays the Standard toolbar as its default. Some additional toolbars will display in response to an action from you. Still, you can display other toolbars if you want. To do this:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the main menu, click View -&amp;gt; Toolbars and click the toolbar of your choice&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;Right-click the main menu or any toolbar. In the that appears, click the desired toolbar&lt;/span&gt;&lt;img alt=&quot;Toolbars&quot; height=&quot;445&quot; src=&quot;http://www.functionx.com/csharp/windows/toolbars1.gif&quot; style=&quot;font-size: 12px; text-align: center;&quot; width=&quot;587&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Toolbars are used the same way they are in other applications.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Microsoft Visual Studio&#39;s menus and toolbars can be customized. You can customize a menu category on the main menu by adding a menu item to it. You can customize a toolbar by adding a button to it. To start, right-click anything on the main menu or on any toolbar and click Customize... For example, imagine you want to add an item named Start Without Debugging to the left side of the Start button:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;The position where the button will be added&quot; border=&quot;0&quot; height=&quot;94&quot; src=&quot;http://www.functionx.com/csharp/windows/customize1.gif&quot; width=&quot;470&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To do this:&lt;/div&gt;
&lt;ol style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: -webkit-auto;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Right-click the main menu or a toolbar and click Customize&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the Customize dialog box, click the Commands tab&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Click the Toolbars radio button&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;In the Toolbars combo box, select the toolbar that will host the button. For our example, that would be Standard&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;In the Controls list, click the button that will come after the new button. For our example, that would be Start / Continue:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Customize&quot; height=&quot;490&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/customize1.gif&quot; width=&quot;535&quot; /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;Click Add Command...&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;&amp;nbsp;In the Categories list of the Add Command dialog box, select the category that has the button you want. For our example, that would be Debug&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp;In the Commands list, click the desired button or menu item. For our example, that would be Start Without Debugging&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Add Command&quot; height=&quot;370&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/customize2.gif&quot; width=&quot;585&quot; /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;After making the selection, click OK&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Customize&quot; height=&quot;490&quot; src=&quot;http://www.functionx.com/csharp/dlgboxes/customize3.gif&quot; width=&quot;535&quot; /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the Customize dialog box, click Close:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;The position where the button has been added&quot; border=&quot;0&quot; height=&quot;119&quot; src=&quot;http://www.functionx.com/csharp/windows/customize2.gif&quot; width=&quot;469&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
In the same way, you can customize any toolbar and any menu category.&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: -webkit-auto;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
The Start Page&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
The Start Page is the main body of Microsoft Visual Studio or Microsoft Visual C# Express when it has been launched. It starts on top with a tab labeled Start Page. The main body of Microsoft Visual C# Express displays Microsoft Visual C# 2010 Express. The left section shows two labels: New Project... and Open Project... When some projects have been previously created or used, their names appear under Open Project... When you work on a project, the Start Page is usually in the background but it is represented by a tab. At any time, to display the Start Page:&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;You can click the Start Page label in the top section of the Code Editor&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;On the main menu, you can click View -&amp;gt; Start Page&lt;/li&gt;
&lt;/ul&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3889981274156227716&quot; name=&quot;Tools0&quot;&gt;&lt;/a&gt;Showing and Closing a Window&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When you start or open a project, the studio makes some windows available. These are the most regularly used windows. If you think that one of them is not regularly used in your types of assignments, you can remove it from the screen. To hide a window, you can click its Close button&amp;nbsp;&lt;img alt=&quot;Close&quot; border=&quot;0&quot; height=&quot;15&quot; src=&quot;http://www.functionx.com/csharp/buttons/close3.gif&quot; width=&quot;15&quot; /&gt;.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
All of the windows you can use are listed in the View menu. Therefore, if a window is not displaying, you can click View on the main menu and click a window of your choice.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Auto Hiding a Window&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When working on a project, you will use a set of windows that each accomplishes a specific purpose. Some windows are represented by an icon but hide the rest of the body. To display such a window, you can position the mouse on it. This would expand the window:&lt;/div&gt;
&lt;center style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;img alt=&quot;Expanding a Window&quot; border=&quot;0&quot; height=&quot;445&quot; src=&quot;http://www.functionx.com/csharp/windows/wndexpand1.gif&quot; width=&quot;473&quot; /&gt;&lt;/center&gt;&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you expand a window, it would display a title bar with three buttons. One of the button is called Auto Hide:&lt;/div&gt;
&lt;center style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;img alt=&quot;Auto Hide&quot; border=&quot;0&quot; height=&quot;179&quot; src=&quot;http://www.functionx.com/csharp/windows/wndexpand2.gif&quot; width=&quot;473&quot; /&gt;&lt;/center&gt;&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If you expand a window but find out you don&#39;t need it any more, you can just move the mouse away. The window would return to its previous state. Based on this functionality, if you are working with a window and move the mouse away, it would retract. If you need it again, you would have to reopen it using the same technique. If you are going to work with a certain window for a while, you can keep it open even if you move the mouse away. To do this, you can click the Auto Hide button. If clicked, the Auto Hide button changes from pointing left to pointing down:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Auto-Hide&quot; border=&quot;1&quot; height=&quot;133&quot; src=&quot;http://www.functionx.com/csharp/windows/autohide1.gif&quot; width=&quot;471&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
By default, the studio installs some windows to the left and some others to the right of the screen. You can change this arrangement if you want. To do this, expand a window, then click its title bar and start dragging. While you are dragging, to assist you with a new position, the studio displays five boxes:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Dragging&quot; border=&quot;0&quot; height=&quot;440&quot; src=&quot;http://www.functionx.com/csharp/windows/dragging1.gif&quot; width=&quot;469&quot; /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Docking a Window to a Side of the Studio&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To position a window on one side of the studio, drag its title bar to the box that represents that side. When you get to a side, a transparent blue rectangle would be drawn to indicate the possible position. Drop the window to either the most left guiding box to position it to the left of the screen, or to the most right guiding box to position it to the right of the screen. Here is an example:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Docking&quot; border=&quot;0&quot; height=&quot;443&quot; src=&quot;http://www.functionx.com/csharp/windows/docking1.gif&quot; width=&quot;497&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
or&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Docking&quot; border=&quot;0&quot; height=&quot;444&quot; src=&quot;http://www.functionx.com/csharp/windows/docking2.gif&quot; width=&quot;530&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To position a window to the top or the bottom side of the studio, drag its title bar to either the most top guiding box to position it to the top of the studio or to the most bottom guiding box to position it to the bottom of the studio. Here is an example:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Docking&quot; border=&quot;0&quot; height=&quot;443&quot; src=&quot;http://www.functionx.com/csharp/windows/docking3.gif&quot; width=&quot;471&quot; /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Docking a Window Above or Below Another&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To make two windows share an area, you can position one above or below an existing window. Of course, you must first have a window as reference. Then, drag the second window to the existing window. Drop it in the&amp;nbsp;top or the bottom guiding box of the middle big box.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
This&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Docking&quot; border=&quot;0&quot; height=&quot;469&quot; src=&quot;http://www.functionx.com/csharp/windows/docking4a.gif&quot; width=&quot;525&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Becomes&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Docking&quot; border=&quot;0&quot; height=&quot;438&quot; src=&quot;http://www.functionx.com/csharp/windows/docking4b.gif&quot; width=&quot;467&quot; /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Floating Windows&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Most of the windows you will use are positioned on one side of the screen. If you want, you can have a window that stays on top of other windows but is not &quot;glued&quot; to one side. Such a window is said to float. To float a window, drag its title bar and release it somewhere in the middle of the screen but not on a guiding box.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
When a window is floating, it displays a Maximize button&amp;nbsp;&lt;img alt=&quot;Maximize&quot; height=&quot;15&quot; src=&quot;http://www.functionx.com/buttons/maximize4.gif&quot; width=&quot;15&quot; /&gt;&amp;nbsp;on the title bar. If you click this button, the window occupies the whole interface of Microsoft Visual Studio. In the same way, if you double-click the title bar, the window gets maximized.&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If a window is currently floating and you want to dock it, right-click its title bar and click Dock:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Dock&quot; border=&quot;0&quot; height=&quot;441&quot; src=&quot;http://www.functionx.com/csharp/windows/dock1.gif&quot; width=&quot;468&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If a window is currently docked and you want to float it, right-click its title bar and click Float.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Coupling Windows&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can make two or more windows share one side of the screen or to share an area. To do this, first expand and dock the window that you will use as the base (or reference). Then, drag the title bar of the window that will share the area to its target until the bottom part of the base window shows a highlighted and a non highlighted area:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Coupling&quot; border=&quot;0&quot; height=&quot;442&quot; src=&quot;http://www.functionx.com/csharp/windows/coupling1a.gif&quot; width=&quot;502&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
Then release the mouse:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Coupling&quot; border=&quot;0&quot; height=&quot;438&quot; src=&quot;http://www.functionx.com/csharp/windows/coupling1b.gif&quot; width=&quot;467&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To remove a window that shares an area, drag its tab away:&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Coupling&quot; border=&quot;0&quot; height=&quot;438&quot; src=&quot;http://www.functionx.com/csharp/windows/undock1.gif&quot; width=&quot;467&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
To position a window to the left or the right of an existing window, first drag the second window to where the existing window is. Then click the left (or the right, depending on the side you want) guiding box of the multiple-box.&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
This&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Positioning&quot; border=&quot;0&quot; height=&quot;442&quot; src=&quot;http://www.functionx.com/csharp/windows/position1a.gif&quot; width=&quot;528&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
becomes this&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Positioning&quot; border=&quot;0&quot; height=&quot;438&quot; src=&quot;http://www.functionx.com/csharp/windows/position1b.gif&quot; width=&quot;467&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
&amp;nbsp;In the same way, you can make two or more windows share the same area.&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;div class=&quot;subtitle&quot; style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, &#39;Courier New&#39;; font-size: 14pt; font-weight: bold; margin-bottom: 2px; margin-top: 2px; text-align: left; text-decoration: none;&quot;&gt;
Tabbed Windows&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#0000FF&quot; height=&quot;1&quot; style=&quot;font-size: 10pt;&quot; width=&quot;100%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
You can make a window display its tab in the top section of the Code Editor and share the area with it. There are two ways yon do it:&lt;/div&gt;
&lt;ul style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;You can drag a window and drop it on the tab of the Start Page.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
This&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Tabbed Window&quot; border=&quot;0&quot; height=&quot;439&quot; src=&quot;http://www.functionx.com/csharp/windows/tab1a.gif&quot; width=&quot;468&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
becomes this&lt;/div&gt;
&lt;div class=&quot;pcenter&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 2px; margin-top: 2px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;Tabbed Window&quot; border=&quot;0&quot; height=&quot;438&quot; src=&quot;http://www.functionx.com/csharp/windows/tab1b.gif&quot; width=&quot;467&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;parajust&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 10pt; margin-left: 10pt; margin-top: 8pt; text-align: justify;&quot;&gt;
If a window is already represented with a tab on top of the Code Editor, you can drag the second window and drop it to the left or of the right tab of the existing window.&lt;/div&gt;
&lt;ul style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;&quot;&gt;You can right-click Dock as Tabbed Document&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://99materials.blogspot.com/2012/02/find-your-programming-materials.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item></channel></rss>