<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns: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'><id>tag:blogger.com,1999:blog-7826063413578882970</id><updated>2019-10-08T20:52:03.323+05:30</updated><category term="DBMS"/><category term="OS"/><category term="C++"/><category term="C"/><category term="Image"/><category term="1NF"/><category term="2NF"/><category term="3NF"/><category term="Advantage of multithreading"/><category term="Advantage of threads"/><category term="BCNF"/><category term="BEST BOOKS IN C"/><category term="BEST BOOKS IN C++"/><category term="Basic characteristic of constructor:"/><category term="Basic characteristics of c program"/><category term="Basic function of threads"/><category term="Basic services provided by OS"/><category term="C PROGRAMMING"/><category term="C# shape programming/Console program"/><category term="CARTESIAN PRODUCT"/><category term="Classification of threads"/><category term="DIFFERENCES"/><category term="Explain the architecture of DBMS"/><category term="INTERSECTIONS"/><category term="Inheritance"/><category term="Kernel level threads"/><category term="NORMALIZATION"/><category term="Non parameterized constructor"/><category term="Operating system"/><category term="PROGRAM IN C"/><category term="Parameterized constructor"/><category term="Process management"/><category term="RELATIONAL ALGEBRA"/><category term="The major features of oop are"/><category term="The major features of pop are"/><category term="UNION"/><category term="User level threads"/><category term="What is attribute"/><category term="What is child process?"/><category term="What is context switch?"/><category term="What is data independence?"/><category term="What is data?"/><category term="What is entity"/><category term="What is key"/><category term="What is multithreading?"/><category term="What is oop"/><category term="What is parent process?"/><category term="What is process control block (PCB)?"/><category term="What is schema?"/><category term="What is the features in c++??"/><category term="What is the major characteristic in c++??"/><category term="What is threads?"/><category term="advantages of DBMS"/><category term="alternate key"/><category term="candidate key"/><category term="categories by data independence"/><category term="characterized by inheritance"/><category term="characterized by key"/><category term="characterized of os"/><category term="composite attribute"/><category term="composite primary key"/><category term="conceptual level"/><category term="constructor"/><category term="dependent entity"/><category term="derived attribute"/><category term="disadvantages of DBMS"/><category term="entity set"/><category term="external level"/><category term="foreign key"/><category term="goal of os"/><category term="independent entity"/><category term="internal level"/><category term="logical data independence"/><category term="logical schema"/><category term="multivalued attribute"/><category term="physical data independence"/><category term="physical schema"/><category term="primary key"/><category term="process state"/><category term="process transition state"/><category term="scheduler"/><category term="scheduling"/><category term="simple attribute"/><category term="single valued attribute"/><category term="strong entity"/><category term="super key"/><category term="three schema architecture?"/><category term="unique key"/><category term="variable in c"/><category term="weak entity"/><category term="what is DBMS?"/><category term="what is c"/><category term="what is c++"/><category term="what is database?"/><category term="what is instance?"/><category term="what is pop"/><category term="what is process?"/><category term="what is variable"/><title type='text'>Computer knowledge</title><subtitle type='html'>All computers subject related knowledge are available in our computer knowledge</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-4535626169852280565</id><published>2018-12-16T21:37:00.002+05:30</published><updated>2018-12-16T21:37:18.512+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C# shape programming/Console program"/><title type='text'>C# shape programming/Console program </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 18.0pt; mso-themecolor: text1;&quot;&gt;1.WRITE A CONSOLE PROGRAM PRIME OR NOT&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;PROGRAM:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;using System;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;namespace ConsoleApplication4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class Program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static void Main(string[] args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int a, i, b = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Enter the number to check prime or not&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a = int.Parse(Console.ReadLine());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 2; i &amp;lt;= a / 2; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&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; if (a % i == 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(&quot;The number &quot; + a + &quot; is not prime&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&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; b++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&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;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (b == 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&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; Console.WriteLine(&quot;The number &quot; + a + &quot; is prime number&quot;); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;OUTPUT:&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;288&quot; data-original-width=&quot;541&quot; height=&quot;339&quot; src=&quot;https://1.bp.blogspot.com/-cT7tcX0viBc/XBZxFPy1vdI/AAAAAAAABd8/G6c2ymCPtREw_2njpWxzGK7sg4W60crDgCLcBGAs/s640/prime1.PNG&quot; width=&quot;640&quot; /&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-SHmfzsGckhs/XBZxFDDVjqI/AAAAAAAABd4/fXoGNO89t-YTv9Do-DzfwcOcVdlO6LGtwCLcBGAs/s1600/prime.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; display: inline !important; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;283&quot; data-original-width=&quot;532&quot; height=&quot;339&quot; src=&quot;https://2.bp.blogspot.com/-SHmfzsGckhs/XBZxFDDVjqI/AAAAAAAABd4/fXoGNO89t-YTv9Do-DzfwcOcVdlO6LGtwCLcBGAs/s640/prime.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18.0pt;&quot;&gt;2.WRITE A CONSOLE PROGROM TO TRIM A STRING&amp;gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;PROGRAM:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;namespace ConsoleApplication6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class Program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static void Main(string[] args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;string myString = &quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; prasun&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.Console.WriteLine(&quot;The String Before Trimming : (&quot; + myString + &quot;)&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Console.WriteLine(&quot;The String After Trimming : (&quot; + myString.Trim() + &quot;)&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.Read();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;                                       &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;OUTPUT:&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-Fzj9M3PFo5k/XBZyWgDSTmI/AAAAAAAABeI/Lt_iPQ5lFwoCa4rPfvgkF76-Ew2ghauGgCLcBGAs/s1600/trim.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;368&quot; data-original-width=&quot;803&quot; height=&quot;293&quot; src=&quot;https://3.bp.blogspot.com/-Fzj9M3PFo5k/XBZyWgDSTmI/AAAAAAAABeI/Lt_iPQ5lFwoCa4rPfvgkF76-Ew2ghauGgCLcBGAs/s640/trim.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt;&quot;&gt;3.WRITE A CONSOLE PROGRAM PERFECT SQUARE OR NOT&amp;gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;  &lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;PROGRAM:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;using System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -14.2pt; margin-right: 0cm; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 14.2pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;namespace EvenOdd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;class Program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;static void Main(string[] args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;int num,sq;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Enter a Number to Check a Number is Perfect Square or Not&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;num = int.Parse(Console.ReadLine());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;sq =int.Parse(Math.Sqrt(Convert.ToDouble(num.ToString())).ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;if (sq*sq==num)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Console.WriteLine(&quot;The number &quot; + num + &quot; is Perfect Square Number&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;Console.WriteLine(&quot;The number &quot; + num + &quot; is not Perfect Square Number&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;OUTPUT:&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-C4JCs0IfhFw/XBZz3UrXnhI/AAAAAAAABeY/VrvOnQPQmGQBavwXyNda4SJfAuThqohUwCLcBGAs/s1600/S1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;413&quot; data-original-width=&quot;732&quot; height=&quot;360&quot; src=&quot;https://3.bp.blogspot.com/-C4JCs0IfhFw/XBZz3UrXnhI/AAAAAAAABeY/VrvOnQPQmGQBavwXyNda4SJfAuThqohUwCLcBGAs/s640/S1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-52555ZfKGeg/XBZz3DzsqyI/AAAAAAAABeU/U_r3yZnXef4oFf_gvuM_wp-a9tM2GQbjACLcBGAs/s1600/S2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;336&quot; data-original-width=&quot;737&quot; height=&quot;289&quot; src=&quot;https://3.bp.blogspot.com/-52555ZfKGeg/XBZz3DzsqyI/AAAAAAAABeU/U_r3yZnXef4oFf_gvuM_wp-a9tM2GQbjACLcBGAs/s640/S2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; line-height: 115%;&quot;&gt;4.WRITE A CONSOLE PROGRAM EVEN OR ODD&amp;gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; line-height: 115%;&quot;&gt;PROGRAM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 171.0pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; line-height: 115%; mso-bidi-font-size: 9.5pt;&quot;&gt;using System;&lt;/span&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 171.0pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; line-height: 115%; mso-bidi-font-size: 9.5pt;&quot;&gt;using System.Collections.Generic;&lt;/span&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;using System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;using System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;namespace ConsoleApplication4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class Program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static void Main(string[] args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int n;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Enter the number&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n = int.Parse(Console.ReadLine());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (n % 2 == 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&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; Console.WriteLine(&quot;The number &quot; + n + &quot; is an even number&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&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; Console.WriteLine(&quot;The number &quot; + n + &quot; is an odd number&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt; mso-bidi-font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 115%;&quot;&gt;OUTPUT :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&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;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-yy2y8yvw95I/XBZ0uB80T7I/AAAAAAAABeo/8buoaj5DbVw44SU7YhY4ePYsM4pEEgUEQCLcBGAs/s1600/E2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;341&quot; data-original-width=&quot;681&quot; height=&quot;320&quot; src=&quot;https://4.bp.blogspot.com/-yy2y8yvw95I/XBZ0uB80T7I/AAAAAAAABeo/8buoaj5DbVw44SU7YhY4ePYsM4pEEgUEQCLcBGAs/s640/E2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-IsqSbsPYDis/XBZ0uI7m0xI/AAAAAAAABek/NUHzw0vnNF86lh59JQRebjH66DuFIKCggCLcBGAs/s1600/E1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;348&quot; data-original-width=&quot;683&quot; height=&quot;324&quot; src=&quot;https://1.bp.blogspot.com/-IsqSbsPYDis/XBZ0uI7m0xI/AAAAAAAABek/NUHzw0vnNF86lh59JQRebjH66DuFIKCggCLcBGAs/s640/E1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18.0pt;&quot;&gt;5.WRITE A CONSOLE PROGRAM TO GENERATE THE SUM OF N NUMBER&amp;gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12.0pt;&quot;&gt;PROGRAM:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 11pt;&quot;&gt;using System;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;using System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;using System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;using System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;namespace b_to_d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;class Program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;static void Main(string[] args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;int i, sum = 0, n;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;Console.Write(&quot;Enter the Nth Number : &quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;n = int.Parse(Console.ReadLine());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;for (i = 0; i &amp;lt;= n; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&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;sum = sum + i;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;Console.WriteLine(&quot;\nSum of N Numbers : &quot; + sum);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&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;Console.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16pt; line-height: 24.5333px;&quot;&gt;OUTPUT :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-aOeYgNI7_FA/XBZ22nzoxqI/AAAAAAAABe4/_cNUCnWXFZUw-y0msqj6yhccjdhIUmV-gCLcBGAs/s1600/PR.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;245&quot; data-original-width=&quot;561&quot; height=&quot;278&quot; src=&quot;https://1.bp.blogspot.com/-aOeYgNI7_FA/XBZ22nzoxqI/AAAAAAAABe4/_cNUCnWXFZUw-y0msqj6yhccjdhIUmV-gCLcBGAs/s640/PR.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16pt; line-height: 24.5333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16pt; line-height: 24.5333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/4535626169852280565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/12/c-shape-programmingconsole-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/4535626169852280565'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/4535626169852280565'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/12/c-shape-programmingconsole-program.html' title='C# shape programming/Console program '/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-cT7tcX0viBc/XBZxFPy1vdI/AAAAAAAABd8/G6c2ymCPtREw_2njpWxzGK7sg4W60crDgCLcBGAs/s72-c/prime1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-1229855082733121644</id><published>2018-10-15T03:50:00.000+05:30</published><updated>2018-10-15T03:50:06.274+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="BEST BOOKS IN C"/><category scheme="http://www.blogger.com/atom/ns#" term="BEST BOOKS IN C++"/><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><title type='text'>BEST BOOKS IN C &amp;C++</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;BEST BOOKS IN C:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=prasun01-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=9387284492&amp;amp;asins=9387284492&amp;amp;linkId=32648312a75860bab8383c85cce08a8d&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;    &lt;/iframe&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=prasun01-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=8183330487&amp;amp;asins=8183330487&amp;amp;linkId=c25ca973987b37b3ca96bc7c37b23295&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;    &lt;/iframe&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=prasun01-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=8192107531&amp;amp;asins=8192107531&amp;amp;linkId=a2c3102be8a3cd5a27fe996ced6d925b&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;    &lt;/iframe&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=prasun01-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=8183331637&amp;amp;asins=8183331637&amp;amp;linkId=b17751b1de9f224778176715dd6a087b&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;    &lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;BEST BOOKS IN C++:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=prasun01-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=8176561061&amp;amp;asins=8176561061&amp;amp;linkId=b7ec918c4f557e262f258f8255ef9c90&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;    &lt;/iframe&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=prasun01-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=0070634610&amp;amp;asins=0070634610&amp;amp;linkId=343f7a191987cd1dce18f8188650beda&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;    &lt;/iframe&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=prasun01-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=0074634542&amp;amp;asins=0074634542&amp;amp;linkId=3e8c095b335d66fca5edf899da36e546&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;    &lt;/iframe&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=prasun01-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=B00I962YVA&amp;amp;asins=B00I962YVA&amp;amp;linkId=8ab756d41655f756cbd4e6b4e7d9071d&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;    &lt;/iframe&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;amp;OneJS=1&amp;amp;Operation=GetAdHtml&amp;amp;MarketPlace=IN&amp;amp;source=ac&amp;amp;ref=tf_til&amp;amp;ad_type=product_link&amp;amp;tracking_id=prasun01-21&amp;amp;marketplace=amazon&amp;amp;region=IN&amp;amp;placement=8131791440&amp;amp;asins=8131791440&amp;amp;linkId=8865df7e43d9877df489d26d0d3717bd&amp;amp;show_border=false&amp;amp;link_opens_in_new_window=false&amp;amp;price_color=333333&amp;amp;title_color=0066c0&amp;amp;bg_color=ffffff&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;    &lt;/iframe&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/1229855082733121644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/10/best-books.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/1229855082733121644'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/1229855082733121644'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/10/best-books.html' title='BEST BOOKS IN C &amp;C++'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-391160835475219231</id><published>2018-08-23T02:24:00.001+05:30</published><updated>2018-08-23T02:28:54.823+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CARTESIAN PRODUCT"/><category scheme="http://www.blogger.com/atom/ns#" term="DIFFERENCES"/><category scheme="http://www.blogger.com/atom/ns#" term="INTERSECTIONS"/><category scheme="http://www.blogger.com/atom/ns#" term="RELATIONAL ALGEBRA"/><category scheme="http://www.blogger.com/atom/ns#" term="UNION"/><title type='text'>Relational Algebra</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;RELATIONAL ALGEBRA:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Relational algebra collection of&amp;nbsp;operations generate new relations after&amp;nbsp;manipulating one or more existing relation. It is a procedural language with operations. It consists of a set of relations operations.Each operator has one or more relations as its input and produces a relation as it&#39;s output.Thus the&amp;nbsp; output from one operation can become the input to another operation. This allows expressions to be nested in the relational algebra. This property is called&amp;nbsp;relation are closed under the algebra.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; The operations are based on two groups of logical entities&amp;nbsp; are called&amp;nbsp; operators. One group consists of the traditional set operator namely----&lt;b&gt;UNION,INTERSECTIONS,DIFFERENCES,CARTESIAN PRODUCT,&lt;/b&gt; and the other group contains special or native relational operational operators, namely-----&lt;b&gt;SELECTION,PROJECTION,JOIN,and DIVISION.&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #4c1130; font-size: large;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;►&lt;/span&gt;&lt;u style=&quot;color: #4c1130;&quot;&gt;UNION:&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;The union operator is denoted by symbol &quot;U&quot; or&quot;+&quot;, and it acts on two real items to generate a new relations containing all tuple of the relations&amp;nbsp; accept the duplicate once.This implied that the new relations will have tuple which will belong to either the first relation or the second or both.Thus the result of those operation denoted by &quot;R&quot;U&quot;S&quot;, is a relation that includes all tuple those are either in &quot;R&quot; or in &quot;S&quot; or in &quot;R&amp;amp;S&quot;. Duplicate tuple are eliminated.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;To perform union operation on two relations,both operand and relation must be union compatible,which means that they must have same no. of columns drown from the same domain,i.e, must be of same data type.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Let &quot;R&quot; and &quot;S&quot; be the two relations as-------------&lt;/div&gt;&lt;div style=&quot;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;a href=&quot;https://4.bp.blogspot.com/-Kc4cCXiH_TA/W33Gc_VXTQI/AAAAAAAABac/25FCCZftXN8B9s1SxK4ubTXxPbPXewV2wCEwYBhgL/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;166&quot; data-original-width=&quot;567&quot; height=&quot;186&quot; src=&quot;https://4.bp.blogspot.com/-Kc4cCXiH_TA/W33Gc_VXTQI/AAAAAAAABac/25FCCZftXN8B9s1SxK4ubTXxPbPXewV2wCEwYBhgL/s640/5.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Thus RUS yields------&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-5tszI9Wx17Y/W33DFyCTPxI/AAAAAAAABaI/h5eOdZlXBlgJftPk_j6ArWgimIb37BhXgCLcBGAs/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;227&quot; data-original-width=&quot;127&quot; src=&quot;https://2.bp.blogspot.com/-5tszI9Wx17Y/W33DFyCTPxI/AAAAAAAABaI/h5eOdZlXBlgJftPk_j6ArWgimIb37BhXgCLcBGAs/s1600/3.PNG&quot; /&gt;&lt;/a&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;&lt;a href=&quot;https://4.bp.blogspot.com/-xITrha4xJn0/W33DG0GofHI/AAAAAAAABaM/6rUGxz3tENg9BR4Jk1S9LGU7QSQbNj1UgCLcBGAs/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; display: inline !important; margin-bottom: 1em; margin-left: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;231&quot; data-original-width=&quot;128&quot; src=&quot;https://4.bp.blogspot.com/-xITrha4xJn0/W33DG0GofHI/AAAAAAAABaM/6rUGxz3tENg9BR4Jk1S9LGU7QSQbNj1UgCLcBGAs/s1600/4.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;►&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;u&gt;INTERSECTIONS:&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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; The intersection operator is denoted by the word intersect or the symbol &quot;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;ᴖ&lt;/span&gt;&quot; and it acts on another relation consisting of only the common tuple between the two.The result of this operation denoted by R&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;ᴖS include all tuple that are in both &quot;R&quot; and &quot;S&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;text-align: justify;&quot;&gt;Let &quot;R&quot; and &quot;S&quot; be the two relations as-------------&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-Kc4cCXiH_TA/W33Gc_VXTQI/AAAAAAAABac/Y5Xdw10m1XADj_drMSlmdjETXyBj1yL6wCLcBGAs/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;166&quot; data-original-width=&quot;567&quot; height=&quot;186&quot; src=&quot;https://2.bp.blogspot.com/-Kc4cCXiH_TA/W33Gc_VXTQI/AAAAAAAABac/Y5Xdw10m1XADj_drMSlmdjETXyBj1yL6wCLcBGAs/s640/5.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;R&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;ᴖS yields-----&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 16px;&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;u&gt;&amp;nbsp; &amp;nbsp;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;STUDENT NAME&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;1.&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; RAM&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;►&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;DIFFERENCE&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;u&gt;:&lt;/u&gt;&lt;/span&gt;&lt;/b&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; &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; The difference operator is denoted by the symbol &quot;-&quot;;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;and it operator on two relations to yield a third relation that comprise all tuples belonging to the relations. a difference operator can be achieved.&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: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;►&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;CARTESIAN PRODUCT:&lt;/span&gt;&lt;/u&gt;&lt;/b&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; &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;The extended Cartesian product of two relations is denoted by the operator &quot;X&quot;, and it product a third relation containing all possible tuple that may be formed&amp;nbsp; by concatenation the attributes of the relation.&amp;nbsp;&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;&quot;&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;text-align: justify;&quot;&gt;Let &quot;R&quot; and &quot;S&quot; be the two relations as-------------&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-LYSabOYFM8w/W33MlL9cHdI/AAAAAAAABao/f0myMvhb5zwWkw1A5UVUxG6wVxqP4pRPwCLcBGAs/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;196&quot; data-original-width=&quot;466&quot; height=&quot;167&quot; src=&quot;https://4.bp.blogspot.com/-LYSabOYFM8w/W33MlL9cHdI/AAAAAAAABao/f0myMvhb5zwWkw1A5UVUxG6wVxqP4pRPwCLcBGAs/s400/7.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&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;RELATION&amp;nbsp; R&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; RELATION&amp;nbsp; S&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&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;br /&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: justify;&quot;&gt;Then &quot;RXS&quot; yields------&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: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-fJFDUMaHa8E/W33Mm-mqHHI/AAAAAAAABas/Ow5TPG0MQh0NjgD0ScLRwRZHuKyQXdekgCEwYBhgL/s1600/8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;212&quot; data-original-width=&quot;508&quot; height=&quot;166&quot; src=&quot;https://3.bp.blogspot.com/-fJFDUMaHa8E/W33Mm-mqHHI/AAAAAAAABas/Ow5TPG0MQh0NjgD0ScLRwRZHuKyQXdekgCEwYBhgL/s400/8.PNG&quot; width=&quot;400&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: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/391160835475219231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/08/relational-algebra.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/391160835475219231'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/391160835475219231'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/08/relational-algebra.html' title='Relational Algebra'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-Kc4cCXiH_TA/W33Gc_VXTQI/AAAAAAAABac/25FCCZftXN8B9s1SxK4ubTXxPbPXewV2wCEwYBhgL/s72-c/5.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-3716213580733842130</id><published>2018-08-08T18:18:00.000+05:30</published><updated>2018-08-08T18:21:15.791+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="1NF"/><category scheme="http://www.blogger.com/atom/ns#" term="2NF"/><category scheme="http://www.blogger.com/atom/ns#" term="3NF"/><category scheme="http://www.blogger.com/atom/ns#" term="BCNF"/><category scheme="http://www.blogger.com/atom/ns#" term="NORMALIZATION"/><title type='text'>What is Normalization?1NF,2NF,3NF,BCNF with Example</title><content type='html'>&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;b&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;u&gt;NORMALIZATIO&lt;span style=&quot;background-color: white;&quot;&gt;N:&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;text-align: justify;&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;Normalization is a scientific method of Breaking Down Complex table structure into simple table structure by using certain rule. We can, therefore, reuse redundancy in a table and eliminate the problem of inconsistency and disk usages. We can also ensure that there is no loss of information.&lt;br /&gt;&lt;br /&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;Normalization is a scientific method of Breaking Down Complex table structure into simple table structure by using certain rule. We can, therefore, reuse redundancy in a table and eliminate the problem of inconsistency and disk usages. We can also ensure that there is no loss of information.&lt;br /&gt;&lt;br /&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;Normalization result in the formation of table that certify certain specified rule and represent certain normal form. The normal from are used to ensure that various type of&amp;nbsp; anomalies and inconsistency are not introduced in the database. A table structure is always certain normal form. Several Normal Form never been identified. The most important and wiedly use normal form are------&lt;br /&gt;1.1NF(Fast normal form)&lt;br /&gt;2.2NF(second normal form)&lt;br /&gt;3.3NF(third normal form)&lt;br /&gt;4.BCNF(Boyce-code normal form)&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-9rUzeaksWmY/W2rHwsQ_pbI/AAAAAAAABYQ/Fy9X9sQoJ1wC2kyugMzFGy1Iq8eGqJQeQCLcBGAs/s1600/C1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;425&quot; data-original-width=&quot;483&quot; height=&quot;280&quot; src=&quot;https://2.bp.blogspot.com/-9rUzeaksWmY/W2rHwsQ_pbI/AAAAAAAABYQ/Fy9X9sQoJ1wC2kyugMzFGy1Iq8eGqJQeQCLcBGAs/s320/C1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;1.1NF(Fast normal form&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;):&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #741b47;&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; &lt;/span&gt;&amp;nbsp; &amp;nbsp;A table is said to be in the 1NF when each cell of the table contains precisely one value.&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: justify;&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; For&amp;nbsp; example consider the following table student&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-9fVv1EkY0T0/W2rMfQtCfFI/AAAAAAAABYc/eES-Id7secMUElWSyEP3OZTXfh-fqHOtACLcBGAs/s1600/C2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;258&quot; data-original-width=&quot;480&quot; height=&quot;172&quot; src=&quot;https://3.bp.blogspot.com/-9fVv1EkY0T0/W2rMfQtCfFI/AAAAAAAABYc/eES-Id7secMUElWSyEP3OZTXfh-fqHOtACLcBGAs/s320/C2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&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; &amp;nbsp; &amp;nbsp; In above table the data is not normalize because the cells in department and student name more then one value,by applying the 1NF definition to the project table, we arrive at the following table----&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-eSTaSpivMH8/W2rNiUNk5PI/AAAAAAAABYk/8jIbOKXAfzs2gF9gBCFJEoAER3r1GIFZwCLcBGAs/s1600/C3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;252&quot; data-original-width=&quot;478&quot; height=&quot;168&quot; src=&quot;https://4.bp.blogspot.com/-eSTaSpivMH8/W2rNiUNk5PI/AAAAAAAABYk/8jIbOKXAfzs2gF9gBCFJEoAER3r1GIFZwCLcBGAs/s320/C3.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&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: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;2.2NF(second normal form&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;b&gt;&lt;u&gt;):&lt;/u&gt;&lt;/b&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; &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;A table is said to be in 2NF when it is in 1NF and every attribute in the row is functionally dependent upon the hole key, and not just part of the key.&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: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For&amp;nbsp; example consider the following table project&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-zELQlXosnNs/W2rSk-rDV8I/AAAAAAAABYw/_1dlNPjkoY8NQ14ALZctiAEACCQkCR00gCLcBGAs/s1600/C4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;189&quot; data-original-width=&quot;680&quot; height=&quot;110&quot; src=&quot;https://4.bp.blogspot.com/-zELQlXosnNs/W2rSk-rDV8I/AAAAAAAABYw/_1dlNPjkoY8NQ14ALZctiAEACCQkCR00gCLcBGAs/s400/C4.PNG&quot; width=&quot;400&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: justify;&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; In&amp;nbsp; above table E-CODE+ PROJECT CODE&amp;nbsp;is composite primary key. The table specify is the definition of the 1nf because each cell table content one value but for each value of E-CODE, there is more then on value of duration. Duration is not functionally dependent on E-CODE similarly for each value of PROJECT CODE, there is more than one value of duration. Hymns duration is not functional dependent on PROJECT CODE. However, for a combination of the E-CODE and PROJECT CODE value, there is exactly one value of the duration. Hence the attribute duration is functionally dependent on the hole key E-CODE+ PROJECT CODE. For each value of E-CODE, there is exactly one value of department. Themes department is the functional dependent on E-CODE which is also part of the composite primary key. Similarly for each value of project code, there is more than one value of department. Hence, department is not functionally dependent on their attribute project code. Department is also functionally dependent on the hole key because for each value of department there is exact on value on the combination E-CODE+ PROJECT CODE value. Hence the table is not into 2NF.&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: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; To convert the above table after applying&amp;nbsp; 2NF rule on project table-----------&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-t7L7e80xkrk/W2rYlfHA59I/AAAAAAAABZE/SIeHBnOTt0kzg-8ggY1lAvbZCX0uM_OlACEwYBhgL/s1600/C5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;191&quot; data-original-width=&quot;367&quot; height=&quot;166&quot; src=&quot;https://2.bp.blogspot.com/-t7L7e80xkrk/W2rYlfHA59I/AAAAAAAABZE/SIeHBnOTt0kzg-8ggY1lAvbZCX0uM_OlACEwYBhgL/s320/C5.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-qGbbMRGpuug/W2rYnLwuRbI/AAAAAAAABZE/c3OwYqN81g45Ad2p0fpmAoNxScEszN-yACEwYBhgL/s1600/C6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;186&quot; data-original-width=&quot;516&quot; height=&quot;143&quot; src=&quot;https://2.bp.blogspot.com/-qGbbMRGpuug/W2rYnLwuRbI/AAAAAAAABZE/c3OwYqN81g45Ad2p0fpmAoNxScEszN-yACEwYBhgL/s400/C6.PNG&quot; width=&quot;400&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: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;3.3NF(third normal form):&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&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; A table said to be 3NF&amp;nbsp;when it is in 2NF&amp;nbsp; and every non-key attribute is functionally dependent only on the primary key.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&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; for example constant the following table employee&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-B_5iQhXrYQo/W2reARCj6fI/AAAAAAAABZM/mmpFmQmNl2UTv_UdEdyFp06gPg5y6TEWQCLcBGAs/s1600/C7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;286&quot; data-original-width=&quot;532&quot; height=&quot;172&quot; src=&quot;https://2.bp.blogspot.com/-B_5iQhXrYQo/W2reARCj6fI/AAAAAAAABZM/mmpFmQmNl2UTv_UdEdyFp06gPg5y6TEWQCLcBGAs/s320/C7.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In above&amp;nbsp; table E-CODE is primary key. For each value E-CODE, there is exact on value of department. Hence, the attribute department is functional&amp;nbsp; dependent on the primary key E-CODE. Similarly, for each value E-CODE, there is example of Department Head.Hence,&amp;nbsp; Department Head is fully functionally dependent on primary key E-CODE. Hence,&amp;nbsp; all the attribute are functionally dependent on are hole key E-CODE,Hence the table is in 2NF.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; However,the attribute Department Head&amp;nbsp; if the dependent on the attribute department also. As per 3NF&amp;nbsp; rule, all non key attribute have not to be functionally dependent only on the primary key.Hence this table is not in 3NF, Since&amp;nbsp;Department Head is functionally dependent on department, which is not a primary key.&lt;br /&gt;&lt;br /&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;So we convert the above table after applying&amp;nbsp; 3NF rule-----------&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-pJJm2LAGsks/W2rg331jI1I/AAAAAAAABZY/DLxG60eALEsu4qWGJOJep2x-LNmj7jC3wCEwYBhgL/s1600/C8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;279&quot; data-original-width=&quot;361&quot; height=&quot;247&quot; src=&quot;https://1.bp.blogspot.com/-pJJm2LAGsks/W2rg331jI1I/AAAAAAAABZY/DLxG60eALEsu4qWGJOJep2x-LNmj7jC3wCEwYBhgL/s320/C8.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-CKMFHC70CiI/W2rg4qxTx-I/AAAAAAAABZc/5IFWMNL_inAB0nNNu0SRpwEKi30XW7aEQCEwYBhgL/s1600/C9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;240&quot; data-original-width=&quot;351&quot; height=&quot;217&quot; src=&quot;https://3.bp.blogspot.com/-CKMFHC70CiI/W2rg4qxTx-I/AAAAAAAABZc/5IFWMNL_inAB0nNNu0SRpwEKi30XW7aEQCEwYBhgL/s320/C9.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;4.BCNF(Boyce-code normal form):&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&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;A relation is said to be BCNF if and only if every determine is a candidate key.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/3716213580733842130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/08/what-is-normalization1nf2nf3nfbcnf-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/3716213580733842130'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/3716213580733842130'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/08/what-is-normalization1nf2nf3nfbcnf-with.html' title='What is Normalization?1NF,2NF,3NF,BCNF with Example'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://2.bp.blogspot.com/-9rUzeaksWmY/W2rHwsQ_pbI/AAAAAAAABYQ/Fy9X9sQoJ1wC2kyugMzFGy1Iq8eGqJQeQCLcBGAs/s72-c/C1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-858514139979236198</id><published>2018-08-06T22:26:00.000+05:30</published><updated>2018-08-19T22:51:08.653+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C PROGRAMMING"/><category scheme="http://www.blogger.com/atom/ns#" term="PROGRAM IN C"/><title type='text'>PROGRAM IN C</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-er-rn8aIlZg/W2iMERVzaqI/AAAAAAAABWo/6twn6tgTINYnjAUH7a05_Y5VxHbqHJ6gACLcBGAs/s1600/Capture1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;208&quot; data-original-width=&quot;408&quot; height=&quot;163&quot; src=&quot;https://4.bp.blogspot.com/-er-rn8aIlZg/W2iMERVzaqI/AAAAAAAABWo/6twn6tgTINYnjAUH7a05_Y5VxHbqHJ6gACLcBGAs/s320/Capture1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;1.WRITE A C PROGRAM TO CALCULATE SUM OF TWO NUMBERS&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;font-size: medium;&quot;&gt;&lt;u style=&quot;text-underline: dot-dot-dash;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;PROGRAM&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;# include&amp;lt;studio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;void main()&lt;br /&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Int&amp;nbsp;&amp;nbsp; a,b,c;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Enter the two no to calculate&amp;nbsp; sum :”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;scanf(“%d%d”,&amp;amp;a&amp;amp;b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;c=a+b;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“The sum of %d and %d is =%d”,a,b,c);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;u&gt;OUT PUT :&lt;/u&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Enter two &lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;number to calculate sum: 3 4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;The sum of 3 and 4 is =12&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 18pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;2.WRITE A C PROGRAM TO CALCULATE TO CHECK A&amp;nbsp;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;NUMBER EVEN OR ODD&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 20.0pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;PROGRAM&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;# include&amp;lt;studio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;void main()&lt;br /&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;int&amp;nbsp; n;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Enter&amp;nbsp; the numbers to&amp;nbsp; check&amp;nbsp; even or odd :”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;scanf(“%d”,&amp;amp;n);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;if(n%2==0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Given numbers is&amp;nbsp; even”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Given numbers is not&amp;nbsp; even”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;br clear=&quot;all&quot; style=&quot;mso-special-character: line-break; page-break-before: always;&quot; /&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 18.0pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;OUT PUT&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; :&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;Enter&amp;nbsp; the numbers to&amp;nbsp; check&amp;nbsp; even or odd : 11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;Given numbers is not&amp;nbsp; even&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;Enter&amp;nbsp; the numbers to&amp;nbsp; check&amp;nbsp; even or odd: 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;                                     &lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;Given numbers is&amp;nbsp; even&lt;u style=&quot;font-size: 18pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;3. WRITE&amp;nbsp; A C PROGRAM TO CALCULATE MULTIPLICITE OF TWO NUMBER&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;PROGRAM:&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;int&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;a,b,c;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Enter two numbers to calculate multiplication :”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;scanf(“%d%d”,&amp;amp;a&amp;amp;b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;c=a*b;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(Multiplication=%d”,c);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;u style=&quot;text-underline: dotted;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;br clear=&quot;all&quot; style=&quot;mso-special-character: line-break; page-break-before: always;&quot; /&gt;&lt;/span&gt;&lt;/u&gt; &lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u style=&quot;text-underline: dotted;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;OUT PUT&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Enter two numbers to calculate multiplication :4&amp;nbsp; 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;tab-stops: 299.25pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Multiplication=20&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;u&gt;4.WRITE A C PROGRAM TO DISPLAY YOUR NAME FIVE TIME IN&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;PROGRAM&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; :&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;int a;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“My name 5 times in”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;while(i&amp;lt;=5)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“RAM \n”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i=i+1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;OUT PUT&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;My name&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;5 time in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;RAM&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;RAM&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;RAM&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;RAM&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;RAM&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;5.WRITE A C PROGRAM TO DISPLAY THE FOLLOWING&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 22.0pt; line-height: 115%; mso-bidi-font-size: 14.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;*&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;**&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;***&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;****&lt;span style=&quot;font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;PROGRAM&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;int i=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;clrscr();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“In the required display is \n”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;while(i&amp;lt;=4)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;j=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;while(j&amp;lt;=i)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“*\t”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;j++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“/n”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;OUT PUT&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; :&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;In the required display is&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 22.0pt; line-height: 115%; mso-bidi-font-size: 14.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;**&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;***&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;                                                             &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6.0pt; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;****&lt;span style=&quot;font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;6.WRITE A C PROGRAM TO DISPLAY ALL EVEN NO&amp;nbsp;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;BETWEEN A RANGE&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u style=&quot;text-underline: dot-dot-dash;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u style=&quot;text-underline: dot-dot-dash;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;PROGRAM&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;background-color: white; color: #0b5394;&quot;&gt; :&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Int &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;i,start,end;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;clrscr();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Enter the range to display all even no. between a range\n”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;scanf(“%d%d”,&amp;amp;start,&amp;amp;end);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i=start;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“All even no.between %d to %d are\n”,start,end);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;while(i&amp;lt;=end)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;if(i%2==0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“%6d”,i);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u style=&quot;text-underline: dot-dot-dash;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;OUT PUT&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Enter the range to display all even no. between a range&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;All even no. between 1 to 10 are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;2&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;4&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;6&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;8&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: 18.0pt; line-height: 115%; mso-bidi-font-size: 14.0pt;&quot;&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;7.WRITE A C PROGRAM&amp;nbsp; TO DISPLAY ALL NUMBERS BETWEEN A RANGE&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;PROGRAM &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;int i,start,end;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Enter the range to display the no.\n”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;scanf(“%d%d”,&amp;amp;start,&amp;amp;end);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i=start;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“All number between %d to %d&amp;nbsp; are \n”,start,end);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;while(i&amp;lt;=end)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“%6d”,i);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;OUT PUT&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; :&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Enter the range to display the no.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;All number between 1 to 10&amp;nbsp; are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 4&amp;nbsp; 5&amp;nbsp; 6&amp;nbsp; 7&amp;nbsp; 8&amp;nbsp; 9&amp;nbsp; 10&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;8.WRITE&amp;nbsp; A&amp;nbsp; C&amp;nbsp; PROGRAM&amp;nbsp; TO COUNT NUMBER OF&amp;nbsp;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;DIGIT OF A NUMBER&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;PROGRAM : &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;coio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;int n,c=0,i,t;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Enter a no. to count the digit \n”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;scanf(“%d”,&amp;amp;n);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;t=n;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;while(t!=0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;c++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;t=t/10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“The no. %d&amp;nbsp; is %d digits”,n,c);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;OUTPUT&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; :&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Enter a no. to count a digit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;123&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;The no. 123 is 3 digit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: large; font-weight: bold;&quot;&gt;9.WRITE A C PROGRAM&amp;nbsp; TO CHECK A NO IS PRIME OR&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: large; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #741b47; font-size: large; font-weight: bold;&quot;&gt;NOT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 20.0pt; line-height: 115%; mso-bidi-font-size: 14.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;PROGRAM &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;conoio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 74.25pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&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; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;int n,i=2,f=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;clescr();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Enter a no. to check prime or not \n”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;scanf(“%d”,&amp;amp;n);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;while(i&amp;lt;=n/2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;if(n%i==0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;f++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;if(f==0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“%d is a prime no.”,n);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“%d is not a prime no.”,n)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;OUTPUT :&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Enter a no. to check prime or not&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;12 is a prime no.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Enter a no. to check prime or not&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;11 is not a prime no.&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;10.WRITE&amp;nbsp; A&amp;nbsp; C PROGRAM&amp;nbsp; TO DISPLAY ALL PRIME NO.&amp;nbsp;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;UPTO &amp;nbsp;n&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 115%; mso-bidi-font-size: 14.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;PROGRAM&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt; :&lt;/span&gt;&lt;i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;#include&amp;lt;comio.h&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;int n,i,f,j=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;clrscr();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“Enter a no. to find the all prime no.s\n”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;scanf(“%d”,&amp;amp;n);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“All prime no.s up to %d”,n);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;while(j&amp;lt;=n)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;f=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i=2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;while(i&amp;lt;=j/2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;if(n%i==0)&lt;br /&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;f++;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;if(f==0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;printf(“%d\t”,j);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;j++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;getch();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;OUT PUT &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;: &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Enter a no. to find all prime no.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;All prime no. up to 6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; &lt;span style=&quot;font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 132.0pt;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: 18.0pt; line-height: 115%; mso-bidi-font-size: 14.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: 18.0pt; line-height: 115%; mso-bidi-font-size: 14.0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/858514139979236198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/08/program-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/858514139979236198'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/858514139979236198'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/08/program-in-c.html' title='PROGRAM IN C'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-er-rn8aIlZg/W2iMERVzaqI/AAAAAAAABWo/6twn6tgTINYnjAUH7a05_Y5VxHbqHJ6gACLcBGAs/s72-c/Capture1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-2012665173457083154</id><published>2018-07-30T16:08:00.001+05:30</published><updated>2018-08-19T22:51:30.305+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="variable in c"/><category scheme="http://www.blogger.com/atom/ns#" term="what is variable"/><title type='text'>variable in c</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;WHAT IS VARIABLE?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&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; Just like a container; that can help to store data with specific type.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Example: int,char,string,&lt;br /&gt;&lt;br /&gt;*&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt; In &#39;C&#39; Language to declare a variable should maintain following point---------&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;➡️ 1st character should be an alpha or underscore(_).&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ex: &lt;u&gt;n&lt;/u&gt;umber,_number&lt;br /&gt;➡️ Do not use any special character except under score(_)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ex:&amp;nbsp; student@name&lt;span style=&quot;color: red;&quot;&gt;⛒&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; student+name&lt;span style=&quot;color: red;&quot;&gt;⛒&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;student_name&lt;span style=&quot;color: lime;&quot;&gt;✓&lt;/span&gt;&lt;br /&gt;➡️ May or may not sure numeric digits&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ex: 1no&lt;span style=&quot;color: red;&quot;&gt;⛒&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _1no&lt;span style=&quot;color: lime;&quot;&gt;✓&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no1&lt;span style=&quot;color: lime;&quot;&gt;✓&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;n1o&lt;span style=&quot;color: lime;&quot;&gt;✓&lt;/span&gt;&lt;br /&gt;➡️ Upper case and lower char are distinct&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ex:&amp;nbsp; no&lt;span style=&quot;color: lime;&quot;&gt;✓&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No&lt;span style=&quot;color: lime;&quot;&gt;✓&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NO&lt;span style=&quot;color: lime;&quot;&gt;✓&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nO&lt;span style=&quot;color: lime;&quot;&gt;✓&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*&amp;nbsp;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;How to declare a variable?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp; syn: &amp;lt;datatype&amp;gt; &amp;lt;variable name&amp;gt;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;Ex: int a;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float b;&lt;br /&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; &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; &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: #741b47;&quot;&gt;&lt;u&gt;&lt;b&gt;&amp;nbsp;Type of Variable:&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;1. int a; (signed short integer)&lt;br /&gt;2. unsigned int b;&amp;nbsp; (unsigned short integer)&lt;br /&gt;3. long c; (signed long integer)&lt;br /&gt;4. unsigned long d; (unsigned long integer)&lt;br /&gt;5. float p; (single precision real variable )&lt;br /&gt;6. double r;(double precision real variable)&lt;br /&gt;7. long double s;(double precision real variable)&lt;br /&gt;8. char n;(character variable )&lt;br /&gt;9. char name[30];(string variable)&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-kNoKvcXD-bY/W2iNB7GT7mI/AAAAAAAABWw/At4skzrHLuE7XfIqFZFzTn745yu9BfIPgCLcBGAs/s1600/Capture2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;336&quot; data-original-width=&quot;534&quot; height=&quot;201&quot; src=&quot;https://4.bp.blogspot.com/-kNoKvcXD-bY/W2iNB7GT7mI/AAAAAAAABWw/At4skzrHLuE7XfIqFZFzTn745yu9BfIPgCLcBGAs/s320/Capture2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/2012665173457083154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/07/variable-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/2012665173457083154'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/2012665173457083154'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/07/variable-in-c.html' title='variable in c'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-kNoKvcXD-bY/W2iNB7GT7mI/AAAAAAAABWw/At4skzrHLuE7XfIqFZFzTn745yu9BfIPgCLcBGAs/s72-c/Capture2.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-7709037745688937637</id><published>2018-07-28T15:31:00.000+05:30</published><updated>2018-07-28T15:31:21.055+05:30</updated><title type='text'>Privacy policy</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: inherit; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;Privacy Policy&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: inherit; font-stretch: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; for https://comknowledge1.blogspot.com&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at prasunkhanra.solidiha333@gmail.com.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;At https://comknowledge1.blogspot.com, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and collected by https://comknowledge1.blogspot.com and how it is used.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: inherit; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;Log Files&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;Like many other Web sites, https://comknowledge1.blogspot.com makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: inherit; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Cookies and Web Beacons&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;https://comknowledge1.blogspot.com does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: inherit; font-stretch: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;DoubleClick DART Cookie&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;.:: Google, as a third party vendor, uses cookies to serve ads on https://comknowledge1.blogspot.com.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;.:: Google&#39;s use of the DART cookie enables it to serve ads to users based on their visit to https://comknowledge1.blogspot.com and other sites on the Internet.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;.:: Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - http://www.google.com/privacy_ads.html&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include ....&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;Google Adsense&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;These third-party ad servers or ad networks use technology to the advertisements and links that appear on https://comknowledge1.blogspot.com send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;https://comknowledge1.blogspot.com has no access to or control over these cookies that are used by third-party advertisers.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. https://comknowledge1.blogspot.com&#39;s privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #083349; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #083349; font-family: &amp;quot;open sans&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers&#39; respective websites.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/7709037745688937637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/07/privacy-policy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7709037745688937637'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7709037745688937637'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/07/privacy-policy.html' title='Privacy policy'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-2485737786302738223</id><published>2018-07-26T16:26:00.001+05:30</published><updated>2018-08-19T23:18:59.739+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic characteristic of constructor:"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="constructor"/><category scheme="http://www.blogger.com/atom/ns#" term="Non parameterized constructor"/><category scheme="http://www.blogger.com/atom/ns#" term="Parameterized constructor"/><title type='text'>Constructor</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;WHAT IS CONSTRUCTOR?&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&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;A constructor is a special member function whose task is to initialize the object of its class. It is special because its name is the same as the class name in which they define and automatically will be invoked when ever and associated class it created. It is called constructor class because it contract the value of data member of class.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-N_G8Gt1aGq8/W2iOXrtbrhI/AAAAAAAABW8/k0rNhLwc7l8V8ni2Frlbg7XynJpVB2HpgCLcBGAs/s1600/Capture3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;140&quot; data-original-width=&quot;203&quot; src=&quot;https://4.bp.blogspot.com/-N_G8Gt1aGq8/W2iOXrtbrhI/AAAAAAAABW8/k0rNhLwc7l8V8ni2Frlbg7XynJpVB2HpgCLcBGAs/s1600/Capture3.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;constructor may be characterized by-------&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;1.&amp;nbsp;Parameterized constructor :&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&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;A constructor that can take argument or parameter- called parameterized constructor. In case of parameterized constructor must pass the initial value as argument to the constructor function when an object is declared. This is done by one from following------&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;a.By calling the constructor explicitly-----&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;#include&amp;lt;iostream.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;class xyz&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;int num;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;public;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;xyz(int x)&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;num=x;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;void display(void)&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;cout&amp;lt;&amp;lt;&quot;\n number=&quot;&amp;lt;&amp;lt;num;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;};&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;void main()&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;xyz&amp;nbsp; a=xyz(100);&amp;nbsp; //calling constructor explicitly.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;clrscr();&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;a.display();&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;getch( );&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;}&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;b.By calling the constructor implicitly-----&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;#include&amp;lt;iostream.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;class xyz&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;int num;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;public;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;xyz(int x)&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;num=x;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;void display(void)&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;cout&amp;lt;&amp;lt;&quot;\n number=&quot;&amp;lt;&amp;lt;num;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;};&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;void main()&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;xyz&amp;nbsp; a(100);&amp;nbsp; //calling constructor implicitly.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;clrscr();&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;a.display();&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;getch( );&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;}&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;text-align: left;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;2. Non parameterized constructor :&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;A constructor that accept no parameter or argument is called non parameterized constructor or default constructor. In c++ if know such constructor is define then the constructor supplies is default constructor.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;#include&amp;lt;iostream.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;class xyz&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;int num;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;public;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;xyz(void)&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;num=100;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;void display(void)&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;cout&amp;lt;&amp;lt;&quot;\n number=&quot;&amp;lt;&amp;lt;num;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;};&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;void main()&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;xyz&amp;nbsp; a;&amp;nbsp; //calling constructor implicitly.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;clrscr();&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;a.display();&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;getch( );&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;}&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;Basic characteristic of constructor:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; The basic characteristic of constructor are------&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;1. The name of the should be same as the class name in which they declared.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;2. They should be declared in the public sector of class.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;3. They do not return type,not even void and there for they cannot return value.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;4. May or may not be parameterized.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;5. In case of parameterized constructor they can have default argument.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;6. Constructor can be overloaded.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;7. Constructor can be virtual.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;8. Cannot refer address of constructor.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/2485737786302738223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/07/constructor.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/2485737786302738223'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/2485737786302738223'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/07/constructor.html' title='Constructor'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-N_G8Gt1aGq8/W2iOXrtbrhI/AAAAAAAABW8/k0rNhLwc7l8V8ni2Frlbg7XynJpVB2HpgCLcBGAs/s72-c/Capture3.PNG" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-3011488293190886904</id><published>2018-07-19T18:10:00.000+05:30</published><updated>2018-08-19T23:22:37.436+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="OS"/><category scheme="http://www.blogger.com/atom/ns#" term="scheduler"/><category scheme="http://www.blogger.com/atom/ns#" term="scheduling"/><title type='text'>scheduling</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;WHAT IS CPU SCHEDULING?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Scheduling refers to the set of policies and mechanisms that an OS support for determining the order of execution of the pending jobs and processes.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;WHAT ARE THE OBJECTIVE OF CPU SCHEDULING?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;1. Fairness:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&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;Makes sure each process get it&#39;s fair of CPU.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;2. Efficiency:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&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;Keep the CPU busy hundred percent so that efficiency is increased.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;3. Response time:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&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;Minimize the response time.&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;4. Through put:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&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; Minimize the through put.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;5. CPU Utilization:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&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; The CPU utilization specially on the time shared system should be maximum.&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;WHAT IS&amp;nbsp; SCHEDULER?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;When more than one process is runable,the OS must decide which one to be run fast. The part of the OS concerned with the decision is called scheduler, and the algorithm it uses is called the scheduling algorithm.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;color: red; text-align: left;&quot;&gt;&lt;u&gt;TYPE OF SCHEDULER:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;color: red; text-align: left;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1. L.T.S (Long Term Scheduler)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. M.T.S(Middle Term Scheduler)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3. S.T.S(Short Term Scheduler)&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;b&gt;&lt;u&gt;1. L.T.S (Long Term Scheduler):&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;The long term scheduler is also called the job scheduler. This scheduler determines which jobs are admitted to the system for processing. It is also called admission scheduler, because it determines which job gains admission to the system.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In batch processing system more jobs are spooled to a mass storage device. The Long Term Scheduler select these job from job pools and loads these into memory for execution.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;2. M.T.S(Middle Term Scheduler):&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; &amp;nbsp; &amp;nbsp;many time we need to remove a process from the main memory as this process maybe in need of some input output operation. So such processes may be removed or suspended from the main memory to the hard disk. Letter on this process can be reloaded into memory and continued from from it was left earlier. This saving of the suspended process is said to be swaped out or rolled out and this swapping is done by medium term scheduler.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It acts as the intermediate between LTS and STS.&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;/div&gt;&lt;div style=&quot;text-align: justify;&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;&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;3. S.T.S(Short Term Scheduler) :&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&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;&lt;span style=&quot;text-align: justify;&quot;&gt;This scheduler is sometime called CPU scheduling, or CPU scheduler. The short term scheduler selects among the job in memory, which are ready to execute and allocate the CPU to one of them. It&#39;s main objective is to maximum CPU utilization.&lt;/span&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/3011488293190886904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/07/scheduling.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/3011488293190886904'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/3011488293190886904'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/07/scheduling.html' title='scheduling'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-6256235429940489837</id><published>2018-07-14T00:04:00.001+05:30</published><updated>2018-08-19T22:55:09.620+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="characterized by inheritance"/><category scheme="http://www.blogger.com/atom/ns#" term="Inheritance"/><title type='text'>Inheritance</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-uqtK-b5o1Q4/W2iUjaM5GMI/AAAAAAAABX0/CkGfmeFz1VM2QY3vYGbFCWbtC7Xn3ty0wCLcBGAs/s1600/Capture11.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;94&quot; data-original-width=&quot;338&quot; height=&quot;55&quot; src=&quot;https://4.bp.blogspot.com/-uqtK-b5o1Q4/W2iUjaM5GMI/AAAAAAAABX0/CkGfmeFz1VM2QY3vYGbFCWbtC7Xn3ty0wCLcBGAs/s200/Capture11.PNG&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;What is inheritance?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The mechanism by which a new class in derived from existing classes is called inheritance. Here existing classes are known as discussed and the new classes are known as derived classes.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; By following figure we can demonstrate the basic concept of inheritance--------&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-aXb2MqAlqRY/W0jsSlG8GvI/AAAAAAAABH0/C_dWBCVplkgLSI6O24IQgDGQ3hQ8DEv4ACLcBGAs/s1600/P_20180713_233348_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;618&quot; data-original-width=&quot;1600&quot; height=&quot;123&quot; src=&quot;https://3.bp.blogspot.com/-aXb2MqAlqRY/W0jsSlG8GvI/AAAAAAAABH0/C_dWBCVplkgLSI6O24IQgDGQ3hQ8DEv4ACLcBGAs/s320/P_20180713_233348_1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fig: basic concept of inheritance&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;Characteristic of inheritance:&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&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; In C++ inheritance machanism is may be categorise by--------&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. Single inheritance&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Multiple inheritance&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. Multilevel inheritance&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4. Hierarchical inheritance&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5. Hybrid inheritance&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6. Multipath inheritance&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;1. Single inheritance:&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&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;The inheritance mechanism in which a new class we derived from only one base class is called single inheritance.&lt;br /&gt;&lt;br /&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;b&gt;2&lt;/b&gt;&lt;/u&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;b&gt;. Multiple inheritance:&lt;/b&gt;&lt;/u&gt;&lt;br /&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; the inheritance mechanism in which a new classes is derived from two or more base classes then it is termed as multiple inheritance.&lt;br /&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;b&gt;3. Multilevel inheritance:&lt;/b&gt;&lt;/u&gt;&lt;br /&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; The inheritance mechanism in which a new class is derived from another derived class called multilevel inheritance.&lt;br /&gt;&lt;br /&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;b&gt;4. Hierarchical inheritance:&lt;/b&gt;&lt;/u&gt;&lt;br /&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; The inheritance mechanism in which two or more new class are derived from only one base class then it is term as hierarchical inheritance.&lt;br /&gt;&lt;br /&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;b&gt;5. Hybrid inheritance:&lt;/b&gt;&lt;/u&gt;&lt;br /&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; The inheritance mechanism in which two or more inheritance concept are applied then it is termed as hybrid inheritance.&lt;br /&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;b&gt;6. Multipath inheritance:&lt;/b&gt;&lt;/u&gt;&lt;br /&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; When the child has two direct base classes which themself have a common base class then the child inheritance the treated of grandparent vai to separate path. This type of inheritance is referred to as multipath inheritance their child class would have duplicate set of the member inheritance from grandparents thought parent classes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/6256235429940489837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/07/inheritance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/6256235429940489837'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/6256235429940489837'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/07/inheritance.html' title='Inheritance'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-uqtK-b5o1Q4/W2iUjaM5GMI/AAAAAAAABX0/CkGfmeFz1VM2QY3vYGbFCWbtC7Xn3ty0wCLcBGAs/s72-c/Capture11.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-7702658604358167798</id><published>2018-07-09T00:25:00.000+05:30</published><updated>2018-08-19T22:54:25.409+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="The major features of oop are"/><category scheme="http://www.blogger.com/atom/ns#" term="The major features of pop are"/><category scheme="http://www.blogger.com/atom/ns#" term="What is oop"/><category scheme="http://www.blogger.com/atom/ns#" term="what is pop"/><title type='text'>Oop,pop</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;What is oop?&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Object oriented programming is an approach that provide a way of modelling program by creating partition memory area for both data and function that can be used as as templates for creating copies officers modulus on demand.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; The major features of oop are----&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;1. Emphasis is on data rather than prosedure.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;2. Follows bottom up programming approach.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;3. Data is hiding and cannot be accessed by external function (data encapsulation).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;4. Program are divided into object.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;5. Object may communicate with each other thought function.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;6. Automatic initialisation of object.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;7. Automatic clear up of object.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;8. Polymorphism.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;9. Inheritance.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;10. Templates.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;u style=&quot;color: red; text-align: left;&quot;&gt;&lt;b&gt;What is pop?&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Procedure oriented programming basically consists of write a list of instruction for the computer of follow, and organising these instruction into group known as function. Generally flow chat is used to organises this action of procidure oriented program.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;The major features of pop are----&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;1. Emphasis is on procidure.( Algorithm rather then data).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;2. Follows top down programming approach.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;3. Large program divided into small program, known as function.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;4. Data move openly around the system from one function to another.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;5. Most of the function share global data.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;6. Function transfer data from one form to another.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/7702658604358167798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/07/ooppop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7702658604358167798'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7702658604358167798'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/07/ooppop.html' title='Oop,pop'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-7441158031102556450</id><published>2018-07-05T14:16:00.003+05:30</published><updated>2018-07-05T14:16:31.610+05:30</updated><title type='text'>contact us</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;formAnchor1966707562&quot; name=&quot;form1966707562&quot;&gt;&lt;/a&gt;&lt;script src=&quot;https://fs26.formsite.com/include/form/embedManager.js?1966707562&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;EmbedManager.embed({  key: &quot;https://fs26.formsite.com/res/showFormEmbed?EParam=m%2FOmK8apOTCrVqyc8tOM9WrYe2Y6sJfY&amp;1966707562&quot;,  width: &quot;100%&quot;,  mobileResponsive: true }); &lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/7441158031102556450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/07/contact-us.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7441158031102556450'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7441158031102556450'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/07/contact-us.html' title='contact us'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-4727667780348262695</id><published>2018-07-04T18:10:00.000+05:30</published><updated>2018-08-06T23:44:40.751+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic characteristics of c program"/><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="what is c"/><title type='text'>C</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-GQAgHKb2dSk/W2iP6VCTi-I/AAAAAAAABXQ/HfdsyH9sub43oAypdfbWUHn-qqgQqpVwwCEwYBhgL/s1600/Capture5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;129&quot; data-original-width=&quot;154&quot; src=&quot;https://4.bp.blogspot.com/-GQAgHKb2dSk/W2iP6VCTi-I/AAAAAAAABXQ/HfdsyH9sub43oAypdfbWUHn-qqgQqpVwwCEwYBhgL/s1600/Capture5.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;C:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;✓ High level programming language.&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;✓ But also support the concept of features of low level language. Hence &#39;C&#39; is also called a High level language.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;✓ Developed by Denis Ritche&amp;nbsp;&lt;span style=&quot;color: #a00029; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;at AT &amp;amp;T Bell&#39;s Lab,USA in 1972.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;What is C?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C is a high level language developed by Denis Ritche&amp;nbsp;&lt;span style=&quot;color: #a00029; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;at AT &amp;amp;T Bell&#39;s Lab,USA in 1972. C is also called higg level language.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;Basic characteristics of c program:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;1. Program should be written in small latter, except some special cases.&lt;br /&gt;2. Should use are main() function with in a program.&lt;br /&gt;3. ShiSho use semicolon (;) at the end of evhe statement.&lt;br /&gt;4. Should include specific Hader file by #include directive as per needs the program.&lt;br /&gt;5. Should be declared/define work variables with proper data type.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/4727667780348262695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/07/c_4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/4727667780348262695'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/4727667780348262695'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/07/c_4.html' title='C'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-GQAgHKb2dSk/W2iP6VCTi-I/AAAAAAAABXQ/HfdsyH9sub43oAypdfbWUHn-qqgQqpVwwCEwYBhgL/s72-c/Capture5.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-150617107553655250</id><published>2018-07-03T16:46:00.001+05:30</published><updated>2018-08-19T23:18:36.186+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="what is c++"/><category scheme="http://www.blogger.com/atom/ns#" term="What is the features in c++??"/><category scheme="http://www.blogger.com/atom/ns#" term="What is the major characteristic in c++??"/><title type='text'>C++</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-kMTvssP_29A/W2iTaeZggKI/AAAAAAAABXk/k0FWNtQoayQY3h9X-5AK_fmvyjzFSh3AgCEwYBhgL/s1600/Capture8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;104&quot; data-original-width=&quot;216&quot; src=&quot;https://1.bp.blogspot.com/-kMTvssP_29A/W2iTaeZggKI/AAAAAAAABXk/k0FWNtQoayQY3h9X-5AK_fmvyjzFSh3AgCEwYBhgL/s1600/Capture8.PNG&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;C++&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;✓ Object oriented programming language.&lt;br /&gt;✓&amp;nbsp; Superset of &#39;c&#39;&lt;br /&gt;✓&amp;nbsp; Developed by-&amp;nbsp;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;Bjarne Stroustrup at Bell Labs since 1979&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;✓&amp;nbsp; Support the concept of INHERITANCE&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;✓&amp;nbsp; Support the concept of POLYMORPHISM&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;✓&amp;nbsp; Support the concept of BOTTOM-UP-PROGRAMMING APPROACH.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;WHAT IS C++?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C++ is a object oriented programming language developed by&amp;nbsp;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&quot;&gt;Bjarne Stroustrup at Bell Labs since 1979,USA,in the early 80&#39;s has a superset of C language.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The three important that C++ add on to C are----&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. Classes&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Function overloading&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. Operator overloading&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; These futures enable us abstract data type , inherit propatisb from existing data type and support polymorphism.&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white; color: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&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: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&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: #3c4043; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;helveticaneue&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px; text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;What is the features in c++??&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; The object oriented features in c++ allows programmer -------&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;1. To build the large program with clearity.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;2. Extrnbility.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;3. Easy of maintained, Incorporating the spirit and efficient of C.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;u style=&quot;background-color: white; color: red; font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px; text-align: left;&quot;&gt;&lt;b&gt;What is the major characteristic in c++??&lt;/b&gt;&lt;/u&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The major characteristic of C++ are------&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;1. Emphasis is on data rather than procedure.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;2. Data structure are designe such that they characteristic they object.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;3. Program are devided into object.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;4. Data is hiden an can not be access by extranal function.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;5. Object may communicate with each other thought function.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;6. New data and function can be easily added when ever necessary.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;7. Follow bottom-up-appoch in program design.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/150617107553655250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/07/c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/150617107553655250'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/150617107553655250'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/07/c.html' title='C++'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-kMTvssP_29A/W2iTaeZggKI/AAAAAAAABXk/k0FWNtQoayQY3h9X-5AK_fmvyjzFSh3AgCEwYBhgL/s72-c/Capture8.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-9203709442461190743</id><published>2018-06-30T18:04:00.000+05:30</published><updated>2018-08-19T23:36:58.001+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="alternate key"/><category scheme="http://www.blogger.com/atom/ns#" term="candidate key"/><category scheme="http://www.blogger.com/atom/ns#" term="characterized by key"/><category scheme="http://www.blogger.com/atom/ns#" term="composite primary key"/><category scheme="http://www.blogger.com/atom/ns#" term="DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="foreign key"/><category scheme="http://www.blogger.com/atom/ns#" term="primary key"/><category scheme="http://www.blogger.com/atom/ns#" term="super key"/><category scheme="http://www.blogger.com/atom/ns#" term="unique key"/><category scheme="http://www.blogger.com/atom/ns#" term="What is key"/><title type='text'>Key</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;What is key?&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A key is a set of one or more columns whose combine values are unique among all occurrences in a given table.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-f-Pvouwql_g/W2iRFPsjRqI/AAAAAAAABXY/buTpIK3kwnofGHByRzkPjG3-CPUMNsjZQCLcBGAs/s1600/Capture6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;210&quot; data-original-width=&quot;254&quot; src=&quot;https://3.bp.blogspot.com/-f-Pvouwql_g/W2iRFPsjRqI/AAAAAAAABXY/buTpIK3kwnofGHByRzkPjG3-CPUMNsjZQCLcBGAs/s1600/Capture6.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Key may be characterized by-------&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. Unique key&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Candidate key&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. Primary key&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4. Composite primary key&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5. Alternate key&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6. Foreign key&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7. Super key&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;1. &lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Unique key:&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; Unique key is a set of one or more column to identify the uniquely in the database.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unique key also provide one null value, but unique key cannot provide duplicate entry like as primary key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;2.&amp;nbsp;&lt;u style=&quot;color: red;&quot;&gt;Candidate key:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; An attribute that uniquely identify a row is called candidate key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Candidate key also known as surrogate key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For example, in the STUDENT (Registration_no,Class,Section,Roll_no) table&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Registration_no,Roll_no are the candidate key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;3.&amp;nbsp;&lt;u style=&quot;color: red;&quot;&gt;Primary key:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;A candidate key which is used to identify a row uniquely is called primary key. Primary key cannot provide duplicate entry.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; For example,in the STUDENT(Registration_no,Class,Section,Roll_no) table Registration_no is a primary key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;4. &lt;u style=&quot;color: red;&quot;&gt;Composite primary key:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;When the key that uniquely identify the row of the table is made up&amp;nbsp; more than one attribute then it is called composite primary key or CPK.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For example, in the STUDENT (Registration_no,Class,Section,Roll_no) table&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Class,Section,Roll_no are the composite primary key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;5.&amp;nbsp;&lt;u style=&quot;color: red;&quot;&gt;Alternate key:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; If there are multiple candidate can in a table, the candidate keys that are not chosen as primary key will be called alternate key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;For example, in the STUDENT (Registration_no,Class,Section,Roll_no) table&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Roll_no is a alternate key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;6.&amp;nbsp;&lt;u style=&quot;color: red;&quot;&gt;Foreign key:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; When a primary key of one table is also available as another attribute in another related table then it is called foreign key.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; For example, in the STUDENT (Registration_no, Class,Section,Roll_no)table&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Registration_no is&amp;nbsp; primary key and the EXAM(Registration_no,sub1,sub2,sub3,Roll_no) table Roll_no is primary key. The primary key registration_no of STUDENT table is also available in EXAM table. Hence registration_no of EXAM table is foreign key of STUDENT table.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;7.&amp;nbsp;&amp;nbsp;&lt;u style=&quot;color: red;&quot;&gt;Super key:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; A super key for an entity set is a set of one or more attributes, whose combined values uniquely identifies the entities.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For example, in the STUDENT (Registration_no,Class,Section,Roll_no, Address) table Address is super key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/9203709442461190743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/9203709442461190743'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/9203709442461190743'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/key.html' title='Key'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://3.bp.blogspot.com/-f-Pvouwql_g/W2iRFPsjRqI/AAAAAAAABXY/buTpIK3kwnofGHByRzkPjG3-CPUMNsjZQCLcBGAs/s72-c/Capture6.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-7887057928321421568</id><published>2018-06-28T00:22:00.000+05:30</published><updated>2018-08-19T23:22:14.285+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Advantage of multithreading"/><category scheme="http://www.blogger.com/atom/ns#" term="Advantage of threads"/><category scheme="http://www.blogger.com/atom/ns#" term="Basic function of threads"/><category scheme="http://www.blogger.com/atom/ns#" term="Classification of threads"/><category scheme="http://www.blogger.com/atom/ns#" term="Kernel level threads"/><category scheme="http://www.blogger.com/atom/ns#" term="OS"/><category scheme="http://www.blogger.com/atom/ns#" term="User level threads"/><category scheme="http://www.blogger.com/atom/ns#" term="What is multithreading?"/><category scheme="http://www.blogger.com/atom/ns#" term="What is threads?"/><title type='text'>Threads</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;What is threads?&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Generally a process consists of number of lightweight process. These lightweight process basically called thread. Actually a threads is a single sequential flow of control within a program. It has a beginning,an end, a sequence etc. But a thread it self is not a program because it cannot run on it&#39;s own, it runs with in a program, and thus it makes use of the resources that were actually allocated to the process.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The thread has a program counter that keeps the tracks of which instruction to execute next, it has registers, which hold its current working variables. It has a stack which contains the history of execution. Threads can execute anywhere in the code space of the process.&lt;br /&gt;&lt;br /&gt;&lt;u style=&quot;color: red; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;u style=&quot;color: red; text-align: left;&quot;&gt;&lt;b&gt;&amp;nbsp;Uses of threads:&lt;/b&gt;&lt;/u&gt;&lt;br /&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; A typical use of threads is found in servee application, such as database server.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;u style=&quot;color: red; text-align: left;&quot;&gt;&lt;b&gt;Advantage of threads:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;Or&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;Basic function of threads:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&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;Threads can perform many of the functions of process --------&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;1. Threads allows parallelism to combined with sequential execution and block system calls.&lt;/div&gt;2. Threads are frequently used for client.&lt;br /&gt;3. Threads can also be organised in the pipeline model.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;u style=&quot;color: red; text-align: left;&quot;&gt;&lt;b&gt;&amp;nbsp;Classification of threads:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&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;There are two ways of thread implementation, they are as follows------&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a. User level threads&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b. Kernel level threads&lt;br /&gt;&lt;br /&gt;a. &lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;User level threads:&lt;/u&gt;&lt;/span&gt;&lt;br /&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;These type of threads are loaded in the user space only. When Threads are managed in the user space, each process must have its own private thread tables. This pivot table consist of the information of the program counter, stack pointer, register etc, and is managed by runtime system.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; By following figure we and demostate the basic concept of user level threads----&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-GZfNkuwmS9E/WzPR8pDeJPI/AAAAAAAABGw/YrSkLuZzZV8Ojl6apCetk4iavf8ir9B1gCEwYBhgL/s1600/P_20180627_233053_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;628&quot; data-original-width=&quot;1600&quot; height=&quot;250&quot; src=&quot;https://4.bp.blogspot.com/-GZfNkuwmS9E/WzPR8pDeJPI/AAAAAAAABGw/YrSkLuZzZV8Ojl6apCetk4iavf8ir9B1gCEwYBhgL/s640/P_20180627_233053_1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Fig: user level threads&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;u style=&quot;color: red;&quot;&gt;Advantages of user level threads:&lt;/u&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: justify;&quot;&gt;1. Each process can have its own scheduling algorithm.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;2. User level thread can run on any OS.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;3. Faster switching among thread is possible.&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: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&amp;nbsp;&lt;u style=&quot;color: red;&quot;&gt;Disadvantages of user level threads:&lt;/u&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: justify;&quot;&gt;1. When a user level thread execute a system call, not only that thread is blocked but also all of the chat within the process are blocked.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;2. Multithreaded application using user level threads cannot take the advantages of multiprocessing sinces kernel assign one process to only one processor at a time.&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: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&amp;nbsp;&lt;u style=&quot;color: red;&quot;&gt;Kernel level threads:&lt;/u&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; &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; In this method of thread implementation, the kernel does Total Work of threads movement. There is no thread table in each process. The kernel has a thread table which keeps track of all the threads in a system . The kernel&#39;s thread table holds each thread registers, state and other information. Using kernel only, a thread can create a new threads and destroy an existing threads.&amp;nbsp;&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: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; By following figure we can demonstrate the basic concept of kernel level thread------&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;a href=&quot;https://4.bp.blogspot.com/-UAJQJh9mtgA/WzPWM8Ub0uI/AAAAAAAABHA/YEYMHfDbhCQoa55I-prUnQFkgaKv_t0RACEwYBhgL/s1600/P_20180627_233129_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;676&quot; data-original-width=&quot;1600&quot; height=&quot;270&quot; src=&quot;https://4.bp.blogspot.com/-UAJQJh9mtgA/WzPWM8Ub0uI/AAAAAAAABHA/YEYMHfDbhCQoa55I-prUnQFkgaKv_t0RACEwYBhgL/s640/P_20180627_233129_1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&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; &amp;nbsp; &amp;nbsp; Fig: kernel level threads&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: justify;&quot;&gt;&lt;u style=&quot;color: red;&quot;&gt;Advantages of kernel level threads:&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;1. It supports multiprocessing also. It means that the kernel can simultaneously scheduling multiple Threads from the same process on multiple processors.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;2. Karnal routines them selves can be multithreaded.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;3. If a thread within a process is blocked, then the Karnal can schedule another thread of the same process.&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: justify;&quot;&gt;&lt;u style=&quot;color: red;&quot;&gt;Disadvantages of kernel level threads:&lt;/u&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: justify;&quot;&gt;1. Switching between thread is time consuming because the kernel mast do the switching.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;2. Creation and destruction of the threads in the kernel is costlier.&amp;nbsp;&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: justify;&quot;&gt;&lt;br /&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: justify;&quot;&gt;&lt;u style=&quot;color: red; text-align: left;&quot;&gt;&lt;b&gt;What is multithreading?&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;u style=&quot;color: red; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&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; &amp;nbsp;A process is divided into the smaller tasks and the each task is called as a&amp;nbsp; thread. The use of multithreads in a single program, all running at the same time and performing different tasks is called multithreading.&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: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; For example, JAVA browser&amp;nbsp; is a multithreaded application.&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: justify;&quot;&gt;&lt;u style=&quot;color: red; text-align: left;&quot;&gt;&lt;b&gt;Advantage of multithreading:&lt;/b&gt;&lt;/u&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: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;On single processor machines, multithreading have several advantages------&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: justify;&quot;&gt;1. Some task take much longer to execute then another.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;2. Some task need a better deterministic outcome then other.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;3. Some user interface activities is to be run concurrently with hardware communication.&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: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/7887057928321421568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/threads.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7887057928321421568'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7887057928321421568'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/threads.html' title='Threads'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-GZfNkuwmS9E/WzPR8pDeJPI/AAAAAAAABGw/YrSkLuZzZV8Ojl6apCetk4iavf8ir9B1gCEwYBhgL/s72-c/P_20180627_233053_1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-5511534356684541348</id><published>2018-06-27T18:03:00.001+05:30</published><updated>2018-08-19T23:27:05.037+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Image"/><category scheme="http://www.blogger.com/atom/ns#" term="OS"/><category scheme="http://www.blogger.com/atom/ns#" term="What is child process?"/><category scheme="http://www.blogger.com/atom/ns#" term="What is context switch?"/><category scheme="http://www.blogger.com/atom/ns#" term="What is parent process?"/><category scheme="http://www.blogger.com/atom/ns#" term="What is process control block (PCB)?"/><title type='text'>Process control block</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;What is process control block (PCB)?&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; When a user initiates of a&amp;nbsp; new process, the OS collect all the information that is need about that particular process into a data structure called as a process control block (PCB) or task control block.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It act repository for any information for process. PCB is implemented as a record containing vital information like process state scheduling information, access control information etc. Show in the following figure------&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-HROX1e3fN3c/WzOAU9jnf7I/AAAAAAAABGk/9uKr77swGRQoZeHck6E6pIhv-ZE-YeqGwCLcBGAs/s1600/P_20180627_174407_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1600&quot; data-original-width=&quot;1457&quot; height=&quot;400&quot; src=&quot;https://3.bp.blogspot.com/-HROX1e3fN3c/WzOAU9jnf7I/AAAAAAAABGk/9uKr77swGRQoZeHck6E6pIhv-ZE-YeqGwCLcBGAs/s400/P_20180627_174407_1.jpg&quot; width=&quot;363&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Fig: process control block&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: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;What is parent process and child process?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The process creating a new process is called parent process.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If a process p1 can create another process p2, then p2 is called child process of parent process p1.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;What is context switch?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It is a typical of interrupt handler. Context means the state, i.e., state of the process. Switching means switch from one process to another process.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; When an interrupt occur, the primary work is does, is to save the context of the current process. Saving a process is called half context switch. The other half of the context switch is the restoring of the context of the next process to run. The saving and restoring is called a full context switch.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/5511534356684541348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/process-control-block.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/5511534356684541348'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/5511534356684541348'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/process-control-block.html' title='Process control block'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://3.bp.blogspot.com/-HROX1e3fN3c/WzOAU9jnf7I/AAAAAAAABGk/9uKr77swGRQoZeHck6E6pIhv-ZE-YeqGwCLcBGAs/s72-c/P_20180627_174407_1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-4753929021871322364</id><published>2018-06-25T23:47:00.001+05:30</published><updated>2018-08-19T23:36:23.752+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="composite attribute"/><category scheme="http://www.blogger.com/atom/ns#" term="DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="derived attribute"/><category scheme="http://www.blogger.com/atom/ns#" term="multivalued attribute"/><category scheme="http://www.blogger.com/atom/ns#" term="simple attribute"/><category scheme="http://www.blogger.com/atom/ns#" term="single valued attribute"/><category scheme="http://www.blogger.com/atom/ns#" term="What is attribute"/><title type='text'>Attribute</title><content type='html'>&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;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;What is attribute?&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; It is a properties of an entity type. Is entity with normally have one or more attribute. It may be thought of the smaller pieces of information with in an entity.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Attribute may be categorised by-------&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a. Simple attribute&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b. Composite attribute&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c. Single valued attribute&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d. Multivalued attribute&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e. Derived attribute&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;a. &lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Simple attribute:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;Attribute that could not be derived into subpart called simple attribute.&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;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;F&lt;span style=&quot;text-align: left;&quot;&gt;or example, &#39;student_id&#39;,&#39;reg._no&#39;,&#39;employee_id&#39; etc.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;b.&lt;/span&gt;&lt;u style=&quot;background-color: white; color: red;&quot;&gt;Composite attribute:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;Attribute that could be derived into subpart that are way of hierarchical organising attribute called composite attribute.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; For example, &#39;Name&#39; is a composite attribute because it can be derived first-name, middle-name, last-name.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;c. &lt;u style=&quot;background-color: white; color: red;&quot;&gt;Single valued attribute:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; An attribute can take only one value for a given instance called single valued attribute.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; For example, &#39;roll-number&#39; is a single valued attribute.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;d.&amp;nbsp;&lt;u style=&quot;background-color: white; color: red;&quot;&gt;Multivalued attribute:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;An attribute may take more than one value of the given entity instance.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; For example,&#39;phone_no&#39; attribute for specific entity set may have more than one number.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;e.&amp;nbsp;&amp;nbsp;&lt;u style=&quot;background-color: white; color: red;&quot;&gt;Derived attribute:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; An attribute whose value can be calculated from the related attribute values called derived attribute.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; For example, &#39;age&#39; attribute can be derived from the date of birth attribute and so they are related.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/4753929021871322364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/attribute.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/4753929021871322364'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/4753929021871322364'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/attribute.html' title='Attribute'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-8709206579084009342</id><published>2018-06-25T19:46:00.000+05:30</published><updated>2018-08-19T23:35:53.090+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="dependent entity"/><category scheme="http://www.blogger.com/atom/ns#" term="entity set"/><category scheme="http://www.blogger.com/atom/ns#" term="independent entity"/><category scheme="http://www.blogger.com/atom/ns#" term="strong entity"/><category scheme="http://www.blogger.com/atom/ns#" term="weak entity"/><category scheme="http://www.blogger.com/atom/ns#" term="What is entity"/><title type='text'>Entity</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-wLotMRr_qhI/W2iWkOHhOEI/AAAAAAAABYE/XOlsMipMjaMMS26AJCK8ly2UGr0YSH-cQCLcBGAs/s1600/Capture14.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;123&quot; data-original-width=&quot;227&quot; src=&quot;https://3.bp.blogspot.com/-wLotMRr_qhI/W2iWkOHhOEI/AAAAAAAABYE/XOlsMipMjaMMS26AJCK8ly2UGr0YSH-cQCLcBGAs/s1600/Capture14.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;What is entity?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;An entity is an object with a physical existence or it may be conceptual, so every organisation have some item or event of interest is called entity. It is described in a database a set of attribute. Every attribute is connected to one and only one entity.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;For example, Student,Employee etc. are the entity.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;Entity set are of two type---&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a. Independent entity&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b. Dependent entity&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; An independent entity is one that does not rely on another for identification.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A dependent entity is one that relies on another for identification.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;What is entity set?&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A group of similar object about which data are maintained in an organisation is called entity set, i.e., it is defined as a set of entities what are same type that share the same properties of attribute.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Entity set are of two type-------&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a. Strong entity set&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b. Weak entity set&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;a. Strong entity set:&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;An entity set that has a primary key is called a strong entity set. A strong entity is identify uniquely by consider primary key or composite primary key.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;u style=&quot;color: red;&quot;&gt;b.Week entity set:&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;An entity can be identified only by considering the primary key of owner entity called Weak entity.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/8709206579084009342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/entity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/8709206579084009342'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/8709206579084009342'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/entity.html' title='Entity'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://3.bp.blogspot.com/-wLotMRr_qhI/W2iWkOHhOEI/AAAAAAAABYE/XOlsMipMjaMMS26AJCK8ly2UGr0YSH-cQCLcBGAs/s72-c/Capture14.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-1013123111992235917</id><published>2018-06-23T16:01:00.000+05:30</published><updated>2018-08-19T23:35:22.137+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="conceptual level"/><category scheme="http://www.blogger.com/atom/ns#" term="DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="Explain the architecture of DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="external level"/><category scheme="http://www.blogger.com/atom/ns#" term="Image"/><category scheme="http://www.blogger.com/atom/ns#" term="internal level"/><category scheme="http://www.blogger.com/atom/ns#" term="three schema architecture?"/><title type='text'>Architecture of DBMS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;Explain the architecture of DBMS or three schema architecture?&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In this architecture schema can we define at the following three level-----&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. Internal level&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Conceptual level&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. External level or view level&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;1.&lt;span style=&quot;color: red;&quot;&gt; &lt;u&gt;Internal level:&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;The internal view is at the lowest level of the database abstraction. It is the one closest to the physical storage, i.e, in this level, the data is actually Store. The internal level has an internal schema use a physical data model and describe the complete details of data storage and access path for the database. It indicates how the data will be store and describe the data structure that could be used by the database.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;2.&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&amp;nbsp;Conceptual level:&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; The conceptual level have a conceptual schema, which describe the structure of the hole database for a community of user. The conceptual schema hides the details of the physical storage structure and consented on describing entities, data type, relationship, user operation and constants. A high level data model or implementation data model can be used at this level.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;3.&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &lt;u&gt;External&lt;/u&gt;&lt;u&gt;&amp;nbsp;level or View level:&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; The external or user view is at the highest level of the database abstraction. It is a view level and includes a number of the user&#39;s views. Each external schema describe the part of the database, that a particular user group is interested in and hides the rest of the database from the user group.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;By following figure we can demonstrate at the basic concept of the three schema architecture or architecture of DBMS---------&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;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;a href=&quot;https://4.bp.blogspot.com/-uiiGegHrZT0/Wy4gRiOTg6I/AAAAAAAABGA/wItu0nbyvoYS23lZO9PKOHn7_bj-tjKRwCLcBGAs/s1600/P_20180623_155454_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1326&quot; data-original-width=&quot;1600&quot; height=&quot;530&quot; src=&quot;https://4.bp.blogspot.com/-uiiGegHrZT0/Wy4gRiOTg6I/AAAAAAAABGA/wItu0nbyvoYS23lZO9PKOHn7_bj-tjKRwCLcBGAs/s640/P_20180623_155454_1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;Fig: Three schema architecture or architecture of DBMS&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/1013123111992235917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/architecture-of-dbms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/1013123111992235917'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/1013123111992235917'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/architecture-of-dbms.html' title='Architecture of DBMS'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-uiiGegHrZT0/Wy4gRiOTg6I/AAAAAAAABGA/wItu0nbyvoYS23lZO9PKOHn7_bj-tjKRwCLcBGAs/s72-c/P_20180623_155454_1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-7886505212727796583</id><published>2018-06-23T15:26:00.000+05:30</published><updated>2018-08-19T23:34:52.004+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="categories by data independence"/><category scheme="http://www.blogger.com/atom/ns#" term="DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="logical data independence"/><category scheme="http://www.blogger.com/atom/ns#" term="physical data independence"/><category scheme="http://www.blogger.com/atom/ns#" term="What is data independence?"/><title type='text'>Data Independence </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;Data Independence:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&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;The ability to modify the conceptual schema without having changes the external schema or application program, or to modify the internal schema without having changes the conceptual schema .&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;Data Independence may be categorised by-----&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1. &lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Logical data independence:&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;The ability to modify(change) the conceptual schema without having changes external schema or application program we may be changed the conceptual schema to explain the database( by adding a new record type or data item), or to reduce the database (by removing a record type or data item).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. &lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Physical&amp;nbsp;data independence:&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; The ability to modify(change) the physical schema without having changes the conceptual schema. Change to the internal schema may be needed because some physical file add to be recognised.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/7886505212727796583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/data-independence.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7886505212727796583'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/7886505212727796583'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/data-independence.html' title='Data Independence '/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-2214851897161367836</id><published>2018-06-23T15:05:00.001+05:30</published><updated>2018-08-19T23:34:00.214+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="logical schema"/><category scheme="http://www.blogger.com/atom/ns#" term="physical schema"/><category scheme="http://www.blogger.com/atom/ns#" term="what is instance?"/><category scheme="http://www.blogger.com/atom/ns#" term="What is schema?"/><title type='text'>Schema</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;What is schema&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;?&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The logical structure of the database is called schema.&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Schema may be categorised by------&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1. &lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Physical schema:-&lt;/u&gt;&lt;/span&gt;&lt;br /&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;Database design at physical level.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2. &lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Logical schema:-&lt;/u&gt;&lt;/span&gt;&lt;br /&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;Database design that logical level.&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;&amp;nbsp;What is instance?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The actual content of the database at a particular point in time called instance. It is a analogous to the value of variable.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red; text-align: justify;&quot;&gt;&lt;u&gt;Three&amp;nbsp; &amp;nbsp;schema&amp;nbsp; architecture or architecture of DBMS?&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red; text-align: justify;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://comknowledge1.blogspot.com/2018/06/architecture-of-dbms.html?m=1&quot; target=&quot;_blank&quot;&gt;http://comknowledge1.blogspot.com/2018/06/architecture-of-dbms.html?m=1&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/2214851897161367836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/schema.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/2214851897161367836'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/2214851897161367836'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/schema.html' title='Schema'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-8464374910504703043</id><published>2018-06-22T17:58:00.000+05:30</published><updated>2018-07-05T14:29:34.611+05:30</updated><title type='text'>About us</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-uK6FAquPDXc/Wyzi3JsmPRI/AAAAAAAABF0/-Exj861V3zcg9AoeWni-tn7cZwhTmpwxwCLcBGAs/s1600/Screenshot_20180622-171728_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1124&quot; data-original-width=&quot;720&quot; src=&quot;https://3.bp.blogspot.com/-uK6FAquPDXc/Wyzi3JsmPRI/AAAAAAAABF0/-Exj861V3zcg9AoeWni-tn7cZwhTmpwxwCLcBGAs/s1600/Screenshot_20180622-171728_1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;intro&quot; style=&quot;background-color: white; border: 0px; color: #454545; font-family: Verdana, sans-serif; font-size: 1.09em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.7em; padding: 0px 1em 2em 0px;&quot;&gt;Founded on june 19, 2018, in Medinipur City, paschim Medinipur, by PRASUN KHANRA,&lt;span style=&quot;font-size: 1.09em;&quot;&gt;Computer knowledge free any computer related education and information to everyone.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; font-family: verdana, sans-serif; font-size: 16px; line-height: 1.7em; padding: 0px 1em 2em 0px;&quot;&gt;&lt;div style=&quot;color: #454545;&quot;&gt;Today, Computer knowledge continues to provide free support and computer education that allow any user to learn more about their computer and find technical assistance. Some of the services we offer include free help, information, tips, any computer related questions &amp;amp; answers are available.&lt;/div&gt;&lt;h2 style=&quot;border: 0px; clear: left; color: #2a70d0; font-family: arial, helvetica, sans-serif; font-size: 1.4em; font-weight: 400; line-height: 1; margin: 0.3em 0px 0.9em; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/h2&gt;&lt;h2 style=&quot;border: 0px; clear: left; font-family: arial, helvetica, sans-serif; font-size: 1.4em; line-height: 1; margin: 0.3em 0px 0.9em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Our View&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;tab&quot; style=&quot;border: 0px; color: #454545; font-family: Verdana, sans-serif; line-height: 1.7em; padding: 0px 1em 2em 0px;&quot;&gt;We hope to make Computer knowledge the number one destination for computer support while also helping everyone get the most from their computer.&lt;/div&gt;&lt;h2 style=&quot;border: 0px; clear: left; font-family: arial, helvetica, sans-serif; font-size: 1.4em; line-height: 1; margin: 0.3em 0px 0.9em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Website Goals&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Easy education of computer subject.&lt;/div&gt;&lt;div&gt;2. Help of all viewer.&lt;/div&gt;&lt;div&gt;3. Easy answer are available.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 style=&quot;border: 0px; clear: left; font-family: arial, helvetica, sans-serif; font-size: 1.4em; line-height: 1; margin: 0.3em 0px 0.9em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;History&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;June 19,2018&lt;/span&gt;&amp;nbsp; &amp;nbsp; component knowledge is released to published.&lt;/div&gt;&lt;h2 style=&quot;border: 0px; clear: left; font-family: arial, helvetica, sans-serif; font-size: 1.4em; line-height: 1; margin: 0.3em 0px 0.9em; padding: 0px;&quot;&gt;&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;color: #454545;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;color: #454545;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/8464374910504703043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/about-us.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/8464374910504703043'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/8464374910504703043'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/about-us.html' title='About us'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://3.bp.blogspot.com/-uK6FAquPDXc/Wyzi3JsmPRI/AAAAAAAABF0/-Exj861V3zcg9AoeWni-tn7cZwhTmpwxwCLcBGAs/s72-c/Screenshot_20180622-171728_1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-1969557338606249259</id><published>2018-06-22T16:56:00.000+05:30</published><updated>2018-08-19T23:33:39.541+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="advantages of DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="disadvantages of DBMS"/><category scheme="http://www.blogger.com/atom/ns#" term="Image"/><category scheme="http://www.blogger.com/atom/ns#" term="What is data?"/><category scheme="http://www.blogger.com/atom/ns#" term="what is database?"/><category scheme="http://www.blogger.com/atom/ns#" term="what is DBMS?"/><title type='text'>DBMS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;WHAT IS DATA?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Data is a collection of raw facts.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;color: red; text-align: left;&quot;&gt;&lt;u&gt;WHAT IS DATA BASE?&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A database is well-design collection of related data. By data we mean known fact that can be followed a particular architecture and the architecture should support and efficient data storage and retrieval mechanism.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For example, consider the names, telephone numbers and address of the people we know. We may have record this data in an index address book or we may have store it on a disk, using a personal computer. These is a collection of related data with an implicit meaning and hence it is database.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Example:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; (a) telephone directory&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; (b) Dictionary&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; (c) Library catalog.&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-OnKCSGnG2MA/W2iTqfy53kI/AAAAAAAABXs/U4ZA8nA9zzotNlXVThoLmQmbYvy_3S6uACLcBGAs/s1600/Capture7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;122&quot; data-original-width=&quot;250&quot; src=&quot;https://2.bp.blogspot.com/-OnKCSGnG2MA/W2iTqfy53kI/AAAAAAAABXs/U4ZA8nA9zzotNlXVThoLmQmbYvy_3S6uACLcBGAs/s1600/Capture7.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;b style=&quot;color: red; text-align: left;&quot;&gt;&lt;u&gt;WHAT IS DBMS?&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A database management system (DBMS) is a collection of programs that enable user to create and maintain a database. The DBMS is a general purpose software system the facilities of process of defineing, constructing and manipulating database for various applications.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Defineing a database involve spacifying the data type, structures and constants constant for the data to be store in the database.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Manipulating a database includes such function as querying the database to retrieve reports form the data.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;By following figure we can demonstrate the basic concept of DBMS-----&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-N2CfvXBrOj4/WyzX0RoTfhI/AAAAAAAABFk/8Vqi4bCiolMZi7wz7RxWmpn5LyVho5D-QCEwYBhgL/s1600/P_20180622_163217_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1300&quot; data-original-width=&quot;1600&quot; height=&quot;520&quot; src=&quot;https://2.bp.blogspot.com/-N2CfvXBrOj4/WyzX0RoTfhI/AAAAAAAABFk/8Vqi4bCiolMZi7wz7RxWmpn5LyVho5D-QCEwYBhgL/s640/P_20180622_163217_1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Fig: simplified database system environment illustrating the concept and terminology&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;Advantages of DBMS:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&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;1. Data can be easily share.&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;2. Redundancy can be reduced.&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;3. Inconsistency can be avoided to some content.&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; 4. Transaction support can be provide.&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; 5. Integrity can be maintenance.&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; 6. Fixable.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;7. Always up to date data information available.&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: justify;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: red; text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;Disadvantages of DBMS:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: center;&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;&lt;span style=&quot;text-align: center;&quot;&gt;&amp;nbsp; 1. High initial investment in hardware software and training.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2. Overhead for providing security.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3. Periodical maintenance is too high due to hardware and software upgradation and staff training.&lt;/span&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&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/1969557338606249259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/dbms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/1969557338606249259'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/1969557338606249259'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/dbms.html' title='DBMS'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://2.bp.blogspot.com/-OnKCSGnG2MA/W2iTqfy53kI/AAAAAAAABXs/U4ZA8nA9zzotNlXVThoLmQmbYvy_3S6uACLcBGAs/s72-c/Capture7.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7826063413578882970.post-2672063229888932743</id><published>2018-06-21T13:22:00.000+05:30</published><updated>2018-08-19T23:20:56.035+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="OS"/><category scheme="http://www.blogger.com/atom/ns#" term="Process management"/><category scheme="http://www.blogger.com/atom/ns#" term="process state"/><category scheme="http://www.blogger.com/atom/ns#" term="process transition state"/><category scheme="http://www.blogger.com/atom/ns#" term="what is process?"/><title type='text'>Process management</title><content type='html'>&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;b style=&quot;color: red;&quot;&gt;&lt;u&gt;&amp;nbsp;WHAT IS PROCESS?&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A process is an instance of a program in execution. In other word process is an asynchronous piece of computation. The span of time of process is limited.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;PROCESS STATES:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; There ate four&amp;nbsp; different states are -------&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; 1.&amp;nbsp; &lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;Runing state:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; A CPU is currently allocate of the process and the process in execution.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;2.&amp;nbsp; &lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;Block state:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;A process is said to be blocked if it is waiting for some event before it can proced. Such as a Process cannot be execute even if a CPU available.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;3.&amp;nbsp;&amp;nbsp;&lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;Ready state:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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; The process is not running however it can execute if a CPU is allocated to yet. That is the process is not blocked.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;4.&amp;nbsp;&amp;nbsp;&lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;Terminated state:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&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;The the process has finished in execution.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;u style=&quot;color: red; font-weight: bold;&quot;&gt;WHAT IS PROCESS STATE TRANSITION?&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;When a job admitted to the system a corresponding process is created and then inserted at the block of the ready list. Now the process are in blocked state. Process are gradually moved towards the head of the ready list, and when CPU becomes available the frist forces of the ready list is assigned to the CPU. That is the process arrived at the running state from the ready state---- this is called state transaction.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; By following figure we can demonstrate the basic concept of states transition----&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-xF-p8juY-6M/WytYK9k8-zI/AAAAAAAABFU/-_SpXOnPFPMOR7WK5Ekszj5P2zjoxoExwCLcBGAs/s1600/P_20180621_131350_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;918&quot; data-original-width=&quot;1600&quot; height=&quot;228&quot; src=&quot;https://3.bp.blogspot.com/-xF-p8juY-6M/WytYK9k8-zI/AAAAAAAABFU/-_SpXOnPFPMOR7WK5Ekszj5P2zjoxoExwCLcBGAs/s400/P_20180621_131350_1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Fig: process state transition&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.comknowledge.xyz/feeds/2672063229888932743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.comknowledge.xyz/2018/06/process-management.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/2672063229888932743'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7826063413578882970/posts/default/2672063229888932743'/><link rel='alternate' type='text/html' href='https://www.comknowledge.xyz/2018/06/process-management.html' title='Process management'/><author><name>Computer knowledge</name><uri>http://www.blogger.com/profile/02523165211504424664</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://3.bp.blogspot.com/-xF-p8juY-6M/WytYK9k8-zI/AAAAAAAABFU/-_SpXOnPFPMOR7WK5Ekszj5P2zjoxoExwCLcBGAs/s72-c/P_20180621_131350_1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>