<?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-403345396373519177</id><updated>2024-09-01T02:40:09.555-07:00</updated><category term="ARRAY"/><category term="ENGLISH WORDS"/><category term="KERNEL"/><category term="Program to multiply two polynomials in c with array"/><category term="UNIX practicals"/><category term="c"/><category term="c code of polynomial addition with array"/><category term="computer science project help"/><category term="kernl"/><category term="score"/><category term="unix"/><title type='text'>COMPUTER SCIENCE PROGRAMS</title><subtitle type='html'>HERE I WILL TELL YOU ABOUT DIFFERENT PROGRAMS OF C++, UNIX, SQL, 8085 MICROPROCESSOR.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-2611397745659032818</id><published>2011-05-21T13:44:00.000-07:00</published><updated>2011-05-21T13:45:09.155-07:00</updated><title type='text'></title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(51, 51, 51); font-family: &#39;Lucida Grande&#39;, Tahoma, Verdana, Arial, sans-serif; font-size: 13px; &quot;&gt;&lt;pre style=&quot;line-height: 18px; margin-top: 18px; margin-right: 18px; margin-left: 18px; margin-bottom: 18px; font-family: monospace; color: rgb(0, 96, 0); font-size: 13px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(242, 242, 242); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(216, 223, 234); border-right-color: rgb(216, 223, 234); border-bottom-color: rgb(216, 223, 234); border-left-color: rgb(216, 223, 234); border-left-width: 3px; padding-top: 7px; padding-bottom: 7px; padding-left: 10px; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;code style=&quot;font-family: monospace; color: rgb(0, 96, 0); font-size: 13px; &quot;&gt;            &lt;title&gt;My Great Web page&lt;/title&gt;                  &lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=YOUR_URL&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; width:450px; height:80px&quot;&gt;&amp;lt;iframe&amp;gt;     &amp;lt;/body&amp;gt;  &amp;lt;/html&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/span&amp;gt;   &lt;br /&gt;     &amp;lt;title&amp;gt;My Great Web page&amp;lt;/title&amp;gt;&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;/iframe&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/2611397745659032818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/2611397745659032818' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/2611397745659032818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/2611397745659032818'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/05/my-great-web-page-great-web-page.html' title=''/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-983476990954073985</id><published>2011-04-08T06:53:00.001-07:00</published><updated>2011-04-08T06:54:29.773-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="score"/><title type='text'>score</title><content type='html'>&lt;!-- VCricket Score Feed Code Start v 4.00 --&gt;&lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot; src=&quot;http://ifeed.vcricket.com/get_codeEx.aspx?dk=7F75C404DBA248108CA230070346FB59&amp;amp;sc=&amp;amp;sz=180x320&amp;amp;lang=en&quot;&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href=&quot;http://www.vcricket.com/help.aspx?q=java_disable&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;htt://www.vcricket.com/images/error_java_180x320.gif&quot; alt=&quot;Javascript is disabled.&quot; width=&quot;180&quot; height=&quot;320&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;font-size:8px; padding-left:10px&quot;&gt;&lt;a href=&quot;http://www.vcricket.com/&quot;&gt;vCricket.com&lt;/a&gt;&lt;/div&gt;&lt;/noscript&gt;&lt;!-- Please note this will not work if directly run in browser. --&gt;&lt;!-- VCricket Score Feed Code End --&gt;&lt;!-- VCricket Score Feed Code Start v 4.00 --&gt;&lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot; src=&quot;http://ifeed.vcricket.com/get_codeEx.aspx?dk=7F75C404DBA248108CA230070346FB59&amp;amp;sc=&amp;amp;sz=180x320&amp;amp;lang=en&quot;&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href=&quot;http://www.vcricket.com/help.aspx?q=java_disable&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;htt://www.vcricket.com/images/error_java_180x320.gif&quot; alt=&quot;Javascript is disabled.&quot; width=&quot;180&quot; height=&quot;320&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;font-size:8px; padding-left:10px&quot;&gt;&lt;a href=&quot;http://www.vcricket.com/&quot;&gt;vCricket.com&lt;/a&gt;&lt;/div&gt;&lt;/noscript&gt;&lt;!-- Please note this will not work if directly run in browser. --&gt;&lt;!-- VCricket Score Feed Code End --&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/983476990954073985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/983476990954073985' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/983476990954073985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/983476990954073985'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/04/vcricket.html' title='score'/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-2599267331585437188</id><published>2011-03-18T12:23:00.000-07:00</published><updated>2011-03-18T12:25:53.192-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Program to multiply two polynomials in c with array"/><title type='text'>Program to multiply two polynomials in c with array .</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;						&lt;/span&gt;/*  Program to multiply two polynomials. */&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/#include &lt;stdio.h&gt;&lt;/div&gt;&lt;div&gt;#include &lt;conio.h&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#define MAX 10&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;struct term&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;int coeff ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;int exp ;&lt;/div&gt;&lt;div&gt;} ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;struct poly&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;struct term t [10] ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;int noofterms ;&lt;/div&gt;&lt;div&gt;} ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void initpoly ( struct poly *) ;&lt;/div&gt;&lt;div&gt;void polyappend ( struct poly *, int, int ) ;&lt;/div&gt;&lt;div&gt;struct poly polyadd ( struct poly, struct poly ) ;&lt;/div&gt;&lt;div&gt;struct poly polymul ( struct poly, struct poly ) ;&lt;/div&gt;&lt;div&gt;void display ( struct poly ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void main( )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;struct poly p1, p2, p3 ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;clrscr( ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;initpoly ( &amp;amp;p1 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;initpoly ( &amp;amp;p2 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;initpoly ( &amp;amp;p3 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;polyappend ( &amp;amp;p1, 1, 4 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;polyappend ( &amp;amp;p1, 2, 3 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;polyappend ( &amp;amp;p1, 2, 2 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;polyappend ( &amp;amp;p1, 2, 1 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;polyappend ( &amp;amp;p2, 2, 3 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;polyappend ( &amp;amp;p2, 3, 2 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;polyappend ( &amp;amp;p2, 4, 1 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;p3 = polymul ( p1, p2 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;printf ( &quot;\nFirst polynomial:\n&quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;display ( p1 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;printf ( &quot;\n\nSecond polynomial:\n&quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;display ( p2 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;printf ( &quot;\n\nResultant polynomial:\n&quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;display ( p3 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;getch( ) ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* initializes elements of struct poly */&lt;/div&gt;&lt;div&gt;void initpoly ( struct poly *p )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;int i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;p -&gt; noofterms = 0 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;for ( i = 0 ; i &lt; MAX ; i++ )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;p -&gt; t[i].coeff = 0 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;p -&gt; t[i].exp = 0 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* adds the term of polynomial to the array t */&lt;/div&gt;&lt;div&gt;void polyappend ( struct poly *p, int c, int e )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;p -&gt; t[p -&gt; noofterms].coeff = c ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;p -&gt; t[p -&gt; noofterms].exp =  e ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;( p -&gt; noofterms ) ++ ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* displays the polynomial equation */&lt;/div&gt;&lt;div&gt;void display ( struct poly p )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;int flag = 0, i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;for ( i = 0 ; i &lt; p.noofterms ; i++ )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;if ( p.t[i].exp != 0 )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;printf ( &quot;%d x^%d + &quot;, p.t[i].coeff, p.t[i].exp ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;printf ( &quot;%d&quot;, p.t[i].coeff ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;flag = 1 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if ( !flag )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;printf ( &quot;\b\b  &quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;/* adds two polynomials p1 and p2 */&lt;/div&gt;&lt;div&gt;struct poly polyadd ( struct poly p1, struct poly p2 )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;int i, j, c ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;struct poly p3 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;initpoly ( &amp;amp;p3 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if ( p1.noofterms &gt; p2.noofterms )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;c = p1.noofterms ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;c = p2.noofterms ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;for ( i = 0, j = 0 ; i &lt;= c ; p3.noofterms++ )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;if ( p1.t[i].coeff == 0 &amp;amp;&amp;amp; p2.t[j].coeff == 0 )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;break ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;if ( p1.t[i].exp &gt;= p2.t[j].exp )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;if ( p1.t[i].exp == p2.t[j].exp )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;p3.t[p3.noofterms].coeff = p1.t[i].coeff + p2.t[j].coeff ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;p3.t[p3.noofterms].exp = p1.t[i].exp ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;i++ ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;j++ ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;p3.t[p3.noofterms].coeff = p1.t[i].coeff ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;p3.t[p3.noofterms].exp = p1.t[i].exp ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;i++ ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;p3.t[p3.noofterms].coeff = p2.t[j].coeff ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;p3.t[p3.noofterms].exp = p2.t[j].exp ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;j++ ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;return p3 ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* multiplies two polynomials p1 and p2 */&lt;/div&gt;&lt;div&gt;struct poly polymul ( struct poly p1, struct poly p2 )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;int coeff, exp ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;struct poly temp, p3 ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;initpoly ( &amp;amp;temp ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;initpoly ( &amp;amp;p3 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if ( p1.noofterms != 0 &amp;amp;&amp;amp; p2.noofterms != 0 )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;int i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;for ( i = 0 ; i &lt; p1.noofterms ; i++ )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;int j ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;struct poly p ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;initpoly ( &amp;amp;p ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;for ( j = 0 ; j &lt; p2.noofterms ; j++ )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;coeff = p1.t[i].coeff * p2.t[j].coeff ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;exp = p1.t[i].exp + p2.t[j].exp ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;polyappend ( &amp;amp;p, coeff, exp ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;if ( i != 0 )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;p3 = polyadd ( temp, p ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;temp = p3  ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;temp = p ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;return p3 ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/2599267331585437188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/2599267331585437188' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/2599267331585437188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/2599267331585437188'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/03/program-to-multiply-two-polynomials-in.html' title='Program to multiply two polynomials in c with array .'/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-1063790785170136757</id><published>2011-03-18T12:21:00.001-07:00</published><updated>2011-03-18T12:23:24.974-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c code of polynomial addition with array"/><title type='text'>Program to add two polynomials  in c</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;       &lt;/span&gt;/*: Program to add two polynomials. */&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#include &quot;stdio.h&quot;&lt;/div&gt;&lt;div&gt;#include &quot;conio.h&quot;&lt;/div&gt;&lt;div&gt;#define MAX 10&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;struct term&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int coeff ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int exp ;&lt;/div&gt;&lt;div&gt;} ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;struct poly&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;struct term t [10] ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int noofterms ;&lt;/div&gt;&lt;div&gt;} ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void initpoly ( struct poly * ) ;&lt;/div&gt;&lt;div&gt;void polyappend ( struct poly *, int c, int e ) ;&lt;/div&gt;&lt;div&gt;struct poly polyadd ( struct poly, struct poly ) ;&lt;/div&gt;&lt;div&gt;void display ( struct poly ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void main( )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;struct poly p1, p2, p3 ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;clrscr( ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;initpoly ( &amp;amp;p1 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;initpoly ( &amp;amp;p2 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;initpoly ( &amp;amp;p3 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p1, 1, 7 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p1, 2, 6 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p1, 3, 5 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p1, 4, 4 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p1, 5, 2 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p2, 1, 4 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p2, 1, 3 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p2, 1, 2 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p2, 1, 1 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;polyappend ( &amp;amp;p2, 2, 0 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;p3 = polyadd ( p1, p2 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;printf ( &quot;\nFirst polynomial:\n&quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;display ( p1 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;printf ( &quot;\n\nSecond polynomial:\n&quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;display ( p2 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;printf ( &quot;\n\nResultant polynomial:\n&quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;display ( p3 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;getch( ) ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* initializes elements of struct poly */&lt;/div&gt;&lt;div&gt;void initpoly ( struct poly *p )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;p -&gt; noofterms = 0 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;for ( i = 0 ; i &lt;&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;p -&gt; t[i].coeff = 0 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;p -&gt; t[i].exp = 0 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* adds the term of polynomial to the array t */&lt;/div&gt;&lt;div&gt;void polyappend ( struct poly *p, int c, int e )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;p -&gt; t[p -&gt; noofterms].coeff = c ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;p -&gt; t[p -&gt; noofterms].exp =  e ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;( p -&gt; noofterms ) ++ ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* displays the polynomial equation */&lt;/div&gt;&lt;div&gt;void display ( struct poly p )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int flag = 0, i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;for ( i = 0 ; i &lt;&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;if ( p.t[i].exp != 0 )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;printf ( &quot;%d x^%d + &quot;, p.t[i].coeff, p.t[i].exp ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;printf ( &quot;%d&quot;, p.t[i].coeff ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;flag = 1 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;if ( !flag )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;printf ( &quot;\b\b  &quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* adds two polynomials p1 and p2 */&lt;/div&gt;&lt;div&gt;struct poly polyadd ( struct poly p1, struct poly p2 )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int i, j, c ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;struct poly p3 ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;initpoly ( &amp;amp;p3 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;if ( p1.noofterms &gt; p2.noofterms )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;c = p1.noofterms ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;c = p2.noofterms ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;for ( i = 0, j = 0 ; i &lt;= c ; p3.noofterms++ )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;if ( p1.t[i].coeff == 0 &amp;amp;&amp;amp; p2.t[j].coeff == 0 )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;break ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;if ( p1.t[i].exp &gt;= p2.t[j].exp )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;if ( p1.t[i].exp == p2.t[j].exp )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;p3.t[p3.noofterms].coeff = p1.t[i].coeff + p2.t[j].coeff ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;p3.t[p3.noofterms].exp = p1.t[i].exp ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;i++ ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;j++ ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;p3.t[p3.noofterms].coeff = p1.t[i].coeff ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;p3.t[p3.noofterms].exp = p1.t[i].exp ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;i++ ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;p3.t[p3.noofterms].coeff = p2.t[j].coeff ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;p3.t[p3.noofterms].exp = p2.t[j].exp ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;j++ ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;return p3 ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/1063790785170136757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/1063790785170136757' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/1063790785170136757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/1063790785170136757'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/03/program-to-add-two-polynomials-in-c.html' title='Program to add two polynomials  in c'/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-7161783850924271501</id><published>2011-03-18T09:56:00.000-07:00</published><updated>2011-03-18T10:05:27.063-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ARRAY"/><category scheme="http://www.blogger.com/atom/ns#" term="c"/><title type='text'>ARRAY IN C</title><content type='html'>&lt;div&gt;                                                        /* Program to implement an array. */&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizb7JBulT1Cd-TJDfyCSIAxnIP-IHMwoXB7yizLlHkWD9DHb5apAVps4XLjJzC-3X_2SgGWOCfgSxZ5hyUoZkG38k4FRpHmD24qgi10qqelWq2qNp8cgaSVtZphjxn5IqX2hJe2vcDcx8/s320/f3-4.png&quot; style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 193px;&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5585465614159928802&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#include  &quot;conio.h&quot;&lt;/div&gt;&lt;div&gt;#include  &quot;stdio.h&quot;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#define MAX 5&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void insert ( int *, int pos, int num ) ;&lt;/div&gt;&lt;div&gt;void del ( int *, int pos ) ;&lt;/div&gt;&lt;div&gt;void reverse ( int * ) ;&lt;/div&gt;&lt;div&gt;void display ( int * ) ;&lt;/div&gt;&lt;div&gt;void search ( int *, int num ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void main( )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int arr[5] ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;clrscr( ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;insert ( arr, 1, 11 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;insert ( arr, 2, 12 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;insert ( arr, 3, 13 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;insert ( arr, 4, 14 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;insert ( arr, 5, 15 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;printf ( &quot;\nElements of Array: &quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;display ( arr ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;del ( arr, 5 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;del ( arr, 2 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;printf ( &quot;\n\nAfter deletion: &quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;display ( arr ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;insert ( arr, 2, 222 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;insert ( arr, 5, 555 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;printf ( &quot;\n\nAfter insertion: &quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;display ( arr ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;reverse ( arr ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;printf ( &quot;\n\nAfter reversing: &quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;display ( arr ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;search ( arr, 222 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;search ( arr, 666 ) ;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;getch( ) ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* inserts an element num at given position pos */&lt;/div&gt;&lt;div&gt;void insert ( int *arr, int pos, int num )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;/* shift elements to right */&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;for ( i = MAX - 1 ; i &gt;= pos ; i-- )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;arr[i] = arr[i - 1] ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;arr[i] = num ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* deletes an element from the given position pos */&lt;/div&gt;&lt;div&gt;void del ( int *arr, int pos )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;/* skip to the desired position */&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;for ( i = pos ; i &lt;&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;arr[i - 1] = arr[i] ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;arr[i - 1] = 0 ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* reverses the entire array */&lt;/div&gt;&lt;div&gt;void reverse ( int *arr )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;for ( i = 0 ; i &lt;&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;int temp = arr[i] ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;arr[i] = arr[MAX - 1 - i] ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;arr[MAX - 1 - i] = temp ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* searches array for a given element num */&lt;/div&gt;&lt;div&gt;void search ( int *arr, int num )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;/* Traverse the array */&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;for ( i = 0 ; i &lt;&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;if ( arr[i] == num )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;printf ( &quot;\n\nThe element %d is present at %dth position.&quot;, num, &lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;     &lt;/span&gt;i + 1 ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;return ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;if ( i == MAX )&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;printf ( &quot;\n\nThe element %d is not present in the array.&quot;, num ) ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* displays the contents of a array */&lt;/div&gt;&lt;div&gt;void display ( int *arr )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;/* traverse the entire array */&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;int i ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;printf ( &quot;\n&quot; ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;for ( i = 0 ; i &lt;&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;printf ( &quot;%d\t&quot;, arr[i] ) ;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/7161783850924271501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/7161783850924271501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/7161783850924271501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/7161783850924271501'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/03/array-in-c.html' title='ARRAY IN C'/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizb7JBulT1Cd-TJDfyCSIAxnIP-IHMwoXB7yizLlHkWD9DHb5apAVps4XLjJzC-3X_2SgGWOCfgSxZ5hyUoZkG38k4FRpHmD24qgi10qqelWq2qNp8cgaSVtZphjxn5IqX2hJe2vcDcx8/s72-c/f3-4.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-5135473973246915081</id><published>2011-03-17T22:56:00.000-07:00</published><updated>2011-03-18T02:43:54.404-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ENGLISH WORDS"/><title type='text'>ENGLISH WORDS 1</title><content type='html'>&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;        &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;ENGLISH WORDS&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;1- AARONIC (ADJ)  - pertaining to priesthood .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;2- AASVOGEL (N) - S African vulture .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;3- ABACA (N) - plantain grown in the Philippine island .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;4- ABACK (ADJ) - taken by surprise .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;5- ABADDON (N) - hell .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;6- ABANDON (V) - to give up .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;7- ABASE (V)- to degrade .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;8- ABASH (V)- to strike with shame or embarrassment .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;9- ABATE (V)- to subside, to lessen or reduce, to mitigate .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;10- ABBEY (N) - A convent under an abbot or abbess .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/5135473973246915081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/5135473973246915081' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/5135473973246915081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/5135473973246915081'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/03/english-words-1.html' title='ENGLISH WORDS 1'/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-965299828153202087</id><published>2011-03-17T10:07:00.001-07:00</published><updated>2011-03-17T10:18:47.100-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><category scheme="http://www.blogger.com/atom/ns#" term="UNIX practicals"/><title type='text'>UNIX PRACTICALS</title><content type='html'>&lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM :-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:1.0in;text-indent:-.25in;mso-list: l5 level2 lfo12;tab-stops:list 1.0in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;1.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This script will print the fibonacci series upto given upper limit.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the upper limit &quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;a=0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;b=1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;c=`expr $a + $b`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -n &quot;$c&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;i=1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;while [ $c -le $n ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -n &quot;$c&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;a=$b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;b=$c&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;c=`expr $a + $b`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;i=`expr $i + 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh fibonacci&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the upper limit 40&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;1&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;1&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;2&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;3&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;5&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;8&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;13&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;21&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;34&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;We can generate Fibonacci numbers as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;         &lt;/span&gt;f(n) = f(n-1) + f(n-2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Then the series Fibonacci numbers within the upper 10 limit will be&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;         &lt;/span&gt;1 1 2 3 5 8&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                                  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                 &lt;/span&gt;---------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;1.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to find the sum of digits of a given number and to reverse the digits of that number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter a number &quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sum=0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;revnum=&quot;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;while [ $n -gt 0 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;d=`expr $n % 10`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;n=`expr $n / 10`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sum=`expr $sum + $d`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;revnum=$revnum$d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;The reverse number is $revnum&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;The sum of the digit is $sum&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh sumdigit.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter a number 1234&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The reverse number is 4321&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The sum of the digit is 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh sumdigit.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter a number 4682&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The reverse number is 2864&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The sum of the digit is 20&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;Check the number whether the number is valid integer or not.Check the number whether the number is greater than zero then take the remainder of modulo 10.Divide the number by 10.Then update the sum variable by adding the remainder and update the varuable revnum by concatinating the remainder.finally the sum variable contain the sum of digits and revnum contains reverse of the number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;            &lt;/span&gt;-------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;2.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to check whether a given number is prime or not.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -e &quot;Enter a number:- \c&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;d=`factor $n|wc -w`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $d -gt 2 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;nonprime&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo prime&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh prime.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter a number:- 7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;prime&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh prime.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter a number:- 6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;nonprime&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh prime.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter a number:- 28&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;nonprime&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh prime.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter a number:- 19&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;prime&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;The number is prime if its divide by 1 and that number i.e. it&#39;s exactly have two factors then the number is prime otherwise it is non prime.This is done by factor and wc -w command.It also be done by using division or modulo division operator.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                                          &lt;/span&gt;&lt;/span&gt;------------------------------------------&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;3.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to see the even and odd number between a given range.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the lower limit &quot; l&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot; Enter the upper limit &quot; u&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( i=l ; i &lt;= u ; i ++ ))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;d=`expr $i % 2`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $d -eq 0 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;$i--------even&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;$i--------odd&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh even.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the lower limit 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the upper limit 20&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;10--------even&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;11--------odd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;12--------even&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;13--------odd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;14--------even&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;15--------odd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;16--------even&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;17--------odd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;18--------even&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;19--------odd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;20--------even&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;     &lt;/span&gt;This program checks the number within the given range is even or odd by calculating remainder of the modulo 2 division of that number.It uses expr command to evaluate this.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                                    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;---------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;4.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This script will find out the sum of the following series -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;             &lt;/span&gt;1!+2!+3!+--------+n!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;where n is the given number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the upper limit&quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sum=0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( i=1 ; i &lt;= n ; i ++ ))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;d=1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( k=i ; k &gt;= 1 ; k -- ))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;d=`expr $d \* $k`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sum=`expr $sum + $d`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;sum of factorials is $sum &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh factsum.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the upper limit6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sum of factorials is 873 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh factsum.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the upper limit 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sum of factorials is 153 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh factsum.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the upper limit 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sum of factorials is 33 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This program calculate the sum of the factorials upto the given number by using two for loop and expr command.The inner loop calculates the factorial of each number and then the sum variable is updated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                                    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;           &lt;/span&gt;---------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;5.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This shell script program will print the following pattern-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;      &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;2 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;3 4 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;4 5 6 7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the no. of rows&quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( i=1 ; i &lt;= n ; i ++ ))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( k=0 ; k &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;d=`expr $k + $i`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -n &quot;$d &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot; &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh series1.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the no. of rows7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;1&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;2 3&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;3 4 5&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;4 5 6 7&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;5 6 7 8 9&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;6 7 8 9 10 11&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;7 8 9 10 11 12 13&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;Here the given series of numbers are generated using for loop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                                 &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;            &lt;/span&gt;--------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;6.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This recursive shell script program is to calculate X^Y where both X and Y are non negetive integers. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;function func()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;n=$1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;m=$2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $m -eq 0 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;m=`expr $m - 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;s=`func $n $m`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;d=`expr $n \* $s`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;enter a number&quot; x&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;enter the power of the no. &quot; y&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;r=`func $x $y`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $r&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh power.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter a number 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the power of the no. 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;9&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh power.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter a number 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the power of the no. 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;3125&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh power.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter a number 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the power of the no. 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;16&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;The expression X to the power Y (X^Y) is calculated as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;X^Y = X * func (Y-1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This program calculates X^Y using the function func() in recursive way.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                        &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;------------------------------------&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;7.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to calculate G.C.D. of two non negetive integer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;function gcd_2no()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;nx=$1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;my=$2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;r=`expr $nx % $my`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;t=$my&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;my=`expr $nx % $my`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;nx=$t&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $r -eq 0 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $nx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;gcd_2no $nx $my&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;enter first number : &quot; x&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;enter second number : &quot; y&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;g=`gcd_2no $x $y`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $g&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh gcd.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter first number : 6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter second number : 21&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh gcd.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter first number : 8&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter second number : 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size:20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This script calculates the G.C.D of two non negetive numbers by using recursive function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;8.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This menu driven sheel script program will find out addition,subtraction,multiplication and division of two positive numbers.The calculations are to be performed in seperate function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;function addition()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;t=$1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;p=$2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;k=`expr $t + $p`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $k&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;function subtraction()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;t1=$1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;p1=$2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;k1=`expr $t1 - $p1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $k1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;function multiplication()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;t2=$1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;p2=$2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;k2=`expr $t2 \* $p2`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $k2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;function division()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;t3=$1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;p3=$2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;k3=`expr $t3 / $p3`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $k3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;while true&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;enter the 1st +ve no. : &quot; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;enter the 2nd +ve no. : &quot; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;clear&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot; 1&gt; ADDITION &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot; 2&gt; SUBTRACTION &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot; 3&gt; MULTIPLICATION &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot; 4&gt; DIVISION &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot; 5&gt; EXIT &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;ENTER YOUR CHOICE &quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;case $n in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;r=`addition $a $b`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -n &quot;sum = &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $r&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;r1=`subtraction $a $b`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -n &quot;subtraction = &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $r1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;3)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;r2=`multiplication $a $b`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -n &quot;multiplication = &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $r2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;4)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;r3=`division $a $b`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -n &quot;division = &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $r3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;5)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo End of the program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;exit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;esac&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh menu.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the 1st +ve no. : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the 2nd +ve no. : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;1&gt; ADDITION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;2&gt; SUBTRACTION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;3&gt; MULTIPLICATION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;4&gt; DIVISION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;5&gt; EXIT &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;ENTER YOUR CHOICE 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sum = 9&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the 1st +ve no. : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the 2nd +ve no. : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;1&gt; ADDITION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;2&gt; SUBTRACTION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;3&gt; MULTIPLICATION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;4&gt; DIVISION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;5&gt; EXIT &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;ENTER YOUR CHOICE 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;multiplication = 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the 1st +ve no. : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the 2nd +ve no. : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;1&gt; ADDITION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;2&gt; SUBTRACTION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;3&gt; MULTIPLICATION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;4&gt; DIVISION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;5&gt; EXIT &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;ENTER YOUR CHOICE 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;subtraction = 6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the 1st +ve no. : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;15&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;enter the 2nd +ve no. : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;1&gt; ADDITION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;2&gt; SUBTRACTION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;3&gt; MULTIPLICATION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;4&gt; DIVISION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;5&gt; EXIT &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;ENTER YOUR CHOICE 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;division = 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;1&gt; ADDITION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;2&gt; SUBTRACTION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;3&gt; MULTIPLICATION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;4&gt; DIVISION &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;5&gt; EXIT &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;ENTER YOUR CHOICE 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;End of the program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This menu driven program takes two positive numbers as input.Then it calculates addition, subtraction, multiplication and division as per user choice using switch case.The EXIT function is to come out from the program.&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size:20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to find an number within an array of elements using linear search method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;clear&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the number of elements:- &quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( i=0 ; i &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter an element: &quot; a[$i]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the number to be searched:- &quot; m&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( i=0 ; i &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $m -eq ${a[$i]} ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;t=`expr $i + 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $m is present at position $t&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;exit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $m is not in the array&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh lsearch.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number of elements:- 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 22&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 33&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 44&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 55&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number to be searched:- 33&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;33 is present at position 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh lsearch.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number of elements:- 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 22&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 33&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 44&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 55&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number to be searched:- 66&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;66 is not in the array&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;The no. of elements of the array is provided by the user.This searching technique uses lenear search method.It can also be done by using binary search method.If the searched number is present in the array then it shows the position of the number in the array,if it is not present in the array then it shows a switable message. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to find the minimum of n numbers present in an array.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;clear&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the no. of elements: &quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( i=0 ; i &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter an element: &quot; a[$i]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;min=${a[0]}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( i=1 ; i &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $min -gt ${a[$i]} ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;min=${a[$i]}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo The minimum number is $min&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh minnoarry.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the no. of elements: 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 66&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 44&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 77&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element: 88&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The minimum number is 11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;Here we find the minimum number among the set of elements within the array.The array of elements are taken input from user,then finds the minimum number among them.It is done by using for loop and -gt command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to sort n number of elements present in an array in ascending order.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the no. of elements : &quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( i=0 ; i &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter an element : &quot; a[$i]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for (( i=0 ; i &lt; `expr $n - 1` ; i ++ ))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;for (( k=`expr $i + 1` ; k &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;if [ ${a[$i]} -gt ${a[$k]} ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;     &lt;/span&gt;t=${a[$i]}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;     &lt;/span&gt;a[$i]=${a[$k]}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;     &lt;/span&gt;a[$k]=$t&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo The sorted elements are : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo ${a[*]}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh selectnsrt.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the no. of elements : 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 55&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 99&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 33&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 22&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The sorted elements are :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;11 22 33 55 99&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh selectnsrt.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the no. of elements : 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 16&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 67&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 89&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 34&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 44&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 50&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 25&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 45&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 99&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter an element : 13&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The sorted elements are :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;13 16 25 34 44 45 50 67 89 99&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This program is implemented by using selection sort technique.It uses for loop and swapping of two numbers is done by using third variable.This program can also be done by redirecting the array elements into a file then sort the whole file using sort command or any kind of sorting method can be used.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;9.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to test a string whether pallindrome or not.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter a string &quot; str&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;revstr=&quot;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;l=`echo $str|wc -c`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;l=`expr $l - 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;i=1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;while [ $i -le $l ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;c=`echo $str|cut -c $i`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;revstr=$c$revstr&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;i=`expr $i + 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ &quot;$str&quot; = &quot;$revstr&quot; ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo pallindrome&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo not pallindrome&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh palindrm.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter a string madam&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;pallindrome&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh palindrm.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter a string study&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;not pallindrome&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size:20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;The above program will take a input string.Count the length of the string and cut the alphabet from the string then padded into a variable reversely.So this variable containing the reverse of the string.If the reverse of the string and the original string are equal then the string is pallindrome else not.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:57.75pt;text-indent:-.25in;mso-list: l9 level1 lfo14;tab-stops:list 57.75pt&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt;mso-fareast-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;10.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 14.0pt&quot;&gt;Wrie a shell script to find all prime factor of a given number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the number :- &quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;touch temp.dat&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;rm temp.dat&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for i in `factor $n|cut -d &quot;:&quot; -f2`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $i&gt;&gt;temp.dat&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sort -n temp.dat|uniq&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh factor.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number :- 28&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh factor.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number :- 8&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh factor.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number :- 15&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;The prime factors of a number are deduced by the command factor.Then cut each factor using cut command and redirect into a file.The file will appand the value for each &#39;i&#39;.The command sort -n will sort the whole file into ascending order.The uniq command checks the uniqueness of the numbers in the file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to check the type of the input file name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;echo -e &quot;Enter the file name : \c&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;read file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;if [ -s $file ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Size Greaterthan Zero&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;if [ -x $file ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;The file is a executable file!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;if [ -f $file ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;This is a ordinary file!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;if [ -d $file ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;The file is a directory!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;if [ -c $file ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;This is a character special file!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;if [ -r $file ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Read permission is set!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;if [ -w $file ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Write permission is set!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;if [ -k $file ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Sticky bit is set!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;if [ -b $file ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;This is a system file!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:8.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh ftype.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the file name : d1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Size Greaterthan Zero&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The file is a executable file!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The file is a directory!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Read permission is set!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Write permission is set!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh ftype.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the file name : student.dat&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Size Greaterthan Zero&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;This is a ordinary file!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Read permission is set!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Write permission is set!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This script will check the type of the given file whether it is executable file or ordinary file or charecter special file or system file or directry by using the command &lt;/span&gt;&lt;span style=&quot;font-size: 16.0pt&quot;&gt;-x,-f,-c,-b,-d &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 14.0pt&quot;&gt;respectively and checks whether it has read permission or write permission using the command &lt;/span&gt;&lt;span style=&quot;font-size:16.0pt&quot;&gt;-r,-w&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;.It also checks whether it has size greater than zero or not using -s command&lt;/span&gt;&lt;span style=&quot;font-size:16.0pt&quot;&gt;.-k&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 14.0pt&quot;&gt; command checks it&#39;s sticky bit is set or not.&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;Write a shell script program a forward slash &quot;/&quot; to a directry name,a star &quot;*&quot; to an executable file name of files of a directry.The directry name is supplied as command line argument.If the directry name is not supplied as command line argument,current directry will be assumed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for i in `ls $1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fname=$1/$i&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ -d $fname ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;mv $fname $fname&quot;\/&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ -x $fname ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;mv $fname $fname&quot;*&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost d1]$ ls -l&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;total 24&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;drwxrwxr-x 2 study study 4096 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;6&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:06&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; d2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;drwxrwxr-x 2 study study 4096 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;6&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:06&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; d3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;-rw-rw-r-- 1 study study&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;17 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;7&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:07&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; f1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;-rw-rw-r-- 1 study study&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;16 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;9&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:09&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; f2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;-rwxrw-r-- 1 study study&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;16 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;10&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:10&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; f3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;-rwxrw-r-- 1 study study&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;16 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;10&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:10&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; f4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh directry.sh d1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost d1]$ ls -l&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;total 24&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;drwxrwxr-x 2 study study 4096 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;6&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:06&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; d2\&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;drwxrwxr-x 2 study study 4096 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;6&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:06&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; d3\&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;-rw-rw-r-- 1 study study&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;17 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;7&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:07&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; f1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;-rw-rw-r-- 1 study study&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;16 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;9&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:09&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; f2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;-rwxrw-r-- 1 study study&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;16 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;10&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:10&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; f3*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;-rwxrw-r-- 1 study study&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;16 2010-01-04 &lt;/span&gt;&lt;st1:time hour=&quot;23&quot; minute=&quot;10&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;23:10&lt;/span&gt;&lt;/st1:time&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt; f4*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This program takes the directry name as command line argument.The command -d checks whether the subdirectry and files under that directry is directry or not and -x checks the execution permission of the files under that directry.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to calculate the factorial of a given number using recursive function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;function fact()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;n=$1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $n -eq 0 -o $n -eq 1 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;t=$n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;n=`expr $n - 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;r=`fact $n`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;s=`expr $t \* $r`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $s&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the number:- &quot; n&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;p=`fact $n`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;the factorial is $p&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh factrec.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number:- 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;the factorial is 6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh factrec.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number:- 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;the factorial is 120&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh factrec.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the number:- 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;the factorial is 24&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:10.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 18.0pt&quot;&gt;DISCUSSION:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The factorial of a number (n!) means as following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;        &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;         &lt;/span&gt;n! = n * (n - 1) * (n - 2) * ..... * 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;I n this shell script we calculate the factorial of a number by using recursive function.&lt;/span&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;------------------------------&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;Weite a shell script that will search for a given pattern in a text file,both of which must be supplied as a command line argument to the script.The pattern may appear anywhere in the text file and show all possible instance,such as at the beginning,at the end of the line,as a substring etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;grep &quot;$1&quot; $2 &gt;/dev/null&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $? -eq 0 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;At the begging of the lines:-&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;grep &quot;^$1&quot; $2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;At the end of the lines:-&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;grep &quot;$1$&quot; $2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;------------------------------------&quot;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;As substrings:-&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;grep -v &quot;^$1&quot; $2 | grep -v &quot;$1$&quot; | grep &quot;$1&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;not valid&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh pattern.sh student stu.dat&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;At the begging of the lines:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;student is very noughty.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;At the end of the lines:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;he is very good student&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;As substrings:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;ram is a student of class v.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;those boys are the student of precidency college.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;Here the pattern &quot;student&quot; and file name stu.dat are supplied as command line argument.The valid sentences are checked using environment variable then finds the sentences containing the pattern at the beginning, at the end of the line,as a substring etc. using grep command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:- &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to rename a group of a files for example,rename all files where file names end with htm so that they end with html.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo Files with extension .htm are &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;ls *.htm&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for i in `ls *htm`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;pname=`echo $i|cut -d &quot;.&quot; -f1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;newname=$pname&quot;.html&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;mv $i $newname&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo The converted files are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;ls *.html&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost shell.prog]$ sh convert&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Files with extension .htm are &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;f1.htm f2.htm f3.htm f4.htm&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The converted files are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;f1.html&lt;span style=&quot;mso-tab-count:1&quot;&gt;   &lt;/span&gt;f2.htm&lt;span style=&quot;mso-tab-count:1&quot;&gt;    &lt;/span&gt;f3.htm&lt;span style=&quot;mso-tab-count:1&quot;&gt;    &lt;/span&gt;f4.htm&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;The above program will convert the extension &#39;htm&#39; to &#39;html&#39;.*.htm will retrieve all the files which have .htm extension.The cut command cut the base file name of those file who have extension &#39;.htm&#39; and then the &#39;mv&#39; command will rename the file and correct the extension by &#39;html&#39;.Thus the files are renamed by the .html extension.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;Write a shell script which print the text file in reverse way i.e the last line becomes the frist line,second last line becomes second line.....the frist becomes the last one.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;The original file $1 is:-&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;---------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;cat $1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;---------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo The reverse of that file is:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;---------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;lines=`wc -l $1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;l=`echo $lines|cut -d &quot; &quot; -f1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;i=$l&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;while [ $i -ge 1 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;line=`head -n $i $1|tail -n 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo $line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;i=`expr $i - 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh revfile.sh linux1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The original file linux1 is:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;---------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The Linux is an operating system&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;I am using Mandrake&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Mandrake is a version of Linux&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Mandrake has a great Graphics&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Linux have the high security&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;---------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The reverse of that file is:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;---------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Linux have the high security&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Mandrake has a great Graphics&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Mandrake is a version of Linux&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;I am using Mandrake&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The Linux is an operating system&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;The file name is given by command line argument.cat &lt;filename&gt; shows the content of the original file.Then it counts the no. of lines of the file and print each line from last to first using head and tail command.Thus the content of the file is printed reversly.this program can also be done using tac command directly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to find out the vowel frequency of a given string.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -e &quot;Enter the string \c&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read str&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;l=`echo $str|wc -c`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;l=`expr $l - 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;str=`echo $str|tr &quot;[a-z]&quot; &quot;[A-Z]&quot;`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for i in A E I O U&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;l1=`echo $str|tr -d &quot;$i&quot;|wc -c`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;l1=`expr $l1 - 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;f=`expr $l - $l1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo The frequency of $i is $f&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh vfreq.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the string aeiou&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of A is 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of E is 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of I is 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of O is 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of U is 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh vfreq.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the string ram is very good boy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of A is 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of E is 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of I is 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of O is 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The frequency of U is 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;    &lt;/span&gt;At first calculate the length of the original string using wc -c cammand and store it in the variable l.Then convert string into upper case and delete the vowel A from it then count the length of the string and store it in l1.The result of subtraction l1 from l is the frequency of the vowel A.The process will be applied again on the rest of the vowels and get the frequency of each vowels.The program can also be done using if-then condition.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;Write a shell script which takes input from a text file and find the number of words which contains vowels.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo The content of the file $1 is :-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;cat $1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;count=0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for i in `cat $1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;word=`echo $i|tr &quot;[a-z]&quot; &quot;[A-Z]&quot;`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $word|grep &quot;[AEIOU]&quot; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $? -eq 0 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;count=`expr $count + 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo The no. of the words cotaining vowel are $count&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh vwords.sh linux&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The content of the file linux is :-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Thh lnx is an operating system&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Mndrk hs great Graphics&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Lnx hv thh high security&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;IS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;AN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;OPERATING&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;SYSTEM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;GREAT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;GRAPHICS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;HIGH&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;SECURITY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The no. of the words cotaining vowel are 8&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;File name is provided by command line argument.tr command convert each word into upper case then grep command checks each word whether it contains vowel or not.If grep command contains the word with vowel,then the environment variable ($?) is equal to zero i.e. successful and increases the variable count by one.Finally count will contain the no. of words containing vowels.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;This shell script program is to convert a large name to it&#39;s shorted representation.For example&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;the name is Ram Gopal Krishna Chanda Pal.The shorted representation is R.G.K.C.Pal.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read -p &quot;Enter the name &quot; name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;sname=&quot;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;wcount=`echo $name|wc -w`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;c=1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;for i in `echo $name`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $c -eq $wcount ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;sname=$sname$i&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;ch=`echo $i|cut -c 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;sname=$sname$ch.&quot;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;c=`expr $c + 1`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo $sname&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh shrtname.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the name Ram Gopal Krishna Chanda PAL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;R.G.K.C.PAL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration:none&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;In the for loop i takes each word and cut the frist letter using cut command.Then update the variable sname by concatinating each letter and the last word is directly concatinated with sname.Finally sname stores the output.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;AIM:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;Write a shell script to execute the following program-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;The marks obtained by student in three different subjects should be taken as input through the keyboard.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;The student gets a division as per the following rule:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Percentage above or equal to 60 --&gt; Frist division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Percentage between 45 to 59 --&gt; Second division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Percentage between 30 to 44 --&gt; Third division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Percentage less than 30 --&gt; Fail &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;PROGRAM CODE :-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Program code of Data Entry Script:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;#Data entry script&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;touch student.dat&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -e &quot;Enter the roll: \c&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read roll&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ -z &quot;$roll&quot; ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;not null constraint violated&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;exit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;grep &quot;^$roll:&quot; student.dat &gt; /dev/null&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $? -eq 0 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;unique constraint violated&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;exit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -e &quot;Enter the name: \c&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -e &quot;Enter the marks of physics: \c&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read phy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -e &quot;Enter the marks of math: \c&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read math&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo -e &quot;Enter the marks of comp. sc.: \c&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;read comp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;$roll:$name:$phy:$math:$comp&quot; &gt;&gt; student.dat&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; font-family:Wingdings;mso-fareast-font-family:Wingdings;mso-bidi-font-family: Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt&quot;&gt;Program code Of Report Script:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;#Report script&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;#This script will show the details of each student&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;terminal=`tty`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;IFS=&quot;:&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;exec &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;while read roll name phy math comp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Roll&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: $roll&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Name&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: $name&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Phy&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                &lt;/span&gt;: $phy&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Math&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: $math&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Comp. sc.&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;: $comp&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;total=`expr $phy + $math + $comp`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;--------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Total&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;: $total&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;--------------------------------------&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;r=`echo &quot;scale=2;$total / 3&quot;|bc`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;percentage : $r&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;flag=`echo &quot;if ( $r &gt;= 60 ) 1 else 0&quot; |bc`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $flag -eq 1 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Frist division&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;flag=`echo &quot;if ( $r &gt;= 45 ) 1 else 0&quot; |bc`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;if [ $flag -eq 1 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Second division&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;flag=`echo &quot;if ( $r &gt;= 30 ) 1 else 0&quot; |bc`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;if [ $flag -eq 1 ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;echo &quot;Third division&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo Fail&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;echo &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;done&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;exec &lt; $terminal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;OUTPUT :-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:13.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:13.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Output Of Data Entry Script:-&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh entry.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the roll: 01&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the name: Souvik Das&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of physics: 70&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of math: 85&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of comp. sc.: 90&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh entry.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the roll: 02&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the name: Sumon Pal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of physics: 65&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of math: 90&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of comp. sc.: 85&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh entry.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the roll: 01&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;unique constraint violated&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh entry.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the roll: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;not null constraint violated&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh entry.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the roll: 03&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the name: Rakesh Roy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of physics: 45&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of math: 55&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of comp. sc.: 49&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh entry.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the roll: 04&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the name: Rohan Choudhury&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of physics: 30&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of math: 35&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of comp. sc.: 33&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh entry.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the roll: 05&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the name: Sukesh Pal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of physics: 25&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of math: 20&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Enter the marks of comp. sc.: 22&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:13.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Output Of Report script:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;[study@localhost ~]$ sh report.sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Roll&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: 01&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Name&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: Souvik Das&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Phy&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                &lt;/span&gt;: 70&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Math&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: 85&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Comp. sc.&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;: 90&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Total&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;: 245&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;percentage : 81.66&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Frist division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Roll&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: 02&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Name&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: Sumon Pal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Phy&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                &lt;/span&gt;: 65&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Math&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: 90&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Comp. sc.&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;: 85&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Total&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;: 240&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;percentage : 80.00&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Frist division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Roll&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: 03&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Name&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: Rakesh Roy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Phy&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                &lt;/span&gt;: 45&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Math&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: 55&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Comp. sc.&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;: 49&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Total&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;: 149&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;percentage : 49.66&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Second division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Roll&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: 04&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Name&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: Rohan Choudhury&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Phy&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                &lt;/span&gt;: 30&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Math&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: 35&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Comp. sc.&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;: 33&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Total&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;: 98&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;percentage : 32.66&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Third division&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Roll&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: 05&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Name&lt;span style=&quot;mso-spacerun:yes&quot;&gt;               &lt;/span&gt;: Sukesh Pal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Phy&lt;span style=&quot;mso-spacerun:yes&quot;&gt;                &lt;/span&gt;: 25&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Math&lt;span style=&quot;mso-spacerun:yes&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;        &lt;/span&gt;: 20&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Comp. sc.&lt;span style=&quot;mso-spacerun:yes&quot;&gt;          &lt;/span&gt;: 22&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Total&lt;span style=&quot;mso-spacerun:yes&quot;&gt;              &lt;/span&gt;: 67&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;--------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;percentage : 22.33&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;Fail&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot; style=&quot;margin-left:.5in;text-indent:-.25in;mso-list:l5 level1 lfo12; tab-stops:list .5in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:14.0pt; mso-bidi-font-size:20.0pt;font-family:Wingdings;mso-fareast-font-family:Wingdings; mso-bidi-font-family:Wingdings&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;§&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;i style=&quot;mso-bidi-font-style:normal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size:14.0pt;mso-bidi-font-size: 20.0pt&quot;&gt;DISCUSSION:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:10.0pt&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt; mso-bidi-font-size:14.0pt&quot;&gt;The user provides the student details by data entry script and store it in student.dat file.The report script reads the data from student.dat file and calculate the total marks,percentage and division of each student.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoPlainText&quot;&gt;&lt;span style=&quot;font-size:12.0pt;mso-bidi-font-size:14.0pt&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/965299828153202087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/965299828153202087' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/965299828153202087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/965299828153202087'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/03/unix-practicals.html' title='UNIX PRACTICALS'/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-7780254163631106208</id><published>2011-03-16T11:41:00.000-07:00</published><updated>2011-03-16T12:34:41.408-07:00</updated><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;                                                                   COBOL-1&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; &quot;&gt;&lt;a id=&quot;UnattachedAnnotationsHere&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;div&gt;&lt;a id=&quot;UnattachedAnnotationsHere&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;text-align: justify;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;b&gt;&lt;span&gt;The Identification Division&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td width=&quot;288%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;a name=&quot;136806&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;text-align: justify;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;img height=&quot;6&quot; width=&quot;1&quot; src=&quot;http://www.books24x7.com/book/id_224/_.gif&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width=&quot;3%&quot;&gt;&lt;/td&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span&gt;The function of the Identification Division is to provide a place for general&lt;/span&gt;&lt;i&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;span&gt;documentation about the program, such as the name of the program and the&lt;br /&gt;name of the programmer. &lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width=&quot;288%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;a name=&quot;136982&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;text-align: justify;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;img height=&quot;6&quot; width=&quot;1&quot; src=&quot;http://www.books24x7.com/book/id_224/_.gif&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width=&quot;3%&quot;&gt;&lt;/td&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;000020  PROGRAM-ID.  MORTGAGE.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width=&quot;288%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;a name=&quot;137063&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;text-align: justify;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;3%&quot;&gt;&lt;/td&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;000030  AUTHOR.  Mastering-&lt;span class=&quot;b24-hit&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); &quot;&gt;COBOL&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width=&quot;288%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre; &quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;a name=&quot;137176&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;text-align: justify;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;img height=&quot;6&quot; width=&quot;1&quot; src=&quot;http://www.books24x7.com/book/id_224/_.gif&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width=&quot;3%&quot;&gt;   &lt;/td&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span&gt; The &lt;/span&gt;&lt;span&gt;PROGRAM-ID&lt;/span&gt;&lt;span&gt; paragraph contains the name of the program and is required in&lt;br /&gt;every program. The &lt;/span&gt;&lt;span&gt;AUTHOR&lt;/span&gt;&lt;span&gt; paragraph contains any comment the programmer&lt;br /&gt;wishes to make; however, it usually contains the programmer’s name. The&lt;br /&gt;&lt;/span&gt;&lt;span&gt;AUTHOR&lt;/span&gt;&lt;span&gt; paragraph is optional; in fact, this paragraph is obsolete in &lt;span class=&quot;b24-hit&quot; style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); &quot;&gt;COBOL&lt;/span&gt;-85.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; &quot;&gt;&lt;a id=&quot;UnattachedAnnotationsHere&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;div&gt;&lt;a id=&quot;UnattachedAnnotationsHere&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;b&gt;&lt;span&gt;                                                      The Environment Division&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td width=&quot;288%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/a&gt;&lt;a name=&quot;147468&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;img height=&quot;6&quot; width=&quot;1&quot; src=&quot;http://www.books24x7.com/book/id_224/_.gif&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width=&quot;3%&quot;&gt;&lt;/td&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;The Environment Division provides a place for entries that have to do with the&lt;br /&gt;world outside the program. In particular, it lists the files the program uses.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; &quot;&gt;&lt;a id=&quot;UnattachedAnnotationsHere&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;div&gt;&lt;a id=&quot;UnattachedAnnotationsHere&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;3%&quot;&gt;&lt;/td&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;b&gt;&lt;span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;                                                          &lt;/span&gt;The Data Division&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width=&quot;288%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/a&gt;&lt;a name=&quot;147805&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;img height=&quot;6&quot; width=&quot;1&quot; src=&quot;http://www.books24x7.com/book/id_224/_.gif&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width=&quot;3%&quot;&gt;&lt;/td&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;The Data Division provides the place where the program’s variables are stored.&lt;br /&gt;It is divided into different sections for different types of data: file data (File Section),&lt;br /&gt;static data (Working-Storage Section), parameters (Linkage Section), and others.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; &quot;&gt;&lt;a id=&quot;UnattachedAnnotationsHere&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;div&gt;&lt;a id=&quot;UnattachedAnnotationsHere&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;b&gt;&lt;span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;                                                       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;The Procedure Division&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td width=&quot;288%&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/a&gt;&lt;a name=&quot;149604&quot; style=&quot;text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; &quot;&gt;&lt;/a&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;560&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width=&quot;98%&quot; valign=&quot;top&quot;&gt;&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; &quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;img height=&quot;6&quot; width=&quot;1&quot; src=&quot;http://www.books24x7.com/book/id_224/_.gif&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width=&quot;3%&quot;&gt;&lt;/td&gt;&lt;td width=&quot;94%&quot; valign=&quot;TOP&quot; align=&quot;left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;The last division is the Procedure Division, which contains the procedural statements&lt;br /&gt;that make up the program.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;    &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/7780254163631106208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/7780254163631106208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/7780254163631106208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/7780254163631106208'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/03/cobol-1-identification-division.html' title=''/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-7598556194077654303</id><published>2011-03-16T10:52:00.001-07:00</published><updated>2011-03-16T10:53:55.591-07:00</updated><title type='text'>ME</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcQIo6v-K0S_9G-jMTY-6awgHXnBt94l_wxLKjyKD_r9kGxtSbuOXBLVyN58q4br4mYmgHgTuRwA8zsusGUGW8PnTcFFrdmBZZKLW0tVxTUJRurzc_Kbi2vClJuGN7BH8YaxJUns4tf28/s1600/190582_10150122471229872_799514871_6167033_7295334_n.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcQIo6v-K0S_9G-jMTY-6awgHXnBt94l_wxLKjyKD_r9kGxtSbuOXBLVyN58q4br4mYmgHgTuRwA8zsusGUGW8PnTcFFrdmBZZKLW0tVxTUJRurzc_Kbi2vClJuGN7BH8YaxJUns4tf28/s400/190582_10150122471229872_799514871_6167033_7295334_n.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5584737489034588338&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMCfYQ_CHMorOl_CjXkb1A0A8HGQ1PytDw7DGKu6xxfVZHb0V37g2p7fRiwVkn5pUK2t0b9OAwwnHQkuG097oLwejO0cGhuOshgiF3gLLODU0TF8fItpI2k7LZar1hhu8dhuHuPMteIUY/s1600/188666_10150122470354872_799514871_6167023_6923945_n.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMCfYQ_CHMorOl_CjXkb1A0A8HGQ1PytDw7DGKu6xxfVZHb0V37g2p7fRiwVkn5pUK2t0b9OAwwnHQkuG097oLwejO0cGhuOshgiF3gLLODU0TF8fItpI2k7LZar1hhu8dhuHuPMteIUY/s400/188666_10150122470354872_799514871_6167023_6923945_n.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5584737345734807762&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/7598556194077654303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/7598556194077654303' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/7598556194077654303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/7598556194077654303'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/03/me.html' title='ME'/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcQIo6v-K0S_9G-jMTY-6awgHXnBt94l_wxLKjyKD_r9kGxtSbuOXBLVyN58q4br4mYmgHgTuRwA8zsusGUGW8PnTcFFrdmBZZKLW0tVxTUJRurzc_Kbi2vClJuGN7BH8YaxJUns4tf28/s72-c/190582_10150122471229872_799514871_6167033_7295334_n.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-8584661563236437978</id><published>2011-03-16T09:53:00.000-07:00</published><updated>2011-03-16T10:35:31.421-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="KERNEL"/><category scheme="http://www.blogger.com/atom/ns#" term="kernl"/><title type='text'></title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD4GdYGyfUVTwzMJMOYcsUw-00NvwH9AQQ5CTAraYB3sD1wpq_gbTyxpO_6df9gnPAY4wJNNos5PfSM3vRHf55Y2EJCF3nDJfJqipBTmnLDgKwPDxxP3KOorHt5yzl3aaWEARfDuSLFxA/s1600/Kernel.png&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 316px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD4GdYGyfUVTwzMJMOYcsUw-00NvwH9AQQ5CTAraYB3sD1wpq_gbTyxpO_6df9gnPAY4wJNNos5PfSM3vRHf55Y2EJCF3nDJfJqipBTmnLDgKwPDxxP3KOorHt5yzl3aaWEARfDuSLFxA/s320/Kernel.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5584731908589201874&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD4GdYGyfUVTwzMJMOYcsUw-00NvwH9AQQ5CTAraYB3sD1wpq_gbTyxpO_6df9gnPAY4wJNNos5PfSM3vRHf55Y2EJCF3nDJfJqipBTmnLDgKwPDxxP3KOorHt5yzl3aaWEARfDuSLFxA/s1600/Kernel.png&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); -webkit-text-decorations-in-effect: none; &quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;KERNEL 1&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: &#39;Times New Roman&#39;; font-size: medium; &quot; &gt;The &lt;i&gt;kernel&lt;/i&gt; is a program that constitutes the central core of a computer &lt;a href=&quot;http://www.linfo.org/operating_systems_list.html&quot; style=&quot;text-decoration: none; &quot;&gt;operating system&lt;/a&gt;. It has complete control over everything that occurs in the system.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: &#39;Times New Roman&#39;; font-size: medium; &quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: &#39;Times New Roman&#39;; font-size: medium; &quot; &gt;The kernel is the first part of the operating system to load into memory during &lt;i&gt;booting&lt;/i&gt; (i.e., system startup), and it remains there for the entire duration of the computer session because its services are required continuously. Thus it is important for it to be as small as possible while still providing all the essential services needed by the other parts of the operating system and by the various application programs.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: &#39;Times New Roman&#39;; font-size: medium; &quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: &#39;Times New Roman&#39;; font-size: medium; &quot; &gt;Because of its critical nature, the kernel code is usually loaded into a &lt;i&gt;protected&lt;/i&gt; area of memory, which prevents it from being overwritten by other, less frequently used parts of the operating system or by application programs. The kernel performs its tasks, such as executing &lt;a href=&quot;http://www.linfo.org/process.html&quot; style=&quot;text-decoration: none; &quot;&gt;&lt;i&gt;processes&lt;/i&gt;&lt;/a&gt; and handling &lt;i&gt;interrupts&lt;/i&gt;, in &lt;a href=&quot;http://www.linfo.org/kernel_space.html&quot; style=&quot;text-decoration: none; &quot;&gt;&lt;i&gt;kernel space&lt;/i&gt;&lt;/a&gt;, whereas everything a user normally does, such as writing text in a text editor or running programs in a &lt;a href=&quot;http://www.linfo.org/gui.html&quot; style=&quot;text-decoration: none; &quot;&gt;GUI&lt;/a&gt; (graphical user interface), is done in &lt;a href=&quot;http://www.linfo.org/user_space.html&quot; style=&quot;text-decoration: none; &quot;&gt;&lt;i&gt;user space&lt;/i&gt;&lt;/a&gt;. This separation is made in order to prevent user data and kernel data from interfering with each other and thereby diminishing performance or causing the system to become unstable.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: &#39;Times New Roman&#39;; font-size: medium; &quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: &#39;Times New Roman&#39;; font-size: medium; &quot; &gt;The contents of a kernel vary considerably according to the operating system, but they typically include (1) a scheduler, which determines how the various processes share the kernel&#39;s processing time (including in what order), (2) a supervisor, which grants use of the computer to each process when it is scheduled, (3) an interrupt handler, which handles all requests from the various hardware devices (such as disk drives and the keyboard) that compete for the kernel&#39;s services and (4) a memory manager, which allocates the system&#39;s &lt;i&gt;address spaces&lt;/i&gt; (i.e., locations in memory) among all users of the kernel&#39;s services.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: &#39;Times New Roman&#39;; font-size: medium; &quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: &#39;Times New Roman&#39;; font-size: medium; &quot; &gt;A few kernels have been designed with the goal of being suitable for use with any operating system. The best known of these is the Mach kernel, which was developed at Carnegie-Mellon University and is used in the Macintosh OS X operating system.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/8584661563236437978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/8584661563236437978' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/8584661563236437978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/8584661563236437978'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2011/03/kernel-1-kernel-is-program-that.html' title=''/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD4GdYGyfUVTwzMJMOYcsUw-00NvwH9AQQ5CTAraYB3sD1wpq_gbTyxpO_6df9gnPAY4wJNNos5PfSM3vRHf55Y2EJCF3nDJfJqipBTmnLDgKwPDxxP3KOorHt5yzl3aaWEARfDuSLFxA/s72-c/Kernel.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-403345396373519177.post-7761161474962651614</id><published>2009-12-26T15:43:00.000-08:00</published><updated>2009-12-28T12:27:54.594-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="computer science project help"/><title type='text'>COMPUTER SCIENCE PROJECTS</title><content type='html'>&lt;span style=&quot;color:#ffcccc;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRGObrK72qui91dQQ7foQotoGyxH1VSXY-GrqKm6ItU0PCDFGvfxlC0ZVlsabxrqdOLs4kagyR08ZXNPCIRqk11ABNzP_h7aelP3s8xqvt_Ckwc_N2AiVbNvnHbJirj3SYZvWzM6euJvE/s1600-h/Image0085.jpg&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5419695914712780434&quot; style=&quot;FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 240px; CURSOR: hand; HEIGHT: 320px&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRGObrK72qui91dQQ7foQotoGyxH1VSXY-GrqKm6ItU0PCDFGvfxlC0ZVlsabxrqdOLs4kagyR08ZXNPCIRqk11ABNzP_h7aelP3s8xqvt_Ckwc_N2AiVbNvnHbJirj3SYZvWzM6euJvE/s320/Image0085.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#330033;&quot;&gt;HI,&lt;br /&gt;DEAR FREINDS&lt;br /&gt;I am shubhamay Das student of computer science .&lt;br /&gt;I will from now onwards discuss obout the ALGORITHM AND PROGRAMS related to the subject.&lt;br /&gt;i am even ready to help you in any project that you are doing.&lt;br /&gt;my email id is &lt;/span&gt;&lt;a href=&quot;mailto:yozitdas@gmail.com&quot;&gt;&lt;span style=&quot;color:#330033;&quot;&gt;yozitdas@gmail.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color:#330033;&quot;&gt;&lt;br /&gt;ok bye.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://shubham-das.blogspot.com/feeds/7761161474962651614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/403345396373519177/7761161474962651614' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/7761161474962651614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/403345396373519177/posts/default/7761161474962651614'/><link rel='alternate' type='text/html' href='http://shubham-das.blogspot.com/2009/12/hi-dear-freinds-i-am-shubhamay-das.html' title='COMPUTER SCIENCE PROJECTS'/><author><name>shubham</name><uri>http://www.blogger.com/profile/02670713448553028084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIBct4cOMfAIWBywivd5x4U_qJUQdiPfkYEERcYPYL-QXk01ZhLdMvgIUODkRhLKoB5GRU2PGOPMotiVvhtjP016BvWhWkf_mTo8ozYzkuWGew8yaX6BoA9gw4tJK2Tzg/s220/untitled.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRGObrK72qui91dQQ7foQotoGyxH1VSXY-GrqKm6ItU0PCDFGvfxlC0ZVlsabxrqdOLs4kagyR08ZXNPCIRqk11ABNzP_h7aelP3s8xqvt_Ckwc_N2AiVbNvnHbJirj3SYZvWzM6euJvE/s72-c/Image0085.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>