<?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-757042416104057693</id><updated>2026-07-05T13:00:40.447+05:30</updated><category term="Tips and Tricks"/><category term="Assignments"/><category term="Documents"/><category term="Wallpapers"/><category term="Icons Pack"/><category term="Downloads"/><category term="Learning Videos"/><category term="Web Links"/><title type='text'>v!kΛsђ ŝђäЯMä</title><subtitle type='html'>Get more stuff like.. Assignments, Documents, PC tips and tricks, Widescreen wallpapers, Learning videos, Open source software, Latest cool icons packs, Important web links and whatever you want...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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>66</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-7464333046989916597</id><published>2013-05-27T14:16:00.000+05:30</published><updated>2013-05-27T14:18:05.765+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU 6TH SEM PRACTICAL SOLUTIONS</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 lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Set -1&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;1. Write a program for frame sorting
technique used in buffers.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;#include&amp;lt;stdlib.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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;struct&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;frame&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; fslno;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;char&lt;/span&gt; finfo[20];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;struct&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;frame&lt;/span&gt; arr[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: 0.0001pt; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; sort()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i,j,ex;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;struct&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;frame&lt;/span&gt; temp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; ex=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;n-i-1;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(arr[j].fslno&amp;gt;arr[j+1].fslno)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; temp=arr[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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; arr[j]=arr[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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; arr[j+1]=temp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; ex++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(ex==0) &lt;span style=&quot;color: blue;&quot;&gt;break&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; main()&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n Enter the number
of frames \n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d&quot;&lt;/span&gt;,&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; arr[i].fslno=random(50);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n Enter the
frame contents for sequence number %d\n&quot;&lt;/span&gt;,arr[i].fslno);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%s&quot;&lt;/span&gt;,arr[i].finfo);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sort();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n The frames in
sequence \n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n %d\t%s \n&quot;&lt;/span&gt;,arr[i].fslno,arr[i].finfo);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;2. Write a program in C# using command
line arguments to display a welcome message. The message has to be supplied as
input in the command line.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
ConsoleApplication1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[]
args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; args = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&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: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.Write(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Enter Message Here: &quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; args[0] = &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n&quot;&lt;/span&gt; + args[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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Set -2&lt;/span&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;1. Write a program for distance vector
algorithm to find suitable path for transmission.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;#define&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; MAX 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;struct&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;dist_vect&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
dist[MAX];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
from[MAX];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; adj[MAX][MAX],n,i,j,hop[10][10]={{0}},k,count;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;struct&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;dist_vect&lt;/span&gt; arr[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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Enter
the number of nodes\n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d&quot;&lt;/span&gt;,&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Enter
adjecency matrix\n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;n;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d&quot;&lt;/span&gt;,&amp;amp;adj[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;n;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr[i].dist[j]=adj[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr[i].from[j]=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;n;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(k=0;k&amp;lt;n;k++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(arr[i].dist[j]&amp;gt;adj[i][k]+arr[k].dist[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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;
arr[i].dist[j]=adj[i][k]+arr[k].dist[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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; arr[i].from[j]=k;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; count++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(count==0)hop[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; &lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;
hop[i][j]=count+hop[k][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;State
value of router under %d&quot;&lt;/span&gt;,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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nNode\tvia
node\tdistance\tnumber of hops\n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;n;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(i==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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n%d\t%d\t%d\n&quot;&lt;/span&gt;,j+1,arr[i].from[j]+1,arr[i].dist[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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;else&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n%d\t%d\t\t%d\t\t%d\n&quot;&lt;/span&gt;,j+1,arr[i].from[j]+1,arr[i].dist[j],hop[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;2. Write a program to demonstrate the
usage of threads in C#.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
System.Threading;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
ConsoleApplication4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;
thread1 = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ThreadStart&lt;/span&gt;(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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;
thread2 = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ThreadStart&lt;/span&gt;(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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thread1.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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thread2.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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thread1.Join();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thread2.Join();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;.Sleep(100);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;A&#39;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;.Sleep(1000);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;B&#39;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Set -3&lt;/span&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;1. Write a program for simple RSA/DES
algorithm to encrypt and decrypt the data.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;#include&amp;lt;math.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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; min(&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; x, &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; y)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;(x&amp;lt;y?x:y);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; max(&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; x,&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; y)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;(x&amp;gt;y?x:y);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; gcd(&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; x,&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; y)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(x==y)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;(x);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;else&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;(gcd(min(x,y),max(x,y)-min(x,y)));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;long&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; modexp(&lt;span style=&quot;color: blue;&quot;&gt;long&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; a,&lt;span style=&quot;color: blue;&quot;&gt;long&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; x,&lt;span style=&quot;color: blue;&quot;&gt;long&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;long&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; r=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt;(x&amp;gt;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; ((&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;)(fmodl(x,2))==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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r=fmodl((r*a),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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=fmodl((a*a),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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x/=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;(r);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;long&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
p,q,phi,n,e,d,cp,cq,dp,dq,mp,mq,sp,sq,rp,rq,qInv,h;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;long&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; ms,es,ds;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;do&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n
Enter prime numbers p and q:&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
%Lf %Lf&quot;&lt;/span&gt;,&amp;amp;p,&amp;amp;q);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt;(p==q);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n=p*q;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; phi=(p-1)*(q-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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;do&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n
Enter prime value of e:&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
%Lf&quot;&lt;/span&gt;,&amp;amp;e);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt;((gcd(e,phi)!=1)&amp;amp;&amp;amp;e&amp;gt;phi);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(d=1;d&amp;lt;phi;++d)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(fmod((e*d),phi)==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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;break&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n
D within main = %Lf&quot;&lt;/span&gt;,d);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n
Enter the message:&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
%Lf&quot;&lt;/span&gt;,&amp;amp;ms);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; es=modexp(ms,e,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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ds=modexp(es,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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n
Original Message : %Lf&quot;&lt;/span&gt;,ms);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n
Encrypted Message : %Lf&quot;&lt;/span&gt;,es);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n
Decrypted Message : %Lf\n&quot;&lt;/span&gt;,ds);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;(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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;2. Using Try, Catch and Finally blocks
write a program in C# to demonstrate error handling.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
ConsoleApplication1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[]
args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
i, j, divide = 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;try&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; divide = i / 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt;
(&lt;span style=&quot;color: #2b91af;&quot;&gt;DivideByZeroException&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; divide = 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;finally&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(divide);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Set -4&lt;/span&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;1. Write a program for Spanning Tree
Algorithm (PRIM) to find loop less path.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;#include&amp;lt;stdlib.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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;#define&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; MAX 20&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;#define&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; INFINITY
999&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;enum&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;boolean&lt;/span&gt; {FALSE,TRUE};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; prim(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; c[][MAX],&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
t[MAX],&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
mincost=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
n,c[MAX][MAX],t[2*(MAX-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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i,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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nTo
find min path spanning tree&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nEnter
no of nodes:&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d&quot;&lt;/span&gt;,&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nEnter
the cost adjacency matrix&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;n;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d&quot;&lt;/span&gt;,&amp;amp;c[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; prim(c,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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(i=0;i&amp;lt;2*(n-1);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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n(%d
%d)&quot;&lt;/span&gt;,t[i]+1,t[i+1]+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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nmincost=%d&quot;&lt;/span&gt;,mincost);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;//using prim&#39;s
algorithm for finding shortest path&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; prim(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; c[][MAX],&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
t[MAX],&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i,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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;enum&lt;/span&gt;
boolean v[MAX];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
k,s,min,v1,v2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; v[i]=FALSE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; v[0]=TRUE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; k=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t[k]=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; k++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt;(k&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min=INFINITY;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=1;j&amp;lt;n;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(v[i]==TRUE
&amp;amp;&amp;amp; v[j]==FALSE &amp;amp;&amp;amp; c[i][j]&amp;lt;min)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min=c[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v1=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v2=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mincost=mincost+min;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(min==INFINITY)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;graph
disconnected&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v[v2]=TRUE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; k++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t[s++]=v1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t[s++]=v2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;2. Write a program in C# to demonstrate
operator overloading.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
ConsoleApplication4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Widget&lt;/span&gt;
w = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Widget&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(w._value);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(w._value);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Widget&lt;/span&gt;
g = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Widget&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(g._value);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Widget&lt;/span&gt;
t = w + g;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(t._value);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Widget&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; _value;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Widget&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;operator&lt;/span&gt; +(&lt;span style=&quot;color: #2b91af;&quot;&gt;Widget&lt;/span&gt;
a, &lt;span style=&quot;color: #2b91af;&quot;&gt;Widget&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Widget&lt;/span&gt;
widget = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Widget&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; widget._value = a._value +
b._value;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;
widget;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Widget&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;operator&lt;/span&gt; ++(&lt;span style=&quot;color: #2b91af;&quot;&gt;Widget&lt;/span&gt;
w)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w._value++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;
w;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Set -5&lt;/span&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;1. Write a program in C# to sort the
students list based on their names. The students list is stored in a string
array.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
ConsoleApplication4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[]
args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[]
students = { &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Vikash&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Bhushan&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Deepak&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Tapas&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Suresh&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Avinash&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Array&lt;/span&gt;
arr = students;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Array&lt;/span&gt;.Sort(arr);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt;
(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; item &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt;
arr)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(item);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;2. Write a C# Program to demonstrate use
of Virtual and override Key words in C#.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
ConsoleApplication1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[]
args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;ChildClass&lt;/span&gt;
cc = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ChildClass&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cc.Display();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ParentClass&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;virtual&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
Display()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Base Class&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ChildClass&lt;/span&gt;:&lt;span style=&quot;color: #2b91af;&quot;&gt;ParentClass&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;override&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
Display()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;base&lt;/span&gt;.Display();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Derived Class&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Set -6&lt;/span&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;1. Write a program in C# , create a class
called rectangle which consists of members side_1, side_2 and displayArea().
Write another class square which inherits class rectangle. Take side of square
as input and display the area of square on console&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
ConsoleApplication4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[]
args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;square&lt;/span&gt;
sq = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;square&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sq.displayArea();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;rectangle&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; side_1 = 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; side_2 = 20;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;virtual&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
displayArea()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Area of Rectangle is: &quot;&lt;/span&gt; + side_1 *
side_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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;square&lt;/span&gt;:&lt;span style=&quot;color: #2b91af;&quot;&gt;rectangle&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;override&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
displayArea()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Area of Square is: &quot;&lt;/span&gt; + side_1 *
side_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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;2. Write a program to multiply two
matrices.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
a[5][5],b[5][5],c[5][5],i,j,k,sum=0,m,n,o,p;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nEnter
the row and column of first matrix&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d
%d&quot;&lt;/span&gt;,&amp;amp;m,&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nEnter
the row and column of second matrix&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d
%d&quot;&lt;/span&gt;,&amp;amp;o,&amp;amp;p);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(n!=o){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Matrix
mutiplication is not possible&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nColumn
of first matrix must be same as row of second matrix&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;else&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nEnter
the First matrix-&amp;gt;&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(i=0;i&amp;lt;m;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;n;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d&quot;&lt;/span&gt;,&amp;amp;a[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nEnter
the Second matrix-&amp;gt;&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(i=0;i&amp;lt;o;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;p;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d&quot;&lt;/span&gt;,&amp;amp;b[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nThe
First matrix is\n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(i=0;i&amp;lt;m;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;n;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;,a[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nThe
Second matrix is\n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(i=0;i&amp;lt;o;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;p;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;,b[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(i=0;i&amp;lt;m;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;p;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(i=0;i&amp;lt;m;i++){
&lt;span style=&quot;color: green;&quot;&gt;//row of first matrix&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;p;j++){&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;//column of second
matrix&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;color: blue;&quot;&gt;for&lt;/span&gt;(k=0;k&amp;lt;n;k++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; sum=sum+a[i][k]*b[k][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c[i][j]=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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\nThe
multiplication of two matrix is\n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(i=0;i&amp;lt;m;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\n&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(j=0;j&amp;lt;p;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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;%d\t&quot;&lt;/span&gt;,c[i][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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt; 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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Set -7&lt;/span&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;1. Write a C# program to demonstrate
handling of server control programs.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;In order to create new
ASP.NET Server Control, use File – New – Project from Visual Studio 2008 menu
to open the New Project dialog box. From the Web project type, choose ASP.NET
Server Control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&lt;b&gt;Code Behind File For
ServerControl1.cs :-&lt;/b&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: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; System; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
System.ComponentModel; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
System.Linq; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
System.Text; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
System.Web; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
System.Web.UI; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt; System.Web.UI.WebControls;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;
FirstServerControl &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;DefaultProperty&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Text&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ToolboxData(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&amp;lt;{0}:ServerControl1
runat=server&amp;gt;&amp;lt;/{0}:ServerControl1&amp;gt;&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ServerControl1&lt;/span&gt;
: WebControl &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;Bindable&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;true&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;[&lt;span style=&quot;color: #2b91af;&quot;&gt;Category&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Appearance&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;DefaultValue&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;color: #2b91af;&quot;&gt;Localizable&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;true&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; Text &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;get&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: #2b91af;&quot;&gt;String&lt;/span&gt;
s = (&lt;span style=&quot;color: #2b91af;&quot;&gt;String&lt;/span&gt;)ViewState[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Text&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;
((s == &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;) ? &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[&quot;&lt;/span&gt;
+ &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.ID + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;]&quot;&lt;/span&gt;
: s); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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 style=&quot;color: blue;&quot;&gt;set&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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; ViewState[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Text&quot;&lt;/span&gt;] = &lt;span style=&quot;color: blue;&quot;&gt;value&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;protected&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;override&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
RenderContents(HtmlTextWriter output) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output.Write(Text); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;MsoSubtitle&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;2. Write a program to display a message
“Welcome to ASP.NET” 8 times in increasing order of their font size using
ASP.NET.&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;lt;%@ Page language=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;c#&quot;&lt;/span&gt; Codebehind=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;WebForm1.aspx.cs&quot;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;AutoEventWireup=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;false&quot;&lt;/span&gt; Inherits=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;WebApplication9.WebForm1&quot;&lt;/span&gt; %&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;lt;!DOCTYPE HTML PUBLIC &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&lt;/span&gt;
&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;lt;html&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;head&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;WebForm1&amp;lt;/title&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;GENERATOR&quot;&lt;/span&gt;
Content=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Microsoft Visual Studio .NET
7.1&quot;&lt;/span&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CODE_LANGUAGE&quot;&lt;/span&gt;
Content=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;C#&quot;&lt;/span&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name=vs_defaultClientScript
content=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;JavaScript&quot;&lt;/span&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name=vs_targetSchema&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;http://schemas.microsoft.com/intellisense/ie5&quot;&lt;/span&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/head&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body MS_POSITIONING=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;GridLayout&quot;&lt;/span&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Form2&quot;&lt;/span&gt;
method=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;post&quot;&lt;/span&gt; runat=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;server&quot;&lt;/span&gt;&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;lt;%&lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i=0;i&amp;lt;8;i++){%&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;lt;font size=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&amp;lt;%=i%&amp;gt;&quot;&lt;/span&gt;&amp;gt;Welcome to ASP.NET
ASHISH&amp;lt;/font&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/font&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&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;lt;%}%&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&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: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;&quot;&gt;&amp;lt;/html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit; line-height: 27px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Don&#39;t Forget to&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img alt=&quot;Like&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrBCAp2Dj32MvcnwbKlvf3bqz6hTd6k68AGQR7TFPaZOl9arTEQH79Sor_Ps41U2YGgUPJDAOIoxNCbCM5JHRlhPkOSxAQw6QpqpqZ-LzIDm-aHGyO2-Wf279gDlkULSJNvXoPk74Sj0A/s100/like.gif&quot; style=&quot;font-family: inherit;&quot; width=&quot;50&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: inherit; line-height: 27px;&quot;&gt;or Comment..&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit; line-height: 18px;&quot;&gt;&lt;br /&gt;&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;color: #990000; font-family: inherit; line-height: 18px;&quot;&gt;-- get membership for getting updates from this blog--&lt;/span&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&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/7464333046989916597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2013/05/ku-6th-sem-practical-solutions.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/7464333046989916597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/7464333046989916597'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2013/05/ku-6th-sem-practical-solutions.html' title='KU 6TH SEM PRACTICAL SOLUTIONS'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrBCAp2Dj32MvcnwbKlvf3bqz6hTd6k68AGQR7TFPaZOl9arTEQH79Sor_Ps41U2YGgUPJDAOIoxNCbCM5JHRlhPkOSxAQw6QpqpqZ-LzIDm-aHGyO2-Wf279gDlkULSJNvXoPk74Sj0A/s72-c/like.gif" height="72" width="72"/><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-8655351100328167347</id><published>2012-11-23T21:49:00.001+05:30</published><updated>2012-11-25T10:44:09.190+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU 5TH SEM PRACTICAL SOLUTIONS</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;font-family: inherit; font-size: x-large;&quot;&gt;&lt;u&gt;Set 1&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Open an Image. And separate background using selection tool.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; open&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: select image -&amp;gt;click open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: click on magic wand tool from tool menu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: select on background of the image using magic wand tool&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: press delete on keyboard&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: go to file menu -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 9: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Write a JSP page to display the number of hits to this page. (Hint: use application scope of java bean).&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;%@ page session=&quot;false&quot; %&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;TITLE&amp;gt;Page Counter Using URL Rewriting&amp;lt;/TITLE&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;BODY&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;H3&amp;gt;Page Counter Using URL Rewriting&amp;lt;/H3&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;int count = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;String parm = request.getParameter(&quot;count&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;if (parm != null)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;count = Integer.parseInt(parm);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;if (count == 0) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;%&amp;gt; This is the first time you have accessed this page. &amp;lt;%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;else if (count == 1) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;%&amp;gt; You have accessed the page once before.&amp;lt;%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;else {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;%&amp;gt; You have accessed the page &amp;lt;%= count %&amp;gt; times before.&amp;lt;%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;P&amp;gt; Click&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;A HREF=&quot;urlrewriting.jsp?count=&amp;lt;%=count + 1 %&amp;gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;gt;here&amp;lt;/A&amp;gt; to visit the page again.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/BODY&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/HTML&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 2&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Using pencil tool create an image of landscape, and color it with Brush tool.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: click file menu -&amp;gt; new -&amp;gt; select size -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: in dialog box, click on preset -&amp;gt; select landscape in size box -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: click on pencil tool in tool menu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: draw an image in landscape using pencil tool&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: right click on pencil tool and select brush tool&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: using brush tool, fill the color in landscape image&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: go to file menu -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 9: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 10: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Create an HTML page containing the following features&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;a.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Create a login JSP page with username, password and submit button.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;b.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;On submit, display message ‘Thank you for logging in’ also create cookies to store username and password.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;c.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Open login JSP page on a new browser. If the cookie is present the username and password field should be automatically populated with the values from the cookie.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;%@page contentType=&quot;text/html&quot;%&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;center&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;form action=&quot;next.jsp&quot; method=&quot;post&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Please Enter Your Detials !&amp;lt;br&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; First Name &amp;nbsp; &amp;nbsp;&amp;lt;input type=&quot;text&quot; name=&quot;firstname&quot;&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last Name &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; name=&quot;lastname&quot;&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/center&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Next.jsp&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;%@page contentType=&quot;text/html&quot;%&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;%@page pageEncoding=&quot;UTF-8&quot;%&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;title&amp;gt;JSP Page&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String firstname=request.getParameter(&quot;firstname&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String lastname=request.getParameter(&quot;lastname&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;out.println(&quot;&amp;lt;font color=blue&amp;gt;Welcome&amp;lt;/font&amp;gt; &amp;nbsp; &amp;nbsp;&quot;+firstname+&quot; &quot;+lastname+&quot; &amp;nbsp;Thank you for loging in!&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 3&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Write a JSP program to display current date and time and suitable welcome message.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;a.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;If time is between 5AM and 12 PM display welcome message as ‘Good Morning’&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;b.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;If time is between 12 PM and 5 PM display welcome message as ‘Good Afternoon’&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;c.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;After 5PM display message as ‘Good evening’.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;%@page language=&quot;java&quot;%&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;title&amp;gt;Welcome&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;h1&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;% java.util.Date d=new java.util.Date();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;int time=d.getHours();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if(time&amp;gt;5 &amp;amp;&amp;amp; time&amp;lt;12)&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;out.println(&quot;\n Good Morning !&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;esle if(time&amp;gt;12 &amp;amp;&amp;amp; time&amp;lt;17)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;out.println(&quot;\n Good Afternoon !&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;else if(time&amp;gt;17)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;out.println(&quot;\n Good Evening !&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;%&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;current time is :&amp;lt;%=d.getHours()%&amp;gt;:&amp;lt;%=d.getMinutes()%&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Using Rubberstamp tool, create a clone image&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; open&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: select image -&amp;gt; click open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: select rubberstamp tool from tool menu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: press ALT then left click on image to begin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: click on the image and drag where you want to make clone of that image&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: go to file -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 9: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 4&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Using Gradient tool, create some backgrounds for photos.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; new -&amp;gt; select size -&amp;gt; press ok&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: select gradient tool from tool menu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: choose gradient (linear/ radial/ angle/ diamond) from option toolbar&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: press left click on mouse then drag on image to create gradient&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: go to file -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. .Create an HTML page containing the following features&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;a.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;A combo box containing the list of 7 colors: Violet, Indigo, Blue, Green, Yellow, Orange, Red&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;b.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Depending upon the color selected from the above combo box, the message in the status bar of the window must be reflect the value selected in the combo box (hint: on change event of the combo box).&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;title&amp;gt;Showing Message in Status Bar&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;script language=&quot;JavaScript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;functionfn()&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;num=document.frm.vibgyor.selectedIndex;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;if(num==0)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;window.status=&quot;You have selected Violet.&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;if(num==1)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;window.status=&quot;You have selected Indigo.&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;if(num==2)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;window.status=&quot;You have selected Blue.&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;if(num==3)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;window.status=&quot;You have selected Green.&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;if(num==4)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;window.status=&quot;You have selected Yellow.&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;if(num==5)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;window.status=&quot;You have selected Orange.&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;if(num==6)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;window.status=&quot;You have selected Red.&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;form name=&quot;frm&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;select name=&quot;vibgyor&quot; onChange=fn()&amp;gt;&amp;lt;option&amp;gt;Violet&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;option&amp;gt;Indigo&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;option&amp;gt;Blue&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;option&amp;gt;Green&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;option&amp;gt;Yellow&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;option&amp;gt;Orang&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;option&amp;gt;Red&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/select&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 5&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Create an HTML page containing the following features&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;a.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;A combo box containing the list of &amp;nbsp;7 colors: Violet, Indigo, Blue, Green, Yellow, Orange, Red&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;b.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;An empty 1X1 table with default background color: White&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;c.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Depending upon the color selected from the above combo box, the background of the table must be changed accordingly. (hint: on change event of the combo box).&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Changing Table Color by selecting color from the ComboBox&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;script language= &quot;JavaScript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;functionfn()&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;num=document.frm.vibgyor.selectedIndex;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if(num==0)&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;document.getElementById(&quot;tab&quot;).bgColor=&quot;Violet&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if(num==1)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;document.getElementById(&quot;tab&quot;).bgColor=&quot;Indigo&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if(num==2)&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;document.getElementById(&quot;tab&quot;).bgColor=&quot;Blue&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if(num==3)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;document.getElementById(&quot;tab&quot;).bgColor=&quot;Green&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if(num==4)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;document.getElementById(&quot;tab&quot;).bgColor=&quot;Yellow&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if(num==5)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;document.getElementById(&quot;tab&quot;).bgColor=&quot;Orange&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if(num==6)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;document.getElementById(&quot;tab&quot;).bgColor=&quot;Red&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;form name=&quot;frm&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;select name=&quot;vibgyor&quot; onChange=fn()&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;option&amp;gt;Violet&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;option&amp;gt;Indigo&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;option&amp;gt;Blue&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;option&amp;gt;Green&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;option&amp;gt;Yellow&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;option&amp;gt;Orange&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;option&amp;gt;Red&amp;lt;/option&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/select&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;table id=&quot;tab&quot; border=&quot;1&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;th&amp;gt;Registration Number&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;td&amp;gt;priyanka rani&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;td&amp;gt;072B5725&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Import a ‘JPEG’ format image and save it as a ‘PSD’ image, using &amp;nbsp;layer options&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Decrease the opacity of image.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Tips: Ctrl + Shift + S &amp;nbsp; = ‘save as’ window&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: select a JPEG image -&amp;gt; click open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: go to layer -&amp;gt; new -&amp;gt; click on ‘layer from background’&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: enter layer name in dialog box -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: press F7 then decrease opacity&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: go to file -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: select PSD format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 9: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 6&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Open a PORTRAIT image, convert it into grayscale. Now color the image Using COLOR BALANCE, LEVELS and CURVES&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: select a portrait JPEG image -&amp;gt;click open&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: go to image -&amp;gt; mode -&amp;gt; click on Grayscale&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: click “discard” in message box&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: go to image -&amp;gt; adjustments -&amp;gt; image -&amp;gt; click on ‘curves’&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: adjust curves -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: go to file -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 9: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 10: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Write a HTML page containing an HTML form to capture the following properties from the user:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;a.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Name (text box)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;b.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Address (text area)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;c.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Phone (text box)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Write javascript functions&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;a.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;to validate Name to contain only alphabets and of maximum length should be 25 ; Show appropriate messages on failure&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;b.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;to validate Address field to contain maximum length of 200 characters; Show appropriate on failure and focus the ‘Address’ field text area&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;c.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;to validate phone number to contain only numeric data; show appropriate messages on failure&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;HTML form&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;Script language=&quot;javaScript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;function f()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;var name=document.f1.Name.value;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;var phone=document.f1.Phone.value;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;var address=document.f1.Address.value;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if(name.length==&quot;&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;alert(&quot;Please enter name&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;name.focus();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;return;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if (name.length&amp;gt; 25)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;alert(&quot;Name Field cannot contain more than 25 characters&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;name.focus();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;return;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if (!isNaN(name))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;alert(&quot;Name field must be filled with only Alphabets&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;name.focus();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;return;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if(phone.length==&quot;&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;alert(&quot;Please enter phone numbar&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;phone.focus();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;return;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if (isNaN(phone))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;alert(&quot;Phone Number must be numeric&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;phone.focus();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;return;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if(address.length==&quot;&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;alert(&quot;Please enter address&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;address.focus();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;return;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if (address.length&amp;gt; 200)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;alert(&quot;Address Field can contain maximum of 200 character&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;body bgcolor=&quot;pink&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;marquee&amp;gt;&amp;lt;h1 align=&quot;center&quot;&amp;gt;A Sample FORM &amp;lt;/h1&amp;gt;&amp;lt;/marquee&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;form name=f1&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Name:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;input type=textbox name=&quot;Name&quot;&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Phone:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;input type=textbox name=&quot;Phone&quot;&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Address:&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;textarea rows=&quot;5&quot; cols=&quot;50&quot; name=&quot;Address&quot;&amp;gt;&amp;lt;/textarea&amp;gt;&amp;lt;BR&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;input type=Button name=&#39;&#39;Button&quot; value =&quot;Submit&quot; onclick=f()&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 7&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Create two HTML pages&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;a.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;First page with the following features&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;i.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;An image(logo) with a company name as the heading in the top center&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;ii.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;This page containing an HTML form, two text boxes to get First Name, Second Name of the user&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;iii.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;A submit button to the submit the data to the next page&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;b.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;The Second page receives the data submitted by the First Page, displays the following message&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Welcome &amp;lt;Last Name&amp;gt;, &amp;lt;First Name&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;center&amp;gt;&amp;lt;img src=&quot;NIITLogo.jpg&quot;&amp;gt;&amp;lt;/center&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;center&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;form action=&quot;ToShowDataToAnotherPage&quot; method=&quot;post&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Please Enter Your Detials !&amp;lt;br&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; First Name &amp;nbsp; &amp;nbsp;&amp;lt;input type=&quot;text&quot; name=&quot;firstname&quot;&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last Name &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; name=&quot;lastname&quot;&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/center&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;ToShowDataToAnotherPage &amp;nbsp;servlet&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;import java.net.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;importjavax.servlet.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;importjavax.servlet.http.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;public class ToShowDataToAnotherPage extends HttpServlet {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;protected void doPost(HttpServletRequest request, HttpServletResponse response)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;throwsServletException, IOException {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;response.setContentType(&quot;text/html;charset=UTF-8&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;PrintWriter out = response.getWriter();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String firstname=request.getParameter(&quot;firstname&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String lastname=request.getParameter(&quot;lastname&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;out.println(&quot;&amp;lt;font color=blue&amp;gt;Welcome&amp;lt;/font&amp;gt; &amp;nbsp; &amp;nbsp;&quot;+firstname+&quot; &quot;+lastname);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Open a portrait, select the eyeballs using marquee tool, and now change the color of eyes using Hue / saturation.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Tips: Ctrl + U = Hue / saturation&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: select image -&amp;gt;click open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: click on marquee tool from tool menu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: select eyeball from the image using marquee tool&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: press CTRL+U&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: adjust HUE AND SATURATION from dialog box -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: go to file -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 9: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 10: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 8&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Open 3 to 4 images in a same layer. Using filter effects create creative backgrounds for book cover page.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; new -&amp;gt; select background size -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: go to filter -&amp;gt; noise -&amp;gt; add noise&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: adjust amount in noise dialog box -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: go to file menu -&amp;gt; open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: select 3-4 images -&amp;gt; click open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: select images, copy and paste them in background one by one&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: go to file -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 9: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 10: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Create a HTML page to display a list of film songs available in the library. The following are features of the page&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;a.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;The name of the songs must be hyper linked to the songs, so that the users must be able to download songs.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;b.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;The following is the song database available in the library:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;c.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Library Name: Hariharan Music Site&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&amp;nbsp;Slno&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Song Name &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Film &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Artiste&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;PATA-PATA&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Apthamitra&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Udith Narayan&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Kana Kanade&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Apthamitra&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Madhubalakrishna&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Anku Donku&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Apthamitra&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;S P Balasubramanyam&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Kalavanu &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thadeyoru&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Apthamitra&amp;nbsp;Hariharan&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Bombe &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Anayya &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Unknown&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;tittle&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Hiriharan Songs Site&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;marquee&amp;gt;&amp;lt;font color = blue&amp;gt;&amp;lt;b&amp;gt;Welcome to Hariharan&#39;s Songs Site&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/marquee&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;center&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;table border=1&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;S.No.&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;Song Name&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;Film&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;Artist&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;1.&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;song1.html&quot;&amp;gt;Patta-Patta&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Apthamitra&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Udit Narayan&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;2.&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;song2.html&quot;&amp;gt;Kana Kanede&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Apthamitra&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Madhubalakirishna&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;3.&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;song3.html&quot;&amp;gt;AnkuDonku&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Apthamitra&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;S P Balasupramanniyam&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;4.&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;&amp;lt;a href=&quot;song4.html&quot;&amp;gt;Bombay&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Anaya&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Unknown&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/center&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 9&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Create an HTML page to display the following data using &amp;lt;table&amp;gt;&amp;lt;/table&amp;gt; tags&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;First Name&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Last Name&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;City&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Phone Number&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Shiva&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Rama&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Mysore&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;08212569964&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Pratap&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;S&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Bangalore&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;08025689754&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Sreenivas &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;G&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Mercara&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;08965445454&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;tittle&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Data Table&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;table border=1&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;First Name&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;Last Name&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;City&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;Phone Number&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Shiva&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Rama&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Mysore&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;08212569964&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Pratap&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;S&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Bangalore&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;08025689754&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Shrinivas&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;G&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Mercara&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;08965445454&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Open an image and adjust a level of image.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Tips: Ctrl + L = level&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: select an image -&amp;gt; click open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: go to image -&amp;gt; adjustments -&amp;gt; click on level or press ctrl + l&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: adjust level -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: go to file -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 10&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Write HTML script to display “Hello World, Welcome to the world of HTML”. Put the title as “World of HTML”&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Welcome to the world of HTML&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;i&amp;gt;&quot;Hello World&amp;lt;/i&amp;gt;&amp;lt;b&amp;gt;Welcome to the world of HTML&quot;&amp;lt;/b&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Change an image size 22 cm x 29 cm to 44 cm x 58 cm. and resolution 72 to 300.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: select an image with 22 cm x 29 cm size -&amp;gt; click open&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: go to image -&amp;gt; image size&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: change image size to 44 cm x 58 cm size with 100 resolutions -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: go to file -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 11&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Create some geometrical shapes, using shape tool.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; new -&amp;gt; select size -&amp;gt; press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: click on ‘custom shape tool’ from tool menu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: click on ‘custom shape picker’ in options toolbar&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: click on smart tag -&amp;gt; select all then click append&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: choose shape from option toolbar&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: left click on background and drag mouse to draw shape&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: go to file -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 9: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 10: enter file name -&amp;gt; click Save&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 12&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Type text ‘GRADATION’ and apply gradient tool on text.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 1: run Photoshop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 2: go to file menu -&amp;gt; new -&amp;gt; select size -&amp;gt; click OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 3: click on text from tool menu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 4: type text “GRADATION”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 5: click on layer from layer property&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 6: right click on selected layer and click on ‘blending options’&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 7: click and check on ‘gradient overlay’&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 8: adjust gradient or change angle to 0o -&amp;gt; then press OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 9: go to file menu -&amp;gt; save as&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 10: select JPEG format&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Step 11: enter file name -&amp;gt; click SAVE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Create an HTML page to display the following data using &amp;lt;table&amp;gt;&amp;lt;/table&amp;gt; tags&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;First Name&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Last Name&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;City&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Phone Number&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Shiva&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Rama&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Mysore&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;08212569964&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Pratap&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;S&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Bangalore&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;08025689754&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Sreenivas &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;G &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Mercara &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;08965445454&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;tittle&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Data Table&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;table border=1&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;First Name&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;Last Name&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;City&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;th&amp;gt;Phone Number&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Shiva&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Rama&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Mysore&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;08212569964&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Pratap&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;S&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Bangalore&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;08025689754&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Shrinivas&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;G&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;Mercara&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;&amp;lt;td&amp;gt;08965445454&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 13&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Write C Program to create Indian Flag.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;#include&amp;lt;math.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;#include&amp;lt;graphics.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;const float PI=3.14154;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;int gdriver=DETECT,gmode=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;int I;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Int x,y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;initgraph(&amp;amp;gdriver,&amp;amp;gmode,&quot;c:\\tc\\bgi&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;cleardevice();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;rectangle(0,0,639,479);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;outtextxy(250,20,&quot;INDIAN FLAG&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;rectangle(80,50,560,380);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;line(80,160,560,160);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;line(80,270,560,270);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;setfillstyle(SOLID_FILL,LIGHTRED);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;floodfill(85,60,getmaxcolor());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;setfillstyle(SOLID_FILL,WHITE);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;floodfill(85,170,getmaxcolor());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;setfillstyle(SOLID_FILL,GREEN);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;floodfill(85,280,getmaxcolor());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;setcolor(BLUE);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;circle(320,215,50);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;for(I=0;I&amp;lt;=360;I+=15)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;x=50*cos(I*PI/180);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;y=50*sin(I*PI/180);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;line(320,215,320+x,215-y);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;setcolor(CYAN);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;settextstyle(TRIPLEX_FONT,HORIZ_DIR,6);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;outtextxy(200,400,&quot; &amp;nbsp; &amp;nbsp;JAI HIND!!!&quot; ) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Write C Program to create FISH structure using basic geometric &amp;nbsp;Functions.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;#include&amp;lt;graphics.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;#include&amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;#include&amp;lt;dos.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; int gd=DETECT,gm,i,j,p,q,x,y,k,flag;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; struct arccoordstype arcinfo;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; initgraph(&amp;amp;gd,&amp;amp;gm,&quot;c:\\tc\\bgi&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; y=getmaxy()/2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; i=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; p=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; q=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; j=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; flag=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; setcolor(WHITE);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; for(k=0;k&amp;lt;500;k++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; putpixel(random(620),random(419),15);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; while(!kbhit())&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; line(0+i,y+20,0+i,y-20); &amp;nbsp;/*triangle*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; line(0+i,y+20,20+i,y);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; line(0+i,y-20,20+i,y);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; ellipse(80+i,y,10-p,350+p,60,25);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; line(140+i,y+3,130+i,y+8);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; line(130+i,y+8,140+i,y-5);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; if(flag==0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; p=p+2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; if(flag==1)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; p=p-2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; circle(120+i,y-6,5);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; line(60+i,y-25,30+i,y-45+j);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; line(30+i,y-45+j,100+i,y-25);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; line(60+i,y+25,30+i,y+45+q);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; line(30+i,y+45+q,100+i,y+25);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; i=i+3;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; if(i&amp;gt;=638)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp;i=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; if(flag==0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; j=j-2,q=q+2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; if(flag==1)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; j=j+2,q=q-2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; if(j&amp;lt;=-10)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; flag=1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; else if(j&amp;gt;=0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; flag=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; delay(10);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; cleardevice();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; closegraph();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Set 14&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//1. Write Open GL Program to create a Window and display HELLO inside.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;#include&amp;lt;GL/glut.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;void display(void)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glClear(GL_COLOR_BUFFER_BIT);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glColor3f(1.0,1.0,1.0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glBegin(GL_POLYGON);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glVertex3f(0.25,0.25,0.25);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glVertex3f(0.75,0.25,0.0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glVertex3f(0.75,0.75,0.0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glVertex3f(0.25,0.75,0.0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glEnd();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glFlush();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Void init(void)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glClearColor(0.0,0.0,0.0,0.0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glMatrixMode(GL_PROJECTION);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glLoadIdentity();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glOrtho(0.0,1.0,0.0,1.0,-1.0,1.0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Int main(int argc,char**argv)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glutInit(&amp;amp;argc,argv);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glutInitWindowSize(250,250);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glutInitWindowPosition(100,100);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;glutCreateWindow(“HELLO”);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;init();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;glutDisplayFunc(display);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;glutMainLoop();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;//2. Create a simple static web page for a college (assume necessary information)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;title&amp;gt;My College Site&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;body bgcolor=&quot;gray&quot; text=&quot;white&quot; &amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;div id=&quot;banner&quot; style=&quot;width:800px; height:120px; background-color:black&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;img src=&quot;file:///C:/banner.gif&quot; width=800 height=120&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;div id=&quot;header&quot; style=&quot;position:absolute; left:100px; top:30px; width:350px; height:75px&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;div&amp;gt;&amp;lt;h1&amp;gt;&amp;lt;font color=&quot;red&quot; face=&quot;Monotype corsiva&quot;&amp;gt;My College Site&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;div id=&quot;header&quot; style=&quot;position:absolute; background-color:black; top:135px; width:200px; height:500px&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;ul id=&quot;listitem&quot; type=&quot;circle&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;li&amp;gt;&amp;lt;a href=abc.html target=&quot;_self&quot;&amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;Sitemap.html&quot;&amp;gt;Sitemap&amp;lt;a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;About.html&quot;&amp;gt;About Us&amp;lt;a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;div id=&quot;header&quot; style=&quot;position:absolute; background-color:black; left:215px; top:135px; width:590px; height:500px&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;h3&amp;gt;&amp;lt;font color=&quot;red&quot;&amp;gt;Online Admission&amp;lt;/font&amp;gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;form id=&quot;frm1&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Enter your name: &amp;lt;input type=&quot;text&quot; id=&quot;text1&quot; /&amp;gt; &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Gender: &amp;lt;input type=&quot;radio&quot; id=&quot;gender1&quot; name=&quot;gend&quot; /&amp;gt;Male &amp;lt;input type=&quot;radio&quot; id=&quot;gender1&quot; name=&quot;gend&quot; /&amp;gt;Female &amp;nbsp;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Qualification: Matric&amp;lt;input type=&quot;checkbox&quot; id=&quot;check1&quot; /&amp;gt; Enter&amp;lt;input type=&quot;checkbox&quot; id=&quot;check1&quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot; post=&quot;&quot; /&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit; line-height: 27px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Don&#39;t Forget to&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img alt=&quot;Like&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrBCAp2Dj32MvcnwbKlvf3bqz6hTd6k68AGQR7TFPaZOl9arTEQH79Sor_Ps41U2YGgUPJDAOIoxNCbCM5JHRlhPkOSxAQw6QpqpqZ-LzIDm-aHGyO2-Wf279gDlkULSJNvXoPk74Sj0A/s100/like.gif&quot; style=&quot;font-family: inherit;&quot; width=&quot;50&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: inherit; line-height: 27px;&quot;&gt;or Comment..&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit; line-height: 18px;&quot;&gt;&lt;br /&gt;&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;color: #990000; font-family: inherit; line-height: 18px;&quot;&gt;-- get membership if you want more from this blog --&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/8655351100328167347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/11/ku-5th-sem-practical-solutions_4640.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/8655351100328167347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/8655351100328167347'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/11/ku-5th-sem-practical-solutions_4640.html' title='KU 5TH SEM PRACTICAL SOLUTIONS'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrBCAp2Dj32MvcnwbKlvf3bqz6hTd6k68AGQR7TFPaZOl9arTEQH79Sor_Ps41U2YGgUPJDAOIoxNCbCM5JHRlhPkOSxAQw6QpqpqZ-LzIDm-aHGyO2-Wf279gDlkULSJNvXoPk74Sj0A/s72-c/like.gif" height="72" width="72"/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-1339517681089540444</id><published>2012-10-18T14:52:00.003+05:30</published><updated>2012-10-20T14:13:08.411+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU 5TH SEM ASSIGNMENT - BSIT (TB) - 53 (DATA WAREHOUSING &amp; DATA MINING)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-size: large;&quot;&gt;&lt;u&gt;PART - A&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;I. Note: Answer all the questions.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;a) What is Normalization? What are the different forms of Normalization ?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
The usual approach in normalization in database applications is to ensure that the data is divided into two or more tables, such that when the data in one of them is updated, it does not lead to anamolies of data (The student is advised to refer any book on data base management systems for details, if interested).&lt;br /&gt;
The idea is to ensure that when combined, the data available is consistent. However, in data warehousing, one may even tend to break the large table into several “denormalized” smaller tables. This may lead to lots of extra space being used. But it helps in an indirect way – It avoids the overheads of joining the data during queries.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) Define Data warehouse. What are roles of education in a data warehousing delivery process?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Data Warehouse:&lt;/b&gt;&amp;nbsp;In it’s simplest form, a data ware house is a collection of key pieces of information used to manage and direct the business for the most profitable outcome. It would decide the amount of inventory to be held, the no. of employees to be hired, the amount to be procured on loan etc.,.&lt;br /&gt;
The above definition may not be precise - but that is how data ware house systems are. There are different definitions given by different authors, but we have this idea in mind and proceed. It is a large collection of data and a set of process managers that use this data to make information available. The data can be meta data, facts, dimensions and aggregations. The process managers can be load managers, ware house managers or query managers. The information made available is such that they allow the end users to make informed decisions.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Roles of education in a data warehousing delivery process:-&lt;/b&gt;&lt;br /&gt;
This has two roles to play - one to make people, specially top level policy makers, comfortable with the concept. The second role is to aid the prototyping activity. To take care of the education concept, an initial (usually scaled down) prototype is created and people are encouraged to interact with it. This would help achieve both the activities listed above. The users became comfortable with the use of the system and the ware house developer becomes aware of the limitations of his prototype which can be improvised upon.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;c) What is process managers? What are the different types of process managers?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Process Managers:&lt;/b&gt; These are responsible for the smooth flow, maintainance and upkeep of data into and out of the database.&lt;br /&gt;
&lt;b&gt;The main types of process managers are:-&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;i). Load manager:&lt;/b&gt; to take case of source interaction, data transformation and data load.&lt;br /&gt;
&lt;b&gt;ii). Ware house manger:&lt;/b&gt; to take care of data movement, meta data management and performance&lt;br /&gt;
monitoring.&lt;br /&gt;
&lt;b&gt;iii). Query manager:&lt;/b&gt; to control query scheduling and monitoring.&lt;br /&gt;
&lt;br /&gt;
We shall look into each of them briefly. Before that, we look at a schematic diagram that defines the boundaries of the three types of managers.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbcsWHF8s0o3XTPxUBpMBWIBVVJe-ocWpt9aAUTJjMkzfl1JNfdkelEcM-F4FrCnTkZ9DwPIMoiF94_8J4NtRNzWR8gabNArlOKKxyozfyqyGLfNX3boyeWhylxmEtbBGNnyVRDUgt87o/s1600/part-a+c.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbcsWHF8s0o3XTPxUBpMBWIBVVJe-ocWpt9aAUTJjMkzfl1JNfdkelEcM-F4FrCnTkZ9DwPIMoiF94_8J4NtRNzWR8gabNArlOKKxyozfyqyGLfNX3boyeWhylxmEtbBGNnyVRDUgt87o/s400/part-a+c.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;d) Give the architectures of data mining systems.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9rWtLQSS4KbL9COjUa8GwN4VB1Onxt1dx3oduN1PQjhJ3nKaOhlM6ZzxcFjxtDgv42TbrhOJZSJGUneGwQYz3jmbstoGQbwZMZ0h3XMrpYDFT4PFtKacW1SynnT80I3zmrXa6K5QDVcs/s1600/part-a+d.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9rWtLQSS4KbL9COjUa8GwN4VB1Onxt1dx3oduN1PQjhJ3nKaOhlM6ZzxcFjxtDgv42TbrhOJZSJGUneGwQYz3jmbstoGQbwZMZ0h3XMrpYDFT4PFtKacW1SynnT80I3zmrXa6K5QDVcs/s400/part-a+d.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;e) What are the guidelines for KDD environment ?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
It is customary in the computer industry to formulate rules of thumb that help information technology (IT) specialists to apply new developments. In setting up a reliable data mining environment we may follow the guidelines so that KDD system may work in a manner we desire.&lt;br /&gt;
&lt;b&gt;i).&lt;/b&gt; Support extremely large data sets&lt;br /&gt;
&lt;b&gt;ii).&lt;/b&gt; Support hybrid learning&lt;br /&gt;
&lt;b&gt;iii).&lt;/b&gt; Establish a data warehouse&lt;br /&gt;
&lt;b&gt;iv).&lt;/b&gt; Introduce data cleaning facilities&lt;br /&gt;
&lt;b&gt;v).&lt;/b&gt; Facilitate working with dynamic coding&lt;br /&gt;
&lt;b&gt;vi).&lt;/b&gt; Integrate with decision support system&lt;br /&gt;
&lt;b&gt;vii).&lt;/b&gt; Choose extendible architecture&lt;br /&gt;
&lt;b&gt;viii).&lt;/b&gt; Support heterogeneous databases&lt;br /&gt;
&lt;b&gt;ix).&lt;/b&gt; Introduce client/server architecture&lt;br /&gt;
&lt;b&gt;x).&lt;/b&gt; Introduce cache optimization&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;PART - B&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;II. Answer any FIVE full questions.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;1. a) With the help of a diagram explain architecture of data warehouse.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
The architecture for a data ware is indicated below. Before we proceed further, we should be clear about the concept of architecture. It only gives the major items that make up a data ware house. The size and complexity of each of these items depend on the actual size of the ware house itself, the specific requirements of the ware house and the actual details of implementation.&lt;br /&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;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCk31LldRtt8t7MC8lfS2MDmqW34PdXGhw4hotcT6hQ8rYV6ACEJcH4CH6-D984p0cyA0G2HVmA-f587Feca344IEuBZRWoKDgsqBgqJzahl7AmhvzV67YjFcirrIrOsZXlwLBVXhElqw/s1600/part-b+i.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCk31LldRtt8t7MC8lfS2MDmqW34PdXGhw4hotcT6hQ8rYV6ACEJcH4CH6-D984p0cyA0G2HVmA-f587Feca344IEuBZRWoKDgsqBgqJzahl7AmhvzV67YjFcirrIrOsZXlwLBVXhElqw/s400/part-b+i.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Before looking into the details of each of the managers we could get a broad idea about their functionality by mapping the processes that we studied in the previous chapter to the managers. The extracting and loading processes are taken care of by the load manager. The processes of cleanup and transformation of data as also of back up and archiving are the duties of the ware house manage, while the query manager, as the name implies is to take case of query management.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) Indicate the important function of a Load Manager, Warehouse Manager.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Important function of Load Manager:&lt;/b&gt;&lt;br /&gt;
i) To extract data from the source (s)&lt;br /&gt;
ii) To load the data into a temporary storage device&lt;br /&gt;
iii) To perform simple transformations to map it to the structures of the data ware house.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Important function of Warehouse Manager:&lt;/b&gt;&lt;br /&gt;
i) Analyze the data to confirm data consistency and data integrity .&lt;br /&gt;
ii) Transform and merge the source data from the temporary data storage into the ware house.&lt;br /&gt;
iii) Create indexes, cross references, partition views etc.,.&lt;br /&gt;
iv) Check for normalization’s.&lt;br /&gt;
v) Generate new aggregations, if needed.&lt;br /&gt;
vi) Update all existing aggregations&lt;br /&gt;
vii) Create backups of data.&lt;br /&gt;
viii) Archive the data that needs to be archived.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;2. a) Differentiate between vertical partitioning and horizontal partitioning.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
In &lt;b style=&quot;background-color: yellow;&quot;&gt;horizontal partitioning&lt;/b&gt;, we simply the first few thousand&amp;nbsp;entries in one partition, the second few thousand in the next and so on. This can be done by partitioning by time, where in all data pertaining to the first month / first year is put in the first partition, the second one in the second partition and so on. The other alternatives can be based on different sized dimensions, partitioning an other dimensions, petitioning on the size of the table and round robin partitions. Each of them have certain advantages as well as disadvantages.&lt;br /&gt;
In &lt;b style=&quot;background-color: yellow;&quot;&gt;vertical partitioning&lt;/b&gt;, some columns are stored in one partition and certain other columns of the same row in a different partition. This can again be achieved either by normalization or row splitting. We will look into their relative trade offs.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) What is schema? Distinguish between facts and dimensions.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
A schema, by definition, is a logical arrangements of facts that facilitate ease of storage and retrieval, as described by the end users. The end user is not bothered about the overall arrangements of the data or the fields in it. For example, a sales executive, trying to project the sales of a particular item is only interested in the sales details of that item where as a tax practitioner looking at the same data will be interested only in the amounts received by the company and the profits made.&lt;br /&gt;
The star schema looks a good solution to the problem of ware housing. It simply states that one should identify the facts and store it in the read-only area and the dimensions surround the area. Whereas the dimensions are liable to change, the facts are not. But given a set of raw data from the sources, how does one identify the facts and the dimensions? It is not always easy, but the following steps can help in that direction.&lt;br /&gt;
&lt;b&gt;i)&lt;/b&gt; Look for the fundamental transactions in the entire business process. These basic entities&lt;br /&gt;
are the facts.&lt;br /&gt;
&lt;b&gt;ii)&lt;/b&gt; Find out the important dimensions that apply to each of these facts. They are the candidates&lt;br /&gt;
for dimension tables.&lt;br /&gt;
&lt;b&gt;iii)&lt;/b&gt; Ensure that facts do not include those candidates that are actually dimensions, with a set of&lt;br /&gt;
facts attached to it.&lt;br /&gt;
&lt;b&gt;iv)&lt;/b&gt; Ensure that dimensions do not include these candidates that are actually facts.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;3. a) What is an event in data warehousing? List any five events.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
An event is defined as a measurable, observable occurrence of a defined action. If this definition is quite vague, it is because it encompasses a very large set of operations. The event manager is a software that continuously monitors the system for the occurrence of the event and then take any action that is suitable (Note that the event is a “measurable and observable” occurrence). The action to be taken is also normally specific to the event.&lt;br /&gt;
&lt;b&gt;A partial list of the common events that need to be monitored are as follows:&lt;/b&gt;&lt;br /&gt;
i). Running out of memory space.&lt;br /&gt;
ii). A process dying&lt;br /&gt;
iii). A process using excessing resource&lt;br /&gt;
iv). I/O errors&lt;br /&gt;
v). Hardware failure&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) What is summary table? Describe the aspects to be looked into while designing a summary table.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
The main purpose of using summary tables is to cut down the time taken to execute a specific query.&lt;br /&gt;
The main methodology involves minimizing the volume of data being scanned each time the query is to be&lt;br /&gt;
answered. In other words, partial answers to the query are already made available. For example, in the&lt;br /&gt;
above cited example of mobile market, if one expects&lt;br /&gt;
&lt;b&gt;i)&lt;/b&gt; the citizens above 18 years of age&lt;br /&gt;
&lt;b&gt;ii)&lt;/b&gt; with salaries greater than 15,000 and&lt;br /&gt;
&lt;b&gt;iii)&lt;/b&gt; with professions that involve traveling are the potential customers, then, every time the query is to be processed (may be every month or every quarter), one will have to look at the entire data base to compute these values and then combine them suitably to get the relevant answers. The other method is to prepare summary tables, which have the values pertaining toe ach of these sub-queries, before hand, and then combine them as and when the query is raised.&lt;br /&gt;
&lt;b&gt;Summary table are designed by following the steps given below:&lt;/b&gt;&lt;br /&gt;
i) Decide the dimensions along which aggregation is to be done.&lt;br /&gt;
ii) Determine the aggregation of multiple facts.&lt;br /&gt;
iii) Aggregate multiple facts into the summary table.&lt;br /&gt;
iv) Determine the level of aggregation and the extent of embedding.&lt;br /&gt;
v) Design time into the table.&lt;br /&gt;
vi) Index the summary table.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;4. a) List the significant issues in automatic cluster detection.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Most of the issues related to automatic cluster detection are connected to the kinds of questions we want to be answered in the data mining project, or data preparation for their successful application.&lt;br /&gt;
&lt;b&gt;i). Distance measure&lt;/b&gt;&lt;br /&gt;
Most clustering techniques use for the distance measure the Euclidean distance formula (square root of the sum of the squares of distances along each attribute axes).&lt;br /&gt;
Non-numeric variables must be transformed and scaled before the clustering can take place. Depending&lt;br /&gt;
on this transformations, the categorical variables may dominate clustering results or they may be even&lt;br /&gt;
completely ignored.&lt;br /&gt;
&lt;b&gt;ii). Choice of the right number of clusters&lt;/b&gt;&lt;br /&gt;
If the number of clusters k in the K-means method is not chosen so to match the natural structure of the data, the results will not be good. The proper way t alleviate this is to experiment with different values for k. In principle, the best k value will exhibit the smallest intra-cluster distances and largest inter-cluster distances.&lt;br /&gt;
&lt;b&gt;iii). Cluster interpretation&lt;/b&gt;&lt;br /&gt;
Once the clusters are discovered they have to be interpreted in order to have some value for the data mining project.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) Define data marting. List the reasons for data marting.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
The data mart stores a subset of the data available in the ware house, so that one need not always have to scan through the entire content of the ware house. It is similar to a retail outlet. A data mart speeds up the queries, since the volume of data to be scanned is much less. It also helps to have tail or made processes for different access tools, imposing control strategies etc.,.&lt;br /&gt;
&lt;b&gt;Following are the reasons for which data marts are created:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;i)&lt;/b&gt; Since the volume of data scanned is small, they speed up the query processing.&lt;br /&gt;
&lt;b&gt;ii)&lt;/b&gt; Data can be structured in a form suitable for a user access too&lt;br /&gt;
&lt;b&gt;iii)&lt;/b&gt; Data can be segmented or partitioned so that they can be used on different platforms and also different control strategies become applicable.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;5. a) Explain how to categorize data mining system.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
There are many data mining systems available or being developed. Some are specialized systems dedicated to a given data source or are confined to limited data mining functionalities, other are more versatile and comprehensive. Data mining systems can be categorized according to various criteria among other classification are the following:&lt;br /&gt;
&lt;b&gt;a)&lt;/b&gt; Classification according to the type of data source mined: this classification categorizes data mining systems according to the type of data handled such as spatial data, multimedia data, time-series data, text data, World Wide Web, etc.&lt;br /&gt;
&lt;b&gt;b)&lt;/b&gt; Classification according to the data model drawn on: this classification categorizes data mining systems based on the data model involved such as relational database, object-oriented database, data warehouse, transactional, etc.&lt;br /&gt;
&lt;b&gt;c)&lt;/b&gt; Classification according to the king of knowledge discovered: this classification categorizes data mining systems based on the kind of knowledge discovered or data mining functionalities, such as characterization, discrimination, association, classification, clustering, etc. Some systems tend to be comprehensive systems offering several data mining functionalities together.&lt;br /&gt;
&lt;b&gt;d)&lt;/b&gt; Classification according to mining techniques used: Data mining systems employ and provide different techniques. This classification categorizes data mining systems according to the data analysis approach used such as machine learning, neural networks, genetic algorithms, statistics, visualization, database oriented or data warehouse-oriented, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) List and explain different kind of data that can be mined.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Different kind of data that can be mined are listed below:-&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;i). Flat files:&lt;/b&gt; Flat files are actually the most common data source for data mining algorithms, especially at the research level.&lt;br /&gt;
&lt;b&gt;ii). Relational Databases:&lt;/b&gt; A relational database consists of a set of tables containing either values of entity attributes, or values of attributes from entity relationships.&lt;br /&gt;
&lt;b&gt;iii). Data Warehouses:&lt;/b&gt; A data warehouse as a storehouse, is a repository of data collected from multiple data sources (often heterogeneous) and is intended to be used as a whole under the same unified schema.&lt;br /&gt;
&lt;b&gt;iv). Multimedia Databases:&lt;/b&gt; Multimedia databases include video, images, audio and text media. They can be stored on extended object-relational or object-oriented databases, or simply on a file system.&lt;br /&gt;
&lt;b&gt;v). Spatial Databases:&lt;/b&gt; Spatial databases are databases that in addition to usual data, store geographical information like maps, and global or regional positioning.&lt;br /&gt;
&lt;b&gt;vi). Time-Series Databases:&lt;/b&gt; Time-series databases contain time related data such stock market data or logged activities. These databases usually have a continuous flow of new data coming in, which sometimes causes the need for a challenging real time analysis.&lt;br /&gt;
&lt;b&gt;vii). World Wide Web:&lt;/b&gt; The World Wide Web is the most heterogeneous and dynamic repository available. A very large number of authors and publishers are continuously contributing to its growth and metamorphosis and a massive number of users are accessing its resources daily.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;6. a) Give the syntax for task relevant data specification.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Syntax for tax-relevant data specification:-&lt;/b&gt;&lt;br /&gt;
The first step in defining a data mining task is the specification of the task-relevant data, that is, the data on which mining is to be performed. This involves specifying the database and tables or data warehouse containing the relevant data, conditions for selecting the relevant data, the relevant attributes or dimensions for exploration, and instructions regarding the ordering or grouping of the data retrieved. DMQL provides clauses for the clauses for the specification of such information, as follows:-&lt;br /&gt;
&lt;b&gt;i). use database (database_name) or use data warehouse (data_warehouse_name):&lt;/b&gt; The use clause directs the mining task to the database or data warehouse specified.&lt;br /&gt;
&lt;b&gt;ii). from (relation(s)/cube(s)) [where(condition)]:&lt;/b&gt; The from and where clauses respectively specify the database tables or data cubes involved, and the conditions defining the data to be retrieved.&lt;br /&gt;
&lt;b&gt;iii). in relevance to (attribute_or_dimension_list):&lt;/b&gt; This clause lists the attributes or dimensions for exploration.&lt;br /&gt;
&lt;b&gt;iv). order by (order_list):&lt;/b&gt; The order by clause specifies the sorting order of the task relevant data.&lt;br /&gt;
&lt;b&gt;v). group by (grouping_list):&lt;/b&gt; the group by clause specifies criteria for grouping the data.&lt;br /&gt;
&lt;b&gt;vi). having (conditions):&lt;/b&gt; The having cluase specifies the condition by which groups of data are considered relevant.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) Explain the designing of GUI based on data mining query language.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
A data mining query language provides necessary primitives that allow users to communicate with data mining systems. But novice users may find data mining query language difficult to use and the syntax difficult to remember. Instead , user may prefer to communicate with data mining systems through a graphical user interface (GUI). In relational database technology , SQL serves as a standard core language for relational systems , on top of which GUIs can easily be designed. Similarly, a data mining query language may serve as a core language for data mining system implementations, providing a basis for the development of GUI for effective data mining.&lt;br /&gt;
&lt;b&gt;A data mining GUI may consist of the following functional&amp;nbsp;components:-&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) Data collection and data mining query composition -&lt;/b&gt; This component allows the user to specify task-relevant data sets and to compose data mining queries. It is similar to GUIs used for the specification of relational queries.&lt;br /&gt;
&lt;b&gt;b) Presentation of discovered patterns – &lt;/b&gt;This component allows the display of the discovered patterns in various forms, including tables, graphs, charts, curves and other visualization techniques.&lt;br /&gt;
&lt;b&gt;c) Hierarchy specification and manipulation -&lt;/b&gt; This component allows for concept hierarchy specification , either manually by the user or automatically. In addition , this component should allow concept hierarchies to be modified by the user or adjusted automatically based on a given data set distribution.&lt;br /&gt;
&lt;b&gt;d) Manipulation of data mining primitives –&lt;/b&gt; This component may allow the dynamic adjustment of data mining thresholds, as well as the selection, display and modification of concept hierarchies. It may also allow the modification of previous data mining queries or conditions.&lt;br /&gt;
&lt;b&gt;e) Interactive multilevel mining –&lt;/b&gt; This component should allow roll-up or drill-down operations on discovered patterns.&lt;br /&gt;
&lt;b&gt;f) Other miscellaneous information –&lt;/b&gt; This component may include on-line help manuals, indexed search , debugging and other interactive graphical facilities.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;7. a) Explain how decision trees are useful in data mining.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Decision trees are powerful and popular tools for classification and prediction. The attractiveness of tree-based methods is due in large part to the fact that, it is simple and decision trees represent rules. Rules can readily be expressed so that we humans can understand them or in a database access language like SQL so that records falling into a particular category may be retrieved.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) Identify an application and also explain the techniques that can be incorporated in solving the problem using data mining techniques.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Write yourself...&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;8. Write a short notes on :&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;i) Data Mining Querying Language&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;ii) Schedule Manager&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;iii) Data Formatting.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;i) Data Mining Querying Language&lt;/b&gt;&lt;br /&gt;
A data mining language helps in effective knowledge discovery from the data mining systems. Designing&lt;br /&gt;
a comprehensive data mining language is challenging because data mining covers a wide spectrum of&lt;br /&gt;
tasks from data characterization to mining association rules, data classification and evolution analysis.&lt;br /&gt;
Each task has different requirements. The design of an effective data mining query language requires a&lt;br /&gt;
deep understanding of the power, limitation and underlying mechanism of the various kinds of data mining&lt;br /&gt;
tasks.&lt;br /&gt;
&lt;b&gt;ii) Schedule manager&lt;/b&gt;&lt;br /&gt;
The scheduling is the key for successful warehouse management. Almost all operations in the ware&lt;br /&gt;
house need some type of scheduling. Every operating system will have it’s own scheduler and batch&lt;br /&gt;
control mechanism. But these schedulers may not be capable of fully meeting the requirements of a data&lt;br /&gt;
warehouse. Hence it is more desirable to have specially designed schedulers to manage the operations.&lt;br /&gt;
&lt;b&gt;iii) Data formatting&lt;/b&gt;&lt;br /&gt;
Final data preparation step which represents syntactic modifications to the data that do not change its&lt;br /&gt;
meaning, but are required by the particular modelling tool chosen for the DM task. These include:&lt;br /&gt;
a). reordering of the attributes or records: some modelling tools require reordering of the attributes&lt;br /&gt;
(or records) in the dataset: putting target attribute at the beginning or at the end, randomizing&lt;br /&gt;
order of records (required by neural networks for example)&lt;br /&gt;
b). changes related to the constraints of modelling tools: removing commas or tabs, special&lt;br /&gt;
characters, trimming strings to maximum allowed number of characters, replacing special&lt;br /&gt;
characters with allowed set of special characters.&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Don&#39;t Forget to&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img alt=&quot;Like&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrBCAp2Dj32MvcnwbKlvf3bqz6hTd6k68AGQR7TFPaZOl9arTEQH79Sor_Ps41U2YGgUPJDAOIoxNCbCM5JHRlhPkOSxAQw6QpqpqZ-LzIDm-aHGyO2-Wf279gDlkULSJNvXoPk74Sj0A/s100/like.gif&quot; style=&quot;font-family: inherit;&quot; width=&quot;50&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: inherit; line-height: 115%;&quot;&gt;or Comment..&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit; line-height: 115%;&quot;&gt;&lt;br /&gt;&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;color: #990000; font-family: inherit; line-height: 115%;&quot;&gt;-- get membership if you want more from this blog --&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/1339517681089540444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/10/ku-5th-sem-assignment-bsit-tb-53-data.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1339517681089540444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1339517681089540444'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/10/ku-5th-sem-assignment-bsit-tb-53-data.html' title='KU 5TH SEM ASSIGNMENT - BSIT (TB) - 53 (DATA WAREHOUSING &amp; DATA MINING)'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbcsWHF8s0o3XTPxUBpMBWIBVVJe-ocWpt9aAUTJjMkzfl1JNfdkelEcM-F4FrCnTkZ9DwPIMoiF94_8J4NtRNzWR8gabNArlOKKxyozfyqyGLfNX3boyeWhylxmEtbBGNnyVRDUgt87o/s72-c/part-a+c.jpg" height="72" width="72"/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-2288070126091569240</id><published>2012-09-30T16:27:00.002+05:30</published><updated>2012-09-30T16:30:35.757+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips and Tricks"/><title type='text'>HOW TO PLAY HIDDEN SNAKE GAME ON YOUTUBE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We all visit youtube and watch videos but how many of us are aware of youtube hidden Snake game. I believe only a few people know about this hidden snake game. You can play this game on youtube while streaming any video. Snake gmae is one of the most interesting and traditional game in the world of gaming. In this tutorial I will show you how you can play this game on youtube.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;i). Go to youtube and open any video for streaming&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ii). When the video is streaming Hold &lt;span style=&quot;color: #990000;&quot;&gt;Left button of mouse + Left arrow on keyboard + Top arrow on keyboard.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;iii). Now you will see that the streaming circle starting to move like a snake.&lt;/b&gt;&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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_5fT3RxYNrb1JaMrX7BJwGbDYQ9BrfpNNYZcfsPzb1iCq0WlxoY0IgETKQRZKS5Gua9qMr3mceQwikqkUmBwNLF6E6LTbbuoSoGzFThH8DzLpADwFpGxDIh8eR_0DQ4FFnm50VnRGTL4/s1600/Capture.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_5fT3RxYNrb1JaMrX7BJwGbDYQ9BrfpNNYZcfsPzb1iCq0WlxoY0IgETKQRZKS5Gua9qMr3mceQwikqkUmBwNLF6E6LTbbuoSoGzFThH8DzLpADwFpGxDIh8eR_0DQ4FFnm50VnRGTL4/s400/Capture.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;iv). You can control the movements of the snake using arrow keys of your keyboard.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;v). Try to play this game on youtube with videos having some dark background to increase visibility.&lt;/b&gt;&lt;/div&gt;
&lt;/div&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;span lang=&quot;EN-US&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: inherit; font-size: large;&quot;&gt;Don&#39;t Forget to&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s1600/Facebook-like-button.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;marquee behavior=&quot;alternate&quot; width=&quot;78&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s200/Facebook-like-button.png&quot; width=&quot;75&quot; /&gt;&lt;/marquee&gt;&lt;/a&gt;or Comment..&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #990000; line-height: 18px;&quot;&gt;-- get membership if you want more from this blog --&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/2288070126091569240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/how-to-play-hidden-snake-game-on-youtube.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/2288070126091569240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/2288070126091569240'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/how-to-play-hidden-snake-game-on-youtube.html' title='HOW TO PLAY HIDDEN SNAKE GAME ON YOUTUBE'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_5fT3RxYNrb1JaMrX7BJwGbDYQ9BrfpNNYZcfsPzb1iCq0WlxoY0IgETKQRZKS5Gua9qMr3mceQwikqkUmBwNLF6E6LTbbuoSoGzFThH8DzLpADwFpGxDIh8eR_0DQ4FFnm50VnRGTL4/s72-c/Capture.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-1200087037792858989</id><published>2012-09-12T22:27:00.001+05:30</published><updated>2012-09-13T22:10:55.073+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Downloads"/><title type='text'>DOWNLOAD WINDOWS 7 SP1 ISO IMAGE FILES</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #990000; font-size: large;&quot;&gt;&lt;b&gt;Download Windows 7 SP1 ISO Image Files&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDD4Z2H76c_z9jlLL6PQXnRAaAz_aM0L_tHnUU6vSiBomsv2m4NX2-hkmw93Q9lV-uGB9FSuNIZnaIJebhVBk-nP91MZxxpNoxjjDfjYnaysnRlFCnX9pUHjXgyQ4VuCgvr3t6zvf3ldI/s1600/windows7series.jpg&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; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDD4Z2H76c_z9jlLL6PQXnRAaAz_aM0L_tHnUU6vSiBomsv2m4NX2-hkmw93Q9lV-uGB9FSuNIZnaIJebhVBk-nP91MZxxpNoxjjDfjYnaysnRlFCnX9pUHjXgyQ4VuCgvr3t6zvf3ldI/s320/windows7series.jpg&quot; width=&quot;302&quot; /&gt;&lt;/a&gt;&lt;b&gt;Official Windows 7 SP1 ISO from Digital River&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
With the release of Windows 7 SP1, Microsoft has also updated the Windows 7 DVD media ISO image distributed by Digital River for online order fulfillment. Digital River is Microsoft’s partner for fulfillment on online distribution for downloadable Microsoft products.&lt;br /&gt;
&lt;br /&gt;
The Windows 7 ISO images hosted on Digital River is genuine and official version, and the downloads from the server is legal. It’s after all one of the official channel where end-users who purchase a license (product key) for Windows 7 get the setup installation files.&lt;br /&gt;
Anyway, without a genuine and legally purchased product key, you can’t get Windows 7 activated, and Windows 7 will only run as evaluation copy for up to 30 days.&lt;br /&gt;
&lt;br /&gt;
The latest version of Windows 7 DVD image available is of media refresh version, which commonly known as Windows 7 SP1-U (Media Refresh). Microsoft released the media refresh version of Windows 7 DVD media to fix a rare bug related to invalid computer name when small set of computer names returned error when used to install Windows 7. Otherwise, the Windows 7 with SP1 and Windows 7 with SP1-U (Media Refresh) is completely the same.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #990000;&quot;&gt;Windows 7 Ultimate SP1-U ISO&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZooS_1vmn0zPQhY1TzvLTgE9GtQvs-ty6fA8hbXliw4VeWGHEYyEB21AkCg9phmgb6e9KkG4tMEpZkHXJhm3esBz4-U5HDq3RkqSPZa-HUfm-PMmh7GfX2F7Qo4XEfm_rH3vmHNa_NSE/s1600/Ultimate.jpg&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; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZooS_1vmn0zPQhY1TzvLTgE9GtQvs-ty6fA8hbXliw4VeWGHEYyEB21AkCg9phmgb6e9KkG4tMEpZkHXJhm3esBz4-U5HDq3RkqSPZa-HUfm-PMmh7GfX2F7Qo4XEfm_rH3vmHNa_NSE/s320/Ultimate.jpg&quot; width=&quot;304&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
English x86: X17-59463&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msft.digitalrivercontent.net/win/X17-59463.iso&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm-ycBAAdDtuOjsrEpYKj-k8FSghrWFhlEUUf-OJhOUJHwXM05XyN_9EBsJlx1TwMzXJ0h5ZDVeLOSOiRyusfHIXgzEB7bJWM472M7L0eCrA6G5CmcdHgfo4aTCf_vculxPoqeHyE46Rw/s1600/download-button.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
English x64: X17-59465&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msft.digitalrivercontent.net/win/X17-59465.iso&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm-ycBAAdDtuOjsrEpYKj-k8FSghrWFhlEUUf-OJhOUJHwXM05XyN_9EBsJlx1TwMzXJ0h5ZDVeLOSOiRyusfHIXgzEB7bJWM472M7L0eCrA6G5CmcdHgfo4aTCf_vculxPoqeHyE46Rw/s1600/download-button.gif&quot; /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #990000;&quot;&gt;Windows 7 Professional SP1-U ISO&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfc0PGE71z7rCIH0dq1uXqpJZttxSroFczuW4JENkLIcGTRxlDNnVggfBQPz4EhIFhuq9ZwpahEynVfeUpyxdNyRC42-_S0josYmghbMZl3IaWBlqpmg9o9ftBLLataxNzUUiNYxjevhU/s1600/Professional.jpg&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; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfc0PGE71z7rCIH0dq1uXqpJZttxSroFczuW4JENkLIcGTRxlDNnVggfBQPz4EhIFhuq9ZwpahEynVfeUpyxdNyRC42-_S0josYmghbMZl3IaWBlqpmg9o9ftBLLataxNzUUiNYxjevhU/s320/Professional.jpg&quot; width=&quot;268&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
English x86: X17-59183&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msft.digitalrivercontent.net/win/X17-59183.iso&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm-ycBAAdDtuOjsrEpYKj-k8FSghrWFhlEUUf-OJhOUJHwXM05XyN_9EBsJlx1TwMzXJ0h5ZDVeLOSOiRyusfHIXgzEB7bJWM472M7L0eCrA6G5CmcdHgfo4aTCf_vculxPoqeHyE46Rw/s1600/download-button.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
English x64: X17-59186&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msft.digitalrivercontent.net/win/X17-59186.iso&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm-ycBAAdDtuOjsrEpYKj-k8FSghrWFhlEUUf-OJhOUJHwXM05XyN_9EBsJlx1TwMzXJ0h5ZDVeLOSOiRyusfHIXgzEB7bJWM472M7L0eCrA6G5CmcdHgfo4aTCf_vculxPoqeHyE46Rw/s1600/download-button.gif&quot; /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;Windows 7 Home Premium SP1-U ISO&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;br /&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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCZtmzxjkkRlAQ_fgeYf-Yu7Vzq8grzaY09EZIFtwXazEyAUcFDFyjS1jk-8brKKyBwVUK8TCFmfMnUZ8kzOSVPgpguGUsckJEX_LJuTy8iLI16PK08ALIGfMyxsJVzs2OagRWUsaa3qo/s1600/HomePremium.jpg&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; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCZtmzxjkkRlAQ_fgeYf-Yu7Vzq8grzaY09EZIFtwXazEyAUcFDFyjS1jk-8brKKyBwVUK8TCFmfMnUZ8kzOSVPgpguGUsckJEX_LJuTy8iLI16PK08ALIGfMyxsJVzs2OagRWUsaa3qo/s320/HomePremium.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
English x86: X17-58996&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msft.digitalrivercontent.net/win/X17-58996.iso&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm-ycBAAdDtuOjsrEpYKj-k8FSghrWFhlEUUf-OJhOUJHwXM05XyN_9EBsJlx1TwMzXJ0h5ZDVeLOSOiRyusfHIXgzEB7bJWM472M7L0eCrA6G5CmcdHgfo4aTCf_vculxPoqeHyE46Rw/s1600/download-button.gif&quot; /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
English x64: X17-58997&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msft.digitalrivercontent.net/win/X17-58997.iso&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm-ycBAAdDtuOjsrEpYKj-k8FSghrWFhlEUUf-OJhOUJHwXM05XyN_9EBsJlx1TwMzXJ0h5ZDVeLOSOiRyusfHIXgzEB7bJWM472M7L0eCrA6G5CmcdHgfo4aTCf_vculxPoqeHyE46Rw/s1600/download-button.gif&quot; /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While the official Windows 7 SP1 DVD media ISO images are only available in limited sets of languages and editions, it’s possible to install a language pack to switch to another display language, and use Windows 7 ISO Image Edition Switcher to change to another edition. The ultimate solution is to create an all-edition Windows 7 ISO image with &lt;a href=&quot;http://www.mydigitallife.info/create-windows-7-universal-iso-with-all-editions-selection-on-install-with-ei-cfg-removal-utility/&quot; target=&quot;_blank&quot;&gt;ei.cfg Removal Utility.&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: inherit; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: inherit; font-size: large;&quot;&gt;Don&#39;t Forget to&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s1600/Facebook-like-button.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;marquee behavior=&quot;alternate&quot; width=&quot;78&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s200/Facebook-like-button.png&quot; width=&quot;75&quot; /&gt;&lt;/marquee&gt;&lt;/a&gt;or Comment..&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #990000; line-height: 18px;&quot;&gt;-- get membership if you want more from this blog --&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/1200087037792858989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/windows-7-sp1-iso-image-files.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1200087037792858989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1200087037792858989'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/windows-7-sp1-iso-image-files.html' title='DOWNLOAD WINDOWS 7 SP1 ISO IMAGE FILES'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDD4Z2H76c_z9jlLL6PQXnRAaAz_aM0L_tHnUU6vSiBomsv2m4NX2-hkmw93Q9lV-uGB9FSuNIZnaIJebhVBk-nP91MZxxpNoxjjDfjYnaysnRlFCnX9pUHjXgyQ4VuCgvr3t6zvf3ldI/s72-c/windows7series.jpg" height="72" width="72"/><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-99130243203587161</id><published>2012-09-10T20:39:00.003+05:30</published><updated>2012-09-10T23:46:14.371+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU 5TH SEM ASSIGNMENT - BSIT (TB) - 52 (WEB PROGRAMMING)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;Assignment: TB (Compulsory)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Part - A&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;a) What is the difference between Internet and Intranet?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt;Internet:&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt; Internet is global network of networks.Internet is a tool for collaborating academic research,and it has become a medium for exchanging anddistributing information of all kinds. It is aninterconnection between several computers of different types belongingto various networks all over global.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;Intranet:&lt;/b&gt; Intranet is not global. It is a mini web that islimited to user machines and software program of &amp;nbsp;particulars organization or company&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 22px;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;color: #990000; line-height: 22px;&quot;&gt;&lt;b&gt;b) List any five HTML tags.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;Five HTML tags are:-&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt;i). UL (unordered list):&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt; The UL tags displays a bulleted list. You can use the tag’s TYPE attribute to change the bullet style.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;ii). TYPE:&lt;/b&gt; defines the type of bullet used of each list item. The value can be one of the following-CIRCLE, DISC, SQUARE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;iii). LI (list item):&lt;/b&gt; The LI tag indicates an itemized element, which is usually preceded by bullet, a number, or a letter. The LI is used inside list elements such as OL (ordered list) and UL (unordered list).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;iv). TABLES (table):&lt;/b&gt; The TABLE tag defines a table. Inside the TABLE tag, use the TR tag to define rows in the table, use the TH tag to define row or column headings, and the TD tag to define table cells.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;v). HTML (outermost tag):&lt;/b&gt; The HTML identifies a document as an HTML document. All HTML documents should start with the and end with the tags.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 22px;&quot;&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;color: #990000; line-height: 22px;&quot;&gt;&lt;b&gt;c) Write the difference between HTML and DHTML.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt;HTML:&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt; HTML stands for Hyper Text MarkupLanguage. It is a language. HTML can’t bedone after the page loads. HTML can be or not usedwith JavaScript.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;DHTML:&lt;/b&gt; DHTML stands for Dynamic Hyper TextMarkup Language. DHTML isn’t really alanguage or a “thing” in itself it’s just a mix of thosetechnologies. Dynamic HTML is simply HTMLthat can change even after a page has been loaded into a browser. DHTML can be used with JavaScript.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 22px;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;color: #990000; line-height: 22px;&quot;&gt;&lt;b&gt;d) Explain the different types of PERL variables.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt;Perl has three types of variables:&lt;/b&gt;&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;i). Scalars &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;ii). Arrays&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;iii). Hashes.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b style=&quot;line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;i).&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;Scalars:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt; A scalar variable stores a single (scalar) value.Perl scalar names are prefixed with a dollar sign ($),&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;so for example, $username, and $url are all examples of scalar variable names. A scalar can hold data of anytype, be it a string, a number, or whatnot. We can alsouse scalars in double-quoted strings: my $fnord = 23;my $blee = “The magic number is $fnord.”; Now if you print $blee, we will get “The magic number is 23.”Perl interpolates the variables in the string, replacingthe variable name with the value of that variable.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;ii). Arrays:&lt;/b&gt; An array stores an ordered list of values. Whilea scalar variable can only store one value, an array canstoremany. Perl array names are prefixed with a @-sign.e.g.:my @colors = (“red”,”green”,”blue”); foreach my $i(@colors) { print “$i\n”; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt;&lt;b&gt;iii). Hashes: &lt;/b&gt;Hashes are an advanced form of array. One of the limitations of an array is that the information contained within it can be difficult to get to. For example, imagine that you have a list of people and their ages.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif; line-height: 22px;&quot;&gt;The hash solves this problem very neatly by allowing us to access that @ages array not by an index, but by a scalar key. For example to use age of different people we can use thier names as key to define a hash.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;e) How are JSPs better than servlets.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;Java programming knowledge is needed todevelop and maintain all aspects of the application,since the processing code and the HTML elements are jumped together.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;Changing the look and feel of theapplication,or adding support for a new type of client, requires theservlet code to be updated and recompiled.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;It’s hardto take advantage of web-page development tools whendesigning the application interface. If such tools areused to develop the web page layout, the generatedHTML must then be manually embedded into theservletcode, a process which is time consuming, error prone,and extremely boring. Adding JSP to the puzzle wesolvethese problems.So JSPs better than servlets.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Part - B&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;1. a) Explain GET and POST method with the help of an example.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;When a client sends a request to the server, theclients can also additional information with the URL todescribe what exactly is required as output from theserver by using the GET method. The additionalsequenceof characters that are appended to URL is called a querystring. However, the length of the query string islimited to 240 characters. Moreover, the query string isvisible on the browser and can therefore be a securityrisk.to overcome these disadvantages, the POST method can be used. The POST method sends the data as packetsthrough a separate socket connection. The completetransaction is invisible because to the client. Thedisadvantageof POST method is that it is slower compared to theGET method because data is sent to the server asseparate packets.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) Explain in detail the role played by CGI programming in web programming.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;CGI opened the gates of more complex Web applications. It enabled developers to write scripts,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;which can communicate with server applications and databases. In addition, it enables&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;developers to write scripts that could also parse client&#39;s input, process it, and present it in a user&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;friendly way.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;The Common Gateway Interface, or CGI, is a standard for external gateway&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;programs to interface with information servers such as HTTP servers. A plain HTML document&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;that the Web daemon retrieves is static, which means it exists in a constant state: a text file that&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;doesn&#39;t change. A CGI program, on the other hand, is executed in real-time, so that it can output&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;dynamic information.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;CGI programming allows us to automate passing information to and from web pages. It can also&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;be used to capture and process that information, or pass it off to other software (such as in an&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;SQL database).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;CGI programs (sometimes called scripts) can be written in any programming language, but the&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;two most commonly used are Perl and PHP. Despite all the flashy graphics, Internet technology&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;is fundamentally a text-based system. Perl was designed to be optimal for text processing, so it&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;quickly became a popular CGI tool. PHP is a scripting language designed specifically to make&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;web programming quick and easy.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;2. a) With the help of an example explain the embedding of an image in an HTML&amp;nbsp;tag.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;HEAD&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;BODY&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;IMG SRC=&quot;Images/123.jpg&quot; ALT=&quot;Image&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;/BODY&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;/HTML&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) Create a HTML page to demonstrate the usage of Anchor tags.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;HEAD&amp;gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;BODY&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;A NAME=section2&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;H2&amp;gt;A Cold Autumn Day&amp;lt;/H2&amp;gt;&amp;lt;/A&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;If this anchor is in a file called &quot;nowhere.htm,&quot; you could define a link that jumps to the&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;anchor as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;P&amp;gt;Jump to the second section &amp;lt;A HREF=&quot;nowhere.htm#section2&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;A Cold Autumn Day&amp;lt;/A&amp;gt; in the mystery &quot;A man from Nowhere.&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;/BODY&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;/HTML&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;3. a) Explain the usage of script tags.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;Using the SCRIPT Tag:&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;&amp;nbsp;The following example uses the SCRIPT tag to define a JavaScript script in the HEAD tag. The script&amp;nbsp;is loaded before anything else in the document is loaded. The JavaScript code in this example defines a&amp;nbsp;function, changeBGColor(), that changes the document’s background color.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;The body of the document contains a form with two buttons. Each button invokes the changeBGColor()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;function to change the background of the document to a different color.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;Script Example&amp;lt;/TITLE&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;/HEAD&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;SCRIPT language=&quot;JavaScript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;function changeBGColor (newcolor) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;document.bgColor=newcolor;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;return false;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;/SCRIPT&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;BODY &amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;P&amp;gt;Select a background color:&amp;lt;/P&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;FORM&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;INPUT TYPE=&quot;button&quot; VALUE=blue onClick=&quot;changeBGColor(&#39;blue&#39;);&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;INPUT TYPE=&quot;button&quot; VALUE=green onClick=&quot;changeBGColor(&#39;green&#39;);&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;/FORM&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;NOSCRIPT&amp;gt;&amp;lt;I&amp;gt;Your browser is not JavaScript-enabled.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;These buttons will not work.&amp;lt;/I&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;/NOSCRIPT&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;b) What is Java script? List the use of Java script.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;JavaScript is a scripting language (like a simple programming language). It&amp;nbsp;is a language that can be used for client-side scripting. JavaScript is only usedinside of HTML documents. With JavaScript, we can make text scroll across the screen like ticker tape.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;The uses of JavaScript are:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;i). Control DocumentAppearance and Content&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;ii). Control the Browser&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;iii). Interact with Document Control&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;iv). Interact withUser&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;v). Read and Write Client State with Cookies&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;vi). Interact with Applets&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;vii). JavaScript is only usedinside of HTML documents.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;4. a) With the help of an example explain any five CGI environment variables.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;i).&amp;nbsp;SERVER_NAME : The server&#39;s host name or IP address.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;ii). SERVER_PORT : The port number of the host on which the server is running.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;iii). SERVER_SOFTWARE : The name and version of the server software that is answering the client request.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;iv). SERVER_PROTOCOL : The name and revision of the information protocol that request came in with.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;v). GATEWAY_INTERFACE : The revision of the common gateway interface that the server uses.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;Example:-&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;#!/usr/local/bin/perl&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;Content-type: text/html&quot;, &quot;\n\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;&amp;lt;HTML&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;&amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;About this Server&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;&amp;lt;BODY&amp;gt;&amp;lt;H1&amp;gt;About this Server&amp;lt;/H1&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;&amp;lt;HR&amp;gt;&amp;lt;PRE&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;Server Name: &quot;, $ENV{&#39;SERVER_NAME&#39;}, &quot;&amp;lt;BR&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;Running on Port: &quot;, $ENV{&#39;SERVER_PORT&#39;}, &quot;&amp;lt;BR&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;Server Software: &quot;, $ENV{&#39;SERVER_SOFTWARE&#39;}, &quot;&amp;lt;BR&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;Server Protocol: &quot;, $ENV{&#39;SERVER_PROTOCOL&#39;}, &quot;&amp;lt;BR&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;CGI Revision: &quot;, $ENV{&#39;GATEWAY_INTERFACE&#39;}, &quot;&amp;lt;BR&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;&amp;lt;HR&amp;gt;&amp;lt;/PRE&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;&quot;, &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;exit (0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) Write a CGI application which accepts three numbers from the used and&amp;nbsp;display biggest number using GET and POST methods.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;#!/usr/bin/perl&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;#print &quot;Content-type:text/html\n\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;#$form = $ENV{&#39;QUERY_STRING&#39;};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;use CGI;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;$cgi = new CGI;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print $cgi-&amp;gt;header;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print $cgi-&amp;gt;start_html( &quot;Question Ten&quot; );&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;my $one = $cgi-&amp;gt;param( &#39;one&#39; );&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;my $two = $cgi-&amp;gt;param( &#39;two&#39; );&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;my $three = $cgi-&amp;gt;param( &#39;three&#39; );&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;if( $one &amp;amp;&amp;amp; $two &amp;amp;&amp;amp; $three )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;$lcm = &amp;amp;findLCM( &amp;amp;findLCM( $one, $two ), $three );&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;LCM is $lcm&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &#39;Enter First Number &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &#39;Enter Second Number &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &#39;Enter Third Number &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &#39;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print &quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;print $cgi-&amp;gt;end_html;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;sub findLCM(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;my $x = shift;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;my $y = shift;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;my $temp, $ans;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;if ($x &amp;lt; $y) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;$temp = $y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;$y = $x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;$x = $temp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;$ans = $y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;$temp = 1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;while ($ans % $x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;$ans = $y * $temp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;$temp++ ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;return $ans;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;5. a) List the differences between web server and application server.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;The main differences between Web servers and application servers :-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;A Web server is where Web components are deployed and run. An application server is where&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;components that implement the business logic are deployed. For example, in a JSP-EJB Web&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;application, the JSP pages will be deployed on the Web server whereas the EJB components will&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;be deployed on the application servers.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;A Web server usually supports only HTTP (and sometimes SMTP and FTP). However, an&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;application server supports HTTP as well as various other protocols such as SOAP.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;In other word :-&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;Difference between AppServer and a Web server :-&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;i). Webserver serves pages for viewing in web browser, application server provides exposes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;businness logic for client applications through various protocols&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;ii). Webserver exclusively handles http requests.application server serves bussiness logic to&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;application programs through any number of protocols.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;iii). Webserver delegation model is fairly simple,when the request comes into the webserver,it&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;simply passes the request to the program best able to handle it(Server side program). It may not&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;support transactions and database connection pooling.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;iv). Application server is more capable of dynamic behaviour than webserver. We can also&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;configure application server to work as a webserver.Simply applic! ation server is a superset of&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;webserver.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;b) What is a war file? Explain its importance.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;WAR or Web Application Archive file is packaged servlet Web application. Servlet applications&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;are usually distributed as a WAR files.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;WAR file (which stands for &quot;web application_ archive&quot; ) is a JAR_ file used to&amp;nbsp;distribute a collection of JavaServer Pages_ , servlets_ , Java_ classes_ , XML_ files, tag&amp;nbsp;libraries and static Web pages ( HTML_ and related files) that together constitute a Web&amp;nbsp;application.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;6. a) Explain implicit objects out, request response in a JSP page.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;Following are the implicit objects in a JSP page:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;out: This implicit object represents a JspWriter that provides a stream back to the requesting&amp;nbsp;client. The most common method of this object is out.println(),which prints text that will be&amp;nbsp;displayed in the client&#39;s browser&amp;nbsp;request: This implicit object represents the javax.servlet.HttpServletRequest interface. The&amp;nbsp;request object is associated with every HTTP request. One common use of the request object is&amp;nbsp;to access request parameters. You can do this by calling the request object&#39;s getParameter()&amp;nbsp;method with the parameter name you are seeking. It will return a string with the values matching&amp;nbsp;the named parameter.&amp;nbsp;response: This implicit object represents the javax.servlet.HttpServletRequest object. The&amp;nbsp;response object is used to pass data back to the requesting client. A common use of this object is&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;writing HTML output back to the client browser.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: #990000; font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;b) With the help of an example explain JSP elements.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: &#39;Times New Roman&#39;, Times, FreeSerif, serif;&quot;&gt;JSP elements are of 3 types:-&lt;/b&gt;&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;Directive:&lt;/b&gt; Specifies information about the page itself that remains the same between requests.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;For &amp;nbsp;example, &amp;nbsp;it &amp;nbsp;can &amp;nbsp;be &amp;nbsp;used &amp;nbsp;to &amp;nbsp;specify &amp;nbsp;whether &amp;nbsp;session &amp;nbsp;tracking &amp;nbsp;is &amp;nbsp;required &amp;nbsp;or &amp;nbsp;not, &amp;nbsp;buffering&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;requirements, and the name of the page that should be used to report errors.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&amp;lt;%@ page/include/taglib …%&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;Action:&lt;/b&gt; Performs some action &amp;nbsp;based on information that is required at the exact &amp;nbsp;time &amp;nbsp;the JSP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;page is requested by a &amp;nbsp;browser. An action, for instance, &amp;nbsp;can &amp;nbsp;access parameters &amp;nbsp;sent &amp;nbsp;with &amp;nbsp;the&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;request to lookup a database.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, Times, FreeSerif, serif;&quot;&gt;&lt;b&gt;Scripting:&lt;/b&gt; Allows you to add small pieces of code in JSP page.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue; font-family: inherit; font-size: large;&quot;&gt;Don&#39;t Forget to&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s1600/Facebook-like-button.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;marquee behavior=&quot;alternate&quot; width=&quot;78&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s200/Facebook-like-button.png&quot; width=&quot;75&quot; /&gt;&lt;/marquee&gt;&lt;/a&gt;&amp;nbsp;or Comment..&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue; font-family: inherit; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;-- get membership if you want more from this blog --&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;



&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/99130243203587161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-tb-52-web.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/99130243203587161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/99130243203587161'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-tb-52-web.html' title='KU 5TH SEM ASSIGNMENT - BSIT (TB) - 52 (WEB PROGRAMMING)'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s72-c/Facebook-like-button.png" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-7661695812535725152</id><published>2012-09-10T17:30:00.001+05:30</published><updated>2012-09-10T23:41:53.172+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU 5TH SEM ASSIGNMENT - BSIT (TB) - 51 (GRAPHICS &amp; MULTIMEDIA)</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: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Assignment: TB (Compulsory)&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;1. What is the need for computer graphics?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;C&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;omputers have become a powerful tool for the rapid and economical production of pictures. Computer Graphics remains one of the most exciting and rapidly growing fields. Old Chinese saying “ One picture is worth of thousand words” can be modified in this computer era into “ One picture is worth of many kilobytes of data”. It is natural to expect that graphical communication, which is an older and more popular method of exchanging information than verbal communication, will often be more convenient when computers are utilized for this purpose. This is true because one must represent objects in two-dimensional and three-dimensional spaces. Computer Graphics has revolutionized almost every computer-based application in science and technology.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;What is graphics processor? Why it is needed?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;To provide visual interface, additional processing capability is to be provided to the existing CPU. The solution is to provide dedicated graphic processor. This helps in managing the screen faster with an equivalent software algorithm executed on the CPU and certain amount of parallelism can be achieved for completing the graphic command. Several manufacturers of personal computers use a proprietary graphic processor. For example, Intel 82786 is essentially a line drawing processor; Texas Instruments 43010 is a high performance general-purpose processor.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;What is a pixel?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Pixel (picture
element):&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Pixel may be defined
as the smallest size object or color spot that can be displayed and addressed
on a monitor. Any image that is displayed on the monitor is made up of
thousands of such small pixels. The closely spaced pixels divide the image area
into a compact and uniform two-dimensional grid of pixel lines and columns.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;4.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Why C language is popular for graphics programming?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;Turbo C++ is for C++ and C programmers. It is also compatible with ANSI C standard and fully&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;supports Kernighan and Ritchie definitions. It includes C++ class libraries, mouse support, multiple overlapping windows, Multi file editor, hypertext help, far objects and error analysis. Turbo C++ comes with a complete set of graphics functions to facilitate preparation of charts and diagrams. It supports the same graphics adapters as turbo Pascal. The Graphics library consists of over 70 graphics functions ranging from high level support like facility to set view port, draw 3-D bar charts, draw polygons to bitoriented functions like get image and put image. The graphics library supports numerous objects, line styles and provides several text fonts to enable one to justify and orient text, horizontally and vertically. It may be noted that graphics functions use far pointers and it is not supported in the tiny memory model.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;5.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;Define resolution.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Resolution:&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;Image resolution refers as the pixel spacing i.e. the distance from one pixel to the next pixel. A typical PC monitor displays screen images with a resolution somewhere between 25 pixels per inch and 80 pixels per inch. Pixel is the smallest element of a displayed image, and dots (red, green and blue) are the smallest elements of a display surface (monitor screen). The dot pitch is the measure of screen resolution. The smaller the dot pitch, the higher the resolution, sharpness and detail of the image displayed.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;6.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;Define aspect ratio.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Aspect ratio:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;The aspect ratio of the image is the ratio of the number of X pixels to the number of Y pixels. The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;standard aspect ratio PCs is 4:3, and some use 5:4. Monitors are calibrated to this standard so that when you draw a circle it appears to be a circle and not an ellipse.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;7.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;Why refreshing is required in CRT?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;When the electron beam strikes a dot of phosphor material, it glows for a fraction of a second and then fades. As brightness of the dots begins to reduce, the screen-image becomes unstable and gradually fades out. In order to maintain a stable image, the electron beam must sweep the entire surface of the screen and then return to redraw it number of times per second. This process is called refreshing the screen. If the electron beam takes too long to return and redraw a pixel, the pixel begins to fade results in flicker in the image. In order to avoid flicker the screen image must be redrawn sufficiently quickly that the eye cannot tell that refresh is going on. The refresh rate is the number of times per second that the screen is refreshed. Some monitor uses a technique called interlacing for refreshing every line of the screen. In the first pass, odd-numbered lines are refreshed, and in the second pass, even –numbered lines are refreshed. This allows the refresh rate to be doubled because only half the screen is redrawn at a time.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;8.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Name the different positioning devices.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The devices discussed so far, &lt;b&gt;the mouse&lt;/b&gt;, &lt;b&gt;the tablet&lt;/b&gt;, &lt;b&gt;the joystick&lt;/b&gt; are called “positioning devices”. They are able to position the curser at any point on the screen. (We can operate at that point or the chain of points) Often, one needs devices that can “point” to a given position on the screen. This becomes essential when a diagram is already there on the screen, but some changes are to be made. So, instead of trying to know its coordinates, it is advisable to simply “point” to that portion of the picture and asks for changes. The simplest of such devices is the “light pen”. Its principle is extremely simple.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;9.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;What are pointing devices?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;A pointing device is an input interface (specifically a human interface device) that allows a user to input spatial (i.e., continuous and multi-dimensional) data to a computer. CAD systems and graphical user interfaces (GUI) allow the user to control and provide data to the computer using physical gestures — point, click, and drag — for example, by moving a hand-held mouse across the surface of the physical desktop and activating switches on the mouse. Movements of the pointing device are echoed on the screen by movements of the pointer (or cursor) and other visual changes.&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;10.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;What is multimedia?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The word ‘Multimedia’ seems to be everywhere nowadays. The word multimedia is a compound&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;of the Latin prefix ‘multi’ meaning many, and the Latin-derived work ‘media’, which is the plural&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;of the world medium. So multimedia simply means ‘using more than one kind of medium’.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Multimedia is the mixture of two or more media effects-Hypertext, Still Images, sound, Animation and Video to be interacted on a computer terminal.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;11.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;What are sound cards?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Sound cards:&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;The first sound blaster was an 8-bit card with 22 KHz sampling, besides being equipped with a number of drives and utilities. This became a king of model for the other sound cards. Next came the Sound Blaster Pro, again 8-bit sound but with a higher sampling rate of 44 KHz, which supports a wider frequency range. Then there was Yamaha OPL3 chipset with more voices. Another development was built-in CD ROM interface through which huge files could be played directly via the sound card.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;12.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;What is sampling?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;b&gt;Sampling:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Sampling is like breaking a sound into tiny piece and storing each piece as a small, digital sample of sound. The rate at which a sound is “Sampled” can affect its quality. The higher the sampling rate (the more pieces of sound that are stored) the better the quality of sound. Higher quality of sound will occupy a lot of space in hard disk because of more samples.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;. What is morphing?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Morphing:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The best example would be the
Kawasaki advertisement, where the motorbike changes into a cheetah, the muscle
of MRF to a real muscle etc.. Morphing is making an image change into another
by identifying key points so that the key point’s displacement, etc. are taken
into consideration for the change.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;14.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;What is rendering?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Rendering:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;The process of converting your designed objects with texturing and animation into an image or a series of images is called rendering. Here various parameters are available like resolution, colors type of render, etc.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;15.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;What is warping?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Warping:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;Certain parts of the image could be marked for a change and made to change to different one. For&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;examples, the eyes of the owl had to morph into the eyes of cat, the eyes can alone be marked and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;warped.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;16. Why we use scanner?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;Photographs, illustrations, and paintings continue to be made the old fashioned way, even by visual artists who are otherwise immersed in digital imaging technology. Traditional photographs, illustrations, and paintings are easily imported into computers through the use of a device called a scanner.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A Scanner “scans’” over an image such as photo, drawing, logo, etc, converting it into an image and it can be seen on the screen. Using a good paint programme, Image Editor we can do adding, removing colors, filtering, Masking color etc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;color: #990000; font-family: inherit; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: #990000; font-family: inherit; line-height: 115%;&quot;&gt;17.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;What is ganut in Photoshop?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Write yourself...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;18.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;What is a layer?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;The concept of layering is similar to that of compositing as we make the different layers by keying out the uniform color and making it transparent so that layer beneath becomes visible. In case of future modifications we will be able to work with individual layers and need not work with the image as a whole.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;19.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;What are editing tools? Why it is needed?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;You can use the editing tools to draw on a layer, and you can copy and paste selections to a layer.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Many types of editing tools are:-&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;i).Eraser tool:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;The eraser tool changes pixels in the image as you drag through them. You can choose to change&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;the color and transparency of the affected pixels, or to revert the affected area to its previously saved version.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;ii).Smudge tool:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;The smudge tool simulates the actions of dragging a finger through wet paint. The tool picks up color from where the stroke begins and pushes it in the direction in which you drag.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;20.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;What is file format?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;&lt;b&gt;File Format:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;When you create an image-either through scanning into your computer or drawing it from scratch on your monitor or captured through a camera, recorded voice or music from the two-in-one or recorded connecting a music instrument it must be saved to your disk. Otherwise it would become an ethereal artifact that could never again be seen or listened. Once the computer’s power is turned off, it’s gone forever unless it is saved. The method by which the software organizes the data in the saved file is called the file format.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: inherit; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue; font-family: inherit; font-size: large;&quot;&gt;Don&#39;t Forget to&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s1600/Facebook-like-button.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;marquee behavior=&quot;alternate&quot; width=&quot;78&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s200/Facebook-like-button.png&quot; width=&quot;75&quot; /&gt;&lt;/marquee&gt;&lt;/a&gt;&amp;nbsp;or Comment..&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue; font-family: inherit; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;-- get membership if you want more from this blog --&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/7661695812535725152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-tb-51.html#comment-form' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/7661695812535725152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/7661695812535725152'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-tb-51.html' title='KU 5TH SEM ASSIGNMENT - BSIT (TB) - 51 (GRAPHICS &amp; MULTIMEDIA)'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv2VAaP1KfrvtZeeTo188baMIw_Ha6UbwwCYNh8mze9DHeB_jcCfGuISYo7G4RAUVKwuD5LX1WCUkmT7rTwjU_SeAU1J5D7jCl4GQnXgVaKNwxwvb6l4zn3iZAAfAMokDEnzB89-XplUw/s72-c/Facebook-like-button.png" height="72" width="72"/><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-1903671738466747897</id><published>2012-09-02T14:54:00.000+05:30</published><updated>2012-09-04T08:51:29.990+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU 5TH SEM ASSIGNMENT - BSIT (TA) - 53 (DATA WAREHOUSING &amp; DATA MINING)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Assignment:
TA (Compulsory)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;1. With neat diagram
explain the main parts of the computer&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;A Computer will have 3 basic main parts –&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;i). A central processing unit that does all the arithmetic and logical operations. This can be&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;thought of as the heart of any computer and computers are identified by the type of CPU&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;that they use.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;ii). The memory is supposed to hold the programs and data. All the computers that we came&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;across these days are what are known as “stored program computers”. The programs are&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;to be stored before hand in the memory and the CPU accesses these programs line by line&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;and executes them.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;iii). The Input/output devices: These devices facilitate the interaction of the users with the computer.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;The input devices are used to send information to the computer, while the output devices&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px; line-height: 22px;&quot;&gt;accept the processed information form the computer and make it available to the user.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 150%;&quot;&gt;
&lt;span style=&quot;font-family: inherit; line-height: 150%;&quot;&gt;&lt;b&gt;Diagram:-&lt;/b&gt;&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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg36k-PualU8Fih_AfSVD3dNB3ETNoAdUw6whWd17R1Mo0RjWysCdFvGg1KTiWkfDV-eDnRNIPbngVZEcvh52hwdNAZ38jw-uPRSkpRfH6kuRX-QYJ6LSxQ0lMob9uFM8emEeXZVDFJJE8/s1600/Diagram.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;141&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg36k-PualU8Fih_AfSVD3dNB3ETNoAdUw6whWd17R1Mo0RjWysCdFvGg1KTiWkfDV-eDnRNIPbngVZEcvh52hwdNAZ38jw-uPRSkpRfH6kuRX-QYJ6LSxQ0lMob9uFM8emEeXZVDFJJE8/s400/Diagram.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;2. Briefly explain the
types of memories.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;There are two types of memories – Primary memory, which is embedded in the computer&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;and which is the main source of data to the computer and the secondary memory like floppy disks, CDs&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;etc., which can be carried around and used in different computers. They cost much less than the primary&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;memory, but the CPU can access data only from the primary memory. The main advantage of computer&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;memories, both primary and secondary, is that they can store data indefinitely and accurately&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;3.&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Describe the basic
concept of databases.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The Concept of Database :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;We have seen in the previous section how data can be stored in computer. Such stored data becomes&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;a “database” – a collection of data. For example, if all the marks scored by all the students of a class are&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;stored in the computer memory, it can be called a database. From such a database, we can answer&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;questions like – who has scored the highest marks? ; In which subject the maximum number of students&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;have failed?; Which students are weak in more than one subject? etc. Of course, appropriate programs&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;have to be written to do these computations. Also, as the database becomes too large and more and more&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;data keeps getting included at different periods of time, there are several other problems about “maintaining”&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;these data, which will not be dealt with here.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Since handling of such databases has become one of the primary jobs of the computer in recent years,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;it becomes difficult for the average user to keep writing such programs. Hence, special languages –&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;called database query languages- have been deviced, which makes such programming easy, there languages&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;help in getting specific “queries” answered easily.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;4. With example explain
the different views of a data.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Data is normally stored in tabular form, unless storage in other formats becomes advantageous, we&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;store data in what are technically called “relations” or in simple terms as “tables”.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The views are Mainly 2 types .&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;i). Simple View&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ii). Complex View&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Simple view:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; - It is created by selecting only one table.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; - It does not contains functions.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; - it can perform DML (SELECT,INSERT,UPDATE,DELETE,MERGE, CALL,LOCK TABLE) operations through simple view.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Complex view :&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; -It is created by selecting more than one table.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; -It can performs &amp;nbsp;functions.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; -You can not perform always DML operations through&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;5.&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Briefly explain the
concept of normalization.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Normalization is dealt with in several chapters of any books on database management systems. Here,&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;we will take the simplest definition, which suffices our purpose namely any field should not have subfields.&lt;/span&gt;&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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg166oCZMW2XLiTVDoqGDalI616962BhJeYm3vrhK8RC48shw1wmFFMFlVxJzLp74AQpQS8ueYkywEMcdaElJd_DobU7ToBOsxo5iJA3tfpoPr2ZzhcCTHmXeVXFWJEuJG95bRgv8X9oRA/s1600/Diagram1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;115&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg166oCZMW2XLiTVDoqGDalI616962BhJeYm3vrhK8RC48shw1wmFFMFlVxJzLp74AQpQS8ueYkywEMcdaElJd_DobU7ToBOsxo5iJA3tfpoPr2ZzhcCTHmXeVXFWJEuJG95bRgv8X9oRA/s400/Diagram1.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Again consider the following student table.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Here under the field marks, we have 3 sub fields: marks for subject1, marks for subject2 and subject3.&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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB-IYTZdhAdN3yMp1Wl-fRLFu3OLLUCl-oCKRGs3sHLsz-WaJ1hqlCll2hJgJeD3OFZSWu2alPKXOCqPjNs6L5v5fNid0xiMFbJBAvJYbmBf3CZCHIGFs-pScPdEGTFJHP0wha0P6viI4/s1600/Diagram2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;90&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB-IYTZdhAdN3yMp1Wl-fRLFu3OLLUCl-oCKRGs3sHLsz-WaJ1hqlCll2hJgJeD3OFZSWu2alPKXOCqPjNs6L5v5fNid0xiMFbJBAvJYbmBf3CZCHIGFs-pScPdEGTFJHP0wha0P6viI4/s400/Diagram2.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;However, it is preferable split these subfields to regular fields as shown below&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Quite often, the original table which comes with subfields will have to be modified suitable, by the&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;process of “normalization”.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;6.&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Explain the concept
of data ware house delivery process in detail.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The concept of data ware house delivery process :-&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This section deals with the dataware house from a different view point - how the different components&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;that go into it enable the building of a data ware house. The study helps us in two ways:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp;i) to have a clear view of the data ware house building process.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp;ii) to understand the working of the data ware house in the context of the components.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;b style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Now we look at the concepts in details :-&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;i). IT Strategy :&lt;/b&gt; The company must and should have an overall IT strategy and the data ware housing has to be a part&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;of the overall strategy.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;ii). Business case analysis :&lt;/b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt; This looks at an obvious thing, but is most often misunderstood. The overall understanding of the business and the importance of various components there in is a must. This will ensure that one can&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;clearly justify the appropriate level of investment that goes into the data ware house design and also the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;amount of returns accruing.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;iii). Education : &lt;/b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;This has two roles to play - one to make people, specially top level policy makers, comfortable with the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;concept. The second role is to aid the prototyping activity.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;iv). Business Requirements :&lt;/b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt; As has been discussed earlier, it is essential that the business requirements are fully understood by the data ware house planner. This would ensure that the ware house is incorporated adequately in the overall&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;setup of the organization.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;v). Technical blue prints : &lt;/b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;This is the stage where the overall architecture that satisfies the requirements is delivered.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;vi). Building the vision :&lt;/b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt; Here the first physical infrastructure becomes available. The major infrastructure components are set up, first stages of loading and generation of data start up.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;vii). History load :&lt;/b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt; Here the system is made fully operational by loading the required history into the ware house - i.e.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;what ever data is available over the previous years is put into the dataware house to make is fully operational.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;viii). Adhoc Query :&lt;/b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt; Now we configure a query tool to operate against the data ware house.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;ix). Automation :&lt;/b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt; This phase automates the various operational processes like -&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt;a) Extracting and loading of data from the sources.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt;b) Transforming the data into a suitable form for analysis.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt;c) Backing up, restoration and archiving.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt;d) Generate aggregations.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        &lt;/span&gt;e) Monitoring query profiles.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;x). Extending Scope :&lt;/b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt; There is not single mechanism by which this can be achieved. As and when needed, a new set of data&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;may be added, new formats may be included or may be even involve major changes.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;xi). Requirement Evolution :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Business requirements will constantly change during the life of the ware house. Hence, the process that supports the ware house also needs to be constantly monitored and modified.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;7. What are three major activities of data ware
house? Explain.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;b&gt;Three major activities of data ware house are :-&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; i) Populating the ware house (i.e. inclusion of data)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; ii) day-to-day management of the ware house.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; iii) Ability to accommodate the changes.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;i). &lt;/b&gt;The processes to populate the ware house have to be able to extract the data, clean it up, and make it available to the analysis systems. This is done on a daily / weekly basis depending on the quantum of the data population to be incorporated.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;ii). &lt;/b&gt;The day to day management of data ware house is not to be confused with maintenance and management of hardware and software. When large amounts of data are stored and new data are being continually added at regular intervals, maintaince of the “quality” of data becomes an important element.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;iii). &lt;/b&gt;Ability to accommodate changes implies the system is structured in such a way as to be able to cope with future changes without the entire system being remodeled. Based on these, we can view the processes that a typical data ware house scheme should support as follows.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJjnkXBBoe3T-Tng30z2xL2qS4MIK-xYeRKruZ1m3vshQigCuv0iMpMFIdBnZGhxXY0C1aMk-9jRloaOuqt9y4MiGvf2NNHDkA14rez7XN8bspx97KhX0z0A85Ygy4qPx0Wd-XFag6MyI/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJjnkXBBoe3T-Tng30z2xL2qS4MIK-xYeRKruZ1m3vshQigCuv0iMpMFIdBnZGhxXY0C1aMk-9jRloaOuqt9y4MiGvf2NNHDkA14rez7XN8bspx97KhX0z0A85Ygy4qPx0Wd-XFag6MyI/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;8. Explain the extract and load process of data
ware house.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;Extract and Load Process :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;This forms the first stage of data ware house. External physical systems like the sales counters which give the sales data, the inventory systems that give inventory levels etc. constantly feed data to the warehouse. Needless to say, the format of these external data is to be monitored and modified before loading it into the ware house. The data ware house must extract the data from the source systems, load them into their data bases, remove unwanted fields (either because they are not needed or because they are already there in the data base), adding new fields / reference data and finally reconciling with the other data. We shall see a few more details of theses broad actions in the subsequent paragraphs.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;b&gt; &amp;nbsp;i).&lt;/b&gt; A mechanism should be evolved to control the extraction of data, check their consistency&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;etc. For example, in some systems, the data is not authenticated until it is audited.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &lt;b&gt;&amp;nbsp; &amp;nbsp;ii). &lt;/b&gt;Having a set of consistent data is equally important. This especially happens when we are&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;having several online systems feeding the data.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;&amp;nbsp;iii).&lt;/b&gt; Once data is extracted from the source systems, it is loaded into a temporary data storage&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;before it is “Cleaned” and loaded into the warehouse.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;9. In what ways data needs to be cleaned up and
checked? Explain briefly.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;b style=&quot;font-size: 11.5pt;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Data
needs to be cleaned up and checked in the following ways :-&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: 11pt; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-IN&quot; style=&quot;font-family: inherit; font-size: 11.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;i)
It should be consistent with itself.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: 11pt; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-IN&quot; style=&quot;font-family: inherit; font-size: 11.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ii)
It should be consistent with other data from the same source.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: 11pt; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-IN&quot; style=&quot;font-family: inherit; font-size: 11.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;iii)
It should be consistent with other data from other sources.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: 11pt; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-IN&quot; style=&quot;font-family: inherit; font-size: 11.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;iv)
It should be consistent with the information already available in the data ware
house.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: 11pt; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: 11pt; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 11.5pt;&quot;&gt;While
it is easy to list act the needs of a “clean” data, it is more difficult to set
up systems that&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: 11pt; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-IN&quot; style=&quot;font-family: inherit; font-size: 11.5pt;&quot;&gt;automatically
cleanup the data. The normal course is to suspect the quality of data, if it
does not meet the normally standards of commonsense or it contradicts with the
data from other sources, data already available in the data ware house etc.
Normal intution doubts the validity of the new data and effective measures like
rechecking, retransmission etc., are undertaken. When none of these are
possible, one may even resort to ignoring the entire set of data and get on
with next set of incoming data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 11.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;&quot;&gt;10.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Explain the architecture of data warehouse.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;The architecture for a data ware is indicated below. Before we proceed further, we should be clear about the concept of architecture. It only gives the major items that make up a data ware house. The size and complexity of each of these items depend on the actual size of the ware house itself, the specific requirements of the ware house and the actual details of implementation.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAewI74DifBBZkhnbl82_j6oEUj00FkQbUfxCK50yCebNcXYjuWy-L0jF6TgvUaBPkmBCfCiiRukOKn9mkcOVzewJoFIOfBXEPoxS42RCFtD1H8i7uizfoyEktgOMQkgVixMjHIIdJpLY/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAewI74DifBBZkhnbl82_j6oEUj00FkQbUfxCK50yCebNcXYjuWy-L0jF6TgvUaBPkmBCfCiiRukOKn9mkcOVzewJoFIOfBXEPoxS42RCFtD1H8i7uizfoyEktgOMQkgVixMjHIIdJpLY/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;11. Briefly&amp;nbsp; explain
the functions of each manager of data warehouse.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;The Warehouse Manager :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;The ware house manager is a component that performs all operations necessary to support the ware house management process. Unlike the load manager, the warehouse management process is driven by the extent to which the operational management of the data ware house has been automated.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitu6uXKjl-TF-APsV7cD7Gd22D2SFjFVahIi6FLs8mTSpquyfpxnIclcC9Jpn4Z8TbJNGV8E59uDkt6mEbqIWJvmmRtj0AatpzR7nfiVdBXMl8PQ9qb5pdUEDm49K9xHFhEm1eo6WtnIY/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitu6uXKjl-TF-APsV7cD7Gd22D2SFjFVahIi6FLs8mTSpquyfpxnIclcC9Jpn4Z8TbJNGV8E59uDkt6mEbqIWJvmmRtj0AatpzR7nfiVdBXMl8PQ9qb5pdUEDm49K9xHFhEm1eo6WtnIY/s400/3.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;The ware house manger can be easily termed to be the most complex of the ware house components, and performs a variety of tasks. A few of them can be listed below.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;i) Analyze the data to confirm data consistency and data integrity.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ii) Transform and merge the source data from the temporary data storage into the ware house.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;iii) Create indexes, cross references, partition views etc.,.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;iv) Check for normalization’s.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v) Generate new aggregations, if needed.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;vi) Update all existing aggregations&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;vii) Create backups of data.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;viii) Archive the data that needs to be archived.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;12. Explain the star schema to represent the sales
analysis.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Star schemes are data base schemas that structure the data to exploit a typical decision support&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;enquiry. When the components of typical enquiry’s are examined, a few similarities stand out.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;i) The queries examine a set of factual transactions - sales for example.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ii) The queries analyze the facts in different ways - by aggregating them on different bases /&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;graphing them in different ways.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: 15px;&quot;&gt;The central concept of most such transactions is a “fact table”. The surrounding references are called dimension tables. The combination can be called a star schema.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtztFjldvyoDHF66NFqxVq1uDlFsrGz2q0Mn2iNuDQEJ4rO5ah38cLPEHgBcqqf5oSscwIqW5ZvteQnPnt0GwP8BjESZKMBr02zobuVU7h2H6gzavLEtusBJmSd3eG0q-5Zx0LzK3Zj1w/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtztFjldvyoDHF66NFqxVq1uDlFsrGz2q0Mn2iNuDQEJ4rO5ah38cLPEHgBcqqf5oSscwIqW5ZvteQnPnt0GwP8BjESZKMBr02zobuVU7h2H6gzavLEtusBJmSd3eG0q-5Zx0LzK3Zj1w/s400/4.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&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 lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;13. What do you mean by
partition of data? Explain briefly.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;b&gt;Partitioning of data :-&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;In most ware houses, the size of the fact data tables tends to become very large. This leads to several problems of management, backup, processing etc. These difficulties can be over come by partitioning each fact table into separate partitions.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Data ware houses tend to exploit these ideas by partitioning the large volume of data into data sets. For example, data can be partitioned on weekly / monthly basis, so as the minimize the amount of data scanned before answering a query. This technique allows data to be scanned to be minimized, without the overhead of using an index. This improves the overall efficiency of the system. However, having too many partitions can be counter productive and an optimal size of the partitions and the number of such partitions is of vital importance.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Participating generally helps in the following ways.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;i) Assists in better management of data&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;ii) Ease of backup / recovery since the volumes are less.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;iii) The star schemes with partitions produce better performance.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;iv) Since several hardware architectures operate better in a partitioned environment, the overall&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;system performance improve.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;14. Describe the terms
data mart and Meta data.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;Data mart :-&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;A data mart is a subset of information content of a data ware house, stored in it’s own data base. The data of a data ware house may have been collected through a ware house or in some cases, directly from the source. In a crude sense, if you consider a data ware house as a whole sale shop of data, a data mart can be thought of as a retailer.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Meta data :-&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Meta data is simply data about data. Data normally describe the objects, their&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;quantity, size, how they are stored etc. Similarly meta data stores data about how data (of objects) is stored, etc.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Meta data is useful in a number of ways. It can map data sources to the common view of information within the warehouse. It is helpful in query management, to direct query to most appropriate source etc.,.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;The structure of meta data is different for each process. It means for each volume of data, there are multiple sets of meta data describing the same volume. While this is a very convenient way of managing data, managing meta data itself is not a very easy task.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;15. Enlist the
differences between fact and dimension.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;This ensures that key dimensions are no fact tables.&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Consider the following example :-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPwvy-N7b3nVlfjwcYOFATi1gG_z39xoWrH4-yD6GM5ftX-pyqhJ9FBc3cKk2Eo5DP3pFl66I7Ty0GryggtXPk7iz9TvWDcrih4WX2HslDq7cFwHRCE4bWE7DomksgyIZc9aUqXsj0ANI/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPwvy-N7b3nVlfjwcYOFATi1gG_z39xoWrH4-yD6GM5ftX-pyqhJ9FBc3cKk2Eo5DP3pFl66I7Ty0GryggtXPk7iz9TvWDcrih4WX2HslDq7cFwHRCE4bWE7DomksgyIZc9aUqXsj0ANI/s400/5.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Let us elaborate a little on the example. Consider a customer A. If there is a situation, where the&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;warehouse is building the profiles of customer, then A becomes a fact - against the name A, we can list his address, purchases, debts etc. One can ask questions like how many purchases has A made in the last 3 months etc. Then A is fact. On the other hand, if it is likely to be used to answer questions like “how many customers have made more than 10 purchases in the last 6 months”, and one uses the data of A, as well as of other customers to give the answer, then it becomes a fact table. The rule is, in such cases, avoid making A as a candidate key.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;16. Explain the designing
of star-flake schema in detail.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;A star flake schema, as we have defined previously, is a schema that uses a combination of denormalised star and normalized snow flake schemas. They are most appropriate in decision support data ware houses. Generally, the detailed transactions are stored within a central fact table, which may be partitioned horizontally or vertically. A series of combinatory data base views are created to allow the user to access tools to treat the fact table partitions as a single, large table.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;The key reference data is structured into a set of dimensions. Theses can be referenced from the fact table. Each dimension is stored in a series of normalized tables (snow flakes), with an additional denormalised star dimension table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;17. What is query
redirection? Explain.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;Query Redirection :-&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;One of the basic requirements for successful operation of star flake schema (or any schema, for that matter) is the ability to direct a query to the most appropriate source. Note that once the available data grows beyond a certain size, partitioning becomes essential. In such a scenario, it is essential that, in order to optimize the time spent on querying, the queries should be directed to the appropriate partitions that store the date required by the query.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;The basic method is to design the access tool in such away that it automatically defines the locality to which the query is to be redirected.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;18. In detail, explain
the multidimensional schema.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;font-size: 15px;&quot;&gt;Multidimensional schemas :-&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Before we close, we see the interesting concept of multi dimensions. This is a very convenient&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;method of analyzing data, when it goes beyond the normal tabular relations.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;For example, a store maintains a table of each item it sells over a month as a table, in each of it’s 10 outlets..&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMgQOdQViVZb67lRNGI7l27So37wYm497o_ZKLWm-AZJSC2-EVfPapYXIDZrerbffvucITM_ckd64mAtqc_ZKRjii5SBDXbqOqe3aqRV0go9WMQHY_Pimb2mxKKoUmUPaWqdKkRGY26TA/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMgQOdQViVZb67lRNGI7l27So37wYm497o_ZKLWm-AZJSC2-EVfPapYXIDZrerbffvucITM_ckd64mAtqc_ZKRjii5SBDXbqOqe3aqRV0go9WMQHY_Pimb2mxKKoUmUPaWqdKkRGY26TA/s400/6.png&quot; width=&quot;342&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;This is a 2 dimensional table. One the other hand, if the company wants a data of all items sold by it’s outlets, it can be done by simply by superimposing the 2 dimensional table for each of these items – one behind the other. Then it becomes a 3 dimensional view.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Then the query, instead of looking for a 2 dimensional rectangle of data, will look for a 3 dimensional cuboid of data.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;There is no reason why the dimensioning should stop at 3 dimensions. In fact almost all queries can be thought of as approaching a multi-dimensioned unit of data from a multidimensioned volume of the schema.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #990000; font-size: 15px;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;19. Why partitioning is
needed in large data warehouse?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Partitioning is needed in any large data ware&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;house to ensure that the performance and manageability is improved. It can help the query redirection&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;to send the queries to the appropriate partition, thereby reducing the overall time taken for query&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;processing.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #990000; font-family: inherit; font-size: 15px;&quot;&gt;&lt;b&gt;20. Explain the types of partitioning in detail.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;i). Horizontal partitioning :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;This is essentially means that the table is partitioned after the first few thousand entries, and the next&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 15px;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;few thousand entries etc. This is because in most cases, not all the information in the fact table needed all&amp;nbsp;the time. Thus horizontal partitioning helps to reduce the query access time, by directly cutting down the&amp;nbsp;amount of data to be scanned by the queries.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;ii). Vertical partitioning :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;As the name suggests, a vertical partitioning scheme divides the table vertically – i.e. each row is&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;divided into 2 or more partitions.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;iii). Hardware partitioning :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Needless to say, the dataware design process should try to maximize the performance of the system.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;One of the ways to ensure this is to try to optimize by designing the data base with respect to specific&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;hardware architecture.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;

&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;21.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Explain the mechanism
of row splitting.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;Row Splitting :-&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;The method involved identifying the not so frequently used fields and putting them into another table.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;This would ensure that the frequently used fields can be accessed more often, at much lesser computation&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;time.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;It can be noted that row splitting may not reduce or increase the overall storage needed, but normalization&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;may involve a change in the overall storage space needed. In row splitting, the mapping is 1 to 1 whereas&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;normalization may produce one to many relationships.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyzNG_ufVj2PVe9rrYOThGi-v3-MdaCNkp1t1Rsrk6VCQuhZ5HFBYCd46oDHVa58Pf5y74oFU8MXvj2kQUxXs1fC7tF04EounpqvxoP8YSgyeifOowIdwd7ISFc4IIwYecMSV26o-yJ5k/s1600/pic.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyzNG_ufVj2PVe9rrYOThGi-v3-MdaCNkp1t1Rsrk6VCQuhZ5HFBYCd46oDHVa58Pf5y74oFU8MXvj2kQUxXs1fC7tF04EounpqvxoP8YSgyeifOowIdwd7ISFc4IIwYecMSV26o-yJ5k/s400/pic.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;22. Explain the
guidelines used for hardware partitioning.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Guidelines used for hardware partitioning :-&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Needless to say, the dataware design process should try to maximize the performance of the system.&amp;nbsp;One of the ways to ensure this is to try to optimize by designing the data base with respect to specific&amp;nbsp;hardware architecture. Obviously, the exact details of optimization depends on the hardware platforms.&amp;nbsp;Normally the following guidelines are useful:-&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;i). maximize the processing, disk and I/O operations.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ii). Reduce bottlenecks at the CPU and I/O&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;23. What is aggregation?
Explain the need of aggregation. Give example.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Aggregation :&lt;/b&gt; Data aggregation is an essential component of any decision support data ware house. It helps us to&amp;nbsp;ensure a cost – effective query performance, which in other words means that costs incurred to get the&amp;nbsp;answers to a query would be more than off set by the benefits of the query answer. The data aggregation&amp;nbsp;attempts to do this by reducing the processing power needed to process the queries. However, too much&amp;nbsp;of aggregations would only lead to unacceptable levels of operational costs.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Too little of aggregations may not improve the performance to the required levels. A file balancing of&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;the two is essential to maintain the requirements stated above. One thumbrule that is often suggested is that about three out of every four queries would be optimized by the aggregation process, whereas the&amp;nbsp;fourth will take it’s own time to get processed.&amp;nbsp;The second, though minor, advantage of aggregations is that they allow us to get the overall trends in&amp;nbsp;the data. While looking at individual data such overall trends may not be obvious, whereas aggregated&amp;nbsp;data will help us draw certain conclusions easily.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;24. Explain the different
aspects for designing the summary table.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Summary table are designed by following the steps given below :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;i). Decide the dimensions along which aggregation is to be done.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ii). Determine the aggregation of multiple facts.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iii). Aggregate multiple facts into the summary table.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iv). Determine the level of aggregation and the extent of embedding.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;v). Design time into the table.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;vi). Index the summary table.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;25.&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Give the reasons for
creating the data mart.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;The following are the reasons for which data marts&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;are created :-&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;i). Since the volume of data scanned is small, they speed up the query processing.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;ii). Data can be structured in a form suitable for a user access too&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;iii). Data can be segmented or partitioned so that they can be used on different platforms and&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;also different control strategies become applicable.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;26.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Explain the two stages
in setting up data marts.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;There are two stages in setting up data marts :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;i). To decide whether data marts are needed at all. The above listed facts may help you to&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;decide whether it is worth while to setup data marts or operate from the warehouse itself.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;The problem is almost similar to that of a merchant deciding whether he wants to set up retail&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;shops or not.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;ii). If you decide that setting up data marts is desirable, then the following steps have to be gone&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;through before you can freeze on the actual strategy of data marting.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;a) Identify the natural functional splits of the organization.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;b) Identify the natural splits of data.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;c) Check whether the proposed access tools have any special data base structures.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;d) Identify the infrastructure issues, if any, that can help in identifying the data marts.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;e) Look for restrictions on access control. They can serve to demarcate the warehouse&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;details.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;27.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;What are disadvantages of data mart?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;There are certain disadvantages :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;i). The cost of setting up and operating data marts is quite high.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;ii). Once a data strategy is put in place, the datamart formats become fixed. It may be fairly&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;difficult to change the strategy later, because the data marts formats also have to be changes.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;28.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;What is role of
access control issue in data mart design?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;b&gt;Role of access control issue in data mart design :-&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;This is one of the major constraints in data mart designs. Any data warehouse, with it’s huge volume&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;of data is, more often than not, subject to various access controls as to who could access which part of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;data. The easiest case is where the data is partitioned so clearly that a user of each partition cannot&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;access any other data. In such cases, each of these can be put in a data mart and the user of each can&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;access only his data .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;In the data ware house, the data pertaining to all these marts are stored, but the partitioning are&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;retained. If a super user wants to get an overall view of the data, suitable aggregations can be generated.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;29.&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Explain the purpose
of using metadata in detail.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Metadata will be used for the following purposes :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;i). data transformation and loading.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;ii). data management.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;iii). query generation.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: 11pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;30. Explain the concept
of metadata management.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Meta data should be able to describe data as it resides in the data warehouse. This will help the&amp;nbsp;warehouse manager to control data movements. The purpose of the metadata is to describe the objects&amp;nbsp;in the database. Some of the descriptions are listed here.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· Tables&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;-&amp;nbsp;Columns&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;*&amp;nbsp;Names&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;*&amp;nbsp;Types&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· Indexes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;-&amp;nbsp;Columns&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;*&amp;nbsp;Name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;*&amp;nbsp;Type&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· Views&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;-&amp;nbsp;Columns&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;*&amp;nbsp;Name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;*&amp;nbsp;Type&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· Constraints&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;-&amp;nbsp;Name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;-&amp;nbsp;Type&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;-&amp;nbsp;Table&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;*&amp;nbsp;Columns&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;31.&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;How the query manager
uses the Meta data? Explain in detail.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Meta data is also required to generate queries. The query manger uses the metadata to build a history&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;of all queries run and generator a query profile for each user, or group of uses.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;We simply list a few of the commonly used meta data for the query. The names are self explanatory.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;o Query&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Table accessed&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;§ Column accessed&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;· Name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;· Reference identifier&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;o Restrictions applied&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Column name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Table name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Reference identifier&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Restrictions&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;o Join criteria applied&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Column name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Table name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Reference identifier&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Column name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Table name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Reference identifier&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;o Aggregate function used&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Column name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Reference identifier&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Aggregate function&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;o Group by criteria&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Column name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Reference identifier&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Sort direction&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;o Syntax&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;o Resources&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;o Disk&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Read&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Write&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;o Temporary&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;32.&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Why we need different
managers to a data ware house? Explain.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Need for managers to a data ware house :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;Data warehouses are not just large databases. They are complex environments that integrate many&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;technologies. They are not static, but will be continuously changing both contentwise and structurewise.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Thus, there is a constant need for maintenance and management. Since huge amounts of time, money&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;and efforts are involved in the development of data warehouses, sophisticated management tools are&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;always justified in the case of data warehouses.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit; font-size: 15px;&quot;&gt;When the computer systems were in their initial stages of development, there used to be an army of&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;human managers, who went around doing all the administration and management. But such a scheme&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;became both unvieldy and prone to errors as the systems grew in size and complexity. Further most of the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;management principles were adhoc in nature and were subject to human errors and fatigue.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000;&quot;&gt;33.&amp;nbsp;&lt;span style=&quot;font-size: 11pt;&quot;&gt;With neat diagram
explain the boundaries of process managers.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;A schematic diagram that defines the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;boundaries of the three types of managers :-&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNb5_L-3aF6b5QmZSBREzSh7HCpJdgm2dyd8MgB-O_1DlX5mB_pnwZdwr5sjENbrbU9IcE6XannKVK-GqntG9dvjO3jDEzmyHvpnGhLILxcmw7-aJ5OOQvRu8gAkV1XYpjdAWI8_ptRcE/s1600/pic.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;286&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNb5_L-3aF6b5QmZSBREzSh7HCpJdgm2dyd8MgB-O_1DlX5mB_pnwZdwr5sjENbrbU9IcE6XannKVK-GqntG9dvjO3jDEzmyHvpnGhLILxcmw7-aJ5OOQvRu8gAkV1XYpjdAWI8_ptRcE/s400/pic.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-size: 15px;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: inherit; font-size: 11pt;&quot;&gt;&lt;b&gt;34. Explain the
responsibilities of each manager of data ware house.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Ware house Manager :-&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The warehouse manager is responsible for maintaining data of the ware house. It should also create&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;and maintain a layer of meta data. Some of the responsibilities of the ware house manager are&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;o Data movement&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;o Meta data management&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;o Performance monitoring&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;o Archiving.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Data movement includes the transfer of data within the ware house, aggregation, creation and&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;maintenance of tables, indexes and other objects of importance. It should be able to create new aggregations&amp;nbsp;as well as remove the old ones. Creation of additional rows / columns, keeping track of the aggregation&amp;nbsp;processes and creating meta data are also it’s functions.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;25. What are the
different system management tools used for data warehouse?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The different system management tools used for data warehouse :-&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;i). Configuration managers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ii). schedule managers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iii). event managers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iv). database mangers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;v). back up recovery managers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;vi). resource and performance a monitors.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;marquee behavior=&quot;alternate&quot; width=&quot;250&quot;&gt;Don&#39;t forget to comment and like..&lt;/marquee&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;







&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/1903671738466747897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-ta-53-data.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1903671738466747897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1903671738466747897'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-ta-53-data.html' title='KU 5TH SEM ASSIGNMENT - BSIT (TA) - 53 (DATA WAREHOUSING &amp; DATA MINING)'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg36k-PualU8Fih_AfSVD3dNB3ETNoAdUw6whWd17R1Mo0RjWysCdFvGg1KTiWkfDV-eDnRNIPbngVZEcvh52hwdNAZ38jw-uPRSkpRfH6kuRX-QYJ6LSxQ0lMob9uFM8emEeXZVDFJJE8/s72-c/Diagram.png" height="72" width="72"/><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-6931011212066503623</id><published>2012-09-02T07:59:00.002+05:30</published><updated>2012-09-02T08:13:38.782+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU 5TH SEM ASSIGNMENT - BSIT (TA) - 52 (WEB PROGRAMMING)</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;font-family: inherit;&quot;&gt;Assignment: TA (Compulsory)&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;1. What is the meaning of Web? Explain in detail the building elements of web&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Web is a complex network of international , cross plateform, and cross cultural communicating devices, connected to each other without any ordering or pattern.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;There are two most important building blocks of web:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;HTML and HTTP.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;HTML&lt;/b&gt;: - HTML stands for Hyper Text Markup Language. HTML is a very simple language used&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;to &amp;nbsp;“describe” &amp;nbsp;the logical &amp;nbsp;structure &amp;nbsp;of &amp;nbsp;a document. &amp;nbsp;Actually, HTML is &amp;nbsp;often &amp;nbsp;called &amp;nbsp;programming&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;language it is really not. &amp;nbsp;Programming languages are “Turing-complete”, or “computable”. That&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;is, programming languages can be used &amp;nbsp;to compute something such as the square root of pi or&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;some &amp;nbsp;other &amp;nbsp;such &amp;nbsp;task. &amp;nbsp;Typically &amp;nbsp;programming &amp;nbsp;languages &amp;nbsp;use &amp;nbsp;conditional &amp;nbsp;branches &amp;nbsp;and &amp;nbsp;loops&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;and operate on data contained in abstract data structures. HTML is much easier than all of that.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;HTML &amp;nbsp;is &amp;nbsp;simply &amp;nbsp;a &amp;nbsp;‘markup &amp;nbsp;language’ &amp;nbsp;used &amp;nbsp;to &amp;nbsp;define &amp;nbsp;a &amp;nbsp;logical &amp;nbsp;structure &amp;nbsp;rather &amp;nbsp;than &amp;nbsp;compute&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;anything.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;font-family: inherit;&quot;&gt;HTTP&lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;: &amp;nbsp;- HTTP &amp;nbsp;is &amp;nbsp;a &amp;nbsp;“request-response” &amp;nbsp;type &amp;nbsp;protocol. &amp;nbsp;It &amp;nbsp;is &amp;nbsp;a &amp;nbsp;language &amp;nbsp;spoken &amp;nbsp;between &amp;nbsp;web&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;browser (client software) and a web server (server software) so that can communicate with each&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;other and exchange files. Now let us understand how client/server system works using HTTP. A&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;client/server system works something like this: &amp;nbsp;A big piece of computer (called a server) sits in&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;some office somewhere with a bunch of files that people &amp;nbsp;might want access to. This computer&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;runs a software package that listens all day long to requests over the wires.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;2. “ HTML is the Language of the Web” &amp;nbsp;Justify the statement&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;HTML is often called a programming language it is really not. Programming languages&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;are ‘Turing-complete’, or ‘computable’. That is, programming languages can be used to compute something&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;such as the square root of pi or some other such task. Typically programming languages use conditional&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;branches and loops and operate on data contained in abstract data structures. HTML is much easier than&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;all of that. HTML is simply a ‘markup language’ used to define a logical structure rather than compute&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;anything.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;For example, it can describe which text the browser should emphasize, which text should be considered&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;body text versus header text, and so forth.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The beauty of HTML of course is that it is generic enough that it can be read and interpreted by a web&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;browser running on any machine or operating system. This is because it only focuses on describing the&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;logical nature of the document, not on the specific style. The web browser is responsible for adding style.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;For instance emphasized text might be bolded in one browser and italicized in another. it is up to the&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;browser to decide&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;3. Give the different classification of HTML tags with examples for each category&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;LIST OF HTML TAGS :-&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Tags for Document Structure&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;HTML&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;HEAD&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;BODY&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Heading Tags&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;TITLE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;BASE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;META&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;STYLE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;LINK&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Block-Level Text Elements&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;ADDRESS&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;BLOCKQUOTE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;DIV&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;H1 through H6&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;P&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;PRE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;XMP&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Lists&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;DD&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;DIR&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;DL&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;DT&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;LI&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;MENU&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;OL&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;UL&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Text Characteristics&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;B&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;BASEFONT&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;BIG&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;BLINK&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;CITE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;CODE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;EM&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;FONT&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;I&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;KBD&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;PLAINTEXT&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;S&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;· &amp;nbsp;SMALL&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;4. Write CGI application which accepts 3 numbers from the user and displays biggest number using GET and POST methods&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;#!/usr/bin/perl&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;#print &quot;Content-type:text/html\n\n&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;#$form = $ENV{&#39;QUERY_STRING&#39;};&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;use CGI;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$cgi = new CGI;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print $cgi-&amp;gt;header;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print $cgi-&amp;gt;start_html( &quot;Question Ten&quot; );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;my $one = $cgi-&amp;gt;param( &#39;one&#39; );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;my $two = $cgi-&amp;gt;param( &#39;two&#39; );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;my $three = $cgi-&amp;gt;param( &#39;three&#39; );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;if( $one &amp;amp;&amp;amp; $two &amp;amp;&amp;amp; $three )&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$lcm = &amp;amp;findLCM( &amp;amp;findLCM( $one, $two ), $three );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print &quot;LCM is $lcm&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print &#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print &#39;Enter First Number&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print &#39;Enter Second Number&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print &#39;Enter Third Number&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print &#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print &quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print $cgi-&amp;gt;end_html;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;sub findLCM(){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;my $x = shift;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;my $y = shift;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;my $temp, $ans;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;if ($x &amp;lt; $y) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$temp = $y;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$y = $x;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$x = $temp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$ans = $y;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$temp = 1;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;while ($ans % $x)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$ans = $y * $temp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$temp++ ;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;return $ans;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;5. What is Javascript? Give its importance in web.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;JavaScript is an easy to learn way to “Script“your web pages that is have them to do actions that cannot be handled with HTML alone. With JavaScript, you can make text scroll across the screen like ticker tape; you can make pictures change when you move over them, or any other number of dynamic enhancement.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;JavaScript is generally only used inside of HTML document.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;i) &amp;nbsp; &amp;nbsp;JavaScript control document appearance and content.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ii) &amp;nbsp; &amp;nbsp;JavaScript control the browser.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iii) &amp;nbsp; &amp;nbsp;JavaScript interact with document content.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iv) &amp;nbsp; &amp;nbsp;JavaScript interact with the user.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;v) &amp;nbsp; &amp;nbsp;JavaScript read and write client state with cookies.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;vi) &amp;nbsp; &amp;nbsp;JavaScript interact with applets.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;vii) &amp;nbsp; &amp;nbsp;JavaScript manipulate embedded images.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;6. Explain briefly Cascading Style Sheets&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Cascading Style Sheet (CSS) is a part of DHTML that controls the look and placement of the element on the page. With CSS you can basically set any style sheet property of any element on a html page. One of the biggest advantages with the CSS instead of the regular way of changing the look of elements is that you split content from design. You can for instance link a CSS file to all the pages in your site that sets the look of the pages, so if you want to change like the font size of your main text you just change it in the CSS file and all pages are updated.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;7. What is CGI? List the different CGI environment variables&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;CGI or “Common Gateway Interface” is a specification which allows web users to run program from their computer.CGI is a part of the web server that can communicate with other programs running on the server. With CGI, the web server can call up a program, while passing user specific data to a program. The program then processes that data and the server passes the program’s response back to the web browser.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; When a CGI program is called, the information that is made available to it can be roughly broken into three groups:-&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;i). Information about client, server and user.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ii). Form data that are user supplied.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iii). Additional pathname information.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Most Information about client, server and user is placed in CGI environmental variables. Form data that are user supplied is incorporated in environment variables. Extra pathname information is placed in environment variables.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;i). GATEWAY_INTERFACE –T he revision of the common Gateway interface that the server uses.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ii). SERVER_NAME – The Server’s hostname or IP address.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iii). SERVER_PORT – The port number of the host on which the server is running.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iv). REQUEST_METHOD – The method with which the information request is issued.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;v). PATH_INFO – Extra path information passed to the CGI program&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;8. What is PERL? Explain &amp;nbsp;PERl control structures with the help of an example&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Perl control structures include conditional statement, such as if/elseif/else blocks as well as loop like for each, for and while.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;i). Conditional statements&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - If condition – The structure is always started by the word if, followed by a condition to be evaluated, then a pair the braces indicating the beginning and end of the code to be executed if the condition is true.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If(condition)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{condition to be executed&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Unless – Unless is similar to if. You wanted to execute code only if a certain condition were false.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If($ varname! = 23) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#code to execute if $ varname is not 23&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - The same test can be done using unless: &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unless ($ varname== 23) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#code to execute if $ varname is not 23&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ii). Looping – Looping allow you to repeat code for as long as a condition is met. Perl has several loop control structures: foreach, for, while and until.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;- While Loop – A while loop executes as long as a particular condition is true:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;While (condition) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #code to run as long as condition is true.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;- Until Loop – A until loops the reverse of while. It executes as long as a particular condition is not true:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;While (condition) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #code to run as long as condition is not true.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #990000; font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;&lt;marquee behavior=&quot;alternate&quot; direction=&quot;left&quot;&gt;Leave Comment &amp;amp; And Get Membership !!&lt;/marquee&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-size: large;&quot;&gt;&lt;marquee behavior=&quot;alternate&quot; direction=&quot;right&quot;&gt;Leave Comment &amp;amp; And Get Membership !!&lt;/marquee&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/6931011212066503623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-ta-52-web.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/6931011212066503623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/6931011212066503623'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-ta-52-web.html' title='KU 5TH SEM ASSIGNMENT - BSIT (TA) - 52 (WEB PROGRAMMING)'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-3147486973878973148</id><published>2012-09-01T23:36:00.001+05:30</published><updated>2012-09-02T08:11:49.774+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU 5TH SEM ASSIGNMENT - BSIT (TA) - 51 (GRAPHICS &amp; MULTIMEDIA)</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;span style=&quot;font-family: inherit;&quot;&gt;Assignment: TA (Compulsory)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;1.What is the meaning of interactive computer graphics? List the various applications of the computer graphics.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The term “interactive graphics” refers to devices and systems that facilitate the man-machine graphic communication, in a way, which is more convenient than the writing convention. For example, to draw a straight line between two points, one has to input the coordinates of the two end points. In interactive graphics with the help of graphical input technique by indicating two end points on the display screen draws the line.&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Various applications of the computer graphics are listed below :-&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;i). Building Design and Construction&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;ii). Electronics Design&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iii). Mechanical Design&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;iv). Entertainment and Animation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;v). Aerospace Industry&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;vi). Medical Technology&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;vii). Cartography&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;viii). Art and Commerce.&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;2.&amp;nbsp;Explain in detail the Hardware required for effective graphics on the computer system.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The hardware components required to generate interactive graphics are the input device, the output&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;device (usually display) and the computer system. The human operator is also an integral part of the&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;interactive system. The text and graphics displayed act as an input to the human vision system and, therefore, the reaction of the human being will depend on how quickly one can see and appreciate the&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;graphics present on the display.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;3.&amp;nbsp;Compare Raster scan system with random scan system.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;In raster scan display, the electron beam is swept across the screen, one row at a time from top to bottom. The picture definition is stored in a memory area called refresh buffer or frame buffer. In random scan display unit, a CRT has the electron beam directed only to the parts of the screen where a picture is to be drawn. It draws a picture one line at a time and so it is referred to as vector displays.&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: inherit;&quot;&gt;Raster scan&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The Most common type of graphics monitor employing a CRT is the raster-scan Display, based on television technology. In a raster- scan system; the electron beam is swept across the screen, one row at a time from top to bottom. The picture definition is stored in a memory area called the refresh buffer or frame buffer. &amp;nbsp;Each point on the screen is called pixel. On a black and system with one bit per pixel, the frame buffer is called bitmap. For systems with multiple bits per pixel, the frame buffer is referred to as a pix map.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Refreshing on raster scan display is carried out at the rate of 60 to 80 frames per second. Some displays use interlaced refresh procedure. First, all points on the even numbered scan lines are displayed then all the points along odd numbered lines are displayed. This is an effective technique for avoiding flickering.&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: inherit;&quot;&gt;Random scan display&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;When operated as a random-scan display unit, a CRT has the electron beam directed only to the parts of the screen where a picture is to be drawn. Random scan monitors draw a picture one line at a time and for this reason they are also referred as vector displays (or stroke-writing or calligraphic displays). The component lines of a picture can be drawn and refreshed by a random-scan system in any specified order. A pen plotter operates in a similar way and is an example of a random-scan, hard-copy device.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Refresh rate on a random-scan system depends on the number of lines to be displayed. Picture definition is now stored as a set of line- drawing commands in an area of memory referred to as the refresh display file. Sometimes the refresh display file is called the display list, display program, or simply the refresh buffer.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;4.&amp;nbsp;How many colors are possible if&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp;a.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;24 bits / pixel is used&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&amp;nbsp; &amp;nbsp;b.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;8 bits / pixel is used &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;Justify your answer&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;a). 24 bit color provides 16.7 million colors per pixels, That 24 bits are divided into 3 bytes; one each for the read, green, and blue components of a pixel.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;b). 256, 8 bits per pixel = 2^8 colours.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Widely accepted industry standard uses 3 bytes, or 24 bits, per pixel, with one byte for each primary color results in 256 different intensity levels for each primary color. Thus a pixel can take on a color from 256 X 256 X 256 or 16.7 million possible choices. In Bi-level image&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;representation one bit per pixel is used to represent black-and white images. In gray level image 8 bits per pixel to allow a total of 256 intensity or gray levels. Image representation using lookup table can be viewed as a compromise between our desire to have a lower storage requirement and our need to support a reasonably sufficient number of simultaneous colors.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;5.&amp;nbsp;List and explain different text mode built-in functions of C Programming language.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The different text mode built-in functions of C Programming language are listed below :-&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;i). textmode( int mode);&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This function sets the number of rows and columns of the screen, mode variable can take the values 0, 1, 1, or 3.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;0: represents 40 column black and white&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;1: represents 40 column color&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;2: represents 80 column black and white&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;3: represents 80 column color&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Example: textmode(2); // sets the screen to 80 column black and white&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;ii). clrscr();&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This function clears the entire screen and locates the cursor on the top left corner(1,1) Example clrscr(); // clears the screen&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;iii).&amp;nbsp;gotoxy(int x, int y);&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This function positions the cursor to the location specified by x and y. x represents the row number and y represents the column number.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Example: gotoxy(10,20) // cursor is placed in 20th column of 10th row&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;iv).&amp;nbsp;textbackground (int color);&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This function changes the background color of the text mode. Valid colors for the CGA are from 0 to 6 namely BLACK, BLUE, GREEN, CYAN, RED, MAGENTA and BROWN. Example: textbackground(2); Or //changes background color to blue textbackground(BLUE);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;v).&amp;nbsp;textcolor (int color);&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This function sets the subsequent text color numbered between 0 to 15 and 128 for blinking. Example : textcolor(3); // set the next text color to Green&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;vi).&amp;nbsp;delline ();&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;It is possible to delete a line of text and after the deletion all the subsequent lines will be pushed up by one line Example : /* deletes the 5th line*/ gotoxy (5,4); delline ( );&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;vii).&amp;nbsp;insline()&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Inserts a blank line at the current cursor position Example: /* inserts line at the 3rd row */ gotoxy (3,5); insline ( );&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&lt;b&gt;6.&amp;nbsp;Write a C program to create Indian national flag.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;#include&quot;graphics.h&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;#include&quot;conio.h&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;int gd=DETECT,gm,x,y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;initgraph(&amp;amp;gd,&amp;amp;gm,&quot;c:\\tc\\bgi&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;x=getmaxx();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;y=getmaxy();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;clearviewport();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setfillstyle(LINE_FILL,BLUE);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;bar(0,0,639,479);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setcolor(6);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;rectangle(50,50,300,200);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setfillstyle(SOLID_FILL,6);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;bar(50,50,300,100);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setfillstyle(SOLID_FILL,WHITE);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;bar(50,100,300,150);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setfillstyle(SOLID_FILL,GREEN);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;bar(50,150,300,200);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setcolor(BLUE);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;rectangle(45,45,50,300);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setfillpattern(0x20,MAGENTA);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;bar(45,45,50,400);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setcolor(BLUE);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;circle(175,125,25);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;line(175,125,200,125);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;line(175,125,175,150);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;line(175,125,150,125);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;line(175,125,175,100);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;line(175,125,159,107);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;line(175,125,193,143);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;line(175,125,159,143);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;line(175,125,193,107);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setcolor(YELLOW);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;rectangle(0,0,640,43);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setfillstyle(SOLID_FILL,YELLOW);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;bar(0,0,640,43);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;setcolor(BLACK);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;settextstyle(1,HORIZ_DIR,5);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;outtextxy(150,0,&quot;INDIAN FLAG&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-size: x-large;&quot;&gt;&lt;marquee behavior=&quot;alternate&quot; direction=&quot;left&quot;&gt;Leave Comment &amp;amp; And Get Membership !!&lt;/marquee&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #990000; font-size: x-large;&quot;&gt;&lt;marquee behavior=&quot;alternate&quot; direction=&quot;right&quot;&gt;Leave Comment &amp;amp; And Get Membership !!&lt;/marquee&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/3147486973878973148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-ta-51.html#comment-form' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/3147486973878973148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/3147486973878973148'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/09/ku-5th-sem-assignment-bsit-ta-51.html' title='KU 5TH SEM ASSIGNMENT - BSIT (TA) - 51 (GRAPHICS &amp; MULTIMEDIA)'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-3324050338566256363</id><published>2012-08-19T19:52:00.001+05:30</published><updated>2012-09-26T02:59:53.164+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>6TH SEM KU LAB ASSIGNMENT SOLUTIONS (BSIT-61)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;1.) Write a program in C# using command line arguments to display a welcome message. The message has to be supplied as input in the command line&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class prac1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void Main(string[] args)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;foreach(string k in args)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Write(k+&quot; &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2.) Write a program in C# to find the area of a circle, given its radius.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class prac2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;float radius=8.9f;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;float pi=3.14f;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;float area;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;area=pi*radius*radius;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;The Area Of Circle whose Radius is {0} :- {1}&quot;,radius,area);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;3.) Write a program in C# to find the area of polygon – triangle and rectangle by using multiple constructors.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class prac3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;prac3(double half,double length,double height)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;double areaoftriangle=half*length*height;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;The Area of Triangle of length {0} and height {1} is: {2}&quot;,length,height,areaoftriangle);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;prac3(double len,double breadth)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;double areaofrectangle=len*breadth;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;The Area of Rectangle of length {0} and height {1} is: {2}&quot;,len,breadth,areaofrectangle);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;prac3 obj1=new prac3(0.5,4.2,3.8);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;prac3 obj2=new prac3(5.2,2.6);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4.)Write a program in C# to add and multiply two numbers and display the results. Demonstrate the use of ref and out parameters in this program.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class prac4&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void add(ref int num1,ref int num2)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int res_add=num1+num2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;The Addition Of {0} and {1} usingis : {2} &quot;,num1,num2,res_add);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void product(out int number1,out int number2)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;number1=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;number2=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int res_product=number1*number2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine (&quot;The Product Of {0} and {1} usingis : {2}&quot;,number1,number2,res_product);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void Main(string[] args)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int num1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int num2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;num1=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;num2=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;add(ref num1,ref num2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int number1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int number2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;product(out number1,out number2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5.) Using foreach looping statement, write a program in C# to display all the elements of string array.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class prac5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void Main(string[] args)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;string[] name={&quot;Shakty&quot;,&quot;Shashi&quot;,&quot;Gaurav&quot;,&quot;Rahul&quot;,&quot;Pawan&quot;,&quot;Gandharva&quot;,&quot;Rakesh&quot;};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;foreach(string element in name)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(element);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;6.) Write a program in C# to create a string array to store 10 employees name. Display the employees name to the console by passing array as a parameter to the display function.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class prac6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void display(out string[] name)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;name=new string[10]{&quot;Shakty&quot;,&quot;Ronisha&quot;,&quot;Shashi&quot;,&quot;Gaurav&quot;,&quot;Rahul&quot;,&quot;Pawan&quot;,&quot;Gandharva&quot;,&quot;Rakesh&quot;,&quot;Manish&quot;,&quot;Mohd. Arif&quot;};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void Main(string[] args)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;string[] name;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;display(out name);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Array Elements Are :&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for(int i=0;i&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(name[i]);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Press any key to exit..................&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7.) Write a program in C# to demonstrate the usage of checked and unchecked statements.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class prac7&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int x=Int32.MaxValue;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(x+1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;checked&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(x+1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;unchecked&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(x+1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8.) Write a class called rectangle which consists of members side_1, side_2 and displayArea(). Write another class square which inherits class rectangle. Take side of square as input and display the area of square on console.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public class rectangle&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public int side_1=30;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public int side_2=40;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public virtual void displayArea()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int area=side_1*side_2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Area of Rectangle is:-{0}&quot;,area);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class square:rectangle&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public override void displayArea()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int area=side_1*side_1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Area of Square whose side {0} which is inherited fromclass is:- {1}&quot;,side_1,area);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;square obj=new square();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;obj.displayArea();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;9.) Write a program to sort 20 decimal numbers in decreasing order and print the result.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;namespace sorting&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class Class1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void sort(double[] a)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int i=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;while(i&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;double temp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;if(a[i]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;temp=a[i+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;a[i+1]=a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;a[i]=temp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;i=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;continue;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void display(double[] a)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;foreach(double x in a)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;System.Console.WriteLine(x);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void Main(string[] args)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;double[] a = new double[] {87.1,76.4,76.2,80.5,96.7,4.56,34.11,100.45,89.07,44.34,200.1,10.34,96.45,72.33,7.4,2.5,65.56,87.87,99.83,101.66};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;sort(a);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;display(a);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Read();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;10.) Write a program for matrix multiplication in C#.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class Matrix3D&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public const int DIMSIZE = 3;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private double[ , ] matrix = new double[DIMSIZE, DIMSIZE];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public double this[int x,int y]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;get { return matrix[x, y]; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;set { matrix[x, y] = value;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static Matrix3D operator *(Matrix3D mat1, Matrix3D mat2)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Matrix3D newMatrix = new Matrix3D();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int x=0; x &amp;lt; DIMSIZE; x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int y=0; y &amp;lt; DIMSIZE; y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;newMatrix[x, y] = mat1[x, y] * mat2[x, y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;return newMatrix;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class MatrixTest&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static Random rand = new Random();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Matrix3D mat1 = new Matrix3D();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Matrix3D mat2 = new Matrix3D();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;InitMatrix(mat1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;InitMatrix(mat2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Matrix 1 : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;PrintMatrix(mat1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Marix 2: &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;PrintMatrix(mat2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Matrix3D mat3 = mat1 * mat2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Matrix 1 * Matrix 2 = &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;PrintMatrix(mat3);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void InitMatrix(Matrix3D mat)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int x=0; x &amp;lt; Matrix3D.DIMSIZE; x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int y=0; y &amp;lt; Matrix3D.DIMSIZE; y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;mat[x, y] = rand.NextDouble()*10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;} //done&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void PrintMatrix(Matrix3D mat)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int x=0; x&amp;lt; Matrix3D.DIMSIZE; x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Write(&quot;[ &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int y=0; y &amp;lt; Matrix3D.DIMSIZE; y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Write(&quot;{0,8: # . 00}&quot;,mat[x, y]);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;if((y+1 % 2)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Write(&quot; , &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot; ] &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;11.) Write a program in C# to sort the students list based on their names. The students list is stored in a string array.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;namespace sorting&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class Class1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;[STAThread]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void sort(string[] b)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int i=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;while(i&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;string temp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;if(0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;temp=b[i+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;b[i+1]=b[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;b[i]=temp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;i=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;continue;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void display(string[] b)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;foreach(string x in b)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;System.Console.WriteLine(x);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void Main(string[] args)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;string[] b = new String[] {&quot;sumit&quot;,&quot;samit&quot;,&quot;scmit&quot;,&quot;sgmit&quot;,&quot;sglit&quot;};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;sort(b);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;display(b);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Read();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;12.) Write a program in C# to demonstrate operator overloading&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class Matrix3D&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public const int DIMSIZE = 3;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private double[ , ] matrix = new double[DIMSIZE, DIMSIZE];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public double this[int x,int y]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;get { return matrix[x, y]; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;set { matrix[x, y] = value;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static Matrix3D operator +(Matrix3D mat1, Matrix3D mat2)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Matrix3D newMatrix = new Matrix3D();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int x=0; x &amp;lt; DIMSIZE; x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int y=0; y &amp;lt; DIMSIZE; y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;newMatrix[x, y] = mat1[x, y] + mat2[x, y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;return newMatrix;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class MatrixTest&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static Random rand = new Random();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Matrix3D mat1 = new Matrix3D();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Matrix3D mat2 = new Matrix3D();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;InitMatrix(mat1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;InitMatrix(mat2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Matrix 1 : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;PrintMatrix(mat1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Marix 2: &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;PrintMatrix(mat2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Matrix3D mat3 = mat1 + mat2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Matrix 1 + Matrix 2 = &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;PrintMatrix(mat3);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void InitMatrix(Matrix3D mat)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int x=0; x &amp;lt; Matrix3D.DIMSIZE; x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int y=0; y &amp;lt; Matrix3D.DIMSIZE; y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;mat[x, y] = rand.NextDouble()*10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void PrintMatrix(Matrix3D mat)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int x=0; x&amp;lt; Matrix3D.DIMSIZE; x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Write(&quot;[ &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int y=0; y &amp;lt; Matrix3D.DIMSIZE; y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Write(&quot;{0,8: # . 00}&quot;,mat[x, y]);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;if((y+1 % 2)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Write(&quot; , &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot; ] &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;13.) Write a program in C# to demonstrate boxing and unboxing opertation.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class prac13&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int unbox_var=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int box_var=100;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;object obj=box_var; //boxing ie converting value type to reference type&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Value after boxing is : {0}&quot;,obj);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;unbox_var=(int)obj; //unboxing ie converting reference type to value type&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Value after unboxing is : {0} &quot;,unbox_var);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;14.) Write a program in C# to throw and catch any arithmetic exception.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;class prac14&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public static void Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int num1=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int num2=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int div;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;div=num1/num2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(div);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.ReadLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;catch(DivideByZeroException e)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Exception Message : &quot;+e.Message);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;15.) Write a program to demonstrate the usage of threads in C#.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System.Threading;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System.Collections;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;using System.Collections.Generic;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public class SyncEvents&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public SyncEvents()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_newItemEvent = new AutoResetEvent(false);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_exitThreadEvent = new ManualResetEvent(false);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_eventArray = new WaitHandle[2];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_eventArray[0] = _newItemEvent;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_eventArray[1] = _exitThreadEvent;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public EventWaitHandle ExitThreadEvent&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;get { return _exitThreadEvent; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public EventWaitHandle NewItemEvent&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;get { return _newItemEvent; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public WaitHandle[] EventArray&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;get { return _eventArray; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private EventWaitHandle _newItemEvent;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private EventWaitHandle _exitThreadEvent;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private WaitHandle[] _eventArray;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public class Producer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public Producer(Queueq, SyncEvents e)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_queue = q;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_syncEvents = e;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public void ThreadRun()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int count = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Random r = new Random();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;while (!_syncEvents.ExitThreadEvent.WaitOne(0, false))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;lock (((ICollection)_queue).SyncRoot)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;while (_queue.Count &amp;lt; 20)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_queue.Enqueue(r.Next(0, 100));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_syncEvents.NewItemEvent.Set();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;count++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Producer thread: produced {0} items&quot;, count);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private Queue_queue;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private SyncEvents _syncEvents;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public class Consumer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public Consumer(Queueq, SyncEvents e)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_queue = q;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;_syncEvents = e;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public void ThreadRun()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int count = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;while (WaitHandle.WaitAny(_syncEvents.EventArray) != 1)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;lock (((ICollection)_queue).SyncRoot)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;int item = _queue.Dequeue();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;count++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Consumer Thread: consumed {0} items&quot;, count);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private Queue_queue;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private SyncEvents _syncEvents;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;public class ThreadSyncSample&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;private static void ShowQueueContents(Queueq)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;lock (((ICollection)q).SyncRoot)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;foreach (int i in q)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.Write(&quot;{0} &quot;, i);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;static void Main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;SyncEvents syncEvents = new SyncEvents();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Queuequeue = new Queue();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Configuring worker threads...&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Producer producer = new Producer(queue, syncEvents);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Consumer consumer = new Consumer(queue, syncEvents);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Thread producerThread = new Thread(producer.ThreadRun);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Thread consumerThread = new Thread(consumer.ThreadRun);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Launching producer and consumer threads...&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;producerThread.Start();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;consumerThread.Start();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;for (int i = 0; i &amp;lt; 4; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Thread.Sleep(2500);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;ShowQueueContents(queue);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;Signaling threads to terminate...&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;syncEvents.ExitThreadEvent.Set();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Console.WriteLine(&quot;main thread waiting for threads to finish...&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;producerThread.Join();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;consumerThread.Join();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/3324050338566256363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/08/ku-lab-assignment-6th-sem-solutions.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/3324050338566256363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/3324050338566256363'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/08/ku-lab-assignment-6th-sem-solutions.html' title='6TH SEM KU LAB ASSIGNMENT SOLUTIONS (BSIT-61)'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-5150510830026428254</id><published>2012-08-12T13:15:00.003+05:30</published><updated>2012-08-12T13:49:22.210+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips and Tricks"/><title type='text'>HOW TO REPAIR BOOT FILES IN WINDOWS XP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Damaged boot files in Windows XP prevent the operating system from starting in Normal Mode, although you may be able to access Safe Mode. If you are able to enter Safe Mode, try to copy damaged boot files or to modify the boot.ini while in Safe Mode by inserting the Windows XP installation disk and copying files from the disk to your hard drive. If you cannot reach Safe Mode, you will need to initiate repairs through the Windows XP Recovery Console. You will need to know which files you need to replace and their exact file names.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOJb6Zxg-kKcDf2qR4EQfoL3lUxr-NbymD70_pFINl2s8t5VAeEmOVNBTpic-ttmUeVUtY7XTBk4pyb1eKhRE56K8oKB0uSn5zQf4I9ernYmwbV9k4LKk080u_lraMB1aJsxhJupi7N1E/s1600/ntldr_missing.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOJb6Zxg-kKcDf2qR4EQfoL3lUxr-NbymD70_pFINl2s8t5VAeEmOVNBTpic-ttmUeVUtY7XTBk4pyb1eKhRE56K8oKB0uSn5zQf4I9ernYmwbV9k4LKk080u_lraMB1aJsxhJupi7N1E/s320/ntldr_missing.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Instructions :-&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;
Things You&#39;ll Need:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; * Windows XP installation disk&lt;br /&gt;
&amp;nbsp; &amp;nbsp; * Administrator access&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 1. Use the &lt;b&gt;XP Recovery Console&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Insert the &lt;b&gt;Windows XP installation disk&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 3. Restart the computer.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 4. Press the required key to boot from the CD, if required.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 5. Press the &quot;&lt;b&gt;R&lt;/b&gt;&quot; key to repair your Windows XP boot files.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 6. Select which version of Windows XP you wish to repair, if applicable.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 7. Enter you &lt;b&gt;administrator&#39;s password&lt;/b&gt;, if applicable.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 8. Type &quot;&lt;b&gt;dir d:&lt;/b&gt;&quot; to access the Windows XP installation disk directory. Where &lt;b&gt;d:&lt;/b&gt; is XP install.. disk drive&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Type &quot;&lt;b&gt;copy d:\i386\ntldr&lt;/b&gt;&quot; to copy the file to the &lt;b&gt;C drive&lt;/b&gt; or &lt;b&gt;primary hard-drive&lt;/b&gt; partition. You may substitute any Windows boot file for &quot;&lt;b&gt;ntldr&lt;/b&gt;.&quot; Press the &quot;&lt;b&gt;Y&lt;/b&gt;&quot; button to confirm the overwrite. Enter &quot;&lt;b&gt;exit&lt;/b&gt;&quot; when finished.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/5150510830026428254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/08/how-to-repair-boot-files-in-windows-xp.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/5150510830026428254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/5150510830026428254'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/08/how-to-repair-boot-files-in-windows-xp.html' title='HOW TO REPAIR BOOT FILES IN WINDOWS XP'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOJb6Zxg-kKcDf2qR4EQfoL3lUxr-NbymD70_pFINl2s8t5VAeEmOVNBTpic-ttmUeVUtY7XTBk4pyb1eKhRE56K8oKB0uSn5zQf4I9ernYmwbV9k4LKk080u_lraMB1aJsxhJupi7N1E/s72-c/ntldr_missing.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-1799346005561624016</id><published>2012-08-12T13:04:00.003+05:30</published><updated>2012-08-12T13:54:01.934+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips and Tricks"/><title type='text'>HIDE UR FOLDERS.. NEVER KNOWN TRICK !!!!! DISGUISE THEM TO &quot;RECYCLE BIN&quot;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is a latest trick to &lt;b&gt;hide your important folder into recycle bin&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5dgiAVO5-nGCeuQGuc51AhHZYAWFaxv_4jwgl_DGcfTbJe_AVnAhvuYhv1qTq0hg3nqO0iIkZ2JuxxKXSRw6vjnNq4uDI6kASe2W48ixpuNK1m7pFhVONE9ZMRypDA9VsQwvcRwfjSPk/s1600/Folder2Recycle.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5dgiAVO5-nGCeuQGuc51AhHZYAWFaxv_4jwgl_DGcfTbJe_AVnAhvuYhv1qTq0hg3nqO0iIkZ2JuxxKXSRw6vjnNq4uDI6kASe2W48ixpuNK1m7pFhVONE9ZMRypDA9VsQwvcRwfjSPk/s320/Folder2Recycle.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Instructions :-&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Rename any folder with extension &lt;b&gt;{645FF040-5081-101B-9F08-00AA002F954E}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
eg.,&lt;br /&gt;
&lt;br /&gt;
If u&#39;ve a folder &lt;b&gt;games&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Press &lt;b&gt;F2&lt;/b&gt;,&lt;br /&gt;
&lt;br /&gt;
Then type, &quot;&lt;b&gt;games.{645FF040-5081-101B-9F08-00AA002F954E}&lt;/b&gt;&quot;&lt;br /&gt;
&lt;br /&gt;
See the magic....&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Then to get to original form,&lt;br /&gt;
&lt;br /&gt;
Remove the extension using&lt;br /&gt;
&lt;br /&gt;
&quot;&lt;b&gt;ren games.{645FF040-5081-101B-9F08-00AA002F954E} games&lt;/b&gt;&quot; in &lt;b&gt;dos&lt;/b&gt; or as a &lt;b&gt;bat file&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
n u are done..&lt;br /&gt;
&lt;br /&gt;
~cheers~&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/1799346005561624016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/08/hide-ur-folders-never-known-trick.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1799346005561624016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1799346005561624016'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/08/hide-ur-folders-never-known-trick.html' title='HIDE UR FOLDERS.. NEVER KNOWN TRICK !!!!! DISGUISE THEM TO &quot;RECYCLE BIN&quot;'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5dgiAVO5-nGCeuQGuc51AhHZYAWFaxv_4jwgl_DGcfTbJe_AVnAhvuYhv1qTq0hg3nqO0iIkZ2JuxxKXSRw6vjnNq4uDI6kASe2W48ixpuNK1m7pFhVONE9ZMRypDA9VsQwvcRwfjSPk/s72-c/Folder2Recycle.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-3370080763026461354</id><published>2012-06-03T12:34:00.004+05:30</published><updated>2012-06-14T21:56:57.375+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU PRACTICAL 16 SETS 4TH SEM EXAM QUESTION WITH SOLUTIONS</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;font-size: large;&quot;&gt;SET 1&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to print “Welcome to Java Programming” on the screen.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class welcome&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String a[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Welcome to Java Progamming&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Using a case statement, write a shell program to read a command (eg., who, cal, ls, ps) from the user and execute it.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “Enter any command:”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;read com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;case $com in&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;who ) who;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cal) cal;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;ls) ls;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;ps) ps;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;*) echo “Invalid command”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Esac&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 2&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Using awk, sum the file sizes in your working directory and print the results.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;awk ’ ,total += length ($0)-&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;END ‘,Print total-’ * (sameline)&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#2. Write a program to check whether the given two numbers are equal. If not then find the greater of the given two numbers.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;import java.lang.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class Comparision&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x,y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;x=67;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;y=97;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(x==y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Given two number are equal&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if(x&amp;gt;y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(x+ &quot; is greater than &quot; +y);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(y+ &quot; is greater than &quot; +x);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 3&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Using switch and case statements write a program to add, subtract , multiply and divide the two numbers.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public class BasicCalc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String a[])throws IOException&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;DataInputStream in = new DataInputStream(System.in);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;What do you want to do? \n 1. Add, \n 2. Substract, \n 3. Multiply, \n 4. Divide&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int i = Integer.parseInt(in.readLine());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//int i=4;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int m, n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;m = 10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;n = 5;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;switch (i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;case 1:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Result after Adding&quot; + &quot; &quot; + (m + n));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;case 2:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Result after Substracting&quot; + &quot; &quot; + (m - n));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;case 3:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Result after Multiplying&quot; + &quot; &quot; + (m * n));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;case 4:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Result after Dividing&quot; + &quot; &quot; + (m / n));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;default:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;This is not a valid input parameter&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Write a shell program that adds the integers 1 to 100 and displays the result with a suitable message.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;s=0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c=1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;while [$c-le 100]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;s=’expr $s + $c’&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c=’expr $c + 1’&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “Sum of 1 to 100 is $s”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 4&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a shell program to test for arguments arg1, arg2 and arg3. If they are not present, prompt the user for them.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if [$ # -lt 3]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;arg=’expr $ # +1’&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;while [$ arg –le 3]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “Enter argument number $arg:”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;read val&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;set $* $val&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;arg=’expr $arg +1’&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “Argument on command line entered by you are:”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo $*&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Using for loop write a program to print the table of a given number on the screen.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;import java.util.Scanner;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public class Table&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int num,i,res;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Scanner s = new Scanner(System.in);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.print(&quot;Enter a number : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;num =s.nextInt();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(i=1; i&amp;lt;=10; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;res=i*num;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(res);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 5&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to find the even sum and the odd sum in the given array.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class EvenOddSum&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;static int sum1, sum2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;static int n[] ={ 2, 3, 4, 5, 6, 7, 92, 65, 45, 87 };&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String a[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (int i = 0; i &amp;lt;=n; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if (n[i] % 2 == 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(n[i] + &quot; &quot; + &quot;*&quot; + &quot; &quot; + &quot;Even&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;sum1 = sum1 + n[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(n[i] + &quot; &quot; + &quot;*&quot; + &quot; &quot; + &quot;Odd&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;sum2 = sum2 + n[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;sum of even no. is &quot; + sum1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;sum of odd no. is &quot; + sum2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Write a background command to edit all the files in the directory replacing the word while with until.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;tr &#39;while&#39; &#39;until&#39; &amp;lt; myfile &amp;amp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 6&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to print all the prime numbers between n and m.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class PrimeNumber&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String[] args) throws Exception&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int i;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;BufferedReader bf = new BufferedReader(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;new InputStreamReader(System.in));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Enter 1st number: &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int num = Integer.parseInt(bf.readLine());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Enter 2nd number: &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int num2 = Integer.parseInt(bf.readLine());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Prime numbers are: &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (i = num; i &amp;lt;num2; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int j;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (j=2; j&amp;lt;i; j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int n = i % j;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if (n == 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if (i == j)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.print(&quot; &quot; + i);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Write a shell program using if-the-else to test whether a variable name is a directory or a file.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “Enter a name”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;read name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if [-f $name]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “$name is a file”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “$name is a directory”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “$name is not a file nor a directory.”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 7&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to add the two matrices.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class MatrixSum&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String[] args)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int array[][]= {{4,5,6},{6,8,9}};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int array1[][]= {{5,4,6},{5,6,7}};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Number of Row = &quot; + array.length);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Number of Column = &quot; + array[1].length);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int l= array.length;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Matrix 1 : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int i = 0; i &amp;lt; l; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int j = 0; j &amp;lt;= l; j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.print(&quot; &quot;+ array[i][j]);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int m= array1.length;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Matrix 2 : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int i = 0; i &amp;lt; m; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int j = 0; j &amp;lt;= m; j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.print(&quot; &quot;+array1[i][j]);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Addition of both matrix : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int i = 0; i &amp;lt; m; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int j = 0; j &amp;lt;= m; j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.print(&quot; &quot;+(array[i][j]+array1[i][j]));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Write a shell program to translate the /etc/passwd file into uppercase and translate the “:” delimiter into tab characters.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;tr ”*a-z:+” “*A-Z:+” &amp;lt;/etc/passwd&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 8&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a class circle which consists of functions getdata() and area(), and also write a main program to create a circle object and to find the area by calling the function area () in circle class and display the result on the screen.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;import java.lang.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class Circle&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;double r,a;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;static final double p=3.14;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public void getData()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;BufferedReader br=new BufferedReader(new InputStreamReader(System.in));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Enter the radius of the circle :&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;r=Double.parseDouble(br.readLine());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;catch(Exception e)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public void area()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a=p*(r*r);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.print(&quot;The area of the circle is :&quot;+a);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Circle c=new Circle();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c.getData();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c.area();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Write a shell program to extract and sort all the users in the file system. Use the /etc/passwd file as input.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;first (with pipe and filter)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Cut –d ”:” –f1/etc/passwd | sort&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Second (without pipe and filter)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Cut –d “:” –f1/etc/passwd&amp;gt;tmp sort&amp;lt;temp&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 9&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a class Box with the variable width, depth and height and constructor to assigning the values for these variables and a method to find the volume of the box and also write the main program, which creates the box object, and find the volume of the box. Print the result on the screen.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class classBox&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;static int width, depth, height;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;dimention()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;width = 10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;depth = 5;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;height = 20;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void volume()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int box = width * depth * height;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;volume of box is :&quot; + &quot; &quot; + box);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;dimention box = new dimention();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;box.volume();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Write an interactive shell using I/O redirection to accept input from file1, put stdout in file2 and stderr in file3.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “Enter input file name:”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;read f1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “Enter output file name:”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;read f2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “Enter error file name:”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;read f3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cat &amp;lt;$f1 , cat &amp;gt;$f2 , cat &amp;gt;$f3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 10&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to demonstrate the method overloading for sum ( ) function.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class Demo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void add(int a)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(a);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void add(int x, int y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(x + y);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;demo q = new demo();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;q.add(10);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;q.add(20, 30);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. The ls command with the –R option lists the files in the specified directory and also subdirectories, if any. Use this with a suitable pip-and-filter arrangement to determine whether a file exists in the account logged in.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “Enter the name to search :”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;read file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;dat =’ls-R $ Home 1 grep $ file’&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if [-s “$ dat”+&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “$file File exist”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo “$file File not exist”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 11&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to demonstrate the overriding of constructor methods for the program no. 9.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class A&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;String s = &quot;Vikash&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void display()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(s);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class B extends A&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void display()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(s + &quot; &quot; + &quot;Kumar&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;B over = new B();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;over.display();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Put a long-running process in the background and check the accuracy of the sleep command.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;date;sleep10;date$&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 12&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to concatenate two strings.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class Conct&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String a[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;String a1 = &quot;Vikash&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;String a2 = &quot;Kumar&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(a1.concat(&quot; &quot; + a2));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. For a directory myfolder in your working directory, do the following:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) allow everyone to list files in myfolder. No other privileges are to be changed.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b) allow the owner to and group members to list, remove or add files. All privileges&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;are to be removed from everyone else.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;c) give write privileges to everyone except the owner&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;d) allow the owner and group members to execute myfolder. Only the owner gets&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;read or write permission.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a)Ans:- chmod a+rx myfolder&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;b)Ans:-chmod 770 myfolder&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c)Ans:- chmod go+w myfolder&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;d)Ans:- chmod 710 my folder&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 13&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to find whether a given string is a palindrome or not.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class Palin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String []s)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int i=0,j;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;j=s[0].length()-1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;while(i&amp;lt;j)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(s[0].charAt(i) != s[0].charAt(j))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;i++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;j--;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(i&amp;lt;j)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Not palin&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Palin&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. For a file named myfile in the working directory, do the following:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) give everyone permission to read myfile. No other privilege is to be changed&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b) allow the owner and group members to read and write the file. All privileges are&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;to be removed for everyone else.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;c) remove write privileges from everyone except the owner&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;d) allow the owner and group members to execute myfile and give only the owner&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;permission to read or write to it.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a)Ans :- chmod a+r myfile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;b)Ans:- chmod 660 myfile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c)Ans:- chmod go-w myfile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;d)Ans:- chmod 710 myfile , chmod ug=x,u+rw myfile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 14&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to change the case of the given string.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class case&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String ar[]) throws IOException&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;BufferedReader br = new BufferedReader(new InputStreamReader(System.in));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;String str;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Enter any String&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;and to quit write “ Exit“ &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;str = br.readLine();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int textLength = str.length();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (int i = 0; i &amp;lt; str.length; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;char ch = Character.toUpperCase(str.charAt(i));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.print(ch);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;} while (!str.equals(&quot;exit&quot;));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Assuming you have a directory containing the following files:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;sprite, cola, choco, orange, book, lemon, lotus, apple&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Use the ls command to list only those files that&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) consist of four letters&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b) begin with the letter c&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;c) end with the letter e&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;d) have the second letter o&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a) consist of four letters&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;ls ????&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;b) begin with the letter c&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c*.*&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c) end with the letter e&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;*e.*&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;d) have the second letter o&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;?o.*&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 15&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Write a program to create a thread by extending the thread class.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;import java.lang.*;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class Child extends Thread&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Child()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;super(&quot;Thread Demo&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Child Thread :&quot; +this);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;start();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public void run()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int i = 5; i &amp;gt; 0; i--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Child Thread: &quot; + i);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Thread.sleep(1000);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;catch (InterruptedException e)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Child interrupted.&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Exiting child thread.&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;class ExtendThread&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;new Child();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int i = 5; i &amp;gt; 0; i--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Main Thread: &quot; + i);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Thread.sleep(1500);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;catch (InterruptedException e)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Main thread interrupted.&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(&quot;Main thread exiting.&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. For a file named myfile in the working directory, do the following:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) give everyone permission to read myfile. No other privilege is to be changed&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b) allow the owner and group members to read and write the file. All privileges are&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;to be removed for everyone else.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;c) remove write privileges from everyone except the owner&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;d) allow the owner and group members to execute myfile and give only the owner&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;permission to read or write to it.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a)Ans :- chmod a+r myfile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;b)Ans:- chmod 660 myfile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c)Ans:- chmod go-w myfile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;d)Ans:- chmod 710 myfile , chmod ug=x,u+rw myfile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SET 16&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#1. Use the echo command to display the line&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;UNIX is fun to learn&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Redirect the displayed line to a file. Append the outputs of the commands to show the users logged into your system, your login account and the current date in the dd-mm-yyyy format to the file.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;echo ”UNIX is fun to learn”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;script –a myfile who –a whoami date +%d-%m-%Y&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;#2. Using for loop write a program to print the table of a given number on the screen.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;import java.util.Scanner;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public class Table&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int num,i,res;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Scanner s = new Scanner(System.in);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.print(&quot;Enter a number : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;num =s.nextInt();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(i=1; i&amp;lt;=10; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;res=i*num;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;System.out.println(res);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/3370080763026461354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/06/ku-practical-4th-sem-exam-question-with.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/3370080763026461354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/3370080763026461354'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/06/ku-practical-4th-sem-exam-question-with.html' title='KU PRACTICAL 16 SETS 4TH SEM EXAM QUESTION WITH SOLUTIONS'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-6628341852675891053</id><published>2012-05-11T21:59:00.002+05:30</published><updated>2012-05-11T22:28:34.638+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Documents"/><title type='text'>C++ PROGRAMS</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;font-size: large;&quot;&gt;&lt;i&gt;C++ Program to output an integer, a floating point number and a character&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; int x = 10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; float y = 10.1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; char z = &#39;a&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;x = &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;y = &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;z = &quot; &amp;lt;&amp;lt; z &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program has pre-defined values for an integer x, floating point number y, and a character z.&lt;br /&gt;
These three values are outputted using the &#39;cout&#39; command.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;No inputs from the user for this program.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;x = 10&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;y = 10.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;z = a&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;C++ Program to find the sum, difference, product and quotient of two integers&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; int x = 10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; int y = 2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; int sum, difference, product, quotient;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; sum = x + y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; difference = x - y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; product = x * y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; quotient = x / y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;The sum of &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; &amp;amp; &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot; is &quot; &amp;lt;&amp;lt; sum &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;The difference of &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; &amp;amp; &quot; &amp;lt;&amp;lt; &quot;y &amp;lt;&amp;lt; &amp;nbsp;is &quot; &amp;lt;&amp;lt; difference &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;The product of &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; &amp;amp; &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot; is &quot; &amp;lt;&amp;lt; product &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;The quotient of &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; &amp;amp; &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot; is &quot; &amp;lt;&amp;lt; quotient &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program has pre-defined values for two integers x and y.&lt;br /&gt;
The sum, difference, product and quotient of these two values are calculated and then outputted using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;No inputs from the user for this program.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The sum of 10 &amp;amp; 2 is 12.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The difference of 10 &amp;amp; 2 is 8.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The product of 10 &amp;amp; 2 is 20.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The quotient of 10 &amp;amp; 2 is 5.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter two integers and find their sum and average&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x,y,sum;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;float average;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter 2 integers : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x&amp;gt;&amp;gt;y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;sum=x+y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;average=sum/2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The sum of &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; and &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot; is &quot; &amp;lt;&amp;lt; sum &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The average of &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &amp;nbsp;&quot; and &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot; is &quot; &amp;lt;&amp;lt; average &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in two integers x and y as a screen input from the user.&lt;br /&gt;
The sum and average of these two integers are calculated and outputted using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;8 6&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The sum of 8 and 6 is 14.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The average of 8 and 6 is 7.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter velocity, acceleration and time and print final velocity using the formula: v = u + a * t&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int v,u,a,t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the velocity, acceleration, time as integers : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;u&amp;gt;&amp;gt;a&amp;gt;&amp;gt;t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;v=u+a*t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The final velocity is &quot; &amp;lt;&amp;lt; v &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the velocity, acceleration and the time as a screen input from the user.&lt;br /&gt;
The final velocity is calculated using the formula v = u + a * t, and then outputted using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;20 10 5&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The final velocity is 70.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter your age and print if you should be in grade 10&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int age;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter your present age : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;age;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(age==16)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Your present age is &quot; &amp;lt;&amp;lt; age &amp;lt;&amp;lt; &quot; years.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;You are of the right age for joining grade 10 !&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Your present age is &quot; &amp;lt;&amp;lt; age &amp;lt;&amp;lt; &quot; years.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;You are not of the right age for joining grade 10 !&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the age as a screen input from the user.&lt;br /&gt;
The program tells the user whether he/she should be in grade 10 or not by using the &#39;IF-ELSE&#39; command.&lt;br /&gt;
It then prints out the appropriate message using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;15&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Your present age is 15 years.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;You are not of the right age for joining grade 10 !&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter an integer and print if it is greater or less than 100&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter an integer : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(x&amp;gt;100)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; is greater than 100.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; is less than 100.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in an integer x as a screen input from the user.&lt;br /&gt;
The program tells the user whether that integer is greater than 100 or less than 100.&lt;br /&gt;
It then prints out the appropriate message using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;74&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;74 is less than 100.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter the sale value and print the agent&#39;s commission&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;long int svalue;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;float commission;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the total sale value : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;svalue;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(svalue&amp;lt;=10000)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;commission=svalue*5/100;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;For a total sale value of $&quot; &amp;lt;&amp;lt; svalue &amp;lt;&amp;lt; &quot;, &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;the agent&#39;s commission is $&quot; &amp;lt;&amp;lt; commission;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if(svalue&amp;lt;=25000)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;commission=svalue*10/100;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;For a total sale value of $&quot; &amp;lt;&amp;lt; svalue &amp;lt;&amp;lt; &quot;, &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;the agent&#39;s commission is $&quot; &amp;lt;&amp;lt; commission;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if(svalue&amp;gt;25000)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;commission=svalue*20/100;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;For a total sale value of $&quot; &amp;lt;&amp;lt; svalue &amp;lt;&amp;lt; &quot;, &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;the agent&#39;s commission is $&quot; &amp;lt;&amp;lt; commission;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the total sale value as a screen input from the user.&lt;br /&gt;
The program then calculates the agent&#39;s commission with the help of the &#39;IF-ELSE&#39; command as follows :&lt;br /&gt;
5% if the total sale value is less than or equal to $10000.&lt;br /&gt;
10% if the total sale value is less than or equal to $25000.&lt;br /&gt;
20% if the total sale value is greater than $25000. It then outputs the agent&#39;s commission using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;26000&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;For a total sale value of $26000, the agent&#39;s commission is $5200&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to switch between different cases&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int choice;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;1. Talk&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;2. Eat&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;3. Play&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;4. Sleep&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter your choice : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;choice;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;switch(choice)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;case 1 : cout &amp;lt;&amp;lt; &quot;You chose to talk...talking too much is a bad habit.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;case 2 : cout &amp;lt;&amp;lt; &quot;You chose to eat...eating healthy foodstuff is good.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;case 3 : cout &amp;lt;&amp;lt; &quot;You chose to play...playing too much everyday is bad.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;case 4 : cout &amp;lt;&amp;lt; &quot;You chose to sleep...sleeping enough is a good habit.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;default : cout &amp;lt;&amp;lt; &quot;You did not choose anything...so exit this program.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the user&#39;s choice as a screen input.&lt;br /&gt;
Depending on the user&#39;s choice, it switches between the different cases.&lt;br /&gt;
The appropriate message is then outputted using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;3&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;You chose to play...playing too much everyday is bad.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter the principal, rate &amp;amp; time and print the simple interest&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;float sinterest,principal,rate,time;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=4;x&amp;gt;=0;x--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the principal, rate &amp;amp; time : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;principal&amp;gt;&amp;gt;rate&amp;gt;&amp;gt;time;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;sinterest=(principal*rate*time)/100;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Principal = $&quot; &amp;lt;&amp;lt; principal &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Rate = &quot; &amp;lt;&amp;lt; rate &amp;lt;&amp;lt; &quot;%&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Time = &quot; &amp;lt;&amp;lt; time &amp;lt;&amp;lt; &quot; years&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Simple Interest = $&quot; &amp;lt;&amp;lt; sinterest &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the prinicipal, rate and time as a screen input from the user.&lt;br /&gt;
The program is executed (run) 5 times using the &#39;FOR&#39; loop.&lt;br /&gt;
It calculates the simple interest using the formula I = PTR/100.&lt;br /&gt;
The principal, rate, time and the simple interest are then outputted using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;1000 5 3&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Principal = $1000&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Rate = 5%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Time = 3 years&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Simple Interest = $150&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter an integer and print if it is prime or composite&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;process.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int num1,x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter an integer : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;num1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=2;x&amp;lt;num1;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(num1%x==0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; num1 &amp;lt;&amp;lt; &quot; is a composite number.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;exit(0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; num1 &amp;lt;&amp;lt; &quot; is a prime number.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;exit(0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in an integer num1 as a screen input from the user.&lt;br /&gt;
It then determines whether the integer is prime or composite.&lt;br /&gt;
It finally outputs the approriate message by writing to the &#39;cout&#39; stream.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;23&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;23 is a prime number.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter a string and find its length&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;string.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int slength;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;char x[81]; //Allowing the user to input a maximum of 80 characters.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the string : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;slength=strlen(x);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The length of the string &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; is &quot; &amp;lt;&amp;lt; slength &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in a string x as a screen input from the user.&lt;br /&gt;
It then determines the length of the string using the &#39;strlen&#39; function.&lt;br /&gt;
This length is finally outputted using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;goldfish&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The length of the string goldfish is 8.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter an integer and output the cube of that integer&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int cube(int x); //The prototype.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int a;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter an integer : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;a;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The cube of &quot; &amp;lt;&amp;lt; a &amp;lt;&amp;lt; &quot; is: &amp;nbsp;&quot; &amp;lt;&amp;lt; cube(a) &amp;lt;&amp;lt; endl; //Call the function cube(a).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Defining the function.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int cube(int x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;y=x*x*x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return(y);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in an integer a as a screen input from the user.&lt;br /&gt;
It then determines the integer&#39;s cube and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;8&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The cube of 8 is: &amp;nbsp;512&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter an integer and print out its successor&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void value(int);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter an integer : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The successor of &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; is &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;value(x);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void value(int x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;x++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in an integer x as a screen input from the user.&lt;br /&gt;
It then determines the successor of the integer and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;49&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The successor of 49 is 50.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;Program to draw 2 rectangles and fill 1 of them&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;graphics.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;ctype.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; int gd = DETECT,gm,errorcode; //Requesting auto-detection.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; //Initializing graphics and local variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; initgraph (&amp;amp;gd, &amp;amp;gm, &quot;d:\\bc3\\bgi&quot;); //Path where graphics drivers are installed&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; //Read result of initialization.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; errorcode = graphresult();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; //An error occured.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; if (errorcode != grOk)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot;Graphics error occured : \n&quot; &amp;lt;&amp;lt; grapherrormsg(errorcode) &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot;Press any key to stop : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; exit(1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; /*Drawing a rectangle having top LHS vertex at (300, 300)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; and bottom RHS vertex at (600, 400)*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; rectangle(300, 300, 600, 400);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; rectangle(100, 100, 200, 200);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; floodfill(120, 120, WHITE);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;nbsp; closegraph();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This graphics program draws two rectangles, but fills in only one of them with a white color using the &#39;floodfill&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;Program to draw circles&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;graphics.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;ctype.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int gd=DETECT,gm,errorcode; //Requesting auto-detection.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Initializing graphics and local variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;initgraph(&amp;amp;gd,&amp;amp;gm,&quot;d:\\bc3\\bgi&quot;); //Path where graphics drivers are installed&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Reading result of initialization.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;errorcode=graphresult();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//An error occured.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if (errorcode!=grOk)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Graphics error occured : \n&quot; &amp;lt;&amp;lt; grapherrormsg(errorcode) &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Press any key to stop : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;exit(1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;circle(200,200,50); //Drawing a circle having center(200,200) and radius(50).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;circle(300,203,40); //Drawing a circle having center(300,203) and radius(40).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;circle(500,303,80); //Drawing a circle having center(500,303) and radius(80).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;closegraph();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This graphics program draws three circles on the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;Program to change the background colors on the screen&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;graphics.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main (int)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int midx,midy,x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Initializing graphics and local variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;initgraph(&amp;amp;gdriver,&amp;amp;gmode,&quot;d:\\bc3\\bgi&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Reading result of initialization.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;errorcode=graphresult();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(errorcode!=grOk)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//An error occurred.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Graphics error occurred : %s \n&quot;,grapherrormsg(errorcode));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Press any key to stop : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;exit(1); //Terminate the program due to error.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;/*Changing the background color.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Note : Press enter to see the first screen as it is black and&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;it may appear as if the program has stopped running.*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=0;x&amp;lt;=15;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;setbkcolor(x);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;closegraph();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This graphics program changes the background colors on the screen gradually from black to white using the &#39;setbkcolor&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to change the foreground colors and draw circles on the screen&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;graphics.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main (int)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int midx,midy,x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Initializing graphics and local variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;initgraph(&amp;amp;gdriver,&amp;amp;gmode,&quot;d:\\bc3\\bgi&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Reading result of initialization.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;errorcode=graphresult();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(errorcode!=grOk)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//An error occurred.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Graphics error occurred : %s \n&quot;,grapherrormsg(errorcode));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Press any key to stop : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;exit(1); //Terminate the program due to error.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;/*Changing the foreground color.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Note : Press enter to exit the last screen as it is black and&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;it may appear as if the program has stopped running.*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=15;x&amp;gt;=0;x--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;setcolor(x);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;circle(20+(x*40),200,15);/*Changing x-coordinate by 50 each time so that&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;the circles do not overlap.*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cleardevice(); //Clearing the screen in the graphics mode.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;circle(200,200,50);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;closegraph();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This graphics program changes the foreground colors on the screen gradually from white to black, in-turn drawing circles of that foreground color, using the &#39;setcolor&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to write in different fonts on the screen&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;graphics.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main (int)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int midx,midy,fstyle;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Initializing graphics and local variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;initgraph(&amp;amp;gdriver,&amp;amp;gmode,&quot;d:\\bc3\\bgi&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Reading result of initialization.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;errorcode=graphresult();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(errorcode!=grOk)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//An error occurred.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Graphics error occurred : %s \n&quot;,grapherrormsg(errorcode));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Press any key to stop : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;exit(1); //Terminate the program due to error.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Changing the font styles using a loop.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cleardevice();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;settextstyle(DEFAULT_FONT,HORIZ_DIR,4);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;/*The above statement means that it is the default font in the horizontal&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;direction and the font size is 4.*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Outputting a message.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;outtextxy(200,200,&quot;Default font&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cleardevice();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;settextstyle(TRIPLEX_FONT,VERT_DIR,5);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;/*The above statement means that it is the triplex font in the vertical&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;direction and the font size is 5.*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Outputting a message.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;outtextxy(200,200,&quot;Triplex font&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cleardevice();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;settextstyle(GOTHIC_FONT,HORIZ_DIR,5);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;/*The above statement means that it is the default font in the horizontal&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;direction and the font size is 2.*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Outputting a message.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;outtextxy(200,200,&quot;Gothic font&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cleardevice();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;settextstyle(SMALL_FONT,VERT_DIR,5);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;/*The above statement means that it is the small font in the vertical&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;direction and the font size is 5.*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Outputting a message.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;outtextxy(200,200,&quot;Small font&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cleardevice();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;settextstyle(SANS_SERIF_FONT,HORIZ_DIR,5);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;/*The above statement means that it is the sans serif font in the horizontal&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;direction and the font size is 5.*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Outputting a message.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;outtextxy(200,200,&quot;Sans Serif font&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;closegraph();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This graphics program switches between default font, triplex font, gothic font, small font and sans serif font using the &#39;settextstyle&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to construct a 3-dimensional bar&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;graphics.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main (int)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int midx,midy,x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Initializing graphics and local variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;initgraph(&amp;amp;gdriver,&amp;amp;gmode,&quot;d:\\bc3\\bgi&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Reading result of initialization.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;errorcode=graphresult();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(errorcode!=grOk)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//An error occurred.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Graphics error occurred : %s \n&quot;,grapherrormsg(errorcode));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Press any key to stop : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;exit(1); //Terminate the program due to error.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;setfillstyle(EMPTY_FILL,0);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;/*The above statement means that the setfillstyle function is used to&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;set the fill style of the 3-d bar as a blank.*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;bar3d(200,200,300,450,10,1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;closegraph();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This graphics program outputs a rectangular slab (cuboid) on the screen using the &#39;bar3d&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to plot pixels&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;graphics.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main (int)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int midx,midy,x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Initializing graphics and local variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;initgraph(&amp;amp;gdriver,&amp;amp;gmode,&quot;d:\\bc3\\bgi&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Reading result of initialization.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;errorcode=graphresult();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(errorcode!=grOk)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//An error occurred.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Graphics error occurred : %s \n&quot;,grapherrormsg(errorcode));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;printf(&quot;Press any key to stop : &quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;exit(1); //Terminate the program due to error.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=40;x&amp;lt;120;x=x+10)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;putpixel(x,200,14); //Plots 1 pixel at position(x,200) with YELLOW color(14)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This graphics program plots eight yellow-colored pixels on the screen using the &#39;putpixel&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter two integers and print the quotient and remainder&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x,y,quotient,remainder;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter 2 integers greater than 0 : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x&amp;gt;&amp;gt;y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;quotient=x/y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;remainder=x-(quotient*y);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Quotient of &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; &amp;amp; &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot; = &quot; &amp;lt;&amp;lt; quotient &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Remainder&quot; &amp;lt;&amp;lt; &quot; = &quot; &amp;lt;&amp;lt; remainder &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in two integers x and y as a screen input from the user.&lt;br /&gt;
It then calculates their quotient and remainder and outputs them using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;23 4&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Quotient of 23 &amp;amp; 4 = 5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Remainder = 3&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter an integer and find out if it is even or odd&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter an integer : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(x%2==0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The number &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; is even.&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The number &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; is odd.&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in an integer x as a screen input from the user.&lt;br /&gt;
It then determines whether the integer is odd or even and outputs the appropriate message using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;86&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The number 86 is even.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter three integers and output the biggest integer&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x,y,z,biggest;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter 3 integers : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x&amp;gt;&amp;gt;y&amp;gt;&amp;gt;z;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;biggest=x&amp;gt;y?(x&amp;gt;z?x:z):(y&amp;gt;z?y:z);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The biggest integer out of the 3 integers you typed &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot;, &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot; &amp;amp; &quot; &amp;lt;&amp;lt; z &amp;lt;&amp;lt; &quot; is : &quot; &amp;lt;&amp;lt; &quot;\n&quot; &amp;lt;&amp;lt; biggest &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in three integers x, y and z as a screen input from the user.&lt;br /&gt;
It then determines the biggest integer of the three and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;63 73 79&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The biggest integer out of the 3 integers you typed 64, 73 &amp;amp; 79 is :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;79&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter three integers and output the biggest integer using IF&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x,y,z,biggest;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter 3 integers : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x&amp;gt;&amp;gt;y&amp;gt;&amp;gt;z;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;biggest=x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(y&amp;gt;biggest)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;biggest=y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(z&amp;gt;biggest)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;biggest=z;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The biggest integer out of the 3 integers you typed &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot;, &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot; &amp;amp; &quot; &amp;lt;&amp;lt; z &amp;lt;&amp;lt; &quot; is : &quot; &amp;lt;&amp;lt; &quot;\n&quot; &amp;lt;&amp;lt; biggest &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in three integers x, y and z as a screen input from the user.&lt;br /&gt;
It then determines the biggest integer of the three using the &#39;IF&#39; statement.&lt;br /&gt;
It then outputs the biggest integer using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;32 47 44&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The biggest integer out of the 3 integers you typed 32, 47 &amp;amp; 44 is :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;47&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter an integer and output its 15 multiples&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter an integer less than 2185 : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The first 15 multiples of &quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot; are : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int y=1;y&amp;lt;16;y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;\n&quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot;x&quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot;=&quot; &amp;lt;&amp;lt; x*y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in an integer x as a screen input from the user.&lt;br /&gt;
It then calculates the first fifteen multiples of that integer and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The first 15 multiples of 12 are :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x1=12&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x2=24&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x3=36&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x4=48&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x5=60&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x6=72&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x7=84&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x8=96&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x9=108&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x10=120&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x11=132&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x12=144&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x13=156&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x14=168&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12x15=180&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter the unit reading and output the customer&#39;s telephone bill&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;long int units,charge=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;float total;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;const int rent=25;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the number of units used : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;units;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(units&amp;gt;200)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;charge=(units-200)*20+150*40+50*60;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if(units&amp;gt;50)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;charge=(units-50)*40+50*60;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;charge=units*60;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;total=0.01*charge+rent;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;You have used &quot; &amp;lt;&amp;lt; units &amp;lt;&amp;lt; &quot; units.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Your total telephone bill is $&quot; &amp;lt;&amp;lt; total;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the number of units used (&#39;units&#39;) as a screen input from the user.&lt;br /&gt;
It then calculates the total telephone bill for the customer on the following basis :&lt;br /&gt;
A compulsory fee of $25, plus&lt;br /&gt;
60 cents per unit for the first 50 units,&lt;br /&gt;
40 cents per unit for the next 150 units,&lt;br /&gt;
20 cents per unit for anything above 200 units.&lt;br /&gt;
It then outputs the bill using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;250&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;You have used 250 units.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Your total bill is $125&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to count the number of words and characters in a sentence&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int countch=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int countwd=1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter your sentence in lowercase: &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;char ch=&#39;a&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;while(ch!=&#39;\r&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;ch=getche();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(ch==&#39; &#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;countwd++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;countch++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;\n Words = &quot; &amp;lt;&amp;lt; countwd &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Characters = &quot; &amp;lt;&amp;lt; countch-1 &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in a sentence as a screen input from the user.&lt;br /&gt;
It then determines the number of words and characters in the sentence using the &#39;WHILE&#39; loop and outputs them using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;this is a nice program&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Words = 5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Characters = 18&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter salary and output income tax and net salary&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int itrate;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;float salary,itax,nsalary=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the salary : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;salary;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(salary&amp;gt;15000)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;itax=salary*30/100;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;itrate=30;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if(salary&amp;gt;=7000)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;itax=salary*20/100;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;itrate=20;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;itax=salary*10/100;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;itrate=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;nsalary=salary-itax;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Salary = $&quot; &amp;lt;&amp;lt; salary &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Your income tax @ &quot; &amp;lt;&amp;lt; itrate &amp;lt;&amp;lt; &quot;% = $&quot; &amp;lt;&amp;lt; itax &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Your net salary = $&quot; &amp;lt;&amp;lt; nsalary &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the salary of the employee as a screen input from the user.&lt;br /&gt;
It then deducts the income tax from the salary on the following basis :&lt;br /&gt;
30% income tax if the salary is above $15000.&lt;br /&gt;
20% income tax if the salary is between $7000 and $15000.&lt;br /&gt;
10% income tax if the salary is below $7000.&lt;br /&gt;
The salary, income tax and the net salary is then outputted using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12000&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Salary = $12000&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Your income tax @ 20% = $2400&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Your net salary = $9600&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to find the roots of a quadratic equation&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;math.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;float a,b,c,d,root1,root2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the 3 coefficients a, b, c : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;a&amp;gt;&amp;gt;b&amp;gt;&amp;gt;c;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(!a){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(!b)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Both a and b cannot be 0 in ax^2 + bx + c = 0&quot; &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;d=-c/b;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The solution of the linear equation is : &quot; &amp;lt;&amp;lt; d &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;d=b*b-4*a*c;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(d&amp;gt;0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;root1=(-b+sqrt(d))/(2*a);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;root2=(-b-sqrt(d))/(2*a);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The first root = &quot; &amp;lt;&amp;lt; root1 &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The second root = &quot; &amp;lt;&amp;lt; root2 &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the values of the three coefficients a, b, and c as a screen input from the user.&lt;br /&gt;
It then determines the roots of the quadratic equation using the formula ax^2 + bx + c = 0.&lt;br /&gt;
The two roots are then outputted using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;4 4 -3&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The first root = 0.5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The second root = -1.5&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter an integer and output it in the reversed form&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;long int num1,num2,rnum=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter an integer : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;num1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;num2=num1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;rnum=rnum*10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int digit=num1%10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;rnum+=digit;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;num1/=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;while(num1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The integer you typed is &quot; &amp;lt;&amp;lt; num2 &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The reversed integer is &quot; &amp;lt;&amp;lt; rnum &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in an integer num1 as a screen input from the user.&lt;br /&gt;
It then outputs the integer in its reversed form using the &#39;cout&#39; command.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;987&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The integer you typed is 987.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The reversed integer is 789.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u&gt;Program to enter an integer and print its total value based on the formula&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&#39;x - 1/3!x^3 + 1/5!x^5 - 1/7!x^7 + 1/9!x^9&#39;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;math.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;float factorial=1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;float num,tot,term,total;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int i,n=20,index,j=1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter a single-digit integer : \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;num;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;tot=num;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;total=num;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(i=2,index=3;i&amp;lt;=n;i++,index+=2)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(j=1,factorial=1;j&amp;lt;=index;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;factorial*=j;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;tot=tot*pow((double)(-1),(double)(2*i-1))*num*num;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;term=tot/factorial;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;total+=term;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Total = &quot; &amp;lt;&amp;lt; total &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in an integer num as a screen input from the user.&lt;br /&gt;
It then calculates the total value of the integer based on the formula x - 1/3!x^3 + 1/5!x^5 - 1/7!x^7 + 1/9!x^9.&lt;br /&gt;
It then outputs the final answer using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;3&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Total = 0.14112&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to find the sum of each row &amp;amp; column of a matrix of size n x m and if matrix is square, find the sum of the diagonals also.&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int A[10][10],m,n,x,y,sum=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Create a Matrix A&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter number of rows and columns in Matrix A : \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;n&amp;gt;&amp;gt;m;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter elements of Matrix A : \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=1;x&amp;lt;n+1;++x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(y=1;y&amp;lt;m+1;++y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;A[x][y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Find sum of each row&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=1;x&amp;lt;n+1;++x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;A[x][m+1]=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(y=1;y&amp;lt;m+1;++y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;A[x][m+1]=A[x][m+1]+A[x][y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Find sum of each column&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(y=1;y&amp;lt;m+1;++y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;A[n+1][y]=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=1;x&amp;lt;n+1;++x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;A[n+1][y]+=A[x][y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;\nMatrix A, Row Sum (Last Column)&quot; &amp;lt;&amp;lt; &quot; and Column Sum (Last Row) : \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=1;x&amp;lt;n+1;++x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(y=1;y&amp;lt;m+2;++y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; A[x][y] &amp;lt;&amp;lt; &quot; &amp;nbsp; &amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Print sum of each column&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;x=n+1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(y=1;y&amp;lt;m+1;++y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; A[x][y] &amp;lt;&amp;lt; &quot; &amp;nbsp; &amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(m==n)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=1;x&amp;lt;m+1;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(y=1;y&amp;lt;n+1;y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(x==y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;sum+=A[x][y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(y==m-(x+1))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;sum+=A[x][y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Sum of diagonal elements is : &quot; &amp;lt;&amp;lt; sum &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the number of rows (n) and columns (m) as well as the elements as a screen input in a matrix n x m.&lt;br /&gt;
It then calculates the sum of each row and each column and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
Also, if it is a square matrix, it calculates the sum of diagonal elements and prints it out.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;3 3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;9 8 7 6 5 4 3 2 1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Matrix A, Row Sum(Last Column) and Column Sum(Last Row) :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;9 &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; 7 &amp;nbsp; &amp;nbsp; 24&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;6 &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; &amp;nbsp; 4 &amp;nbsp; &amp;nbsp; 15&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;3 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; 6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;18 &amp;nbsp; &amp;nbsp; 15 &amp;nbsp; &amp;nbsp; 12&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Sum of diagonal elements is : 15&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to convert 2-digit octal number into binary number and print it&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void octobin(int);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int a;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter a 2-digit octal number : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;a;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;octobin(a);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void octobin(int oct)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;long bnum=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int A[6];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Each octal digit is converted into 3 bits, 2 octal digits = 6 bits.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int a1,a2,quo,rem;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a2=oct/10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a1=oct-a2*10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int x=0;x&amp;lt;6;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;A[x]=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Storing the remainders of the one&#39;s octal digit in the array.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (x=0;x&amp;lt;3;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;quo=a1/2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;rem=a1%2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;A[x]=rem;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a1=quo;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Storing the remainders of the ten&#39;s octal digit in the array.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=3;x&amp;lt;6;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;quo=a2/2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;rem=a2%2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;A[x]=rem;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a2=quo;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Obtaining the binary number from the remainders.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=x-1;x&amp;gt;=0;x--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;bnum*=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;bnum+=A[x];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The binary number for the octal number &quot; &amp;lt;&amp;lt; oct &amp;lt;&amp;lt; &quot; is &quot; &amp;lt;&amp;lt; bnum &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in a two-digit octal number a as a screen input from the user.&lt;br /&gt;
It then converts the octal number into a binary number and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;13&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The binary number for the octal number 13 is 1011.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to convert days into years and weeks&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int days,years,weeks,num1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the number of days : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;days;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;years=days/365;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;num1=days-(years*365);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;weeks=days/7;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;num1=days-(weeks*7);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; days &amp;lt;&amp;lt; &quot; days = &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; weeks &amp;lt;&amp;lt; &quot; weeks OR &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; years &amp;lt;&amp;lt; &quot; years.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the number of days days as a screen input from the user.&lt;br /&gt;
It then converts the days into years as well as weeks and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;789&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;789 days =&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;112 weeks OR&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;2 years.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to find the total days in the year till date&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int day,month,total;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int days_per_month[12]={31,28,31,30,31,30,31,31,30,31,30,31};&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the month : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;month;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the day : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;day;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;total=day;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int x=0;x&amp;lt;month-1;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;total+=days_per_month[x];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The number of days in this year till date = &quot; &amp;lt;&amp;lt; total &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the current day and month as a screen input from the user.&lt;br /&gt;
It then calculates the total number of days in the current year till date and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The number of days in this year till date = 163&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to compute the Fibonacci series&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int a,b,x,y,num1,ct;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;b=1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the number of terms (less than 25) : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;num1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; a &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; b &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(ct=1;ct&amp;lt;=num1-2;ct++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;x=a+b;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;y=a;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a=b;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;b=x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the number of terms num1 in the fibonacci series (less than 25) as a screen input from the user.&lt;br /&gt;
It then computes the fibonacci series and prints it out using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;8&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;13&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;21&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;34&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;55&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;89&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to identify if an input is a symbol, digit or character&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;char charac;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter your input : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;charac;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(((charac&amp;gt;=&#39;A&#39;)&amp;amp;&amp;amp;(charac&amp;lt;=&#39;Z&#39;))||((charac&amp;gt;=&#39;a&#39;)&amp;amp;&amp;amp;(charac&amp;lt;=&#39;z&#39;)))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Your input &quot; &amp;lt;&amp;lt; charac &amp;lt;&amp;lt; &quot; is a character.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if((charac&amp;gt;=&#39;0&#39;)&amp;amp;&amp;amp;(charac&amp;lt;=&#39;9&#39;))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Your input &quot; &amp;lt;&amp;lt; charac &amp;lt;&amp;lt; &quot; is a digit.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Your input &quot; &amp;lt;&amp;lt; charac &amp;lt;&amp;lt; &quot; is a symbol.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in a character, a digit or a symbol charac as a screen input from the user.&lt;br /&gt;
It then identifies whether the input is a symbol, a digit or a character and outputs the appropriate message using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Your input # is a symbol.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter a letter and output the next 2 letters&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;char charac;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter your letter : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;charac;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The 2 letters are : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; (char)(charac-1) &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; (char)(charac+1) &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in a letter charac of the English alphabet as a screen input from the user.&lt;br /&gt;
It then determines its previous letter and next letter and prints it out using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;x&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The next 2 letters after x are :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;y&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;z&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter a character and output its ASCII code&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;char charac;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the character : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;charac;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int num1=charac;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The ASCII code for &quot; &amp;lt;&amp;lt; charac &amp;lt;&amp;lt; &quot; is &quot; &amp;lt;&amp;lt; num1 &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in any character charac as a screen input from the user.&lt;br /&gt;
It then finds out its ASCII code and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;a&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The ASCII code for a is 97.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to print the first 10 lines of pascal&#39;s triangle&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iomanip.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;long triangle(int x,int y);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;const lines=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (int i=0;i&amp;lt;lines;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (int j=1;j&amp;lt;lines-i;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; setw(2) &amp;lt;&amp;lt; &quot; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (int j=0;j&amp;lt;=i;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; setw(4) &amp;lt;&amp;lt; triangle(i,j);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;long triangle(int x,int y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(x&amp;lt;0||y&amp;lt;0||y&amp;gt;x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;long c=1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (int i=1;i&amp;lt;=y;i++,x--)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;c=c*x/i;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return c;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program does not take in any screen inputs from the user.&lt;br /&gt;
It just prints out the first ten lines of the pascal&#39;s triangle using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;No input from the user for this program.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;1 &amp;nbsp;10 &amp;nbsp;45 &amp;nbsp;120 &amp;nbsp;210 &amp;nbsp;252 &amp;nbsp;210 &amp;nbsp;120 &amp;nbsp;45 &amp;nbsp;10 &amp;nbsp;1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to convert temperatures from Celsius to Fahrenheit and vice versa&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int choice;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;float ctemp,ftemp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;1.Celsius to Fahrenheit&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;2.Fahrenheit to Celsius&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Choose between 1 &amp;amp; 2 : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;choice;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if (choice==1)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the temperature in Celsius : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;ctemp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;ftemp=(1.8*ctemp)+32;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Temperature in Fahrenheit = &quot; &amp;lt;&amp;lt; ftemp &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the temperature in Fahrenheit : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;ftemp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;ctemp=(ftemp-32)/1.8;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Temperature in Celsius = &quot; &amp;lt;&amp;lt; ctemp &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the user&#39;s choice choice as a screen input from the user.&lt;br /&gt;
It then asks the user for a temperature in Celsius or Fahrenheit depending on the choice.&lt;br /&gt;
It then converts the Celsius temperature to Fahrenheit or vice versa and prints it out using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;98.6&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Temperature in Celcius = 37&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter a sentence and output the number of uppercase &amp;amp; lowercase consonants, uppercase &amp;amp; lowercase vowels in sentence.&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;char line[80];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int number_of_vowels,uc,lc,uv,lv;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;uc=lc=uv=lv=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter your sentence : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin.getline(line,80);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int x=0; line[x]!=&#39;\0&#39;;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(line[x]==&#39;A&#39;||line[x]==&#39;E&#39;||line[x]==&#39;I&#39;||line[x]==&#39;O&#39;||line[x]==&#39;U&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;uv++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if(line[x]==&#39;a&#39;||line[x]==&#39;e&#39;||line[x]==&#39;i&#39;||line[x]==&#39;o&#39;||line[x]==&#39;u&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;lv++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if(line[x]&amp;gt;+65&amp;amp;&amp;amp;line[x]&amp;lt;=90)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;uc++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if (line[x]&amp;gt;=97&amp;amp;&amp;amp;line[x]&amp;lt;=122)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;lc++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Printing the output.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Uppercase Consonants = &quot; &amp;lt;&amp;lt; uc &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Lowercase Consonants = &quot; &amp;lt;&amp;lt; lc &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Uppercase Vowels = &quot; &amp;lt;&amp;lt; uv &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Lowercase Vowels = &quot; &amp;lt;&amp;lt; lv &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;number_of_vowels=uv+lv;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Number of vowels = &quot; &amp;lt;&amp;lt; number_of_vowels &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in a sentence as a screen input from the user.&lt;br /&gt;
It then computes the number of uppercase and lowercase consonants, uppercase and lowercase vowels and the total number of vowels.&lt;br /&gt;
It then outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;These programs are truly AMAZING&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Uppercase Consonants = 5.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Lowercase Consonants = 13.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Uppercase Vowels = 3.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Lowercase Vowels = 7.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Number of vowels = 10&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;Program to enter 10 integers in a single-dimension array and then print out the array in ascending order&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int array[10],t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int x=0;x&amp;lt;10;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter Integer No. &quot; &amp;lt;&amp;lt; x+1 &amp;lt;&amp;lt; &quot; : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;array[x];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (x=0;x&amp;lt;10;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int y=0;y&amp;lt;9;y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(array[y]&amp;gt;array[y+1])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;t=array[y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;array[y]=array[y+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;array[y+1]=t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Array in ascending order is : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (x=0;x&amp;lt;10;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; array[x];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the ten integers array[x] to be stored in the single-dimensional array as a screen input from the user.&lt;br /&gt;
It then sorts out these ten integers into ascending order and prints them out using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;43&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;67&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;53&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;21&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;78&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;92&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;48&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;95&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;8&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Array in ascending order is :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;8&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;21&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;43&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;48&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;53&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;67&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;78&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;92&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;95&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to find the sum of either of the diagonals of a 4 x 4 matrix&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int A[4][4],sum=0; //Reading the matrix.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter the elements of the matrix : &quot; &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(int y=0;y&amp;lt;4;y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for (int x=0;x&amp;lt;4;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Element &quot; &amp;lt;&amp;lt; x+1 &amp;lt;&amp;lt; &quot;, &quot; &amp;lt;&amp;lt; y+1 &amp;lt;&amp;lt; &quot; : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;A[x][y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;//Sum of either of the diagonal elements.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(x=0;x&amp;lt;4;x++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;for(y=0;y&amp;lt;4;y++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(x==y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;sum+=A[x][y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;else if(y==4-(1+1));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;sum+=A[x][y];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Sum of either of the diagonal elements is : &quot; &amp;lt;&amp;lt; sum;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in the elements A[x][y] of the 4 x 4 matrix as a screen input from the user.&lt;br /&gt;
It then calculates the sum of either of its diagonals and outputs it using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;4&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;7&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;8&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;9&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;10&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;11&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;12&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;13&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;14&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;15&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;16&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Sum of either of the diagonal elements is : 34&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Program to enter three integers and output the smallest integer using IF&lt;/i&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Program:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;clrscr();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;int x,y,z,smallest;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;Enter 3 integers : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cin&amp;gt;&amp;gt;x&amp;gt;&amp;gt;y&amp;gt;&amp;gt;z;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;smallest=x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(y&amp;lt;smallest)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;smallest=y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;if(z&amp;lt;smallest)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;smallest=z;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; &quot;The smallest integer out of the 3 integers you typed &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &quot;, &quot; &amp;lt;&amp;lt; y &amp;lt;&amp;lt; &quot; &amp;amp; &quot; &amp;lt;&amp;lt; z &amp;lt;&amp;lt; &quot; is : &quot; &amp;lt;&amp;lt; &quot;\n&quot; &amp;lt;&amp;lt; smallest &amp;lt;&amp;lt; &quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
This program takes in three integers x, y and z as a screen input from the user.&lt;br /&gt;
It then determines the smallest integer of the three and prints it out using the &#39;cout&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Input:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;82 78 86&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;The smallest integer out of the 3 integers you typed 82, 78 &amp;amp; 86 is :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;78&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/6628341852675891053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/05/c-programs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/6628341852675891053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/6628341852675891053'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/05/c-programs.html' title='C++ PROGRAMS'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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-757042416104057693.post-1423674131009767559</id><published>2012-05-10T07:06:00.000+05:30</published><updated>2012-05-10T07:07:37.869+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>UNIX &amp; SHELL PROGRAMMING LAB ASSIGNMENT 4TH SEM SOLUTIONS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;1. Use the echo command to display the line&amp;nbsp;&lt;/b&gt;&lt;b&gt;UNIX is fun to learn&lt;/b&gt;&lt;br /&gt;
Ans :- echo &quot;UNIX is fun to learn&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Redirect the displayed line to a file. Append the outputs of the commands to show&amp;nbsp;&lt;/b&gt;&lt;b&gt;the users logged into your system, your login account and the current date in the&amp;nbsp;&lt;/b&gt;&lt;b&gt;dd-mm-yyyy format to the file.&lt;/b&gt;&lt;br /&gt;
Ans :-who -u | cat &amp;gt; myfile&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;date +&#39;%d-%m-%Y&#39; | cat &amp;gt; myfile&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;2. Assuming you have a directory containing the following files:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;sprite, cola, choco, orange, book, lemon, lotus, apple&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Use the ls command to list only those files that&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) consist of four letters&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b) begin with the letter c&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;c) end with the letter e&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;d) have the second letter o&lt;/b&gt;&lt;br /&gt;
a)Ans :- ls ????&lt;br /&gt;
b)Ans :-&amp;nbsp;c*.*&lt;br /&gt;
c)Ans :-&amp;nbsp;*c.*&lt;br /&gt;
d)Ans :-&amp;nbsp;?o.*&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;3. For a file named myfile in the working directory, do the following:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) give everyone permission to read myfile. No other privilege is to be changed&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b) allow the owner and group members to read and write the file. All privileges are&amp;nbsp;&lt;/b&gt;&lt;b&gt;to be removed for everyone else.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;c) remove write privileges from everyone except the owner&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;d) allow the owner and group members to execute myfile and give only the owner&amp;nbsp;&lt;/b&gt;&lt;b&gt;permission to read or write to it.&lt;/b&gt;&lt;br /&gt;
a)Ans :- chmod a+r myfile&lt;br /&gt;
b)Ans:- chmod 660 myfile&lt;br /&gt;
c)Ans:- chmod go-w myfile&lt;br /&gt;
d)Ans:- chmod 710 myfile , chmod ug=x,u+rw myfile&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4. For a directory myfolder in your working directory, do the following:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) allow everyone to list files in myfolder. No other privileges are to be changed.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;b) allow the owner to and group members to list, remove or add files. All privileges&amp;nbsp;&lt;/b&gt;&lt;b&gt;are to be removed from everyone else.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;c) give write privileges to everyone except the owner&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;d) allow the owner and group members to execute myfolder. Only the owner gets&amp;nbsp;&lt;/b&gt;&lt;b&gt;read or write permission.&lt;/b&gt;&lt;br /&gt;
a)Ans:- chmod a+rx myfolder&lt;br /&gt;
b)Ans:-chmod 770 myfolder&lt;br /&gt;
c)Ans:- chmod go+w myfolder&lt;br /&gt;
d)Ans:- chmod 710 my folder&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5. Put a long-running process in the background and check the accuracy of the sleep&amp;nbsp;&lt;/b&gt;&lt;b&gt;command.&lt;/b&gt;&lt;br /&gt;
Ans:- date;sleep10;date$&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;6. The ls command with the –R option lists the files in the specified directory and also&amp;nbsp;&lt;/b&gt;&lt;b&gt;subdirectories, if any. Use this with a suitable pip-and-filter arrangement to&amp;nbsp;&lt;/b&gt;&lt;b&gt;determine whether a file exists in the account logged in.&lt;/b&gt;&lt;br /&gt;
Ans:- echo “Enter the name to search :”&lt;br /&gt;
read file&lt;br /&gt;
dat =’ls-R $ Home 1 grep $ file’&lt;br /&gt;
if [-s “$ dat”]&lt;br /&gt;
then&lt;br /&gt;
echo “$file File exist”&lt;br /&gt;
else&lt;br /&gt;
echo “$file File not exist”&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7. Write an interactive shell using I/O redirection to accept input from file1, put stdout&amp;nbsp;&lt;/b&gt;&lt;b&gt;in file2 and stderr in file3.&lt;/b&gt;&lt;br /&gt;
Ans:- echo “Enter input file name:”&lt;br /&gt;
read f1&lt;br /&gt;
echo “Enter output file name:”&lt;br /&gt;
read f2&lt;br /&gt;
echo “Enter error file name:”&lt;br /&gt;
read f3&lt;br /&gt;
cat &amp;lt;$f1 , cat &amp;gt;$f2 , cat &amp;gt;$f3&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8. Write a shell program to extract and sort all the users in the file system. Use the&amp;nbsp;&lt;/b&gt;&lt;b&gt;/etc/passwd file as input.&lt;/b&gt;&lt;br /&gt;
Ans:- first (with pipe and filter)&lt;br /&gt;
Cut –d ”:” –f1/etc/passwd | sort&lt;br /&gt;
Second (without pipe and filter)&lt;br /&gt;
Cut –d “:” –f1/etc/passwd&amp;gt;tmp sort&amp;lt;temp&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;9. Write a shell program to translate the /etc/passwd file into uppercase and translate&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;the “:” delimiter into tab characters.&lt;/b&gt;&lt;br /&gt;
Ans:- tr ”[a-z:]” “[A-Z:]” &amp;lt;/etc/passwd&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;10. Write a shell program using if-the-else to test whether a variable name is a directory&amp;nbsp;&lt;/b&gt;&lt;b&gt;or a file.&lt;/b&gt;&lt;br /&gt;
Ans:- echo “Enter a name”&lt;br /&gt;
read name&lt;br /&gt;
if [-f $name]&lt;br /&gt;
then&lt;br /&gt;
echo “$name is a file”&lt;br /&gt;
then&lt;br /&gt;
echo “$name is a directory”&lt;br /&gt;
else&lt;br /&gt;
echo “$name is not a file nor a directory.”&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;11. Write a shell program in which an infinite loop prompts a user for file names to be&amp;nbsp;&lt;/b&gt;&lt;b&gt;removed and remove the files. Use trap to exit when finished.&lt;/b&gt;&lt;br /&gt;
Ans:- trap ‘exit’ INT&lt;br /&gt;
While [true]&lt;br /&gt;
do&lt;br /&gt;
echo “Enter filename to be deleted (ctr+c to exit)”&lt;br /&gt;
read file&lt;br /&gt;
rm $file&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;12. Write a background command to edit all the files in the directory replacing the word&amp;nbsp;&lt;/b&gt;&lt;b&gt;while with until.&lt;/b&gt;&lt;br /&gt;
Ans:- replace while until __*s&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;13. Write a shell program to test for arguments arg1, arg2 and arg3. If they are not&amp;nbsp;&lt;/b&gt;&lt;b&gt;present, prompt the user for them.&lt;/b&gt;&lt;br /&gt;
Ans:- if [$ # -lt 3]&lt;br /&gt;
then&lt;br /&gt;
arg=’expr $ # +1’&lt;br /&gt;
while [$ arg –le 3]&lt;br /&gt;
do&lt;br /&gt;
echo “Enter argument number $arg:”&lt;br /&gt;
read val&lt;br /&gt;
set $* $val&lt;br /&gt;
arg=’expr $arg +1’&lt;br /&gt;
done&lt;br /&gt;
fi&lt;br /&gt;
echo “Argument on command line entered by you are:”&lt;br /&gt;
echo $*&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;14. Write a shell program that adds the integers 1 to 100 and displays the result with a&amp;nbsp;&lt;/b&gt;&lt;b&gt;suitable message.&lt;/b&gt;&lt;br /&gt;
Ans:- s=0&lt;br /&gt;
c=1&lt;br /&gt;
while [$c-le 100]&lt;br /&gt;
do&lt;br /&gt;
s=’expr $s + $c’&lt;br /&gt;
c=’expr $c + 1’&lt;br /&gt;
done&lt;br /&gt;
echo “Sum of 1 to 100 is $s”&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;15. Using awk, sum the file sizes in your working directory and print the results.&lt;/b&gt;&lt;br /&gt;
Ans:- awk ’ {total += length ($0)}&lt;br /&gt;
END ‘{Print total}’ * (sameline)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;16. Using a case statement, write a shell program to read a command (eg., who, cal, ls,&amp;nbsp;&lt;/b&gt;&lt;b&gt;ps) from the user and execute it.&lt;/b&gt;&lt;br /&gt;
Ans:- echo “Enter any command:”&lt;br /&gt;
read com&lt;br /&gt;
case $com in&lt;br /&gt;
who ) who;;&lt;br /&gt;
cal) cal;;&lt;br /&gt;
ls) ls;;&lt;br /&gt;
ps) ps;;&lt;br /&gt;
*) echo “Invalid command”&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/1423674131009767559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/05/unix-shell-programming-lab-assignment.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1423674131009767559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/1423674131009767559'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/05/unix-shell-programming-lab-assignment.html' title='UNIX &amp; SHELL PROGRAMMING LAB ASSIGNMENT 4TH SEM SOLUTIONS'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-501967696614301303</id><published>2012-04-24T15:31:00.001+05:30</published><updated>2012-04-24T15:55:55.389+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>JAVA LAB ASSIGNMENT 4TH SEM SOLUTIONS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;//1. Write a program to print “Welcome to Java Programming” on the screen.&lt;/b&gt;&lt;br /&gt;
class welcome&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String a[])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Welcome to Java Progamming&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//2. Write a program to check whether the given two numbers are equal. If not then find the greater of the given two numbers.&lt;/b&gt;&lt;br /&gt;
import java.lang.*;&lt;br /&gt;
class Comparision&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String args[])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int x,y;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; x=67;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; y=97;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(x==y)&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; System.out.println(&quot;Given two number are equal&quot;);&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; else if(x&amp;gt;y)&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; System.out.println(x+ &quot; is greater than &quot; +y);&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; else&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; System.out.println(y+ &quot; is greater than &quot; +x);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//3. Using switch and case statements write a program to add, subtract, multiply and divide the two numbers.&lt;/b&gt;&lt;br /&gt;
import java.io.*;&lt;br /&gt;
public class BasicCalc&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String a[])throws IOException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DataInputStream in = new DataInputStream(System.in);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;What do you want to do? \n 1. Add, \n 2. Substract, \n 3. Multiply, \n 4. Divide&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int i = Integer.parseInt(in.readLine());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //int i=4;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int m, n;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; m = 10;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; n = 5;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; switch (i)&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; case 1:&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; System.out.println(&quot;Result after Adding&quot; + &quot; &quot; + (m + n));&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; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case 2:&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; System.out.println(&quot;Result after Substracting&quot; + &quot; &quot; + (m - n));&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; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case 3:&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; System.out.println(&quot;Result after Multiplying&quot; + &quot; &quot; + (m * n));&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; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case 4:&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; System.out.println(&quot;Result after Dividing&quot; + &quot; &quot; + (m / n));&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; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; default:&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; System.out.println(&quot;This is not a valid input parameter&quot;);&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; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//4. Using for loop write a program to print the table of a given number on the screen.&lt;/b&gt;&lt;br /&gt;
import java.util.Scanner;&lt;br /&gt;
public class Table&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String args[])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int num,i,res;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Scanner s = new Scanner(System.in);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.print(&quot;Enter a number : &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; num =s.nextInt();&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; for(i=1; i&amp;lt;=10; i++)&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; res=i*num;&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; System.out.println(res);&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; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//5. Write a program to find the even sum and the odd sum in the given array.&lt;/b&gt;&lt;br /&gt;
class EvenOddSum&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; static int sum1, sum2;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; static int n[] ={ 2, 3, 4, 5, 6, 7, 92, 65, 45, 87 };&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String a[])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt;&amp;gt;&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; if (n[i] % 2 == 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(n[i] + &quot; &quot; + &quot;*&quot; + &quot; &quot; + &quot;Even&quot;);&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; sum1 = sum1 + n[i];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(n[i] + &quot; &quot; + &quot;*&quot; + &quot; &quot; + &quot;Odd&quot;);&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; sum2 = sum2 + n[i];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;sum of even no. is &quot; + sum1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;sum of odd no. is &quot; + sum2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//6. Write a program to print all the prime numbers between n and m.&lt;/b&gt;&lt;br /&gt;
import java.io.*;&lt;br /&gt;
class PrimeNumber&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args) throws Exception&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; BufferedReader bf = new BufferedReader(&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; new InputStreamReader(System.in));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Enter 1st number: &quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int num = Integer.parseInt(bf.readLine());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Enter 2nd number: &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int num2 = Integer.parseInt(bf.readLine());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Prime numbers are:&amp;nbsp; &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = num; i &amp;lt;num2; i++)&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; int j;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (j=2;&amp;nbsp; j&amp;lt;i;&amp;nbsp; j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int n = i % j;&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; if (n == 0)&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; {&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; break;&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; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (i == j)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.print(&quot;&amp;nbsp; &quot; + i);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//7. Write a program to add the two matrices.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
class MatrixSum&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static void main(String[] args)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int array[][]= {{4,5,6},{6,8,9}};&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int array1[][]= {{5,4,6},{5,6,7}};&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(&quot;Number of Row = &quot; + array.length);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(&quot;Number of Column = &quot; + array[1].length);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int l= array.length;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(&quot;Matrix 1 : &quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int i = 0; i &amp;lt; l; i++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for(int j = 0; j &amp;lt;= l; j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;System.out.print(&quot; &quot;+ array[i][j]);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int m= array1.length;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(&quot;Matrix 2 : &quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int i = 0; i &amp;lt; m; i++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for(int j = 0; j &amp;lt;= m; j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;System.out.print(&quot; &quot;+array1[i][j]);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(&quot;Addition of both matrix : &quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int i = 0; i &amp;lt; m; i++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for(int j = 0; j &amp;lt;= m; j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;System.out.print(&quot; &quot;+(array[i][j]+array1[i][j]));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;//8. Write a class circle which consists of functions getdata() and area(), and also write a main program to create a circle object and to find the area by calling the function area () in circle class and display the result on the screen.&lt;/b&gt;&lt;br /&gt;
import java.lang.*;&lt;br /&gt;
import java.io.*;&lt;br /&gt;
&lt;br /&gt;
class Circle&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; double r,a;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; static final double p=3.14;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void getData() &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try&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; BufferedReader br=new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Enter the radius of the circle :&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; r=Double.parseDouble(br.readLine());&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; catch(Exception e)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void area() &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; a=p*(r*r);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.print(&quot;The area of the circle is :&quot;+a);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String args[])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Circle c=new Circle();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; c.getData();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; c.area();&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;//9. Write a class Box with the variable width, depth and height and constructor to assigning the values for these variables and a method to find the volume of the box and also write the main program, which creates the box object, and find the volume of the box. Print the result on the screen.&lt;/b&gt;&lt;br /&gt;
class classBox&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; static int width, depth, height;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; dimention()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; width = 10;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; depth = 5;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; height = 20;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; void volume()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int box = width * depth * height;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;volume of box is :&quot; + &quot; &quot; + box);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String args[])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; dimention box = new dimention();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; box.volume();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//10. Write a program to demonstrate the method overloading for sum ( ) function.&lt;/b&gt;&lt;br /&gt;
class demo&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; void add(int a)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(a);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; void add(int x, int y)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(x + y);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String args[])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; demo q = new demo();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; q.add(10);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; q.add(20, 30);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//11. Write a program to demonstrate the overriding of constructor methods for the program no. 9.&lt;/b&gt;&lt;br /&gt;
class A&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; String s = &quot;Ravish&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; void display()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(s);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
class B extends A&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; void display()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(s + &quot; &quot; + &quot;Kumar&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String args[])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; B over = new B();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; over.display();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//12. Write a program to concatenate two strings &lt;/b&gt;&lt;br /&gt;
class Con&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String a[])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String a1 = &quot;Vikash&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String a2 = &quot;Sharma&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(a1.concat(&quot; &quot; + a2));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//13. Write a program to find whether a given string is a palindrome or not.&lt;/b&gt;&lt;br /&gt;
class Palin&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String []s)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int i=0,j;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; j=s[0].length()-1;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; while(i&amp;lt;j)&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; if(s[0].charAt(i) != s[0].charAt(j))&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; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; i++;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; j--;&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; if(i&amp;lt;j)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Not palin&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Palin&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//14. Write a program to change the case of the given string&lt;/b&gt;.&lt;br /&gt;
import java.io.*;&lt;br /&gt;
class case&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String ar[]) throws IOException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String str;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Enter any String&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;and to quit write “ Exit“ &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;\n&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; do&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; str = br.readLine();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int textLength = str.length();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; char ch = Character.toUpperCase(str.charAt(i));&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; System.out.print(ch);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; } while (!str.equals(&quot;exit&quot;));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;//15. Write a program to create a thread by extending the thread class.&lt;/b&gt;&lt;br /&gt;
import java.lang.*;&lt;br /&gt;
class Child extends Thread&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Child()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; super(&quot;Thread Demo&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Child Thread :&quot; +this);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; start();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void run()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try &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; for(int i = 5; i &amp;gt; 0; i--)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Child Thread: &quot; + i);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.sleep(1000);&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; }&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; catch (InterruptedException e) &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; System.out.println(&quot;Child interrupted.&quot;);&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; System.out.println(&quot;Exiting child thread.&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
class ExtendThread &lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String args[]) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; new Child();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try &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; for(int i = 5; i &amp;gt; 0; i--) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Main Thread: &quot; + i);&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; Thread.sleep(1500);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&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;&amp;nbsp; } &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; catch (InterruptedException e) &amp;nbsp;&amp;nbsp;&amp;nbsp; &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; System.out.println(&quot;Main thread interrupted.&quot;);&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; System.out.println(&quot;Main thread exiting.&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vslifehacker.blogspot.com/feeds/501967696614301303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vslifehacker.blogspot.com/2012/04/java-lab-assignment-4th-sem-solutions.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/501967696614301303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/501967696614301303'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/04/java-lab-assignment-4th-sem-solutions.html' title='JAVA LAB ASSIGNMENT 4TH SEM SOLUTIONS'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-780216404433650620</id><published>2012-04-18T10:41:00.001+05:30</published><updated>2012-04-18T11:53:48.929+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU ASSIGNMENT 4TH SEM TB - 44 - SOFTWARE ENGINEERING</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;font-size: x-large;&quot;&gt;PART – A&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;I. Fill up the blanks using suitable word or phrase in the following sentences:&lt;/b&gt;&lt;br /&gt;
1) Software is a set of_____________that when executed provide desired function&lt;br /&gt;
and performance.&lt;br /&gt;
Ans. INSTRUCTIONS OR COMPUTER PROGRAMS&lt;br /&gt;
2) Software is a process and _____________.&lt;br /&gt;
Ans.:- PRODUCT&lt;br /&gt;
3) The_____________method is also known as the iterative enhancement model.&lt;br /&gt;
Ans. INCREMENTAL MODEL&lt;br /&gt;
4) An external entity is represented using _____________ in a DFD.&lt;br /&gt;
Ans. EXTERNAL DESIGN INTERFACE&lt;br /&gt;
5) The software requirements deal with the_____________of the proposed system.&lt;br /&gt;
Ans.- REQUIREMENTS&lt;br /&gt;
6) The weakest coupling that is most desirable is _____________.&lt;br /&gt;
Ans.- DATA COUPLING&lt;br /&gt;
7) The three important levels of abstraction are _____________,_____________,&lt;br /&gt;
and_____________.&lt;br /&gt;
Ans. PHYSICAL LEVEL, LOGICAL LEVEL ,VIEW LEVEL&lt;br /&gt;
8) P.D.L. stands for_____________.&lt;br /&gt;
Ans. PROGRAM DESIGN LANGUAGE&lt;br /&gt;
9) _____________helps to view the source code.&lt;br /&gt;
Ans. BROWSING TOOLS&lt;br /&gt;
10) _____________tools help in code creation, debugging and testing.&lt;br /&gt;
Ans.- EXECUTABLE CODE&lt;br /&gt;
11) The two kinds of program documentation are _____________and_____________&lt;br /&gt;
Ans. – INTERNAL AND EXTERNAL&lt;br /&gt;
12) Estimation makes use of an important approach_____________.&lt;br /&gt;
Ans.- DECOMPOSITION&lt;br /&gt;
13) PERT stands for_____________.&lt;br /&gt;
Ans. :- PROGRAM EVALUATION AND REVIEW TECHNIQUE&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;II. Write brief answers to the following questions:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1) Define the terms risk mitigation, risk monitoring.&lt;/b&gt;&lt;br /&gt;
Ans.:- Risk mitigation refers to avoiding risks by developing a strategy for reducing the turn over thereby adopting a proactive approach to risks. Risk monitoring refers to monitoring the facts that may provide an indication of whether the risk is becoming more or less likely.&lt;br /&gt;
&lt;b&gt;2) Name the important approaches used in program debugging.&lt;/b&gt;&lt;br /&gt;
Ans.:- There are three debugging approaches commonly used&lt;br /&gt;
- It occurs as a consequence of successful testing.&lt;br /&gt;
- When a test can uncovers an error, then debugging, a process that results in the removal of errors occur.&lt;br /&gt;
- Debugging process begins with the execution of test cases.&lt;br /&gt;
&lt;b&gt;3) What are specification languages? Give an example.&lt;/b&gt;&lt;br /&gt;
Ans.:- specification languages posses many desired qualities of an SRS. Unlike formal languages of SRS must be exact, without ambiguity, and precise because the design specification, statement of work, and other project documents are what drive the development of the final product. Example :-Structured English, Regular Expression.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;PART - B&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;1. a) What is software? List out the important characteristics of software.&lt;/b&gt;&lt;br /&gt;
Ans.:- Software is a set of instructions of computer programs that when executed provide desired function and performance. It is both a process and a product. To gain an understanding of software, it is important to examine the characteristics of software, which differ considerably from those of hardware.&lt;br /&gt;
Software Characteristic&lt;br /&gt;
1). Software is developed or engineered, it is not manufactured.&lt;br /&gt;
Unlike hardware, software is logical rather than physical. It has to be designed well before producing it. In spite of availability of many automated software development tools, it is the skill of the individual, creativity of the developers and proper management by the project manager that counts for a good software product.&lt;br /&gt;
2). Software does not “wear out”.&lt;br /&gt;
The hardware components start deteriorating – they are subjected to environmental maladies such as dust, vibration, temperature etc. and at some point of time they tend to breakdown. The defected components can then be traced and replaced.&lt;br /&gt;
3) Most software is custom-built, rather than being assembled from existing components&lt;br /&gt;
Most of the engineered products are first designed before they are manufactured. Designing includes identifying various components for the product before they are actually assembled. Here several people can work independently on these components thus making the manufacturing system highly flexible. in software , breaking a program into modules is a difficult task, since each module is highly interlinked with other modules.&lt;br /&gt;
&lt;b&gt;b) Explain the waterfall model of software process. What are its limitations?&lt;/b&gt;&lt;br /&gt;
Ans.:-It is the simplest and the widely used process model for software development. Here the phases involved in the software development are organized in a linear order.&lt;br /&gt;
In a typical waterfall model, a project begins with the feasibility analysis. on successfully demonstrating the feasibility of a project, the requirements analysis and project planning begins. The design starts after completing the requirements analysis and coding starts after completing the design phase.&lt;br /&gt;
The limitations of waterfall model are:&lt;br /&gt;
nThe model states that the entire set of requirements should be frozen before development begins. This is possible for small projects, but is difficult for large projects where the exact requirements may not be known in advance.&lt;br /&gt;
nThe waterfall model requires formal documents after each phase. This is not possible in GUI-based applications where the documentation will be very extensive.&lt;br /&gt;
nThe customer sees the software only at the end of the development phase. As a result, the customer cannot suggest any changes until the product is delivered.&lt;br /&gt;
&lt;b&gt;2. a) Describe the three generic views of software engineering.&lt;/b&gt;&lt;br /&gt;
Ans.:- The software engineering as such can be categorized in to three generic phases, regardless of application area, project size or complexity.&lt;br /&gt;
The three generic phases of software engineering are :-&lt;br /&gt;
 The definition phase&lt;br /&gt;
 The development phase&lt;br /&gt;
Formatted: Bullets and Numbering&lt;br /&gt;
 The maintenance phase&lt;br /&gt;
The definition phase developer attempts to identify what information is to be processed, what function and performance are desired, what system behavior can be expected, what interfaces are to be established, what design constraints exists, and what validation criteria are required to define a successful system.&lt;br /&gt;
The development phase attempts to define how data are to be structured, how function is to be implemented as a software architecture, how produces are to be implemented, how design will be translated, into a programming language, how testing will be performed.&lt;br /&gt;
The maintenance phase focus on change that is associated with the software.&lt;br /&gt;
Correction:- it is likely that are customers will find errors or defects in the software in spite of quality assurance activities.&lt;br /&gt;
Adaptations – As time progress, it is likely that the original environment for which the software was developed is likely to change.&lt;br /&gt;
Enhancement – as software is used, the customer will recognize the need for additional functional requirements that will benefit him.&lt;br /&gt;
Prevention – computer software deteriorates due to change. so, preventive maintenance, often called software reengineering must be conducted in order to make changes to the computer software more easily.&lt;br /&gt;
&lt;b&gt;b) List out the important characteristics of good SRS.&lt;/b&gt;&lt;br /&gt;
Ans.:- A good SRS should be:&lt;br /&gt;
nComplete&lt;br /&gt;
nConsistent&lt;br /&gt;
nAccurate&lt;br /&gt;
nModifiable&lt;br /&gt;
nRanked&lt;br /&gt;
nTestable&lt;br /&gt;
nTraceable&lt;br /&gt;
nUnambiguous&lt;br /&gt;
nValid&lt;br /&gt;
&lt;b&gt;3. a) Give the outline structure of SRS.&lt;/b&gt;&lt;br /&gt;
Ans.:- The outline of SRS structure is:&lt;br /&gt;
Introduction&lt;br /&gt;
1.1 Purpose&lt;br /&gt;
1.2 Document conventions&lt;br /&gt;
1.3 Intended audience&lt;br /&gt;
1.4 Additional information Formatted: Bullets and Numbering&lt;br /&gt;
1.5 Contact information/SRS team members&lt;br /&gt;
1.6 References&lt;br /&gt;
Overall Description&lt;br /&gt;
2.1 Product perspective&lt;br /&gt;
2.2 Product functions&lt;br /&gt;
2.3 User classes and characteristics&lt;br /&gt;
2.4 Operating environment&lt;br /&gt;
2.5 User environment&lt;br /&gt;
2.6 Design/implementation constraints&lt;br /&gt;
2.7 Assumptions and dependencies&lt;br /&gt;
External Interface Requirements&lt;br /&gt;
3.1 User interfaces&lt;br /&gt;
3.2 Hardware interfaces&lt;br /&gt;
3.3 Software interfaces&lt;br /&gt;
3.4 Communication protocols and interfaces&lt;br /&gt;
System Features&lt;br /&gt;
4.1 System feature A&lt;br /&gt;
4.1.1 Description and priority&lt;br /&gt;
4.1.2 Action/result&lt;br /&gt;
4.1.3 Functional requirements&lt;br /&gt;
4.2 System feature B&lt;br /&gt;
Other Nonfunctional Requirements&lt;br /&gt;
5.1 Performance requirements&lt;br /&gt;
5.2 Safety requirements&lt;br /&gt;
5.3 Security requirements&lt;br /&gt;
5.4 Software quality attributes&lt;br /&gt;
5.5 Project documentation&lt;br /&gt;
5.6 User documentation&lt;br /&gt;
&lt;b&gt;b) Why is design an important phase in software development life cycle? Describe&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;design process.&lt;/b&gt;&lt;br /&gt;
Ans.:- Design is an important phase in the software development life cycle because it bridges the requirements specification and the final solution for satisfying the requirements.&lt;br /&gt;
The software design is an activity which is after the requirements analysis activity. This phase begins when the requirements document for the system to developed is available. Design is an important phase in the software development life cycle, it bridges the requirements specification and the final solution for satisfying the requirements.&lt;br /&gt;
The design process for the software has two levels:-&lt;br /&gt;
1. System design or top-level design&lt;br /&gt;
2. Detailed design or logic design&lt;br /&gt;
System design&lt;br /&gt;
Using this, the modules that are needed for the system are decided, the specifications of these modules and how these modules need to be connected are also decided.&lt;br /&gt;
Detailed design&lt;br /&gt;
Using this, the internal design of the modules are decided or how the specifications of the modules can be satisfied are decided. This type of design essentially expands the system design to contain more detailed description of the processing logic and data structures so that the designs is sufficiently complete for coding.&lt;br /&gt;
&lt;b&gt;4. Outline programming guidelines with regard to;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;i) Control structures ii) Algorithms&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;iii) Data structures and iv) General guidelines&lt;/b&gt;&lt;br /&gt;
i) Control Structures :- Many of the control structures for a program component are given by the architecture and design of a system. And the given design is translated in to code. In case of some architecture, such as implicit invocation and object-oriented design, control is based on the system states and changes in variables.&lt;br /&gt;
ii) Algorithms:- The program design often specifies a class of algorithms to be used in coding. For example, the design may tell the programmer to use binary search technique. Even though, a programmer has lot of flexibility in converting the algorithm to code, it depends on the constraints of the implementation language and hardware.&lt;br /&gt;
iii) Data Structures :- Data structures can influence the organization and flow of a program. In some cases , it can even influence the choice of programming language. For example, LISP is a language for list processing. It is so designed that it contains structures that make it much easier for handling lists than other languages.&lt;br /&gt;
iv) General Guidelines :- there are several strategies that are useful in preserving the design quality of a program:-&lt;br /&gt;
 Localization input and output :- those parts of a program that read input or generate output are highly specialized and must reflect characteristics of the underlying hardware and software .&lt;br /&gt;
 Pseudo-code can be used for transforming the design to code through a chosen programming language.&lt;br /&gt;
 Revise the design and rewrite the code until one is completely satisfied with the result.&lt;br /&gt;
 Reuse code components if possible.&lt;br /&gt;
&lt;b&gt;5. a) What is software testing ? Describe the two ways of testing any engineered&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;software product.&lt;/b&gt;&lt;br /&gt;
Ans.:- Software testing is the process of testing the functionality and correctness of software by running it.&lt;br /&gt;
The two ways of testing any engineered software product :-&lt;br /&gt;
1) White-Box Testing&lt;br /&gt;
2) Black-Box testing&lt;br /&gt;
Black-box testing&lt;br /&gt;
It is also known as functional testing. Knowing the specified function that the product has been designed to perform, tests can be conducted to demonstrate that each function is fully operational&lt;br /&gt;
Example :- Boundary value analysis.&lt;br /&gt;
White Box Testing&lt;br /&gt;
It is also known as structural testing. Knowing the internal working of product, test can be conducted to ensure that all internal operations perform according to specification that all internal components have been adequately.&lt;br /&gt;
EXAMPLE :- basic path testing.&lt;br /&gt;
&lt;b&gt;b) What is the difference between verification and validation ?&lt;/b&gt;&lt;br /&gt;
Ans.:- Verification is a set of activities that ensures that the software correctly implements a specified function while Validation is a set of activities that ensures that the software that has been built, is traceable to the customer requirements.&lt;br /&gt;
&lt;b&gt;6. a) Describe the different kinds of software development team structure.&lt;/b&gt;&lt;br /&gt;
Ans.:- The different kinds of software development team structure are:&lt;br /&gt;
nDemocratic decentralized team&lt;br /&gt;
nControlled centralized team&lt;br /&gt;
Controlled decentralized team&lt;br /&gt;
Democratic decentralized team&lt;br /&gt;
 It consists of ten or few number of programmers.&lt;br /&gt;
 The goals of the group are set by consensus&lt;br /&gt;
Formatted: Bullets and Numbering&lt;br /&gt;
 Every member is considered for taking major decision&lt;br /&gt;
 Group leadership rotates among group member&lt;br /&gt;
Controlled centralized team&lt;br /&gt;
 It consists of a chief programmer, who is responsible for all the major technical decisions of the project. He also does most of the design activities and allocates coding part to each and every member of the team.&lt;br /&gt;
 Under him, he has a backup programmer, program librarian, and programmers&lt;br /&gt;
 The backup programmer helps the chief in making decisions and takes over the role of chief in absence of the chief programmer.&lt;br /&gt;
 The program librarian is responsible for maintaining the documents and other communication related work.&lt;br /&gt;
Controlled decentralized team&lt;br /&gt;
 It combines the strength of the democratic and chief programmer teams&lt;br /&gt;
 It consists of a project leader who has a group of senior programmers under him and a group of junior programmers under a senior programmer.&lt;br /&gt;
 The communication between the senior and junior programmers are like ego-less team,&lt;br /&gt;
 This structure is best suited for every simple projects or research-type works.&lt;br /&gt;
&lt;b&gt;b) What is COCOMO model? Explain the basic COCOMO model.&lt;/b&gt;&lt;br /&gt;
Ans.:-The COCOMO model predicts the effort and duration of a project based on inputs relating to the size of the resulting system and a number of “cost drivers” that affect productivity.&lt;br /&gt;
THE BASIC COCOMO MODEL&lt;br /&gt;
Basic COCOMO model estimates the software development effort using only a single predictor variable and three software development modes. Basic COCOMO is good for quick, early, rough, order of magnitude estimates of software costs, but its accuracy is necessarily limited because of its lack of factors which have a significant influence on software costs. The basic equation for the COCOMO model is about the effort estimate in persons –month required develop a project and the KLOC, the number of delivered lines of code for the project.&lt;br /&gt;
&lt;b&gt;7. a) Define the terms: quality, quality assurance and quality control.&lt;/b&gt;&lt;br /&gt;
Ans.:- QUALITY:- Software quality is conformance to the explicitly stated functional and performance requirements, explicitly documented development standards, and implicit characteristics that are expected of all professionally developed software.&lt;br /&gt;
QUALITY ASSURANCE :- Quality assurance is an auditing and reporting function of management.&lt;br /&gt;
QUALITY CONTROL :- Quality control consists of a series of activities like inspections, reviews, and tests, which are carried out during the entire life cycle of software, so that each work product meets the requirements, placed upon it.&lt;br /&gt;
&lt;b&gt;b) Mention the objectives of formal technical review.&lt;/b&gt;&lt;br /&gt;
Ans.:- This is a software quality assurance activity that is performed by software engineers.&lt;br /&gt;
OBJECTIVES&lt;br /&gt;
 To detect the errors in functions, logic or implementation found in software.&lt;br /&gt;
 To verify that the software under review meets its requirements.&lt;br /&gt;
 To ensure that the software has been represented according to predefined standards&lt;br /&gt;
 To achieve software with consistent quality and on time&lt;br /&gt;
 To make projects more manageable.&lt;br /&gt;
 It acts as a training ground for junior engineers to observe different approaches to software analysis, design, implementation&lt;br /&gt;
 FTR includes walkthroughs, inspections, round-robin reviews.&lt;br /&gt;
&lt;b&gt;8. Write short notes on:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) Software engineering&lt;/b&gt;&lt;br /&gt;
Ans.:-Software engineering is a discipline. It uses the existing tools and methods of software development and systematizes the entire process of software development. There are a number of formal definitions for software engineering, given by experts in the field. However for the purpose of understanding , we shall see some of them.&lt;br /&gt;
“The application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software, that is , the application of engineering to software “.&lt;br /&gt;
&lt;b&gt;b) The spiral model of software process&lt;/b&gt;&lt;br /&gt;
Ans.:-The activities in this model can be organized like a spiral, that has many cycles. Typically the inner cycles represent the early phase of requirement analysis along with the prototyping and the outer spirals represent the classic software lifecycle.&lt;br /&gt;
This model has been divided into four quadrants, each quadrant representing a major activity like planning, risk analysis engineering and customer evaluation. The software process cycle begins with the planning activity represented by the first quadrant&lt;br /&gt;
of this model. Each cycle here begins with the identification of objectives for that cycle, the alternatives and constraints associated with that objective.&lt;br /&gt;
&lt;b&gt;c) Programming tools.&lt;/b&gt;&lt;br /&gt;
Ans.:-programming tools is used to reduce time spent on the development of programs.&lt;br /&gt;
The tools which used in programming tools&lt;br /&gt;
1) source-code tools&lt;br /&gt;
- editing tools, these relate to the editing of source code&lt;br /&gt;
- browsing tools, helps to view the source code&lt;br /&gt;
The source-code beautifiers and templates not only makes a program look consistent but also standardize indentation styles, align variable declarations and format comments.&lt;br /&gt;
2) Executable code tools&lt;br /&gt;
Tools that are required for working with executable codes. it helps in code creation, debugging and testing&lt;br /&gt;
3) code creation has four major tools which help the developer in converting the source code into executable code :&lt;br /&gt;
4) Debugging tools help in debugging the code.&lt;br /&gt;
5) testing tools help in tracing the code errors.&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/780216404433650620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/780216404433650620'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/04/assignment-4th-sem-tb-44-software.html' title='KU ASSIGNMENT 4TH SEM TB - 44 - SOFTWARE ENGINEERING'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-9218086502009138060</id><published>2012-04-18T10:36:00.003+05:30</published><updated>2012-04-18T10:51:54.296+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU ASSIGNMENT 4TH SEM: TB - 43 - UNIX &amp; SHELL PROGRAMMING</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;font-size: x-large;&quot;&gt;PART - A&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1. What are the different standard given by POSIX ? What is POSIX ?&lt;/b&gt;&lt;br /&gt;
Ans. :- The different standard given by POSIX are:-&lt;br /&gt;
 POSIX.1&lt;br /&gt;
 POSIX.1B&lt;br /&gt;
 POSIX.1C&lt;br /&gt;
 POSIX.2&lt;br /&gt;
 POSIX:2001&lt;br /&gt;
 POSIX:2004&lt;br /&gt;
 POSIX:2008&lt;br /&gt;
POSIX is the Portable Operating System Interface, the open operating interface standard accepted world-wide. It is produced by IEEE and recognized by ISO and ANSI.&lt;br /&gt;
&lt;b&gt;2. On which variable terminal setting is done ? Name any three terminal setting&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;keys.&lt;/b&gt;&lt;br /&gt;
Ans.:- Using STTY&lt;br /&gt;
Three terminal setting key&lt;br /&gt;
quit, kill, erase, ...&lt;br /&gt;
The environment variable TERM is used to identify the type of terminal (or terminal emulator) to the curses library and programs that use the curses library to display text. It is also associated with the TERMINFO and (in archaic systems) TERMCAP environment variables&lt;br /&gt;
&lt;b&gt;3. Explain key features of UNIX.&lt;/b&gt;&lt;br /&gt;
Ans. :- The UNIX system is supported by the file and the process. Directories and devices are treated as files and there are many text manipulation tools to edit these files. When a file is executed as a program, it is called a process. There are tools to control processes like sending a processes into background or even terminating it.&lt;br /&gt;
Unix is a multitasking operating system, which allows the computer to run several programs at the same time. By going quickly from one task to another and performing a little bit of each task every time, the operating system gives an impression of doing many things at the same time. Unix uses this technique of time-sharing. Unix is also able to&amp;nbsp;interact with more than one user at a time. This feature of Unix makes it a multitasking system.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;4. What is script command, with command explain how to create script file of a&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;session?&lt;/b&gt;&lt;br /&gt;
Ans.-&lt;br /&gt;
&lt;b&gt;5. What happens if a directory permission charged?&lt;/b&gt;&lt;br /&gt;
Ans.- Every time a file or a directory is created, default permissions are established&lt;br /&gt;
for it. These default permissions are initially assigned either by the operating&lt;br /&gt;
system or the program being run. Setting default permissions saves us the&lt;br /&gt;
trouble of specifying permission codes explicitly every time a file or directory is&lt;br /&gt;
created. The operating system assigns the default permission values of 777 for&lt;br /&gt;
executable files and 666&lt;br /&gt;
for all other files.&lt;br /&gt;
To put further restrictions on the permissions assigned by a program when it&lt;br /&gt;
creates a file or directory, a user mask is specified with the umask command.&lt;br /&gt;
The user mask is a numeric value that determines the access permissions when a&lt;br /&gt;
file or directory is created. Consequently, when a file or directory is created, its&lt;br /&gt;
permissions are set to the permissions specified by the creating program minus&lt;br /&gt;
the permission values denied by the umask value.&lt;br /&gt;
Example&lt;br /&gt;
The command umask without arguments gives the octal value of the user mask.&lt;br /&gt;
$ umask&lt;br /&gt;
022&lt;br /&gt;
&lt;b&gt;6. How do you yank and paste lines?&lt;/b&gt;&lt;br /&gt;
Ans. :- The command &#39;Y&#39; or &#39;yy&#39; copies (yanks) one or more lines. To copy one line, two lines, 10 lines, and all lines to the end of the file, respectively:&lt;br /&gt;
Y 2Y 10Y yG&lt;br /&gt;
To paste the text contained in the buffer above (uppercase P) or below the current cursor position (lowercase p), respectively:&lt;br /&gt;
P p&lt;br /&gt;
It is also possible to yank text within a line. The following commands yank text from the current cursor position to the end of the word and the end of the line, respectively:&lt;br /&gt;
yw y$&lt;br /&gt;
The same commands paste the text within a line. Lower case p pastes after the cursor position and upper case P pastes before.&lt;br /&gt;
Paste will also work with deleted text, either lines or parts of lines. Be careful not to execute any other commands prior to pasting as this will empty the buffer.&lt;br /&gt;
&lt;b&gt;7. List out the different attributes of a file.&lt;/b&gt;&lt;br /&gt;
Ans.:- Listing File Attribute:-&lt;br /&gt;
-rw-r----- 1 sibnas sibgrp 4562 sep 22 10:30&lt;br /&gt;
-rw-r----- 1 sibnas sibgrp 8976 sep 22 10:30&lt;br /&gt;
-rw-r----- 1 sibnas sibgrp 10234 sep 22 10:30&lt;br /&gt;
-rw-r----- 1 sibnas sibgrp 4352 sep 22 9:30&lt;br /&gt;
-rw-r--r--r- 1 sibnas sibgrp 87632 aug 2 11:30&lt;br /&gt;
-rw-r--r--r- 1 sibnas sibgrp 6528 june 20 10:30&lt;br /&gt;
-rw-r--r--r- 1 sibnas sibgrp 9234 may 22 10:00&lt;br /&gt;
File type link User id group id file size date &amp;amp;&lt;br /&gt;
Count in bytes of modi.&lt;br /&gt;
&lt;b&gt;8. What are the different ways of coming out of vi after saving the file?&lt;/b&gt;&lt;br /&gt;
Ans.:- There are three different ways to quit vi after saving the file:&lt;br /&gt;
a. :wq&lt;br /&gt;
b. :x&lt;br /&gt;
c. ZZ&lt;br /&gt;
&lt;b&gt;9. Write general syntax of CASE statements.&lt;/b&gt;&lt;br /&gt;
Ans. :- The case statement compares word with pattern; if they match ,the shell runs the command on the first line. Otherwise the shell checks the remaining patterns ,one by one ,until it finds one that matches the word; it then runs the command on that online.&lt;br /&gt;
Syntax for case statement:-&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
Set „date‟&lt;br /&gt;
Case $1 in&lt;br /&gt;
Fri) echo “thank goodness it‟s Friday!”;;&lt;br /&gt;
Sat | Sun) echo “you should not work on week-ends”;&lt;br /&gt;
Echo “log off and go home!”;;&lt;br /&gt;
*) echo “it is not yet the weekend.”;&lt;br /&gt;
Echo “get to work! “;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;b&gt;10. What is a process ? Name two important attributes of a process.&lt;/b&gt;&lt;br /&gt;
Ans :- Process is born when a program starts execution and exists as long as&lt;br /&gt;
the program is running. After execution the process is usually the name of the&lt;br /&gt;
program being executed.&lt;br /&gt;
The two important attribute of a process are:-&lt;br /&gt;
1) The process-id(PID).Each process is identified by a unique number called&lt;br /&gt;
the process-id which is allotted by the kernel when the process is born.&lt;br /&gt;
2) The parent PID(PPID) the PID of the parent is also a process attribute.&lt;br /&gt;
When many processes have the same PPID it is easier to kill the parent&lt;br /&gt;
process rather than the children separately.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;PART - B&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;1. a) Explain layered architecture of unix operating system. With a suitable&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;command explain the interaction between Shell and Kernel.&lt;/b&gt;&lt;br /&gt;
Ans.:-Unix, like other operating systems, is a layer between the hardware and the applications that run on the computer. it has functions that manage the hardware functions that manage executing applications. So what‟s h difference between UNIX and any other operating system? Basically two things: internal implementation and the interface that is seen and used by users.&lt;br /&gt;
The part of UNIX that manages the hardware and the executing processes is called the kernel. The kernel is collection of programs written in c which directly communicate with the hardware . Application programs communicate with the hardware by using the services of Kernel. Along with the memory management, the kernel also schedules processes and decides their priorities.&lt;br /&gt;
In the Unix system , each hardware device is viewed as a file and is called a device file .this allows the same simple method of reading and writing files to be used to access each hardware device.&lt;br /&gt;
The user commands are translated in to action by the shell which acts as interpreter. The shell forms the outer part of the operating systems and forms the interface between the user and kernel. for each user logged in, there is shell in action. When a command is&lt;br /&gt;
given by the user, it is examined by the shell and communicated to the kernel for execution.&lt;br /&gt;
Application portability is the ability of a single application to be executed on various types of computer hardware without being modified. This can be achieved if the application uses the UNIX interface to manage its hardware needs.&lt;br /&gt;
&lt;b&gt;b) Explain uname command with different options.&lt;/b&gt;&lt;br /&gt;
Ans.:- uname – displays the name of the operating system&lt;br /&gt;
Syntax&lt;br /&gt;
uname [options]&lt;br /&gt;
Examples:&lt;br /&gt;
Displays all the information&lt;br /&gt;
$uname –a&lt;br /&gt;
SCO_SV sco5 3.2 5.0.5 i386&lt;br /&gt;
Displays the machine‟s node name in the communication network.&lt;br /&gt;
$uname-n&lt;br /&gt;
Sco-5&lt;br /&gt;
Displays the operating system release.&lt;br /&gt;
$uname-r&lt;br /&gt;
3.2&lt;br /&gt;
Displays the name of the operating system&lt;br /&gt;
$uname –s&lt;br /&gt;
SCO_SV&lt;br /&gt;
Displays the operating system version&lt;br /&gt;
$uname –v&lt;br /&gt;
5.0.5&lt;br /&gt;
Displays the information about system name, node name, operating system&lt;br /&gt;
release number, kernel ID, processor type, serial number, number of users&lt;br /&gt;
license, OEM number, origin number and number of CPUs.&lt;br /&gt;
&lt;b&gt;2. a) Explain the advantages of ispell, list out the basic commands used in ispell.&lt;/b&gt;&lt;br /&gt;
Ans.:-&lt;br /&gt;
&lt;b&gt;b) Explain unix file system and give the difference between relative and absolute&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;pathname.&lt;/b&gt;&lt;br /&gt;
Ans.:-Unix file system can be defined as belonging to one of four possible types:-&lt;br /&gt;
Ordinary files: ordinary files can contain text, data, or program information. An ordinary file cannot contain another file, or directory. An ordinary file can be a text file or binary file. Most of the UNIX command are binary files.&lt;br /&gt;
Directory files :- Directories are containers that can hold files, and other directories. A directory is actually implemented as a file that has one line for each item contained within the directory. Each line in a directory file contains only the name of the item, and a numerical reference to the location of the item.&lt;br /&gt;
Special files :- Special files represent i/o devices like, a tty, a disk drive, or a printer. Because UNIX treats such devices as files. Some of the commands used to access ordinary files will also work with devices files. This allows more efficient use of software.&lt;br /&gt;
Links:- A link is a pointer to another file. Since a directory is alist of the names and i-numbers of files, directory entry can be a hard link. In which the i-number points directly to another file. A hard link to a file cannot be distinguished from the file itself.&lt;br /&gt;
Difference between ABSOULATE AND RELATIVE PATHNAMES&lt;br /&gt;
ABSOULATE PATHNAMES&lt;br /&gt;
RELATIVE PATHNAMES&lt;br /&gt;
An Absoulate pathname specifies the location of a file .&lt;br /&gt;
Relative pathname specifies a file in relation to the current directory.&lt;br /&gt;
An Absoulate pathname starts at the / root directory.&lt;br /&gt;
A Relative pathname starts from the current directory.&lt;br /&gt;
An Absoulate pathname uses a slash (/) between each directory name in the path to indicate different directories.&lt;br /&gt;
In a Relative pathname, a single dot (.) represents the current working directory and two dots (..) represent the parent of the current working directory.&lt;br /&gt;
&lt;b&gt;3. a) Explain how to split file into multiple files. Give suitable example.&lt;/b&gt;&lt;br /&gt;
Ans. :- we used “split” command to split file into multiple files.&lt;br /&gt;
split – split large files into “smaller files”&lt;br /&gt;
syntax –&lt;br /&gt;
split[options] filename prefix&lt;br /&gt;
where file name is the name of the large file to be split ,prefix is the name to be given the small output files and options can either be excluded or can be one of the or can be one of the following:-&lt;br /&gt;
-l = linenumber&lt;br /&gt;
-b = bytes&lt;br /&gt;
If –l option is used, linenumber will be the number of the lines to be put in each of the smaller files (the default is 1000). If the –b option is used ,bytes will be the number of bytes to be put in each of the smaller files.&lt;br /&gt;
The split command will give each output file created the name prefix with an extension attached to the end to indicate its order&lt;br /&gt;
EXAMPLE :&lt;br /&gt;
Assuming that file.txt is 3000 lines long , it will output three files, xaa, xab, and xac, and each one will be 1000 lines long.&lt;br /&gt;
$ splitfile.txt&lt;br /&gt;
This will output six soo-line files: fileaa, fileab, fileac,filead, fileae, and fileaf.&lt;br /&gt;
$split-1500 file.txt file&lt;br /&gt;
Assuming that file.txt has 200 kb ,this will output five 40 kb files: fileaa, fileab, fileac ,filead, fileae, and fileaf.&lt;br /&gt;
$ split –b 40k .txt file&lt;br /&gt;
&lt;b&gt;b) Give the difference between Hard Link and Symbolic Link.&lt;/b&gt;&lt;br /&gt;
Ans: - Soft Link:&lt;br /&gt;
-------------&lt;br /&gt;
- Soft links are links to a file but not the inode.&lt;br /&gt;
- Created using&lt;br /&gt;
ln -s file1 file2&lt;br /&gt;
=&amp;gt; ls -il&lt;br /&gt;
131135 lrwxrwxrwx 1 user user 5 Jul 10 09:04 file2 -&amp;gt; file1&lt;br /&gt;
131137 -rw-r--r-- 1 user user 35 Jul 10 09:03 file1&lt;br /&gt;
- The inode for file1 is 131137 and inode for file2 is 131135.&lt;br /&gt;
- If you see the permission bits, there is &#39;l&#39; in the front for a soft link.&lt;br /&gt;
- If file1 is deleted, the link still exists. But if you try to view file2, its empty. This means that once the main file is deleted the data is gone.&lt;br /&gt;
Hard Link:&lt;br /&gt;
--------------&lt;br /&gt;
- Hard links are links to inode&lt;br /&gt;
- Created using&lt;br /&gt;
ln file1 file2&lt;br /&gt;
=&amp;gt; ls -il&lt;br /&gt;
131136 -rw-r--r-- 2 user, user 48 Jul 10 09:27 file1&lt;br /&gt;
131136 -rw-r--r-- 2 user, user 48 Jul 10 09:27 file2&lt;br /&gt;
- The inode for file1 and file2 is the same (131136).&lt;br /&gt;
- If you see the output above for &quot;ls -i&quot;, file2 does not show that it is linked to file1. In reality it is not linked to file1 but it is linked to the inode.&lt;br /&gt;
- If you see that there is number &#39;2&#39; before the username &#39;user&#39;. This shows the number of hard links to the inode.&lt;br /&gt;
- If file1 is deleted, the data is not deleted. If you view file2 the data is still there. Deleting file1 only deletes a link. The data is gone once the last hard link is deleted.&lt;br /&gt;
&lt;b&gt;4. a) What is a process? Explain the mechanism of creation in unix.&lt;/b&gt;&lt;br /&gt;
Ans :-&lt;br /&gt;
A process is a collection of interrelated work tasks initiated in response to an event that achieves a specific result for the customer of the process. Adding more specific detail to that general definition:&lt;br /&gt;
 that achieves a specific result:&lt;br /&gt;
&lt;br /&gt;
must deliver a specific result&lt;br /&gt;
this result must be individually identifiable and countable&lt;br /&gt;
a good process name clearly indicates the result or end state of the process&lt;br /&gt;
 for the customer of the process:&lt;br /&gt;
&lt;br /&gt;
a customer receives the result or is the beneficiary of it&lt;br /&gt;
the customer can be a person or an organization&lt;br /&gt;
customer can be identified and can pass judgment on the result and process&lt;br /&gt;
customer point of view helps identify and name the process accurately&lt;br /&gt;
 initiated in response to a specific event:&lt;br /&gt;
&lt;br /&gt;
the process must be initiated in response to a specific event&lt;br /&gt;
multiple events can initiate a process&lt;br /&gt;
having an event AND a result allows the tracing of the sequence of tasks that turns the event into the result&lt;br /&gt;
 work tasks:&lt;br /&gt;
&lt;br /&gt;
a collection of actions, activities, steps or tasks make up a business process&lt;br /&gt;
a step in the initial workflow will probably be divided into more detailed steps later&lt;br /&gt;
 a collection of interrelated:&lt;br /&gt;
&lt;br /&gt;
the process steps must relate to each other&lt;br /&gt;
interrelationship is through sequence and flow...the completion of one step leads to (flows into) the initiation of the next step&lt;br /&gt;
also interrelated by dealing with the same work item&lt;br /&gt;
steps related by being traceable back to the same initiation event&lt;br /&gt;
&lt;b&gt;b) List out the navigation keys for the cursor movement.&lt;/b&gt;&lt;br /&gt;
Ans. :- in the command mode ,navigation keys for the movement of the cursor by characters, words and lines are as follows:&lt;br /&gt;
Keys&lt;br /&gt;
Movement of cursor&lt;br /&gt;
H&lt;br /&gt;
Cursor moves left&lt;br /&gt;
J&lt;br /&gt;
Cursor moves down&lt;br /&gt;
K&lt;br /&gt;
Cursor moves up&lt;br /&gt;
L&lt;br /&gt;
Cursor moves right&lt;br /&gt;
W&lt;br /&gt;
Word forward&lt;br /&gt;
B&lt;br /&gt;
Word backward&lt;br /&gt;
E&lt;br /&gt;
End of word&lt;br /&gt;
^&lt;br /&gt;
First character&lt;br /&gt;
$&lt;br /&gt;
End of line&lt;br /&gt;
0&lt;br /&gt;
Beginning of line&lt;br /&gt;
The screen display can be controlled by scrolling the display forward and backward using the following keys:-&lt;br /&gt;
Keys&lt;br /&gt;
Screen display&lt;br /&gt;
[ctrl-f]&lt;br /&gt;
Scroll display forward&lt;br /&gt;
[ctrl-h]&lt;br /&gt;
scroll display backward&lt;br /&gt;
[ctrl-d]&lt;br /&gt;
Scroll half-screen forward&lt;br /&gt;
[ctrl-u]&lt;br /&gt;
Scroll half-screen backward&lt;br /&gt;
&lt;b&gt;5. a) Explain grep command with at least 5 examples with different options.&lt;/b&gt;&lt;br /&gt;
Ans.- 1) A simple Linux grep example - searching for a text string in one file&lt;br /&gt;
This first grep command example searches for all occurrences of the text string &#39;fred&#39; within the &quot;/etc/passwd&quot; file. It will find and print (on the screen) all of the lines in this file that contain the text string fred, including lines that contain usernames like &quot;fred&quot; - and also &quot;alfred&quot;.&lt;br /&gt;
grep &#39;fred&#39; /etc/passwd&lt;br /&gt;
In a simple grep example like this, the quotes around the string fred aren&#39;t necessary, but they are needed if you&#39;re searching for a string that contains spaces, and may be needed when you get into using regular expressions (search patterns).&lt;br /&gt;
2) Linux grep command - searching for a string in multiple files&lt;br /&gt;
Our next grep command example searches for all occurrences of the text string joe within all files of the current directory:&lt;br /&gt;
grep &#39;joe&#39; *&lt;br /&gt;
The &#39;*&#39; wildcard matches all files in the current directory, and the grep output from this command will show both (a) the matching filename and (b) all lines in all files that contain the string &#39;joe&#39;.&lt;br /&gt;
As another example, you can also use grep to search all files in the current directory that end in the file extension &quot;.txt&quot;, as shown here:&lt;br /&gt;
grep &#39;joe&#39; *.txt&lt;br /&gt;
3) Case-insensitive file searching with the Unix grep command&lt;br /&gt;
To perform a case-insensitive search with the grep command, just add the -i option, like this:&lt;br /&gt;
grep -i score gettysburg-address.txt&lt;br /&gt;
This grep search example matches the string &quot;score&quot;, whether it is uppercase, lowercase, or any mix of the two.&lt;br /&gt;
4) Reversing the meaning of a grep search&lt;br /&gt;
You can reverse the meaning of a Linux grep search with the -v option. For instance, to show all the lines of my /etc/passwd file that don&#39;t contain the string fred, I&#39;d issue this grep command:&lt;br /&gt;
grep -v fred /etc/passwd&lt;br /&gt;
5) Using grep in a Unix/Linux command pipeline&lt;br /&gt;
The grep command is often used in a Unix/Linux pipeline. For instance, to show all the Apache httpd processes running on my Linux system, I can use the grep command in a pipeline with the &#39;ps&#39; command:&lt;br /&gt;
ps auxwww | grep httpd&lt;br /&gt;
&lt;b&gt;b) Explain Uniq command.&lt;/b&gt;&lt;br /&gt;
Ans.- The default output is to display lines that only appear once and one copy of lines that appear more than once. It is also useful to filter out multiple blank lines from unsorted output of other commands. For example, the dircmp command displays its output using pr; thus the output usually scrolls off your screen before you can read it. But if you pipe the output of the dircmp command through the uniq command, the blank lines are reduced and the output is more compact.&lt;br /&gt;
 -u Print only lines which are not repeated (unique) in the original file&lt;br /&gt;
 -d Don&#39;t output lines that are not repeated in the input.&lt;br /&gt;
 -c Generate an output report in default style except that each line is preceded by a count of the number of times it occurred. If this option is specified, the -u and -d options are ignored if either or both are also present.&lt;br /&gt;
 -i Ignore case differences when comparing lines&lt;br /&gt;
 -f Ignore a number of fields in a line&lt;br /&gt;
 -s Skips a number of characters in a line&lt;br /&gt;
 -w Specifies the number of characters to compare in lines, after any characters and fields have been skipped&lt;br /&gt;
 --help Displays a help message&lt;br /&gt;
 --version Displays version number on stdout and exits.&lt;br /&gt;
&lt;b&gt;6. a) Explain the mechanism of executing job periodically using cron.&lt;/b&gt;&lt;br /&gt;
Ans. A task can be automatically run in the background at regular intervals by a Unix utility called cron.&lt;br /&gt;
The cron daemon takes care of running these background jobs, which are called cron jobs.&lt;br /&gt;
crontab or the crontable is a file which contains the schedule of cron entries to be run and at specified times. cron checks the crontable at regular tables to see if there are any jobs scheduled. A user can execute crontab if the user‟s name appears in the file /usr/lib/cron/cron.allow. If the cron.allow does not exist, the cron.deny file in /usr/lib/cron is checked. If the user‟s name is not in this file the user is allowed to use crontab. If only cron.deny exists and is empty, all users can use crontab. If neither file exists, only the root user can use crontab. The allow and deny files contain one user name per line.&lt;br /&gt;
&lt;b&gt;b) Write a shell script to add two numbers by using Expr utility.&lt;/b&gt;&lt;br /&gt;
Ans.:- To use it in a shell script, you simply surround the expression with backquotes. For&lt;br /&gt;
example, let‟s write a simple script called add that adds two numbers typed as arguments:&lt;br /&gt;
# /bin/sh&lt;br /&gt;
# Shell Script to Add two numbers&lt;br /&gt;
sum=„expr $1 + $2„&lt;br /&gt;
echo $sum&lt;br /&gt;
Here we defined a variable sum to hold the result of the operation. (Note the spaces around the plus&lt;br /&gt;
sign, but not around the equals sign). To run this script, we might type the following line: (assume the script&lt;br /&gt;
add is executable)&lt;br /&gt;
$ add 4 3&lt;br /&gt;
The first argument (4) is stored in $1, and the second (3) is stored in $2. The expr utility then adds&lt;br /&gt;
these quantities and stores the result in sum. Finally, the contents of sum are echoed on the screen:&lt;br /&gt;
7&lt;br /&gt;
$&lt;br /&gt;
The expr command only works on integers (i.e., whole numbers). It can perform addition (+), subtraction&lt;br /&gt;
(-), multiplication (*), integer division (/), and integer remainder (%).&lt;br /&gt;
&lt;b&gt;7. a) What are positional parameters? Explain the command used to set the&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;positional parameters.&lt;/b&gt;&lt;br /&gt;
Ans. – These are used by the shell to store the values of command-line&lt;br /&gt;
arguments.&lt;br /&gt;
The command which used to set the positional parameter&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# Demonstrate the set command&lt;br /&gt;
set „date„&lt;br /&gt;
echo “Time: $4 $5”&lt;br /&gt;
echo “Day: $1”&lt;br /&gt;
echo “Date: $3 $2 $6”&lt;br /&gt;
Assuming that setdate has been made executable with the chmod command, we can run the script by&lt;br /&gt;
typing the command&lt;br /&gt;
$ setdate&lt;br /&gt;
The output will look something like this:&lt;br /&gt;
Time:10:56:08 EST&lt;br /&gt;
Day: Fri&lt;br /&gt;
Date: 20 Aug 2004&lt;br /&gt;
What happened? Consider the command line&lt;br /&gt;
set „date„&lt;br /&gt;
The backquotes run the date command, which produces output something like this:&lt;br /&gt;
Fri Aug 20 10:56:08 EST 2004&lt;br /&gt;
This does not appear on the screen. Instead, the set command catches the output and stores it in the&lt;br /&gt;
positional parameters $1 through $6:&lt;br /&gt;
$1 contains Fri&lt;br /&gt;
$2 Contains Aug&lt;br /&gt;
$3 contains 20&lt;br /&gt;
$4 contains 10:56:08&lt;br /&gt;
$5 contains EST&lt;br /&gt;
$6 contains 2004&lt;br /&gt;
&lt;b&gt;b) Explain Head Command with example.&lt;/b&gt;&lt;br /&gt;
Ans :- The head command, as the name implies, displays the top of the file. When used without an option, it&lt;br /&gt;
displays the first ten lines of the file.&lt;br /&gt;
You can use the –n option to display the first „n‟ number of lines.&lt;br /&gt;
$ head emp.lst Shows first ten lines of the emp.lst file&lt;br /&gt;
The head command, as the name implies, displays the top of the file. When used without an option, it&lt;br /&gt;
displays the first ten lines of the file.&lt;br /&gt;
You can use the –n option to display the first „n‟ number of lines.&lt;br /&gt;
$ head emp.lst Shows first ten lines of the emp.lst file&lt;br /&gt;
1001|T.N.Raju |Professor |Information Science|14/06/61|30000&lt;br /&gt;
1004|D.S.Raghu |Lecturer |Information Science|05/12/75|17000&lt;br /&gt;
1005|S.K.Anantha |Asst.Prof. |Information Science|20/07/63|24000&lt;br /&gt;
1009|M.P.Rajendra |Sr.Lecturer |Computer Science |13/03/66|20000&lt;br /&gt;
1002|Mallu |Lecturer |Information Science|20/07/74|15000&lt;br /&gt;
&lt;b&gt;8. a) What are positional parameters? Explain the command used to set the&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;positional parameters.&lt;/b&gt;&lt;br /&gt;
Positional paremeters:-These are used by the shell to store the values of command-line&lt;br /&gt;
arguments.&lt;br /&gt;
The command which are used to set the positional parameter&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# Demonstrate the set command&lt;br /&gt;
set „date„&lt;br /&gt;
echo “Time: $4 $5”&lt;br /&gt;
echo “Day: $1”&lt;br /&gt;
echo “Date: $3 $2 $6”&lt;br /&gt;
Assuming that setdate has been made executable with the chmod command, we can run the script by&lt;br /&gt;
typing the command&lt;br /&gt;
$ setdate&lt;br /&gt;
The output will look something like this:&lt;br /&gt;
Time:10:56:08 EST&lt;br /&gt;
Day: Fri&lt;br /&gt;
Date: 20 Aug 2004&lt;br /&gt;
What happened? Consider the command line&lt;br /&gt;
set „date„&lt;br /&gt;
The backquotes run the date command, which produces output something like this:&lt;br /&gt;
Fri Aug 20 10:56:08 EST 2004&lt;br /&gt;
This does not appear on the screen. Instead, the set command catches the output and stores it in the&lt;br /&gt;
positional parameters $1 through $6:&lt;br /&gt;
$1 contains Fri&lt;br /&gt;
$2 Contains Aug&lt;br /&gt;
$3 contains 20&lt;br /&gt;
$4 contains 10:56:08&lt;br /&gt;
$5 contains EST&lt;br /&gt;
&lt;b&gt;b) Explain Head Command with example.&lt;/b&gt;&lt;br /&gt;
“head command ” displays the top of the file.&lt;br /&gt;
Example:-&lt;br /&gt;
$ head emp.1st&lt;br /&gt;
It displays the first ten lines of the file.&lt;br /&gt;
We can use –n option with the head command to display the first „n‟ number of lines.&lt;br /&gt;
$ head – n 3 emp.1st&lt;br /&gt;
This displays the first 3 lines of the file.&lt;br /&gt;
8. Explain the options and associated actions for ls command.&lt;br /&gt;
Ans :- The Is command shows the contents of a directory , and a view of basic information (like size ,ownership, and access permission) about files and directories.&lt;br /&gt;
The options and associated actions for Is command are:&lt;br /&gt;
OPTION&lt;br /&gt;
ACTION&lt;br /&gt;
-1&lt;br /&gt;
One file name in each line&lt;br /&gt;
-a&lt;br /&gt;
All files including those beginning with a dot(.), current directory (.) and directory above (..)&lt;br /&gt;
-A&lt;br /&gt;
All files including those beginning with a dot(.).does not list current directory(.) and directory above.&lt;br /&gt;
-d&lt;br /&gt;
If an argument is a directory ,lists only its name (not its contents)&lt;br /&gt;
-F&lt;br /&gt;
Marks directories with a /,executables with a * and symbolic links with a @&lt;br /&gt;
-I&lt;br /&gt;
Shows the inode number&lt;br /&gt;
-l&lt;br /&gt;
Lists in long format , giving mode, number of links, owner, group, size in bytes, the time that each file was last modified.&lt;br /&gt;
-p&lt;br /&gt;
Puts a slash (/) after each directory.&lt;br /&gt;
-r&lt;br /&gt;
Sorts the filenames in the reverse order&lt;br /&gt;
-R&lt;br /&gt;
Recursive list&lt;br /&gt;
-t&lt;br /&gt;
Sorts by time modified (latest first)&lt;br /&gt;
-u&lt;br /&gt;
Sorts by last access time&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/9218086502009138060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/9218086502009138060'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/04/assignment-4th-sem-tb-43-unix-shell.html' title='KU ASSIGNMENT 4TH SEM: TB - 43 - UNIX &amp; SHELL PROGRAMMING'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-7343385671272659955</id><published>2012-04-18T10:29:00.002+05:30</published><updated>2012-04-18T10:52:05.120+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU ASSIGNMENT 4TH SEM: TB - 42 - JAVA PROGRAMMING</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;font-size: x-large;&quot;&gt;PART-A&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1. How platform independence is achieved in JAVA ?&lt;/b&gt;&lt;br /&gt;
Ans.:- Java is known as platform-neutral language because Java&#39;s byte codes are designed to be read, interpreted, and executed in exactly the same manner on any computer hardware or operating system that supports a Java run-time.&lt;br /&gt;
&lt;b&gt;2. List any three features of JAVA.&lt;/b&gt;&lt;br /&gt;
Ans.:- The Features of JAVA&lt;br /&gt;
1) Simple&lt;br /&gt;
2) Object-Oriented&lt;br /&gt;
3) Distributed&lt;br /&gt;
&lt;b&gt;3. What is Java C, Javadoc and Jdbc?&lt;/b&gt;&lt;br /&gt;
Ans. :- Java C – JavaC is a compiler translates java source code to byte code.&lt;br /&gt;
Javadoc – Javadoc is used for creates html format documentation from java source file.&lt;br /&gt;
Jdbc - A programming interface that lets Java applications access a database via the SQL language. Since Java interpreters (Java Virtual Machines) are available for all major client platforms, this allows a platform-independent database application to be&lt;br /&gt;
written.&lt;br /&gt;
&lt;b&gt;4. List different features of OOP.&lt;/b&gt;&lt;br /&gt;
Ans :- The features of OOP.&lt;br /&gt;
1) Objects and classes&lt;br /&gt;
2) Abstraction&lt;br /&gt;
3) Encapsulation&lt;br /&gt;
4) Information hiding&lt;br /&gt;
5) Inheritance&lt;br /&gt;
6) Polymorphism&lt;br /&gt;
&lt;b&gt;5. Name different types of Java tokens.&lt;/b&gt;&lt;br /&gt;
Ans. :- The different types of Java tokens are :-&lt;br /&gt;
1) Reserved Keywords&lt;br /&gt;
2) Identifiers&lt;br /&gt;
3) Literals&lt;br /&gt;
4) Operators&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;6. What is the task of the main method in Java program ?&lt;/b&gt;&lt;br /&gt;
Ans.:- After we specify the keywords for declaring the main() method, you specify a String array as parameter of the main() method. The String array represents command line arguments. It is compulsory for a user to specify the parameter to the main() method in all Java programs unlike in C and C++.&lt;br /&gt;
For example,&lt;br /&gt;
Class class1&lt;br /&gt;
{&lt;br /&gt;
public static void main (String args[])&lt;br /&gt;
{&lt;br /&gt;
System.out.println (&quot;Hello&quot;)&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;7. Why can‟t we use a keyword as a variable name ?&lt;/b&gt;&lt;br /&gt;
Ans.:- Keywords are an essential part of a language definition. They implement specific features of the language. Java language has reserved 60 words as keywords. These keywords have specific meaning in Java, so you cannot use them as names for variables.&lt;br /&gt;
&lt;b&gt;8. Why main method in Java is declared as static ?&lt;/b&gt;&lt;br /&gt;
Ans.:- The keyword static helps to specify that the main() method can be called without instantiating an object of a class. This is necessary because the main() method is called by the Java interpreter before any objects are created.&lt;br /&gt;
public static void main (String args[])&lt;br /&gt;
{//code}&lt;br /&gt;
After specifying the keyword static, you specify the void keyword. This keyword indicates to the compiler that, the main() method does not return a value.&lt;br /&gt;
&lt;b&gt;9. Write an equivalence of switch statement and if statement.&lt;/b&gt;&lt;br /&gt;
Ans.:-equivalence of switch statement is if and the equivalence of if statement is if else.&lt;br /&gt;
&lt;b&gt;10. Constructor is_____________.&lt;/b&gt;&lt;br /&gt;
Ans.:- used to initialize the objects of the class and has the same name as that of its class.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;PART - B&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1. a) What is inheritance and how one can achieve code reusability? Explain&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;with an example.&lt;/b&gt;&lt;br /&gt;
Ans.:-Inheritance in object oriented programming means that a class of objects can inherit properties from another class of objects. When Inheritance occurs, one class is then referred to as the „parent class‟ or super class‟ or „base class‟.&lt;br /&gt;
Inheritance is an important concept since it allows reuse of class definition without requiring major code changes, inheritance can mean just reusing code , or can mean that you have used a whole class of object with all its variables and functions&lt;br /&gt;
For ex, the bike is a part of the class two wheelers, which is again a part of the vehicle as:&lt;br /&gt;
Vehicle&lt;br /&gt;
Attributes:&lt;br /&gt;
Model:&lt;br /&gt;
Make&lt;br /&gt;
Two Wheeler&lt;br /&gt;
Attributes:&lt;br /&gt;
No. of wheels&lt;br /&gt;
Four Wheeler&lt;br /&gt;
Attributes:&lt;br /&gt;
No. of wheels&lt;br /&gt;
Bike&lt;br /&gt;
Attributes:&lt;br /&gt;
Scooter&lt;br /&gt;
Attributes:&lt;br /&gt;
Car&lt;br /&gt;
Attributes&lt;br /&gt;
Van&lt;br /&gt;
Attributes&lt;br /&gt;
&lt;b&gt;b) What is a class? How does it accomplish data hiding? Explain with example.&lt;/b&gt;&lt;br /&gt;
Ans.:- Class is a template that defines a particular type of object. Classes contain all the features of a particular set of objects. We can use the class definition to create objects of that of class type, that is, to create objects that incorporate all the features belonging to that class.&lt;br /&gt;
Each object of the class will have its own copy of each of the instance variables that appear in the class definition. Each object will have its own values for each instance variable. The name &#39;instance variable&#39; originates from the fact that an object is an &#39;instance&#39; or an occurrence of a class and the values stored in the instance variables for the object differentiate the object from others of the same class type. An instance variable is declared within the class definition in the usual way, with a type name and a variable name, and can have an initial value specified.&lt;br /&gt;
A given class will only have one copy of each of its class variables, and these will be shared between all the objects of the class. The class variables exist even if no objects of the class have been created. They belong to the class, and they can be referenced by any object or class, and not just instances of that class.&lt;br /&gt;
Ex:- we might define a motorcycle class that describes the features of all motorcycles . the motorcycle class serves as an abstract model for the concept of a motorcycle-to interact with each type of motorcycle,we should have a concrete instance of that motorcycle.&lt;br /&gt;
&lt;b&gt;2. a) Compare in terms of their functions and semantics the following pairs of&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;statements:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;i) do while and while&lt;/b&gt;&lt;br /&gt;
Ans.:- The difference between the do-while statement and the while statement is that in the while statement, the loop body is executed only when the condition stated in the statement is true. In the do-while loop, the loop body is executed at least once, regardless of the condition evaluating to true or false. The while loop is also called the top tested loop whereas the do-while loop is also called the bottom tested loop.&lt;br /&gt;
&lt;b&gt;ii) while and for&lt;/b&gt;&lt;br /&gt;
Ans.:- In the for loop, three sections, initialization, test condition and increment/decrement are placed in the same line whereas in the while loop, all three sections are placed in three different places in a program. In the for loop, more than one variable can be initialized, tested and incremented at a time.&lt;br /&gt;
&lt;b&gt;iii) nested if and switch&lt;/b&gt;&lt;br /&gt;
Ans.:-The difference between nested if and switch statement is if allows complex expressions in the condition while switch wants a constant we can&#39;t accidentally forget the break between ifs but you can forget the else (especially during cut&#39;n&#39;paste) switch is usually more compact than lots of nested if else and therefore, more readable If you omit the break between two switch cases, you can fall through to the next case in many C-like languages. With if else you&#39;d need a go to (which is not very nice to your readers ... if the language supports go to at all.&lt;br /&gt;
&lt;b&gt;iv) break and continue.&lt;/b&gt;&lt;br /&gt;
Ans.:- The continue statement stops the current iteration of a loop and immediately starts the next iteration of the same loop. When the current iteration of a loop stops, the statements after the continue statement in the loop are not executed. The break statement immediately terminates the loop, bypassing the conditional expression and any remaining code in the body of the loop. When a break statement is encountered inside the loop, the loop is terminated and program control resumes the next statement following the loop.&lt;br /&gt;
&lt;b&gt;b) Write a program to find sum of the following harmonic series for a given value&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;of n 1+ 1/2 + 1/3 + . . . .+ 1/n.&lt;/b&gt;&lt;br /&gt;
Ans.:- public class Series&lt;br /&gt;
{&lt;br /&gt;
double total;&lt;br /&gt;
public void calculate(int n)&lt;br /&gt;
{&lt;br /&gt;
for(double ctr=1;ctr&amp;lt;=n;ctr++)&lt;br /&gt;
{&lt;br /&gt;
total=total+1/ctr;&lt;br /&gt;
}&lt;br /&gt;
System.out.println(&quot;Sum of harmonic series: &quot;+total);&lt;br /&gt;
}&lt;br /&gt;
public static void main(String a[])&lt;br /&gt;
{&lt;br /&gt;
Series object=new Series();&lt;br /&gt;
int num=Integer.parseInt(a[0]);&lt;br /&gt;
object.calculate(num);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;3. a) Explain different data types in Java with example.&lt;/b&gt;&lt;br /&gt;
Ans.:- DATA TYPES IN JAVA&lt;br /&gt;
byte: It is the smallest integer type. This is a signed 8-bit type and has a range from -128 to 127. For example, the following declaration declares two variables B and C of type byte.&lt;br /&gt;
byte b,c;&lt;br /&gt;
b =2;&lt;br /&gt;
c = -114;&lt;br /&gt;
short: It is a signed 16-bit type and has a range from -32,768 to 32,767. For example, the following declaration declares variable K of type short.&lt;br /&gt;
short k;&lt;br /&gt;
k = 2;&lt;br /&gt;
int: It is a signed 32-bit type and has a range from -2,147,483,648 to 2,147,483,647.&lt;br /&gt;
For example,&lt;br /&gt;
int x = 10;&lt;br /&gt;
int j = 98;&lt;br /&gt;
long: This is signed 64-bit type and has a range from -263 to 263 -1.&lt;br /&gt;
For example,&lt;br /&gt;
long ds = 1000;&lt;br /&gt;
long se;&lt;br /&gt;
se =ds * 24 * 60 * 60;&lt;br /&gt;
double: It uses 64 bits to store a value.&lt;br /&gt;
For example,&lt;br /&gt;
double P, R;&lt;br /&gt;
P = 10.8;&lt;br /&gt;
R =3.14215;&lt;br /&gt;
float: It uses 32 bits to store a value.&lt;br /&gt;
For example,&lt;br /&gt;
float x;&lt;br /&gt;
x = -1111;&lt;br /&gt;
int : It uses 32 bits to store a value.&lt;br /&gt;
For example,&lt;br /&gt;
Int score;&lt;br /&gt;
Score=90;&lt;br /&gt;
char: this data type is used to store characters. It is 16-bit type and has a range from 0 to 65,536.&lt;br /&gt;
For example,&lt;br /&gt;
char c1,c2;&lt;br /&gt;
c1 =84;&lt;br /&gt;
c2 =&#39;g&#39;;&lt;br /&gt;
boolean: it can have only one of two possible values, true or false.&lt;br /&gt;
For example,&lt;br /&gt;
boolean flag;&lt;br /&gt;
flag= false;&lt;br /&gt;
&lt;b&gt;b) Describe the structure of a typical Java program.&lt;/b&gt;&lt;br /&gt;
Ans. :- :- A Java program may contain many classes of which only one class defines a main method. Classes contain data members and methods. Methods of a class operate on the data members of the class. Methods may contain data type declarations and executable statements. To write a Java program, we first define classes and then put them together.&lt;br /&gt;
A Java program may contain one or more sections as shown in the following figure:&lt;br /&gt;
Documentation Section&lt;br /&gt;
Suggested&lt;br /&gt;
Package Statement&lt;br /&gt;
Optional&lt;br /&gt;
Import Statements&lt;br /&gt;
Optional&lt;br /&gt;
Interface Statements&lt;br /&gt;
Optional&lt;br /&gt;
Class Definitions&lt;br /&gt;
Essential&lt;br /&gt;
Main Method class&lt;br /&gt;
{&lt;br /&gt;
Main Method Definition&lt;br /&gt;
}&lt;br /&gt;
Essential&lt;br /&gt;
General Structure Of a Java program&lt;br /&gt;
Documentation Section&lt;br /&gt;
The documentation section comprises a set of comment lines giving the name of the program, the author and other details. Java also uses the comment /**...*/ known as documentation comment.&lt;br /&gt;
Package Statement&lt;br /&gt;
The first statement allowed in a Java file is a package statement. This statement declares a package name and informs the compiler that the classes defined here belong to this package.&lt;br /&gt;
Example: package student;&lt;br /&gt;
Import Statement&lt;br /&gt;
The next thing after a package statement (but before any class definitions) may be a number of import statements. This is similar to the #include statement in C++. Example:&lt;br /&gt;
import student.test;&lt;br /&gt;
This statement instructs the interpreter to load the test class contained in the package student.&lt;br /&gt;
Interface Statements&lt;br /&gt;
An interface is like a class but includes a group of method declarations. This is also an optional section and is used only when we wish to implement the multiple inheritance feature in the program.&lt;br /&gt;
Class Definitions&lt;br /&gt;
A Java program may contain multiple class definitions. Classes are the primary and essential elements of a Java program.&lt;br /&gt;
&lt;b&gt;4. a) What is JVM ? How does it help to achieve platform independence? If JVM is&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;available for windows then can we run program written on Unix platform ?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Comment.&lt;/b&gt;&lt;br /&gt;
Ans.:-Java compiler produces an intermediate code known as byte code for a machine that does not exist . this machine is called JAVA VIRTUAL MACHINE (JVM). . Java is known as platform-neutral language because Java&#39;s byte codes are designed to be read, interpreted, and executed in exactly the same manner on any computer hardware or operating system that supports a Java run-time.&lt;br /&gt;
Yes. One of the fundamental principles of Java is &quot;write once, run anywhere.&quot; This means that Java source code can run on any platform for which a JVM exists, regardless of where the original code was developed&lt;br /&gt;
&lt;b&gt;b) How are data and method organized in an object oriented program ? Illustrate&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;the same for car object.&lt;/b&gt;&lt;br /&gt;
Ans.:- In an object-oriented program, a set of variables and functions used to describe an object constitutes a &quot;class&quot;.&lt;br /&gt;
A class defines the structure and behavior (data and method) that will be shared by a set of objects. Each object of a given class contains the structure and behavior defined by the class, as if it were stamped out of a mould in the shape of a class. A class is a logical construct. An object has physical reality. When we create a class, you will specify the code and data that will constitute that class. Collectively, these elements are called the members of the class. Specifically, the data defined by the class are referred to as member variables or instance variables. The code that operates on that data is referred to as member methods or just methods, which define the use of the member variables.&lt;br /&gt;
&lt;b&gt;5. a) Distinguish between the following terms:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;i) Dynamic binding and message passing.&lt;/b&gt;&lt;br /&gt;
Ans.:- Dynamic binding in java is the mechanism by which compiler cannot determine which method implementation to use in advance. Based on the class of the object, the runtime system selects the appropriate method at runtime. Dynamic binding is also needed when the compiler determines that there is more than one possible method that can be executed by a particular call.&lt;br /&gt;
Java&#39;s program units, classes, are loaded dynamically (when needed) by the Java run-time system. Loaded classes are then dynamically linked with existing classes to form an integrated unit. The lengthy link-and-load step required by third-generation programming languages is eliminated.&lt;br /&gt;
Message Passing: In an object based world the only way for anything to happen is by objects communicating with each other and acting on the results. This communication is called message passing and involves one object sending a message to another and (possibly) receiving a result.&lt;br /&gt;
&lt;b&gt;ii) Inheritance and polymorphism.&lt;/b&gt;&lt;br /&gt;
Ans.:- Inheritance in object-oriented programming means that a class of objects can inherit properties from another class of objects. When inheritance occurs, one class is then referred as the &#39;parent class&#39; or &#39;super class&#39; or &#39;base class&#39;. In turn, these serve as a pattern for a &#39;derived class&#39; or &#39;subclass&#39;.&lt;br /&gt;
Inheritance is an important concept since it allows reuse of class definition without requiring major code changes. Inheritance can mean just reusing code, or can mean that you have used a whole class of object with all its variables and functions.&lt;br /&gt;
Polymorphism: It is a key concept in object-oriented programming. Poly means many, morph means change (or &#39;form&#39;).&lt;br /&gt;
Polymorphism is simply a name given to an action that is performed by similar objects. Polymorphism allows a common data-gathering message to be sent to each class and allows each subclass object to respond to a message format in an appropriate manner to its own properties. Polymorphism encourages something we call &#39;extendibility&#39;. In other words, an object or a class can have its uses extended.&lt;br /&gt;
&lt;b&gt;b) What are the difference between C and Java ?How Java and C++ are similar?&lt;/b&gt;&lt;br /&gt;
Ans.:-&lt;br /&gt;
&lt;b&gt;6. a) Define programming. What are the types of programming? Explain.&lt;/b&gt;&lt;br /&gt;
Ans.:- Programming:- a programming is a specific set of ordered operations for a computer to perform .&lt;br /&gt;
UNSTRUCTURED PROGRAMMING&lt;br /&gt;
In an unstructured programming the main program directly operates on global data.&lt;br /&gt;
PROCEDURAL PROGRAMMING&lt;br /&gt;
With procedural programming we are able to combine returning sequence of statements into one single place . a procedure call is used to invoke the procedure.&lt;br /&gt;
MODULAR PROGRAMMING&lt;br /&gt;
With modular programming procedures of a common functionality are grouped together into separate modules. A program therefore no longer consists of only one single part.&lt;br /&gt;
OBJECT-ORIENTED PROGRAMMING&lt;br /&gt;
In object oriented programming, a complex system is decomposed in accordance to the key abstractions of the problem.&lt;br /&gt;
It is a method of implementation in which programs are organized as co-operative collection of objects, each of which representation an instance of some class and whose classes all members of a hierarchy of classes united in inheritance relationships.&lt;br /&gt;
&lt;b&gt;b) Explain bitwise operators in Java with example.&lt;/b&gt;&lt;br /&gt;
Ans.:- BITWISE OPERATORS&lt;br /&gt;
SHIFT AND LOGICAL OPERATORS&lt;br /&gt;
A shift operator allows you to perform bit manipulation on data.&lt;br /&gt;
OPERATOR&lt;br /&gt;
USE&lt;br /&gt;
OPERATION&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
Op1 &amp;gt;&amp;gt; op2&lt;br /&gt;
Shift bits of op1 right by distance op2&lt;br /&gt;
&amp;lt;&amp;lt;&lt;br /&gt;
Op1 &amp;lt;&amp;lt; op2&lt;br /&gt;
Shift bits of op1 left by distance op2&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Op1&amp;gt;&amp;gt;&amp;gt; op2&lt;br /&gt;
Shift bits of op1 right by distance op2&lt;br /&gt;
Each shift operator shifts the bits of the left-hand operand over by the number of positions indicated by the right- hand operand.&lt;br /&gt;
Ex. – 13 &amp;gt;&amp;gt; 1&lt;br /&gt;
The binary representation of the number 13 is 1101. The result of the shift operations is 1101 shifted to the right by one position -1106 or 6 in decimal.&lt;br /&gt;
The java programming language also provides these four operators that perform logical functions on their operands :-&lt;br /&gt;
OPERATOR&lt;br /&gt;
USE&lt;br /&gt;
OPERATION&lt;br /&gt;
&amp;amp;&lt;br /&gt;
Op1 &amp;amp; op2&lt;br /&gt;
Bitwise and&lt;br /&gt;
|&lt;br /&gt;
Op1 | op2&lt;br /&gt;
Bitwise or&lt;br /&gt;
^&lt;br /&gt;
Op1 ^ op2&lt;br /&gt;
Bitwise x or&lt;br /&gt;
~&lt;br /&gt;
Op1 ~ op2&lt;br /&gt;
Bitwise complement&lt;br /&gt;
The &amp;amp; operation performs the logical “and” function on each parallel pair of bits in each operand . the “and” function sets the resulting bit of 1 if both operands are 1 .&lt;br /&gt;
Op1&lt;br /&gt;
Op2&lt;br /&gt;
RESULT&lt;br /&gt;
0&lt;br /&gt;
0&lt;br /&gt;
0&lt;br /&gt;
0&lt;br /&gt;
0&lt;br /&gt;
0&lt;br /&gt;
1&lt;br /&gt;
0&lt;br /&gt;
0&lt;br /&gt;
1&lt;br /&gt;
1&lt;br /&gt;
1&lt;br /&gt;
Suppose we were to “and” the values 12 and 13&lt;br /&gt;
12 &amp;amp; 13&lt;br /&gt;
The result of this operation is 12. Because the binary representation of 13 is 1101. The “and” function sets the resulting bit to 1 if both to 1 if both operand bits are 1, otherwise, the resulting bit is 0.&lt;br /&gt;
&lt;b&gt;7. a) List and explain different types of loops in Java.&lt;/b&gt;&lt;br /&gt;
Ans. :- Loops in java&lt;br /&gt;
 While loop&lt;br /&gt;
 Do loop&lt;br /&gt;
 For loop , continue and break statement&lt;br /&gt;
THE WHILE LOOP&lt;br /&gt;
The while statement contains a condition and a loop body. the condition is enclosed within parentheses.&lt;br /&gt;
All the variables used in the condition of the while statement must be initialized before the while loop. The values of the variables used in the condition must be changed in the loop body. Otherwise, the condition may always remain true and the loop may never terminate.&lt;br /&gt;
Syntax:&lt;br /&gt;
While (test condition)&lt;br /&gt;
{&lt;br /&gt;
Body of the loop&lt;br /&gt;
True&lt;br /&gt;
};&lt;br /&gt;
Condition&lt;br /&gt;
Statement&lt;br /&gt;
Ex.-&lt;br /&gt;
Class numbers&lt;br /&gt;
{&lt;br /&gt;
Public state void main(String args[])&lt;br /&gt;
{&lt;br /&gt;
Int n = 0 ;&lt;br /&gt;
Int num = 5;&lt;br /&gt;
While (n &amp;lt;= num)&lt;br /&gt;
{&lt;br /&gt;
System.out.println(n);&lt;br /&gt;
N++&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
DO STATEMENT&lt;br /&gt;
Similar to the while statement, the do-while statement is a lopp statement provided by java. The statement helps to perform certain repetitive actions depending on a condition.&lt;br /&gt;
The major difference between the do-while statement and the while statement is that in the while statement, the loop body is executed only when the condition stated in the statement is true.&lt;br /&gt;
We can use the do-while loop in situations where an action must be performed at least once without evaluating the condition.&lt;br /&gt;
Program to print the numbers from 1 to 5&lt;br /&gt;
Class numbers&lt;br /&gt;
{&lt;br /&gt;
Public static void main (string args[])&lt;br /&gt;
{&lt;br /&gt;
Syntax:&lt;br /&gt;
While (test condition)&lt;br /&gt;
{ do&lt;br /&gt;
Body of the loop&lt;br /&gt;
};&lt;br /&gt;
False True&lt;br /&gt;
While&lt;br /&gt;
Condition&lt;br /&gt;
Statement&lt;br /&gt;
Int n=0;&lt;br /&gt;
Int num = 5;&lt;br /&gt;
Do&lt;br /&gt;
{&lt;br /&gt;
System.out.println(n);&lt;br /&gt;
N++;&lt;br /&gt;
}&lt;br /&gt;
While(n&amp;lt;=5);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
FOR STATEMENTS&lt;br /&gt;
To manage iterative actions, java provides the for statement as an efficient alternative to the while statement. The statement creates to loop in which a set of statements is repeatedly executed until the specified condition becomes false.&lt;br /&gt;
The syntax of the for statement is&lt;br /&gt;
For(initialization expression; test condition; update expressions)&lt;br /&gt;
{&lt;br /&gt;
Statement1;&lt;br /&gt;
Statement2;&lt;br /&gt;
}&lt;br /&gt;
The for statement starts with the for keyword.&lt;br /&gt;
&lt;b&gt;b) What is polymorphism? Explain method overriding with example and prove&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;that it is a polymorphism.&lt;/b&gt;&lt;br /&gt;
Ans.:- :- Polymorphism (from the Greek, meaning &quot;many forms&quot;) is a feature that allows one interface to be used for a general class of actions. The specific action is determined by the exact nature of the situation.&lt;br /&gt;
Ex.- a stack (which is a last-in, first-out list). You might have a program that requires three types of stacks. One stack is used for integer values, one for floating-point values, and one for characters.&lt;br /&gt;
METHOD OVERRIDING&lt;br /&gt;
In the class hierarchy, when a method in a subclass has the same name and type signature as method&lt;br /&gt;
in the superclass, then the method in the subclass is said to override the method in superclass.&lt;br /&gt;
class Book { //super class defined&lt;br /&gt;
String name = “JAVA PROGRAMMING” ;&lt;br /&gt;
int id = “34567”;&lt;br /&gt;
void show ( ) {&lt;br /&gt;
System.out.println( “Book name is “ +name);&lt;br /&gt;
System.out.println( “Book id is “ +id);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
Save this file as book.java and compile. This is our Base Class&lt;br /&gt;
class Book1 extends Book { // This is the subclass&lt;br /&gt;
String author = “micheal janson”;&lt;br /&gt;
void show ( ) {&lt;br /&gt;
System.out.println( “Book name is “ +name);&lt;br /&gt;
System.out.println( “Book id is “ +id);&lt;br /&gt;
System.out.println( “The author name is “ +author);&lt;br /&gt;
}&lt;br /&gt;
public static void main(String args[ ] ) {&lt;br /&gt;
Book1 x = new Book1( );&lt;br /&gt;
x.show();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;8. a) What is a parameterized constructor? Explain its usage with an example.&lt;/b&gt;&lt;br /&gt;
Ans:- A parameterized constructor in java is just a constructor which take some kind of parameter (variable) when is invoked. For example. class MyClass { //this is a normal constructor public MyClass(){ //do something } //this is a parameterized constructor public MyClass(int var){ //do something } //this is another parameterized constructor public MyClass(String var, Integer var2){ //do something } }&lt;br /&gt;
&lt;b&gt;b) Explain the methods&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;(i) Trim&lt;/b&gt;&lt;br /&gt;
Ans. :- The trim method returns a copy of the invoking string from which any leading and trailing white space has been removed. It has the general form&lt;br /&gt;
String trim ( );&lt;br /&gt;
class altStr{&lt;br /&gt;
public static void main (String args[ ]) {&lt;br /&gt;
String str = &quot;Hello&quot;;&lt;br /&gt;
String str2 = &quot;Java&quot;;&lt;br /&gt;
str = str.toUpperCase();&lt;br /&gt;
str2 = str2.toLowerCase();&lt;br /&gt;
System.out.println (str); // HELLO&lt;br /&gt;
System.out.println (str2);// java&lt;br /&gt;
str = str.concat(str2); // str now equals &quot;HELLO java&quot;&lt;br /&gt;
System.out.println (str);&lt;br /&gt;
str = str.trim(); // str now equals &quot;HELLOjava&quot;&lt;br /&gt;
System.out.println (str);&lt;br /&gt;
str = str.substring (5,str.length()); // str = &quot;java&quot;&lt;br /&gt;
System.out.println (str);&lt;br /&gt;
str = str.replace (&#39;a&#39;, &#39;i&#39;); // str = &quot;jivi&quot;&lt;br /&gt;
System.out.println (str);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;ii) substring&lt;/b&gt;&lt;br /&gt;
The subString method is used to create new instances of the class String from existing instances. The new string is specified by giving the required index range within the existing string.&lt;br /&gt;
String substring(int startIndex)&lt;br /&gt;
This returns the sub string that starts at startIndex and runs to the end of the invoking string.&lt;br /&gt;
String substring(int start Index, int endIndex)&lt;br /&gt;
This returns the substring that starts at startindex and runs through endIndex-1;&lt;br /&gt;
&lt;b&gt;iii) length&lt;/b&gt;&lt;br /&gt;
The length of a string is the number of characters that it contains. To obtain this value call a length method.&lt;br /&gt;
int length();&lt;br /&gt;
class strCmp {&lt;br /&gt;
public static void main (String args[ ]) {&lt;br /&gt;
String str = &quot;Hello&quot;;&lt;br /&gt;
String str2 = &quot;Java&quot;;&lt;br /&gt;
System.out.println (str.equals(str2)); // false&lt;br /&gt;
System.out.println (str.compareTo(str2)); // a negative number,&lt;br /&gt;
i.e. str is less than str2&lt;br /&gt;
System.out.println (str.charAt(0)); // H, i.e. char is position 0&lt;br /&gt;
System.out.println (str.length() + str2.length()); // 5 + 4 = 9&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/7343385671272659955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/7343385671272659955'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/04/assignment-4th-sem-tb-42-java.html' title='KU ASSIGNMENT 4TH SEM: TB - 42 - JAVA PROGRAMMING'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-98286647839477062</id><published>2012-04-18T10:05:00.001+05:30</published><updated>2012-04-18T10:52:15.088+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>KU ASSIGNMENT 4TH SEM: TB - 41 - ALGORITHMS</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;font-size: large;&quot;&gt;&lt;b&gt;PART – A&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;I. Say whether the following statements are true or false.&lt;/b&gt;&lt;br /&gt;
1) Definiteness is one of the properties of an algorithm.&lt;br /&gt;
Ans:- TRUE&lt;br /&gt;
2) Graph is a linear data structure.&lt;br /&gt;
Ans :- FALSE&lt;br /&gt;
3) A tree is a connected graph.&lt;br /&gt;
Ans:- TRUE&lt;br /&gt;
4) The data structure used by recursion is stack.&lt;br /&gt;
Ans :- TRUE&lt;br /&gt;
5) Queue works on the strategy “First in First out”.&lt;br /&gt;
Ans :- TRUE&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;II. Using suitable word or phrase fill up the blanks in the following sentences:&lt;/b&gt;&lt;br /&gt;
1) _____________is the process of executing a correct program on data sets and&lt;br /&gt;
measuring the time and space.&lt;br /&gt;
Ans:- PROFILING&lt;br /&gt;
2) Tree is a_____________data structure.&lt;br /&gt;
Ans:-NON-LINEAR&lt;br /&gt;
3) For a graph with „n‟ number of nodes the number of edges to form a tree is&lt;br /&gt;
_____________&lt;br /&gt;
Ans: - n-1&lt;br /&gt;
4) “Last in First out” Data structure is referred to as _____________&lt;br /&gt;
Ans :- Stacks&lt;br /&gt;
5) A binary tree of depth „K‟ has maximum of_____________number of&lt;br /&gt;
nodes.&lt;br /&gt;
Ans : - 2k-1nodes,k&amp;gt;= 0&lt;br /&gt;
6) A _____________is a graph without self loop and parallel edges.&lt;br /&gt;
Ans. SIMPLE GRAPH&lt;br /&gt;
7) The two methods of searching are_____________and_____________&lt;br /&gt;
Ans.:- SEQUENTIAL SEARCH AND BINARY SEARCH&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;III. Write brief answers to the following questions:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;1) Define algorithm. What are its properties?&lt;/b&gt;&lt;br /&gt;
Ans :- An algorithm is a set of instructions that provide step-by-step specifications to perform a task.&lt;br /&gt;
Ex:-&lt;br /&gt;
Step by step procedure for display 10 natural numbers:-&lt;br /&gt;
1. Set the value of counter to 1&lt;br /&gt;
2. Display counter&lt;br /&gt;
3. Increment counter by 1&lt;br /&gt;
4. If counter &amp;lt;= 10, go to step 2&lt;br /&gt;
The preceding step -by -step procedure is an algorithm because it produces the correct result in&lt;br /&gt;
A finite number of steps.&lt;br /&gt;
The properties of an algorithm are:&lt;br /&gt;
 Input: Specifies the data set that is applied to the algorithm to check its validity.&lt;br /&gt;
 Output: Specifies the data set that is produced as a result of the algorithm execution.&lt;br /&gt;
 Definiteness: Specifies that the instructions described in the algorithm should be well defined and should not create any ambiguity.&lt;br /&gt;
 Termination: Specifies that the instructions described in the algorithm must contain a proper termination condition.&lt;br /&gt;
 Effectiveness: Specifies that the algorithm take less time and less memory space during its execution.&lt;br /&gt;
&lt;b&gt;2) Give atleast four real life examples where we use stack operations.&lt;/b&gt;&lt;br /&gt;
Ans:- The real life examples of stacks are:&lt;br /&gt;
 Bangles in a hand: The bangles wore in a hand follow last-in-first-out (LIFO) strategy of stack. The bangle that you wear first is the last one to be taken out while removing all the bangles from the hand. The bangle that is worn last is the first one to be taken out.&lt;br /&gt;
 Same circumference circular rings in a pole: The rings having same circumference placed into a pole also follow LIFO strategy. The topmost ring, which was the last to be placed in the pole, is the first one to be taken out.&lt;br /&gt;
 The bolts screwed to a single nut: When the bolts are screwed to a single nut, the last screwed bolt is unscrewed first and the bolt that was screwed first is unscrewed in the last.&lt;br /&gt;
 Battery cells in a torch: The battery cells in a torch also follow the same LIFO strategy of stack.&lt;br /&gt;
&lt;b&gt;3) Differentiate full and complete binary trees.&lt;/b&gt;&lt;br /&gt;
Ans:- The following table lists the differences between complete binary trees and full binary trees: Complete binary trees Full binary trees&lt;br /&gt;
All the nodes at the previous level are fully accommodated before the next level is accommodated.&lt;br /&gt;
All levels are maximally accommodated.&lt;br /&gt;
Number of nodes at the last (n) level may or may not equal to 2n.&lt;br /&gt;
Number of nodes at the last (n) level is exactly equal to 2n.&lt;br /&gt;
Leaf nodes may or may not be at the same level.&lt;br /&gt;
All leaf nodes are at the same level.&lt;br /&gt;
A complete binary tree may or may not be full binary tree.&lt;br /&gt;
A full binary tree is always a complete binary tree.&lt;br /&gt;
&lt;b&gt;4) What are the demerits of recursion?&lt;/b&gt;&lt;br /&gt;
Ans:- Demerits of recursion are:&lt;br /&gt;
Many programming languages do not support recursion; hence, recursive mathematical function is implemented using iterative methods.&lt;br /&gt;
Even though mathematical functions can be easily implemented using recursion, it is always at the cost of execution time and memory space.&lt;br /&gt;
The recursive programs take considerably more storage and take more time during processing.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;PART - B&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;1. a) What are the characteristics of an algorithm? Describe with an example.&lt;/b&gt;&lt;br /&gt;
Ans:- There are five Characteristics of every Algorithm: -&lt;br /&gt;
1) INPUT&lt;br /&gt;
2) OUTPUT&lt;br /&gt;
3) DEFINITENESS&lt;br /&gt;
4) Effectiveness&lt;br /&gt;
5) Termination&lt;br /&gt;
Therefore, an algorithm can be defined as a sequence of definite and effective instructions, which terminates with the production of correct output from the given input.&lt;br /&gt;
For EXAMPLE:- try to present the scenario of a man brushing his own teeth as an algorithm as follows :-&lt;br /&gt;
1). Take the brush&lt;br /&gt;
2). Apply the paste&lt;br /&gt;
3). Start brushing&lt;br /&gt;
4). Rinse&lt;br /&gt;
5). Wash&lt;br /&gt;
6). Stop&lt;br /&gt;
If one goes through these 6 steps without being aware of the statement of the problem, he could possibly feel that this is the algorithmfor claning a toilet. This is because of several ambiguities while comprehending every step. Step-1 may imply tooth brush,paint brush, toilet brush, etc. uch an algorithm arises from the instruction of the above algorithm step.thus every step has to be made unambiguous.An unambiguous step is called definite instruction.&lt;br /&gt;
&lt;b&gt;b) Write an algorithm to implement any three operations of a queue.&lt;/b&gt;&lt;br /&gt;
Ans:- Algorithm: Isempty&lt;br /&gt;
Input: Q, Queue&lt;br /&gt;
Output: Boolean&lt;br /&gt;
Method:&lt;br /&gt;
If (F==0)&lt;br /&gt;
Return (yes)&lt;br /&gt;
Else&lt;br /&gt;
Return (no)&lt;br /&gt;
If end&lt;br /&gt;
Algorithm ends&lt;br /&gt;
Algorithm: Isfull&lt;br /&gt;
Input: Q, Queue&lt;br /&gt;
Output: Boolean&lt;br /&gt;
Method:&lt;br /&gt;
If (R==SIZE)&lt;br /&gt;
Return (yes)&lt;br /&gt;
Else&lt;br /&gt;
Return (no)&lt;br /&gt;
If end&lt;br /&gt;
Algorithm ends&lt;br /&gt;
Algorithm: Front&lt;br /&gt;
Input: Q, Queue&lt;br /&gt;
Output: element in the front&lt;br /&gt;
Method:&lt;br /&gt;
If (Isempty (Q))&lt;br /&gt;
Print „no front element‟&lt;br /&gt;
Else&lt;br /&gt;
Return (Q[F])&lt;br /&gt;
If end&lt;br /&gt;
Algorithm ends&lt;br /&gt;
&lt;b&gt;2. a) Describe the two methods of representing a graph.&lt;/b&gt;&lt;br /&gt;
Ans :- Two ways of representating Graph&lt;br /&gt;
DIRECTED GRAPH :- A graph that has an ordered pair of vertices, (x,y). Here , X is the tail and y is the head of the edge. There is a path from vertex X to vertex Y. However , a path from y to x may or may not exist . A path from y to x will be represented by e = (y, x) . Therefore , e = (X , Y) and e = (Y , X) are to seprate edges for a directed graph.&lt;br /&gt;
DIRECTED GRAPH&lt;br /&gt;
The graph contains five vertices,namely,v1,v2,v3,v4, and v5. The graph contains four directed edges,namely,(v1,v2) , (v2,v3) , (v4,v3) , (v4,v1) , (v4,v5) , and (v5,v1).&lt;br /&gt;
UNDIRECTED GRAPH :- A graph that has an unordered pair of vertices representing an edge. This means that if e = (v ,w) ,then (v, w) and (w ,v) are considered as the same edge.&lt;br /&gt;
For EX :-&lt;br /&gt;
UNDIRECTED GRAPH&lt;br /&gt;
&lt;b&gt;b) Design an algorithm to generate all prime numbers between 10 and 20.&lt;/b&gt;&lt;br /&gt;
Ans.:- Algorithm: Primality_Testing (Second approach)&lt;br /&gt;
Input : between 10 &amp;amp; 20 , number&lt;br /&gt;
flag, test condition&lt;br /&gt;
Output : flag updated&lt;br /&gt;
Method&lt;br /&gt;
flag = 0&lt;br /&gt;
for(i=2 to square_root(n) in steps of +1 and flag = 0)&lt;br /&gt;
if( n % i = 0) // n mod i&lt;br /&gt;
flag = 1&lt;br /&gt;
end_if&lt;br /&gt;
end-for&lt;br /&gt;
if(flag = 0)&lt;br /&gt;
display „Number is prime‟&lt;br /&gt;
else&lt;br /&gt;
display „Number is not prime‟&lt;br /&gt;
end_if&lt;br /&gt;
Algorithm ends&lt;br /&gt;
&lt;b&gt;3. a) Trace out the algorithm Max Min on a data set containing atleast 8 elements.&lt;/b&gt;&lt;br /&gt;
Ans:- Steps to perform MaxMin on a data set (2,4,6,3,8,1,9,7) are:&lt;br /&gt;
(2,4,6,3) (8,1,9,7)&lt;br /&gt;
((2,4)(6,3)) ((8,1)(9,7))&lt;br /&gt;
In sublist (4,6), max is 6 and min is 4. In sublist (8,9), max is 9 and min is 8.&lt;br /&gt;
Comparing max and min values of sublist (2,4) and sublist (6,3), value of max is 6 and min is 2.&lt;br /&gt;
Therefore, for sublist (2,4,6,3) max is 6 and min is 2.&lt;br /&gt;
Similarly, comparing max and min values of sublist (8,1) and sublist (9,7), value of max is 9 and min is 1.&lt;br /&gt;
Therefore, for sublist (8,1,9,7) max is 9 and min is 1.&lt;br /&gt;
Finally, comparing max and min values of sublist (2,4,6,3) and sublist (8,1,9,7), value of max is 9 and min is 1.&lt;br /&gt;
&lt;b&gt;b) Design an algorithm to sort the elements using merge sort.&lt;/b&gt;&lt;br /&gt;
Ans:- Algoritm : MERGESOt&lt;br /&gt;
Input : low,high,the lower and upper limits of the list to be sorted&lt;br /&gt;
A,the list of elements&lt;br /&gt;
Output : A, Sorted list&lt;br /&gt;
Method:&lt;br /&gt;
If (low &amp;lt; high)&lt;br /&gt;
Mid (low +high )/2&lt;br /&gt;
MERGESORT(low,mid)&lt;br /&gt;
MERGESORT(mid,high)&lt;br /&gt;
MERGE(A,low,mid,high)&lt;br /&gt;
Ifend&lt;br /&gt;
Algorithm ends&lt;br /&gt;
&lt;b&gt;4. What are preorder, Inorder, postorder traversals of a binary tree? Design recursion&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;algorithms to implement them and explain with the help of an example.&lt;/b&gt;&lt;br /&gt;
Ans:- Traversal is the most important operation done on a binary tree. Traversal is the process of visiting the verticesof the tree in a systematic order. Systematic means that every time the tree is traversed it should yield the same result.&lt;br /&gt;
PRE-ORDER TRAVERSAL&lt;br /&gt;
In this traversal , the nodes are visited in the order of root, Left child and then right child ,i.e.,&lt;br /&gt;
1) Visit the root node first.&lt;br /&gt;
2) Go to the first left sub-tree.&lt;br /&gt;
3) After the completion of the left sub-tree, Go to the right sub-tree.&lt;br /&gt;
Here , the lleaf nodes represent the stopping criteria. We go to the sibling sub-tree after the traversal of a sub tree.&lt;br /&gt;
IN-ORDER Traversal&lt;br /&gt;
In this traversal , the nodes are visited in the order of the left child,root and then right child.i.e., the left sub-tree is traversed first, then the root is visited and then the right sub-tree is traversed. Here also,the left nodes denotes the stopping criteria.&lt;br /&gt;
POST-ORDER Traversal&lt;br /&gt;
In this traversal, the nodes are visited in the order of left child,right child and then root. i.e.,the left sub-tree is traversed first, then the sibling is traversed next.the root is visited last.&lt;br /&gt;
The recursion algorithm&lt;br /&gt;
Algorithm: Pre-order Traversal&lt;br /&gt;
Input: bt, address of the root node&lt;br /&gt;
Output: Preorder sequence&lt;br /&gt;
Method:&lt;br /&gt;
if(bt != NULL)&lt;br /&gt;
{&lt;br /&gt;
Display([bt].data)&lt;br /&gt;
Pre-order Traversal([bt].Lchild)&lt;br /&gt;
Pre-order Traversal([bt].Rchild)&lt;br /&gt;
}&lt;br /&gt;
Algorithm ends.&lt;br /&gt;
Algorithm: In-order Traversal&lt;br /&gt;
Input: bt, address of the root node&lt;br /&gt;
Output: Inorder sequence&lt;br /&gt;
Method:&lt;br /&gt;
if(bt != NULL)&lt;br /&gt;
{&lt;br /&gt;
In-order Traversal([bt].Lchild)&lt;br /&gt;
Display([bt].data)&lt;br /&gt;
In-order Traversal([bt].Rchild)&lt;br /&gt;
}&lt;br /&gt;
Algorithm ends.&lt;br /&gt;
Algorithm: Post-order Traversal&lt;br /&gt;
Input: bt, address of the root node&lt;br /&gt;
Output: Postorder sequence&lt;br /&gt;
Method:&lt;br /&gt;
if(bt != NULL)&lt;br /&gt;
{&lt;br /&gt;
Post-order Traversal([bt].Lchild)&lt;br /&gt;
Post-order Traversal([bt].Rchild)&lt;br /&gt;
Display([bt].data)&lt;br /&gt;
}&lt;br /&gt;
Algorithm ends.&lt;br /&gt;
&lt;b&gt;5. a) What is binary search? Develop a recursive algorithm for binary search.&lt;/b&gt;&lt;br /&gt;
Ans:- Binary search is necessary to have the vector in an alphabetical or numerically increasing order .&lt;br /&gt;
Consider an example where we have to search for the name Steve in a tlephone directory that is sorted alphabetically . in this case ,we donot search for the name sequentially .instead, we open the telephone directory at the middle to open the telephone directory at the middle to determeine which half contains the name.&lt;br /&gt;
Recursive algorithm for binary search&lt;br /&gt;
Algorithm : Binary search&lt;br /&gt;
Input: A,vector of n elements&lt;br /&gt;
K,earch elements&lt;br /&gt;
Output : low-index of k&lt;br /&gt;
Method :&lt;br /&gt;
Low = l, high = n&lt;br /&gt;
While(low &amp;lt;= high-1)&lt;br /&gt;
{&lt;br /&gt;
Mid = (low + high)2&lt;br /&gt;
If(k&amp;lt;a[mid]])&lt;br /&gt;
High = mid&lt;br /&gt;
Else&lt;br /&gt;
Low = mid&lt;br /&gt;
If end&lt;br /&gt;
}&lt;br /&gt;
While end&lt;br /&gt;
If (k= A[low])&lt;br /&gt;
{&lt;br /&gt;
Write (“ search successful”)&lt;br /&gt;
Write( k is at location low)&lt;br /&gt;
Exit();&lt;br /&gt;
}&lt;br /&gt;
Else&lt;br /&gt;
Write(search unsuccessful);&lt;br /&gt;
If end;&lt;br /&gt;
Algorithm ends;&lt;br /&gt;
&lt;b&gt;b) What are the two methods of representing a binary tree?&lt;/b&gt;&lt;br /&gt;
Ans:- The two methods of representing binary tree are:-&lt;br /&gt;
 Static allocation and,&lt;br /&gt;
 Dynamic allocation&lt;br /&gt;
In static allocation ,we have two ways of representing the binary tree.one is through the use of adjacency matrices and other through the use of single represention dimensional array representation.&lt;br /&gt;
&lt;b&gt;6. a) Design an algorithm to check whether a given string is a palindrome or not.&lt;/b&gt;&lt;br /&gt;
Ans :- Algorithm: check whether the string is a palindrome or not&lt;br /&gt;
Input: string, flag&lt;br /&gt;
Output: string is a palindrome&lt;br /&gt;
Method:&lt;br /&gt;
count = 0&lt;br /&gt;
while (the next character ch in the string is not empty)&lt;br /&gt;
a(count) = ch&lt;br /&gt;
count = count+1&lt;br /&gt;
end while&lt;br /&gt;
half = count/2palin = true&lt;br /&gt;
for (i=1 to half in steps of 1 and j=count to half in steps of –1 do)&lt;br /&gt;
if (a (i)! =a (j))&lt;br /&gt;
palin = false&lt;br /&gt;
break&lt;br /&gt;
end if&lt;br /&gt;
if (palin = true)&lt;br /&gt;
Display &#39;String is a palindrome&#39;&lt;br /&gt;
else&lt;br /&gt;
Display &#39;String is not a palindrome&#39;&lt;br /&gt;
end if&lt;br /&gt;
end for&lt;br /&gt;
Algorithm ends&lt;br /&gt;
&lt;b&gt;b) Trace out the algorithm quick sort on the data set {1,5,7,19,15,8,9, 10}.&lt;/b&gt;&lt;br /&gt;
Ans :-&lt;br /&gt;
{(1),5,7,19,15,8,9, 10}&lt;br /&gt;
{(1),5,7,15,19,8,9, 10}&lt;br /&gt;
{1,5,7,(15),10,8,9, 19}&lt;br /&gt;
{1,5,7,(10),15,8,9, 19}&lt;br /&gt;
{1,5,7,(10),8,15,9, 19}&lt;br /&gt;
{1,5,7,8,10,15,9, 19}&lt;br /&gt;
{1,5,7,8,10,9,15, 19}&lt;br /&gt;
{1,5,7,8,9,10,15, 19}&lt;br /&gt;
&lt;b&gt;7. a) What is validation and testing of algorithms?&lt;/b&gt;&lt;br /&gt;
Ans :- Validating:- Once an algorithm has been devised it become necessary to show that it works it computer the correct to all possible, legal input. One simply way is to code into a program. However converting the algorithm into program is a time consuming process. Hence,it is essential to be reasonably sure about the effectiveness of the algorithm beforeit is coded. This process, at the algorithm level,is called&quot;validation&quot;. Several mathematical and other empirical method of validation are available. Providing the validation of an algorithm is a fairly complex process and most often a complete theoritical validation though desirable, mey not be provided. Alternately, algorithm segment,which have been proved elsewhere may be used and the overall working algorithm may be empirically validated for several test cases.And, The process of measuring the effectiveness of an algorithm before it is coded to know the algorithm is correct for every possible input.This process is called validation.&lt;br /&gt;
Example :- This article describes the algorithms for validating bank routing numbers and credit card number using&lt;br /&gt;
the checksum built into the number. While they differ in how they are generated, the technique used for both is similar.&lt;br /&gt;
Testing : - The test of an algorithm is that the program based on the algorithm should run satisfactorily. Testing a program really involves two phases a) debugging and b) Profiling. Debugging is the process of executing programs with sample datasets to determine if the results obtained are satisfactory.When unsatisfactory results are generated ,suitable changes are made in the program to get the desired results. On the other hand,profiling or performance measurement is the process of executing a correct program on different data sets to mesure the time and space that it takes to compute the results.&lt;br /&gt;
&lt;b&gt;b) Explain the terms with examples&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;i) Finite graph&lt;/b&gt;&lt;br /&gt;
Ans:-A graph with a finite number of vertices as well as finite number of edges is called a finite graph.&lt;br /&gt;
Finite graph&lt;br /&gt;
&lt;b&gt;ii) Isolated and pendent vertices&lt;/b&gt;&lt;br /&gt;
Ans :- A vertex having no incident edge is called an isolated vertex. Vertex v4 and v7 are isolated vertices(in fig). A vertex of degree one is called a pendent vertex or an end vertex. Vertex v3 is pendent vertex (in fig).&lt;br /&gt;
Graph ontaining isolated vertices and pendent vertex&lt;br /&gt;
&lt;b&gt;iii) NULL graph&lt;/b&gt;&lt;br /&gt;
in the definition of a graph G = ( V , E) it is possible for the edge set E to be empty. Such a graph , without any edges, is called a null graph.&lt;br /&gt;
&lt;b&gt;iv) Path.&lt;/b&gt;&lt;br /&gt;
Ans.:- if a walk has the restriction of no repetition of vertices and no edge is retraced it is called a path.&lt;br /&gt;
&lt;b&gt;8. Write short notes on :&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;a) Debugging&lt;/b&gt;&lt;br /&gt;
Ans.- Debugging is the process of executing programs with sample datasets to determine if the results obtained are satisfactory. When unsatisfactory results are generated, suitable changes are made in the program to get the desired results. On the other hand, profiling or performance measurement is the process of executing a correct program on different data sets to measure the time and space that it takes to compute the results.&lt;br /&gt;
&lt;b&gt;b) The need for recursion&lt;/b&gt;&lt;br /&gt;
Ans.:- The need of recursion is :&lt;br /&gt;
1) Mathematical functions such as factorial and fibonaci series generation can be easily implemented using recursion than iteration.&lt;br /&gt;
2) in iterative techniques looping of statement is very much necessary..&lt;br /&gt;
&lt;b&gt;c) Incidence matrix.&lt;/b&gt;&lt;br /&gt;
Ans.:- The incidence matrix contains only two elements , o and 1. Such a matrix is called a binary matrix or a (0,1) matrix. Since every edge is incident on exactly two vertices, each column of a has exactly two 1.The number of 1‟ in each now equals the degree of the corresponding vertex. A row with all 0‟ , therefore ,represents an isolated vertex. Parallel edges in a graph produce identical columns in its incidence matrix.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/98286647839477062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/98286647839477062'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/04/assignment-tb-41-java-programming.html' title='KU ASSIGNMENT 4TH SEM: TB - 41 - ALGORITHMS'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-7948733892166184209</id><published>2012-04-10T08:40:00.001+05:30</published><updated>2012-04-10T08:41:20.386+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Documents"/><title type='text'>KNOW YOUR OWN MOBILE NUMBER</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Having many SIM cards confuse you which number is for which SIM card. People like me having 20+ SIM cards confuse me which number is for which SIM card. Network operators are providing free SIM cards so they could get more and more users. They provide these types of schemes for limited time. Person like me fall into these schemes and buy free SIM cards. Whenever I want to know my mobile number, I just call from it to another mobile phone. Sometimes, it becomes very difficult when I have zero balance on the SIM card. But, here is the trick which will tell you your own mobile number. Here are the codes for different operators.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Airtel:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Send sms IM to 57070&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Reliance:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Dial *1#&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. Idea:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Dial *789#&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;4. Aircel:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Dial *888#&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5. Videocon:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Dial *1#&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;6. Loop:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Dial *222#&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7. Virgin:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Dial *1#&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8. Vodafone:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Dial *555*0#&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;9. BSNL:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Call 24365 and ask them&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;10. Tata Docomo:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Dial *1# or 1*#&lt;br /&gt;
&lt;br /&gt;
It is very easy to use the above codes to know your mobile number. Above codes make the request to the service provider and then displays your mobile number on your screen. It uses the USSD service to display your number, just like you check your balance. To use above codes, just go to your mobile’s homescreen, tap the above numbers correctly and hit the call button. It will then show that the request is under process. After few seconds, it will display your mobile number. You can use these codes on any mobile you have, it doesn’t require any expensive mobile.&lt;br /&gt;
&lt;br /&gt;
I hope the above numbers will work for you. If you find any difficulties or have any other this type of numbers, then we would like to listen it. Comment them below !&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/7948733892166184209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/7948733892166184209'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/04/know-your-own-mobile-number.html' title='KNOW YOUR OWN MOBILE NUMBER'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-6852709939696152298</id><published>2012-04-09T22:35:00.000+05:30</published><updated>2012-04-09T22:36:41.290+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips and Tricks"/><title type='text'>TOP 10 FACEBOOK TIPS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Below is a listing of our top 10 tips for the popular social networking website Facebook.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Hide users, games, polls, etc.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
It quickly gets annoying seeing some users posts, game invites, polls, etc. Hovering your mouse to the right of the post and clicking the Hide button as shown below can hide any post. Once this button is pressed you&#39;ll be prompted with the option to hide that user or in the case of a Facebook application the option to hide that application from ever showing up on your profile.&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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF6l-RlmaEaL3qWdxM6lPY4emGsHB1q1-1lRgX-ULn4N42anSTjd-FETfAKRxrlGCIMoIMjXBdx-82VkG6W53hBhZz5d-4xse-xArpuELTNUO8lt-aIn6CiPscRSEfFhZNhL1T5NB2KF0/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;101&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF6l-RlmaEaL3qWdxM6lPY4emGsHB1q1-1lRgX-ULn4N42anSTjd-FETfAKRxrlGCIMoIMjXBdx-82VkG6W53hBhZz5d-4xse-xArpuELTNUO8lt-aIn6CiPscRSEfFhZNhL1T5NB2KF0/s400/1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
To unhide someone or unblock an application click the Edit Options link in the bottom right corner of the news feed as shown below.&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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5HBqEZeiaytnv-rsHJwnhjcJPsoomza48VZSdY0osYhy6gOiiQAYMmhA2Rk-_aeeCdFJuC0vOaOPzaTkYCGRTT7oHUT8G1wa6XxIdOc99SoYY27F0UM0IV7xWxDyiC4suwkeBdIGfWm0/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;33&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5HBqEZeiaytnv-rsHJwnhjcJPsoomza48VZSdY0osYhy6gOiiQAYMmhA2Rk-_aeeCdFJuC0vOaOPzaTkYCGRTT7oHUT8G1wa6XxIdOc99SoYY27F0UM0IV7xWxDyiC4suwkeBdIGfWm0/s400/2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Greasemonkey and FB Purity&lt;br /&gt;
&lt;br /&gt;
Although Facebook does not allow the ability to hide friends getting new friends messages, friends becoming fans of something, and some application messages they can still be hidden with browser add-ons. If you&#39;re running Mozilla Firefox, Chrome, Opera, or Safari we suggest installing the Facebook Purity add-on.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Update your privacy settings&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Click Account in the top right corner of the Facebook window and then click Privacy settings to adjust who is capable of seeing what on your Facebook profile. We highly recommend going through all the privacy settings to verify your privacy is properly protected.&lt;br /&gt;
&lt;br /&gt;
Anything that is not set to friends only or friends of friends can be seen by anyone searching on the Internet. Below is a few things we recommend for most users.&lt;br /&gt;
&lt;br /&gt;
Under Search in Privacy settings uncheck Public Search Results. This will prevent users from finding your account and profile picture in search results such as Google&lt;br /&gt;
Under Application settings, make sure you&#39;re only allowing applications you want to have access to your information. Applications that you grant rights to can have access to your Facebook profile information.&lt;br /&gt;
If you&#39;re curious to see how a program or web page connect to the Facebook API can see your profile see Tip135.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. Use the Facebook top bar for navigation&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMWgFlA8NetI7yoHb-aAGhJ6QqzKOJGjjHll105TybZYB_svv4PWxe1nzW9E973TTKwdurbqxB0Tyh4dVevOx7ZIoFTjjru1e3sZQUZV5ZT6ZyySQyhcb5nCVmhs5pnt4Dhxk2YxQU5eI/s1600/3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;61&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMWgFlA8NetI7yoHb-aAGhJ6QqzKOJGjjHll105TybZYB_svv4PWxe1nzW9E973TTKwdurbqxB0Tyh4dVevOx7ZIoFTjjru1e3sZQUZV5ZT6ZyySQyhcb5nCVmhs5pnt4Dhxk2YxQU5eI/s400/3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Knowing how to properly navigate is vital if you want to get the most out of Facebook. Below is a brief description of each of the available options in the top bar as shown above.&lt;br /&gt;
&lt;br /&gt;
Home (facebook logo) - Clicking this logo will take you to your wall (News Feed) that shows all friends recent posts.&lt;br /&gt;
&lt;br /&gt;
Friend requests - If any friend requests are waiting to be approved this icon will show a notification of how many friends are waiting for approval. This icon can also be clicked when you want to view any friend recommendations or search for friends on Facebook.&lt;br /&gt;
&lt;br /&gt;
Messages - This section allows you to send and receive private messages between one or more people you&#39;re friends with.&lt;br /&gt;
&lt;br /&gt;
Notifications - Any time a friend or Facebook application creates a new post you&#39;ll be notified in this section. Clicking this icon will show all recent notifications. If you wish to change what is capable of sending you notifications including any Facebook applications or games click the See All Notifications link at the bottom and check or uncheck what you want to be notified on.&lt;br /&gt;
&lt;br /&gt;
Search - Finally, the search box in Facebook can be a powerful tool that can be used to quickly find any current friends or people on Facebook. In addition searching for terms such as a company name, product, sports team, music band, etc. will find fan pages and groups that can be joined.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4. Modify your account notifications&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Keep your e-mail and your cell phone clean by updating or eliminate Facebook notifications or keep more up-to-date by adding new notifications. Facebook notifications can be added and removed by clicking Account link in the top right corner, then Account Settings, and then clicking the Notifications tab.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5. Top News and Most Recent&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdSsA8c5XVKhqUnLeE33VZ_ELS0QZjTKFU-JxKS1_5hHHSBnmgiZOBdN_cytY-lKyA6n5PZHkssp_25IcBbLte3MCBvAqUxIkq11g_kl_B_9Wxf8F_96b1UanbPiGwp_kc6h5ZAzvnKKE/s1600/4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;23&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdSsA8c5XVKhqUnLeE33VZ_ELS0QZjTKFU-JxKS1_5hHHSBnmgiZOBdN_cytY-lKyA6n5PZHkssp_25IcBbLte3MCBvAqUxIkq11g_kl_B_9Wxf8F_96b1UanbPiGwp_kc6h5ZAzvnKKE/s400/4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
By default Facebook will display your wall postings in the News format, which means it only displays posts it believes are most relevant to you. These results are based on your past interaction with your friends. If you want to see every post made by all your friends that are not hidden click the Most recent link in the upper right section of your news feed as shown in the above picture example.&lt;br /&gt;
&lt;br /&gt;
If you want to adjust who shows up manually click the Edit Options in the bottom right corner of your news feed.&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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_DKG2shp_l_OkDuGPpf4wf9UHwElIawpSI87ONrba4rb6-A1Rk8p_x2JgFpr65TASPrNgE5tVnRbQonI7eZi8o1PLY5fmCbuB7kquVFN_RYyJ73YbD4imG1ucFEUG9jRHtu5pBep_LtI/s1600/5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;33&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_DKG2shp_l_OkDuGPpf4wf9UHwElIawpSI87ONrba4rb6-A1Rk8p_x2JgFpr65TASPrNgE5tVnRbQonI7eZi8o1PLY5fmCbuB7kquVFN_RYyJ73YbD4imG1ucFEUG9jRHtu5pBep_LtI/s400/5.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;6. View High School work friends&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If you&#39;ve added your High School or previous Work locations to your profile, quickly see all classmates and co-workers on Facebook by clicking the link in your Info tab under your profile.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7. Quickly change profile picture&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Your profile picture can be quickly changed to any other picture by visiting your profile, hovering the mouse over your current profile picture, and clicking the Change Picture link that appears in the top right corner of the picture.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8. Don&#39;t post private information on friend&#39;s walls on in comments&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
When you make a post on a friend&#39;s wall or in any of their comments realize that any of their friends are going to be able to see that post. If you wish for something to remain only between you and a friend send them a Facebook message instead.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;9. Suggestions and random friend invites&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
As you get more friends on Facebook it will begin making friend, groups, and fan suggestions. These are suggestions made by Facebook and not your friends. Unless these are something you&#39;re interested in they can be ignored.&lt;br /&gt;
&lt;br /&gt;
This same rule can be applied to people who may want to be your friend that you don&#39;t know. If you don&#39;t know someone don&#39;t accept his or her friend invite. Once someone becomes your friend they&#39;ll have access to any information your friends are capable of seeing.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;10. Tag your Facebook friends in your photos&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Always make sure to tag any of your Facebook friends that are in pictures you upload. However, never tag someone who is not in the picture. When someone is tagged in a photo that picture is automatically added to that persons profile and is a great way to share pictures with all friends.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/6852709939696152298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/6852709939696152298'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/04/top-10-facebook-tips.html' title='TOP 10 FACEBOOK TIPS'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF6l-RlmaEaL3qWdxM6lPY4emGsHB1q1-1lRgX-ULn4N42anSTjd-FETfAKRxrlGCIMoIMjXBdx-82VkG6W53hBhZz5d-4xse-xArpuELTNUO8lt-aIn6CiPscRSEfFhZNhL1T5NB2KF0/s72-c/1.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-8311793787194541894</id><published>2012-04-03T14:41:00.001+05:30</published><updated>2012-04-07T13:20:06.240+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips and Tricks"/><title type='text'>RENAME WINDOWS XP START BUTTON</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;http://www.angusj.com/resourcehacker/reshack_setup.exe&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmzSp01tXWsO4RZDrJrQ54WbhvzPaUnWfTGhbfVHIjbYWGYzfjO9iCSW5f7NuyIdsAb0dOnSHNRr-nWEWoUI1AeVdHubVTLOePt6svA_TsoB8Mq3IEbcz89TB7VN8UAhdHU47gJGIKSrw/s200/Apps-Resource-Hacker-icon.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
&lt;br /&gt;
First, Before anything, you need to download &lt;a href=&quot;http://www.angusj.com/resourcehacker/reshack_setup.exe&quot; target=&quot;_blank&quot;&gt;Resource hacker&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If above link doesn&#39;t work try to download from this &lt;a href=&quot;http://www.angusj.com/resourcehacker/&quot; target=&quot;_blank&quot;&gt;site&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;First Step&lt;/b&gt;&amp;nbsp;- The first step is to make a backup copy of the file explorer.exe located at C:\Windows\explorer. Place it in a folder somewhere on your hard drive where it will be safe. Start Resource Hacker and open explorer.exe located at C:\Windows\explorer.exe&lt;br /&gt;
The category we are going to be using is String Table In Resource Hacker. Expand it by clicking the plus sign then navigate down to and expand string 37 followed by highlighting 1033. If you are using the Classic Layout rather than the XP Layout, use number 38. The right hand pane will display the stringtable as shown in Fig. 02. We’re going to modify item 578, currently showing the word “start” just as it displays on the current Start button.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
There is no magic here. Just double click on the word “start” so that it’s highlighted, making sure the quotation marks are not part of the highlight. They need to remain in place, surrounding the new text that you’ll type. Go ahead and type your new entry&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Second Step&lt;/b&gt; – Modify the Registry Now that the modified explorer.exe has been created it’s necessary to modify the registry so the file will be recognized when the user logs on to the system. If you don’t know how to access the registry I’m not sure this article is for you, but just in case it’s a temporary memory lapse, go to Start (soon to be something else) Run and type regedit in the Open: field. Navigate to:&lt;br /&gt;
HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon&lt;br /&gt;
&lt;br /&gt;
the Right pane (Fig. 05), double click the Shell entry to open the Edit String dialog box as shown in Fig. 06. In Value data: line, enter the name that was used to save the modified explorer.exe file. Click OK.&lt;br /&gt;
&lt;br /&gt;
Close Registry Editor and either log off the system and log back in, or reboot the entire system if that’s your preference. If all went as planned you should see your new Start button with the revised text.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/8311793787194541894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/8311793787194541894'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/04/rename-windows-xp-start-button.html' title='RENAME WINDOWS XP START BUTTON'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmzSp01tXWsO4RZDrJrQ54WbhvzPaUnWfTGhbfVHIjbYWGYzfjO9iCSW5f7NuyIdsAb0dOnSHNRr-nWEWoUI1AeVdHubVTLOePt6svA_TsoB8Mq3IEbcz89TB7VN8UAhdHU47gJGIKSrw/s72-c/Apps-Resource-Hacker-icon.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-757042416104057693.post-6796763569007152271</id><published>2012-03-24T08:51:00.001+05:30</published><updated>2012-04-07T13:09:47.952+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Documents"/><title type='text'>UTILIZING SEARCH ENGINES</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: left;&quot;&gt;
So much information is on the web, its mind boggling. Thankfully we have search&lt;/div&gt;
engines to sift through them and catagorize them for us. Unfortunatly, there is still so&lt;br /&gt;
much info that even with these search engines, its often a painstakingly slow process&lt;br /&gt;
(something comparable to death for a hacker) to find exactly what you&#39;re looking for.&lt;br /&gt;
&lt;br /&gt;
Lets get right into it.&lt;br /&gt;
&lt;br /&gt;
I use google.com as my primary search engine because it presently tops the charts as far as&lt;br /&gt;
the sites that it indexes which means more pertinent info per search.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







1. Page translation.&lt;/h4&gt;
Just because someone speaks another language doesn&#39;t mean they dont have anything useful to say. I use translation tools like the ones found at&lt;br /&gt;
&lt;br /&gt;
http://babelfish.altavista.com&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
http://world.altavista.com&lt;br /&gt;
to translate a few key words I am searching for. Be specific and creative because these tools arent the most accurate things on the planet.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;





2. Directories.&lt;/h4&gt;
These days everything is about $$$. We have to deal/w SEO (search engine optimization) which seems like a good idea on paper until you do a search for toys and get 5 pornsites in the first 10 results. Using a sites directory will eliminate that. You can narrow your search down easily by looking for the info in specific catagories. (PS google DOES have directories, they&#39;re at: directory.google.com)&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







3. Here are some tips that google refers to as &quot;advanced&quot;&lt;/h4&gt;
&lt;br /&gt;
A. &quot;xxxx&quot; / will look for the exact phrase. (google isnt case sensitive)&lt;br /&gt;
B. -x / will search for something excluding a certain term&lt;br /&gt;
C. filetype:xxx / searches for a particular file extention (exe, mp3, etc)&lt;br /&gt;
D. -filetype:xxx / excludes a particular file extention&lt;br /&gt;
E. allinurl:x / term in the url&lt;br /&gt;
F. allintext:x / terms in the text of the page&lt;br /&gt;
G. allintitle:x / terms in the html title of that page&lt;br /&gt;
H. allinanchor:x / terms in the links&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







4. OR&lt;/h4&gt;
Self explanatory, one or the other... (ie: binder OR joiner)&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







5. ~X&lt;/h4&gt;
Synonyms/similar terms (in case you can&#39;t think of any yourself)&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







6. Numbers in a range.&lt;/h4&gt;
Lets say you&#39;re looking for an mp3 player but only want to spend up to $90. Why swim through all the others? MP3 player $0..$90 The 2 periods will set a numeric range to search between. This also works with dates, weights, etc&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







7. +&lt;/h4&gt;
Ever type in a search and see something like this:&lt;br /&gt;
&quot;The following words are very common and were not included in your search:&quot;&lt;br /&gt;
Well, what if those common words are important in your search? You can force google to search through even the common terms by putting a + in front of the denied word.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







8. Preferences&lt;/h4&gt;
It amazes me when I use other peoples PCs that they dont have their google search preferences saved. When you use google as much as I do, who can afford to not have preferences? They&#39;re located on the right of the search box, and have several options, though I only find 2 applicable for myself...&lt;br /&gt;
A. Open results in new browser&lt;br /&gt;
B. Display 10-100 results per page. (I currently use 50 per page, but thats a resolution preference, and 5X&#39;s the default)&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







9. *&lt;/h4&gt;
Wildcard searches. Great when applied to a previously mentioned method. If you only know the name of a prog, or are looking for ALL of a particular file (ie. you&#39;re DLing tunes) something like *.mp3 would list every mp3.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







10. Ever see this?&lt;/h4&gt;
&quot;In order to show you the most relevant results, we have omitted some entries very similar to the X already displayed. If you like, you can repeat the search with the omitted results included.&quot; The answer is YES. yes yes yes. Did I mention yes? I meant to.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;







11. Search EVERYWHERE&lt;/h4&gt;
Use the engine to its fullest. If you dont find your answer in the web section, try the group section. Hell, try a whole different search engine. Dont limit yourself, because sometimes engines seem to intentionally leave results out.&lt;br /&gt;
ex. use google, yahoo, and altavista. search the same terms... pretty close, right? Now search for disney death. Funny, altavista has plenty of disney, but no death...hmmm.&lt;br /&gt;
&lt;br /&gt;
If you&#39;ve read this far into this tutorial without saying, &quot;Great, a guy that copied a few google help pages and thinks its useful info&quot; then I will show you WHY (besides accuracy, speed, and consistancy finding info on ANYTHING) its nice to know how a search engine works. You combine it/w your knowledge of other protocol.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
Want free music? Free games? Free software? Free movies? God bless FTP! Try this search:&lt;br /&gt;
intitle:&quot;Index of music&quot; &quot;rolling stones&quot; mp3&lt;br /&gt;
Substitute rolling stones/w your favorite band. No? Try the song name, or another file format. Play with it. Assuming SOMEONE made an FTP and uploaded it, you&#39;ll find it.&lt;br /&gt;
&lt;br /&gt;
For example....I wanted to find some Sepultura. If you never heard them before, they&#39;re a Brazilian heavy metal band that kicks ass. I started with this:&lt;br /&gt;
intitle:&quot;Index of music&quot; &quot;Sepultura&quot; mp3 &amp;lt;-- nothing&lt;br /&gt;
intitle:&quot;Index of música&quot; &quot;Sepultura&quot; mp3 &amp;lt;-- nothing&lt;br /&gt;
intitle:&quot;Index of musica&quot; &quot;Sepultura&quot; mp3 &amp;lt;-- not good enough&lt;br /&gt;
intitle:&quot;Index of music&quot; &quot;Sepultura&quot; * &amp;lt;-- found great stuff, but not enough Sepultura&lt;br /&gt;
&lt;br /&gt;
At this point it occurs to me that I may be missing something, so I try:&lt;br /&gt;
intitle:&quot;index of *&quot; &quot;sepultura&quot; mp3 &amp;lt;-- BANG!&lt;br /&gt;
(and thats without searching for spelling errors)&lt;br /&gt;
Also try inurl:ftp&lt;br /&gt;
&lt;br /&gt;
I find that * works better for me than trying to guess other peoples mis-spellings.&lt;br /&gt;
&lt;br /&gt;
The same method applies for ebooks, games, movies, SW, anything that may be on an FTP site.&lt;br /&gt;
&lt;br /&gt;
I hope you enjoyed this tutorial, and I saw that recently a book and an article was written on the very same topic. I havn&#39;t read them as of yet, but check em out, and get back to me if you feel I missed something important and should include anything else.&lt;br /&gt;
&lt;br /&gt;
intitle:&quot;index of&quot; &quot;google hacks&quot; ebook&lt;br /&gt;
&lt;br /&gt;
I&#39;ve said it before, I&#39;ll say it again... BE CREATIVE.&lt;br /&gt;
You&#39;ll be surprised what you can find.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/6796763569007152271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/757042416104057693/posts/default/6796763569007152271'/><link rel='alternate' type='text/html' href='http://vslifehacker.blogspot.com/2012/03/utilizing-search-engines.html' title='UTILIZING SEARCH ENGINES'/><author><name>vslifehacker</name><uri>http://www.blogger.com/profile/15704429478841698502</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></entry></feed>