<?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-7575438243677833971</id><updated>2024-02-07T04:33:17.905-08:00</updated><category term="Energy Efficient Bigdata"/><category term="distributed sensor networks"/><title type='text'>Programmers blog</title><subtitle type='html'>Programs</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-4059080024999156979</id><published>2015-07-26T21:03:00.001-07:00</published><updated>2015-07-26T21:03:18.108-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="distributed sensor networks"/><category scheme="http://www.blogger.com/atom/ns#" term="Energy Efficient Bigdata"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;line-height: 150%; margin: 0in 0in 0.0001pt 33.85pt; text-align: left; text-indent: -33.85pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 19pt; line-height: 150%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: blue;&quot;&gt;Towards Energy Efficient Big Data Gathering In Densely&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Distributed Sensor Networks&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;u&gt;INTRODUCTION:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%; text-indent: 33.85pt;&quot;&gt;Recent development of various areas of Information and
Communication Technology (ICT) has contributed to an explosive growth in the
large amount of data. According to a report published by IBM. 90 percent of the
data in the world was generated in the last couple of years. In the recent
years big data concept has emerged widely, which is currently attracting much
attention from government, industry, and academia. As shown in Fig. 1, the big
data comprises high volume, velocity, and variety information assets, which are
difficult to collect, store, and process by using the available technologies.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%; text-indent: 33.85pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The variety indicates that the data is of highly varied structures (e.g. data
generated by a wide range of sources such as Machine-to-Machine &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%; text-indent: 33.85pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%; text-indent: 33.85pt;&quot;&gt;(M2M), Radio &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%; text-indent: 33.85pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%; text-indent: 33.85pt;&quot;&gt;Frequency&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Identification(RFID), and sensors) while the velocity
refers to the high speed processing/analysis processing/analysis (e.g., fast
database transactions, click-streaming, and so forth). Although currently used
services (e.g. social networks, network switches, cloud storage and so forth)
are already generating much volume of the big data it is anticipated that more
and more data will be generated by sensors/RFID devices such as&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;motion sensors, accelerometers, atmospheric
sensors,, thermometric sensors,and so on. In fact, according to a report by
ORACLE&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;the volume of data devices and
sensors and RFID sensors&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;is expected to
reach the order of petabytes.As shown in Fig. 1, the sensors are responsible
for generation of big data in big volume and also in a wide varietygenerated by
RFID.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;u style=&quot;font-weight: bold;&quot;&gt;AIM:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;To propose
an effective solution to reduce the energy consumption in the sensor networks
and to utilize the sink node’s mobility to facilitate the data gathering.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;Here, a new mobile sink routing and data
gathering method through network clustering based on modified
ExpectationMaximization (EM) technique.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;u&gt;Synopsis:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Mobile
wireless sensor networks can simply be defined as a wireless sensor network
(WSN) in which the sensor nodes are mobile. Sensor networks are smaller, when
they emerge into field of research in contrast to their well-established
predecessor.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Sensor Networks are much more versatile than static sensor
networks as they can be deployed in any scenario and cope with rapid topology
changes. Commonly the nodes consist of a radio transceiver and a micro
controller powered by a battery. Also some kind of sensor for detecting heat,
light, humidity, temperature, etc.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In
this section, we first outline the clustering problem in WSN using mobile sink
and the challenges in solving this problem. After that, we introduce the
considered network model and the overview of EM algorithm for clustering. Based
on EM algorithm, we proposed our clustering method and the procedure to gather
data using the proposed method.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 14.6pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Twitter is a
well-known&amp;nbsp; social and micro-blogging
website which allows millions of users to interact over different types of
communities, topics, and tweeting trends. The big data being generated on
Twitter daily, and its impact on social networking, has motivated the
applications of data mining (analysis) to extract necessary information from
tweets. In this paper, we find the impact of tweets based on the spectral
clustering.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 14.6pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;u style=&quot;font-weight: bold;&quot;&gt;Existing System:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%; text-indent: 33.85pt;&quot;&gt;The systems are used in many situations recently and provide
various information. Although they play an important role in our life, their
performance is not sufficient in terms of real time data collection. We discuss
the requirements for the next generation data gathering.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 16pt; line-height: 152%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Although the sensor networks have provided
essential services, there are some shortcomings such as their coverage’s and
mobility, many of the existing systems for sensor networks based on wired or
wireless ground infrastructures are used to collect data from sensor terminals.
But the coverage of the networks is limited and creating new infrastructure for
remote areas is difficult for both economical and physical reasons.&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 17.2pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u style=&quot;font-weight: bold;&quot;&gt;Drawbacks
Of Existing System:-&lt;/u&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;The network
is divided to some subnetworks because of the limited wireless communication
range. For example, sensors deployed or placed in a building may not be able to
communicate with the sensors which are distributed in the neighboring
buildings. Therefore, limited communication range wil pose a challenge for data
collection from all sensor nodes.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 40.4pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The wireless
transmission consumes the energy of the sensors. Even though the large amount
of data generated by an individual sensor is not significant, each sensor
consumes&amp;nbsp; lot of energy to relay the data
generated by surrounding sensors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 40.4pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;u style=&quot;font-weight: bold;&quot;&gt;Proposed System:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;The main
motivation is to focus on the effect of data request messages by increasing the
number of clusters. Based on a common data gathering model of the densely
distributed WSNs, we demonstrate that the number of data request messages has a
noticeable impact on the energy consumption of the sensor nodes. When the
connectivity of the nodes increases, the impact also becomes bigger.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 38.7pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The mobile
sink is responsible to collects the data from the nodes in the cluster. It is
easy to see that delay is main problems of using mobile sink in WSNs .To
shorten this delay we implemented Expectation Maximization (EM) algorithm.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 38.7pt -0.25pt; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;u&gt;Modules:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 38.7pt -0.25pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;Cluster Creation:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;WSN are
autonomous systems consisting of mobile hosts that are connected by multi hop
wireless links. In this cluster head (CH) is elected according to its weight
computed by combining a set of system parameters (Mobility). Sensor nodes are
equipped with store sensed information until mobile sink approaches the cluster
centroid.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 14.5pt -0.25pt; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://draft.blogger.com/null&quot; name=&quot;__DdeLink__323_235287414&quot;&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The network consists of a mobile sink and sensor
nodes&amp;nbsp; that spread within a limited field.
Every sensor node knows its location, and the mobile sink knows all nodes
locations.&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 14.5pt; margin-left: -.25pt; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;a href=&quot;https://draft.blogger.com/null&quot; name=&quot;__DdeLink__323_235287414&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 11.8pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u style=&quot;font-weight: bold;&quot;&gt;Twitter Data
Generation:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Twitter is a
highly popular platform for information exchange, can be used as a data-mining
source which could aid in the aforementioned challenges which is collected by
sensor nodes. Specifically, using a large data set of harvested tweets, sensor
nodes connect with sink to transfer the dataset to HDFS system.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 11.8pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The REST APIs provides programmatic access to write and
read Twitter data. And also&amp;nbsp; REST API
identifies Twitter applications and responses are available in JSON.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 11.8pt -0.25pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;EM
computation:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;The sink
node sends data request message to cluster head to invoke data transmission
from sensor nodes when it arrives at the cluster centroids. The nodes that
receive data request message send the data to the sink node and broadcast data
request message to their neighboring nodes using multi hop traversal. It was
realized that clustering can be based on probability models to cover the
missing values. This has led to the development of new clustering methods such
as Expectation&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 16pt; line-height: 152%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Maximization (EM) that is based on the principle
of Maximum Likelihood of unobserved variables in finite mixture models.&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 11.7pt -0.25pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;Data collection:-&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Once, the
mobile sink patrols every cluster centroid and collects the data from the nodes
in the cluster. This leads to transfer the sensor data to HDFS system with less
energy consumption. The spectral clustering is performed to perform data analytics
based on the Hash tag, Location and retweet count.&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;line-height: 150%; margin: 12pt 0in 3.05pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;Motivation:-&lt;/u&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; font-weight: normal; line-height: 150%;&quot;&gt;The
following challenges and benefits give us the motivation to developing this
product.&lt;/span&gt;&lt;/h1&gt;
&lt;div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 4.2pt -0.25pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;Challenges:-&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 22.75pt -0.75pt; text-align: justify; text-indent: 33.85pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;We first outline the clustering problem in WSN using
mobile sink and the challenges in solving this problem. After that, we
introduce the considered network model and the overview of EM algorithm for
clustering. Based on EM algorithm, we proposed our clustering method and the
procedure to gather data using the proposed method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;line-height: 150%; margin-bottom: 11.1pt; margin-left: -.25pt; margin-right: 0in; margin-top: 12.0pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;Architecture
Diagram:-&lt;/u&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC-RvBFSoGkViY2RJS0aEX2T83lLcA2LVwHwLLM9rYox9eMnP9EweIp_qapb0qEUyYMihRYEWmfI_9a12cMl4h9xezjN7kd4VbftPqTkuZnrKXDTNMy8D0sCQi5HSK1Tg5QWxympu7jM8/s1600/bigdata.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC-RvBFSoGkViY2RJS0aEX2T83lLcA2LVwHwLLM9rYox9eMnP9EweIp_qapb0qEUyYMihRYEWmfI_9a12cMl4h9xezjN7kd4VbftPqTkuZnrKXDTNMy8D0sCQi5HSK1Tg5QWxympu7jM8/s640/bigdata.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h1 style=&quot;line-height: 150%; margin: 12pt 0in 2.45pt 0.25in; text-align: justify; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; font-weight: normal; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Our implementation suggested that
energy efficient big data gathering in such networks is, indeed, necessary.
Where as the conventional mobile sink schemes can reduce energy consumption of
the sensor nodes, they lead to a number of challenges such as determining the
sink node’s trajectory and cluster formation prior to data collection. To point
out&amp;nbsp; these challenges, we proposed a
mobile sink based &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data collection &amp;nbsp;&amp;nbsp; method by introducing a new clustering
method. Here clustering method uses a modified Expectation Maximization
technique.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div&gt;
&lt;h1 style=&quot;line-height: 150%; margin-bottom: 2.45pt; margin-left: .25in; margin-right: 0in; margin-top: 12.0pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;IMPLEMENTATION:-&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 0.25pt -0.75pt; text-align: justify; text-indent: 33.85pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Implementation literally means to put into effect or to
carry out. The system implementation phase of the software deals with the
translation of the design specifications into the source code. The ultimate
goal of the implementation is to write the source code and the internal
documentation so that it can be verified easily. The code and documentation
should be written in a manner that eases debugging, testing and modification.
System flowcharts, sample output,sample run on packages, etc. Is part of the
implementation?&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 27.95pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Various
types of bugs were discovered while debugging the modules. These ranged from
logical errors to failure on account of various processing cases.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: -.25pt; margin-right: 0in; margin-top: 2.0pt;&quot;&gt;
&lt;span style=&quot;font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;System Implementation:-&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 18.9pt -0.75pt; text-align: justify; text-indent: 36.1pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;A
post-implementation review is an evaluation of the extent to which the system
accomplishes stated objectives and actual project costs exceed initial
estimates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 18.9pt -0.75pt; text-align: justify; text-indent: 33.85pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;After the system is implemented and conversion is
complete, a review should be conducted to determine whether the system is
meeting expectations and where improvements are needed. A post implementation
review measures the systems performance against predetermined requirements. It
determines how well the system continues to meet performance specifications. It
also provides information to determine whether major re-design or modification
is required.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 0.65pt -0.75pt; text-align: left; text-indent: 33.35pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;There &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; are &amp;nbsp;&amp;nbsp; five &amp;nbsp;&amp;nbsp; things &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in
consideration  when &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the &amp;nbsp;&amp;nbsp; project
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is developed. They are as
follows:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 6.95pt 33.8pt; text-align: justify; text-indent: -16.9pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Wingdings; line-height: 150%; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Wingdings;&quot;&gt;v&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Adaptation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 6.9pt 33.8pt; text-align: justify; text-indent: -16.9pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Wingdings; line-height: 150%; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Wingdings;&quot;&gt;v&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Prevention/Integrity&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 6.85pt 33.8pt; text-align: justify; text-indent: -16.9pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Wingdings; line-height: 150%; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Wingdings;&quot;&gt;v&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Enhancement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 22.1pt 33.8pt; text-align: justify; text-indent: -16.9pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Wingdings; line-height: 150%; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.5pt; mso-fareast-font-family: Wingdings;&quot;&gt;v&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Correction&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 4.2pt -0.25pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;b&gt;&lt;u&gt;Adaptation/Enhancement:-&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 24.3pt -0.75pt; text-align: justify; text-indent: 33.85pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;In this Project a high performance data synchronization
server for mobile device is proposed. For the mobile application system, the
information or data (ex. Contacts, Music, Video, Image) sets are usually stored
in both the mobile device and system database. After several operations for the
mobile system, the data sets between the mobile device and system database may
become not identical..&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 4.2pt -0.25pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;Prevention/Integrity:-&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 0.25pt -0.75pt; text-align: justify; text-indent: 33.85pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Security has been the measure aspect in the prevailing
system and is to be considered the primary key for any successful of the
project. The software developed here, &lt;b&gt;Mobile-Sync&lt;/b&gt;,
has been given a full security providing each TESTERS with their access. We
know that:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 5.75pt; text-align: left; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Integrity= &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [1-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 5.2pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;(security*(1-threat)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 59.8pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Every
measure is employed to secure the system from any types of threats. Integrity
has been tried to maintain to its accuracy.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 4.2pt -0.25pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;Correction:-&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 22.55pt -0.75pt; text-align: left; text-indent: 33.35pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;The project is corrective to its
end and &amp;nbsp; all &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the &amp;nbsp;&amp;nbsp; validation  has &amp;nbsp;&amp;nbsp; been
incorporated to software developed so that no further corrective action can be
thought of.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 5.15pt -0.25pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;NOTE:-&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 29.25pt -0.75pt; text-align: justify; text-indent: 33.85pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;The software has been developed keeping in mind the
requirements of the Share Investors to share application. One of the most
important factors in developing any application is experience. Due to lack of
experience, We might have overlooked some things that should be put into
consideration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: -.25pt; margin-right: 0in; margin-top: 2.0pt;&quot;&gt;
&lt;span style=&quot;font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;Maintenance:-&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 0.25pt -0.25pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maintenance activities involve making
enhancements to software products, adapting products to new environments, and
correcting problems. Adaptation of software to a new environment may involve
moving the software to a different machine. Problem correction involves
modification and revalidation of software to correct errors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 7.1pt; text-align: left; text-indent: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 5.6pt -0.75pt; text-align: justify; text-indent: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Maintenance activities consume a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%; text-align: justify; text-indent: 0in;&quot;&gt;large
portion of the total life cycle budget. Software Maintenance accounts for 70
percent of total software life-cycle costs. Maintenance includes 60 percent of
maintenance budget for enhancement, and 20 percent each for adaptation and
correction. The primary product attributes that contribute to software
maintainability are clarity, modularity, and good internal documentation of the
source code, as well as appropriate supporting documents.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .25pt; margin-left: -.25pt; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;u&gt;Documentation:-&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 0.25pt -0.75pt; text-align: justify; text-indent: 33.85pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Documentation is a method of communication. A
satisfactory documentation of the system should be objective, factual and
complete. Thus format, length, volume or complexity does not determine its
adequacy. In documentation, there are no uniform standards that are applicable
to all system projects. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 16pt; line-height: 152%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Embedding Comments in the executable portion of
the code did proper documentation of each module. To enhance the readability of
the comments, indentation, parenthesis, blank lines and spaces, proper lining
of the loops were used around the block of comments. Care was also taken to use
descriptive names of tables, fields, modules, forms etc. The proper use of
indentation, parenthesis, blank lines and spaces were also ensured during
coding to enhance the readability of the code. &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;u&gt;REFERENCES:-&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-right: 0in; mso-list: l0 level1 lfo1; text-indent: -16.7pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #181717; font-family: &amp;quot;Calibri Light&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7.0pt; line-height: 150%; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Calibri Light&amp;quot;; mso-bidi-theme-font: major-latin; mso-fareast-font-family: &amp;quot;Calibri Light&amp;quot;; mso-fareast-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;[1]&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;IBM, “Four vendor views on big Data and big data
analytics: IBM,” &lt;a href=&quot;http://www./&quot;&gt;http://www.&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;a href=&quot;http://01.ibm.com/software/in/data/bigdata/&quot;&gt;01.ibm.com/software/in/data/bigdata/&lt;/a&gt;,
Jan. 2012.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .2pt; margin-left: .5pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -16.7pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #181717; font-family: &amp;quot;Calibri Light&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7.0pt; line-height: 150%; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Calibri Light&amp;quot;; mso-bidi-theme-font: major-latin; mso-fareast-font-family: &amp;quot;Calibri Light&amp;quot;; mso-fareast-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;[2]&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;A.
Divyakant, B. Philip, and &lt;i&gt;et al.&lt;/i&gt;,
“Challenges and opportunities with Big Data,” &lt;i&gt;2012, a community white paper developed by leading researchers across
the United States. &lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .2pt; margin-left: 16.45pt; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;[Online]. &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .2pt; margin-left: 16.45pt; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Available:&lt;a href=&quot;http://cra.org/ccc/docs/init/bigdatawhitepaper.pdf&quot; target=&quot;_blank&quot;&gt;http://cra.org/ccc/docs/init/bigdatawhitepaper.pdf&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .2pt; margin-left: .5pt; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;S. Sagiroglu
and D. Sinanc, “Big data: A review,” in &lt;i&gt;International
Conference on Collaboration Technologies and Systems (CTS)&lt;/i&gt;, 2013&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-right: 0in; mso-list: l1 level1 lfo2; text-indent: -16.7pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #181717; font-family: &amp;quot;Calibri Light&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7.0pt; line-height: 150%; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Calibri Light&amp;quot;; mso-bidi-theme-font: major-latin; mso-fareast-font-family: &amp;quot;Calibri Light&amp;quot;; mso-fareast-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;[3]&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;D. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Baum &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &amp;nbsp; CIO
&amp;nbsp;&amp;nbsp; Information &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 0in 0in 0.65pt 16.7pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Matters, “Big Data, big
opportunity,”
&lt;a href=&quot;http://www.oracle.com/us/ccentral/ciosolutions/informationmatters/big-databig-opportunity/index.html&quot;&gt;http://www.oracle.com/us/ccentral/ciosolutions/informationmatters/big-databig-opportunity/index.html&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-right: 0in; mso-list: l1 level1 lfo2; text-indent: -16.7pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #181717; font-family: &amp;quot;Calibri Light&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7.0pt; line-height: 150%; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Calibri Light&amp;quot;; mso-bidi-theme-font: major-latin; mso-fareast-font-family: &amp;quot;Calibri Light&amp;quot;; mso-fareast-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;[4]&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;L. Ramaswamy, V. Lawson, and S. Gogineni, “Towards a
qualitycentric big Data architecture for federated sensor services,” in &lt;i&gt;IEEE International Congress on Big Data
(BigData &lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .2pt; margin-left: 16.45pt; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Congress)&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;,
2013.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 1.4pt; margin-left: .5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-indent: -16.7pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #181717; font-family: &amp;quot;Calibri Light&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7.0pt; line-height: 150%; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Calibri Light&amp;quot;; mso-bidi-theme-font: major-latin; mso-fareast-font-family: &amp;quot;Calibri Light&amp;quot;; mso-fareast-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;[5]&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;C.-C. Lin,
M.-J. Chiu, C.-C. Hsiao, R.G. Lee, and Y.-S. Tsai, “Wireless health care
service system for elderly with dementia,” &lt;i&gt;IEEE
Transactions on Information Technology in &lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 150%; margin-bottom: .25pt; margin-left: 16.7pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #181717; font-family: &amp;quot;Calibri Light&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7.0pt; line-height: 150%; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Calibri Light&amp;quot;; mso-bidi-theme-font: major-latin; mso-fareast-font-family: &amp;quot;Calibri Light&amp;quot;; mso-fareast-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;[6]&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;i&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;Biomedicine&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;,
vol. 10, no. 4, pp. 696– 704, 2006.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 150%; margin-bottom: 38.7pt; margin-left: 16.7pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #181717; font-family: &amp;quot;Calibri Light&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 7.0pt; line-height: 150%; mso-ascii-theme-font: major-latin; mso-bidi-font-family: &amp;quot;Calibri Light&amp;quot;; mso-bidi-theme-font: major-latin; mso-fareast-font-family: &amp;quot;Calibri Light&amp;quot;; mso-fareast-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;[7]&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;P. Ross,
“Managing care through the air [remote health monitoring],” IEEE Spectrum,
vol.41, no. 12,&amp;nbsp; pp. 26-31,2004&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 1.5pt; margin-left: -.25pt; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: .25pt; margin-left: -.25pt; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 38.7pt; margin-left: -.25pt; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;, sans-serif; font-size: 16pt; line-height: 152%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/4059080024999156979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2015/07/towards-energy-efficient-big-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/4059080024999156979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/4059080024999156979'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2015/07/towards-energy-efficient-big-data.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC-RvBFSoGkViY2RJS0aEX2T83lLcA2LVwHwLLM9rYox9eMnP9EweIp_qapb0qEUyYMihRYEWmfI_9a12cMl4h9xezjN7kd4VbftPqTkuZnrKXDTNMy8D0sCQi5HSK1Tg5QWxympu7jM8/s72-c/bigdata.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-5924672779476312014</id><published>2013-04-08T10:18:00.000-07:00</published><updated>2013-04-08T10:18:38.263-07:00</updated><title type='text'>WRITE A C++ PROGRAM THAT USES A SINGLE FILE FOR BOTH READING AND WRITING THE DATA</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
/* WRITE A C++ PROGRAM THAT USES A SINGLE FILE FOR BOTH READING&lt;br /&gt;
AND WRITING THE DATA*/&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;fstream.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
char name[20];&lt;br /&gt;
int regno;&lt;br /&gt;
double perc;&lt;br /&gt;
clrscr();&lt;br /&gt;
ofstream writefile(&quot;nagaraj.dat&quot;);&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER YOLUR NAME:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;name;&lt;br /&gt;
writefile&amp;lt;&amp;lt;name&amp;lt;&amp;lt;endl;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER YOUR REGNO:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;regno;&lt;br /&gt;
writefile&amp;lt;&amp;lt;regno&amp;lt;&amp;lt;endl;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER YOUR PERCENTAGE:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;perc;&lt;br /&gt;
writefile&amp;lt;&amp;lt;perc&amp;lt;&amp;lt;endl;&lt;br /&gt;
writefile.close();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nFILE CREATED SUCCESSULLY........\n&quot;;&lt;br /&gt;
ifstream readfile(&quot;nagaraj.dat&quot;);&lt;br /&gt;
readfile&amp;gt;&amp;gt;name;&lt;br /&gt;
readfile&amp;gt;&amp;gt;regno;&lt;br /&gt;
readfile&amp;gt;&amp;gt;perc;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nCONTENTS OF THE FILE NAGARAJ.DAT IS READ AS FOLLOWS......\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nSTUDENT NAME:&quot;&amp;lt;&amp;lt;name&amp;lt;&amp;lt;endl;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nSTUDENT REGISTER NUMBER:&quot;&amp;lt;&amp;lt;regno&amp;lt;&amp;lt;endl;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nSTUDENT PERCENTAGE:&quot;&amp;lt;&amp;lt;perc&amp;lt;&amp;lt;endl;&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/5924672779476312014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/write-c-program-that-uses-single-file.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/5924672779476312014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/5924672779476312014'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/write-c-program-that-uses-single-file.html' title='WRITE A C++ PROGRAM THAT USES A SINGLE FILE FOR BOTH READING AND WRITING THE DATA'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-7450312311739912196</id><published>2013-04-08T10:16:00.001-07:00</published><updated>2013-04-08T10:16:35.367-07:00</updated><title type='text'>C++ Program To Illustrate Manipulators</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
/*WRITE A C++ PROGRAM TO ILLUSTRATE THE USE OF MANIPULATORS AND I/OS FUNCTION*/&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;iomanip.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
clrscr();&lt;br /&gt;
long int sqrno;&lt;br /&gt;
int i;&lt;br /&gt;
float sq;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;TO DISPLAY SQUARE AND SQUARE ROOT OF THE NUMBERS 2 TO 20\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;----------------------------------------------------------------------&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;setw(20)&amp;lt;&amp;lt;&quot;NUMBER&quot;&amp;lt;&amp;lt;setw(20)&amp;lt;&amp;lt;&quot;SQUARE&quot;&amp;lt;&amp;lt;setw(20)&amp;lt;&amp;lt;&quot;SQUARE ROOT&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;----------------------------------------------------------------------\n&quot;;&lt;br /&gt;
for(i=2;i&amp;lt;=20;i+=2)&lt;br /&gt;
{&lt;br /&gt;
cout.fill(&#39;.&#39;);&lt;br /&gt;
cout.width(15);&lt;br /&gt;
cout.setf(ios::left);&lt;br /&gt;
cout&amp;lt;&amp;lt;i;&lt;br /&gt;
cout.setf(ios::left);&lt;br /&gt;
cout.width(15);&lt;br /&gt;
sqrno=i*i;&lt;br /&gt;
cout&amp;lt;&amp;lt;sqrno;&lt;br /&gt;
cout.setf(ios::showpoint);&lt;br /&gt;
cout.setf(ios::right);&lt;br /&gt;
sq=sqrt(i);&lt;br /&gt;
cout&amp;lt;&amp;lt;sq&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/7450312311739912196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-illustrate-manipulators.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/7450312311739912196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/7450312311739912196'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-illustrate-manipulators.html' title='C++ Program To Illustrate Manipulators'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-8806757148014670693</id><published>2013-04-08T10:15:00.000-07:00</published><updated>2013-04-08T10:15:53.714-07:00</updated><title type='text'>C++ Program To Add Two Complex Numbers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
/*CREATE A CLASS &quot;COMPLEX&quot; TO HOLD A COMPLEX NUMBER. WRITE A FRIEND FUNCTION&lt;br /&gt;
TO ADD TWO COMPLEX NUMBERS. WRITE A MAIN PROGRAM TO CHECK THE SAME.*/&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
class complex&lt;br /&gt;
{&lt;br /&gt;
private:float rp;&lt;br /&gt;
float ip;&lt;br /&gt;
public:void getdata();&lt;br /&gt;
void putdata();&lt;br /&gt;
friend complex add(complex c1,complex c2);&lt;br /&gt;
};&lt;br /&gt;
void complex::getdata()&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE REAL PART AND IMAGINARY PART:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;rp&amp;gt;&amp;gt;ip;&lt;br /&gt;
}&lt;br /&gt;
void complex::putdata()&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;rp&amp;lt;&amp;lt;&quot;+i&quot;&amp;lt;&amp;lt;ip&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
complex add(complex c1,complex c2)&lt;br /&gt;
{&lt;br /&gt;
complex c3;&lt;br /&gt;
c3.rp=c1.rp+c2.rp;&lt;br /&gt;
c3.ip=c1.ip+c2.ip;&lt;br /&gt;
return c3;&lt;br /&gt;
}&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
complex c1,c3,c2;&lt;br /&gt;
clrscr();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE FIRST COMPLEX NUMBER\n&quot;;&lt;br /&gt;
c1.getdata();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE SECOND COMPLEX NUMBER\n&quot;;&lt;br /&gt;
c2.getdata();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nTHE FIRST COMPLEX NUMBER IS:&quot;;&lt;br /&gt;
c1.putdata();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nTHE SECOND COMPLEX NUMBER IS:&quot;;&lt;br /&gt;
c2.putdata();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nTHE ADDITION OF TWO COMPLEX NUMBERS IS:&quot;;&lt;br /&gt;
c3=add(c1,c2);&lt;br /&gt;
c3.putdata();&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/8806757148014670693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-add-two-complex-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/8806757148014670693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/8806757148014670693'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-add-two-complex-numbers.html' title='C++ Program To Add Two Complex Numbers'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-5593424360990392287</id><published>2013-04-08T10:14:00.000-07:00</published><updated>2013-04-08T10:14:25.214-07:00</updated><title type='text'>C++ Program To Illustrate Multiple Inheritence</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
class shape&lt;br /&gt;
{&lt;br /&gt;
protected:double x;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;double y;&lt;br /&gt;
public: void getdata()&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cin&amp;gt;&amp;gt;x&amp;gt;&amp;gt;y;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;
virtual void displayarea(){};&lt;br /&gt;
};&lt;br /&gt;
class triangle:public shape&lt;br /&gt;
{&lt;br /&gt;
double area;&lt;br /&gt;
public:void displayarea()&lt;br /&gt;
{&lt;br /&gt;
area=0.5*x*y;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;area of triangle is:&quot;&amp;lt;&amp;lt;area&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
};&lt;br /&gt;
class rectangle:public shape&lt;br /&gt;
{&lt;br /&gt;
double area;&lt;br /&gt;
public: void displayarea()&lt;br /&gt;
{&lt;br /&gt;
area=x*y;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;area of a rectangle is:&quot;&amp;lt;&amp;lt;area&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
};&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
shape *s;&lt;br /&gt;
triangle t;&lt;br /&gt;
rectangle r;&lt;br /&gt;
clrscr();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nenter the values to find area of triangle\n&quot;;&lt;br /&gt;
s=&amp;amp;t;&lt;br /&gt;
s-&amp;gt;getdata();&lt;br /&gt;
s-&amp;gt;displayarea();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nenter the values to find area of rectangle\n&quot;;&lt;br /&gt;
s=&amp;amp;r;&lt;br /&gt;
s-&amp;gt;getdata();&lt;br /&gt;
s-&amp;gt;displayarea();&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/5593424360990392287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-illustrate-multiple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/5593424360990392287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/5593424360990392287'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-illustrate-multiple.html' title='C++ Program To Illustrate Multiple Inheritence'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-7612669174600765603</id><published>2013-04-08T10:12:00.001-07:00</published><updated>2013-04-08T10:12:41.861-07:00</updated><title type='text'>C++ Program To Implement == Operator Overloading</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;string.h&amp;gt;&lt;br /&gt;
class string&lt;br /&gt;
{&lt;br /&gt;
private:char s[20];&lt;br /&gt;
public:string()&lt;br /&gt;
{&lt;br /&gt;
}&lt;br /&gt;
string(char a[])&lt;br /&gt;
{&lt;br /&gt;
strcpy(s,a);&lt;br /&gt;
}&lt;br /&gt;
int operator==(string a)&lt;br /&gt;
{&lt;br /&gt;
if(strcmp(s,a.s)==0)&lt;br /&gt;
return (1);&lt;br /&gt;
else&lt;br /&gt;
return (0);&lt;br /&gt;
}&lt;br /&gt;
};&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
char s1[20],s2[20];&lt;br /&gt;
clrscr();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;ENTER THE FIRST STRING:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;s1;&lt;br /&gt;
string obj1(s1);&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;ENTER THE SECOND STRING:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;s2;&lt;br /&gt;
string obj2(s2);&lt;br /&gt;
if(obj1==obj2)&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;TWO STRINGS ARE EQUAL&quot;;&lt;br /&gt;
else&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;TWO STRINGS ARE NOT EQUAL&quot;;&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/7612669174600765603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-implement-operator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/7612669174600765603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/7612669174600765603'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-implement-operator.html' title='C++ Program To Implement == Operator Overloading'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-3121039570701436157</id><published>2013-04-08T10:11:00.001-07:00</published><updated>2013-04-08T10:11:40.458-07:00</updated><title type='text'>C++ Program To Implement Matrix Operations</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
int m,n,p,q;&lt;br /&gt;
class mat&lt;br /&gt;
{&lt;br /&gt;
int mt[10][10];&lt;br /&gt;
public:&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;void add(mat m1,mat m2);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;void sub(mat m1,mat m2);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;void mul(mat m1,mat m2);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;void transpose();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;void read_matrix();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;void display_matrix();&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
void mat::add(mat m1,mat m2)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(int i=0;i&amp;lt;m;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; for(int j=0;j&amp;lt;n;j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;mt[i][j]=m1.mt[i][j]+m2.mt[i][j];&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
void mat::sub(mat m1,mat m2)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; for(int i=0;i&amp;lt;m;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(int j=0;j&amp;lt;n;j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mt[i][j]=m1.mt[i][j]-m2.mt[i][j];&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
void mat::mul(mat m1,mat m2)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; for(int i=0;i&amp;lt;m;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; for(int j=0;j&amp;lt;q;j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; &amp;nbsp;mt[i][j]=0;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; &amp;nbsp; &amp;nbsp;for(int k=0;k&amp;lt;p;k++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;mt[i][j]=mt[i][j]+m1.mt[i][k]*m2.mt[k][j];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
void mat::transpose()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; for(int i=0;i&amp;lt;n;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; for(int j=0;j&amp;lt;m;j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\t\t&quot;&amp;lt;&amp;lt;mt[j][i];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void mat::read_matrix()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(int i=0;i&amp;lt;m;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; for(int j=0;j&amp;lt;n;j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cin&amp;gt;&amp;gt;mt[i][j];&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
void mat::display_matrix()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(int i=0;i&amp;lt;m;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int j=0;j&amp;lt;n;j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; &amp;nbsp;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; &amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\t\t&quot;&amp;lt;&amp;lt;mt[i][j];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; mat m1,m2,msum,msub,mmul,mtrans;&lt;br /&gt;
&amp;nbsp; int ch;&lt;br /&gt;
&amp;nbsp; clrscr();&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nmatrix operations\n&quot;;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nenter your choice\n&quot;;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n1.addition\n2.subtraction\n3.multiplication\n4.transpose\n5.exit\n&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;ch;&lt;br /&gt;
&amp;nbsp; switch(ch)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; case 1: cout&amp;lt;&amp;lt;&quot;\nmatrix addition\n&quot;;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nenter the row &amp;amp; column values for 1st matrix:&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;m&amp;gt;&amp;gt;n;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nenter the row &amp;amp;column values for 2nd matrix:&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;p&amp;gt;&amp;gt;q;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if((m!=p)||(n!=q))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; cout&amp;lt;&amp;lt;&quot;\nmatric addition is not possible\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;exit(0);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nenter the elements for 1st matrix\n&quot;;&lt;br /&gt;
&amp;nbsp; m1.read_matrix();&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;enter the elementes for 2nd matrix\n&quot;;&lt;br /&gt;
&amp;nbsp; m2.read_matrix();&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;the 1st matrix is\n&quot;;&lt;br /&gt;
&amp;nbsp; m1.display_matrix();&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;the 2nd matrix is \n&quot;;&lt;br /&gt;
&amp;nbsp; m2.display_matrix();&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\naddition of two matrices\n&quot;;&lt;br /&gt;
&amp;nbsp; msum.add(m1,m2);&lt;br /&gt;
&amp;nbsp; msum.display_matrix();&lt;br /&gt;
&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp;case 2: cout&amp;lt;&amp;lt;&quot;\nmatrix subtraction \n:&quot;;&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nenter the row &amp;amp; column values for 1st matrix:&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;m&amp;gt;&amp;gt;n;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nenter the row &amp;amp;column values for 2nd matrix:&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;p&amp;gt;&amp;gt;q;&lt;br /&gt;
&amp;nbsp; if((m!=p)||(n!=q))&lt;br /&gt;
&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nmatrix subtractioin not possible\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp; &amp;nbsp;exit(0);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nenter the elements for 1st matrix\n&quot;;&lt;br /&gt;
&amp;nbsp;m1.read_matrix();&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nenter the elements for 2nd matrix\n&quot;;&lt;br /&gt;
&amp;nbsp;m2.read_matrix();&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;the 1st matrix is\n&quot;;&lt;br /&gt;
&amp;nbsp; m1.display_matrix();&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;the 2nd matrix is \n&quot;;&lt;br /&gt;
&amp;nbsp; m2.display_matrix();&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nsubtraction of two matrices is \n&quot;;&lt;br /&gt;
&amp;nbsp;msub.sub(m1,m2);&lt;br /&gt;
&amp;nbsp;msub.display_matrix();&lt;br /&gt;
&amp;nbsp;break;&lt;br /&gt;
&amp;nbsp;case 3: cout&amp;lt;&amp;lt;&quot;\nmatrix multiplication\n&quot;;&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nenter the row &amp;amp; column values for 1st matrix:&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;m&amp;gt;&amp;gt;n;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nenter the row &amp;amp;column values for 2nd matrix:&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;p&amp;gt;&amp;gt;q;&lt;br /&gt;
&amp;nbsp;if(n!=p)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nmatrix multiplication not possible\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp; &amp;nbsp;exit(0);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nenter the elements for 1st matrix\n&quot;;&lt;br /&gt;
&amp;nbsp;m1.read_matrix();&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nenter the elements for 2nd matrix\n&quot;;&lt;br /&gt;
&amp;nbsp;int tm=m;&lt;br /&gt;
&amp;nbsp;m=p;&lt;br /&gt;
&amp;nbsp;n=q;&lt;br /&gt;
&amp;nbsp;m2.read_matrix();&lt;br /&gt;
&amp;nbsp;m=tm;&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;the 1st matrix is\n&quot;;&lt;br /&gt;
&amp;nbsp; m1.display_matrix();&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;the 2nd matrix is \n&quot;;&lt;br /&gt;
&amp;nbsp; m2.display_matrix();&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nmultiplication of two matrices is \n&quot;;&lt;br /&gt;
&amp;nbsp;mmul.mul(m1,m2);&lt;br /&gt;
&amp;nbsp;n=q;&lt;br /&gt;
&amp;nbsp;mmul.display_matrix();&lt;br /&gt;
&amp;nbsp;break;&lt;br /&gt;
&amp;nbsp;case 4: cout&amp;lt;&amp;lt;&quot;\nmatrix transpose\n&quot;;&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nenter the row &amp;amp; column values for 1st matrix:&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;m&amp;gt;&amp;gt;n;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nenter the row &amp;amp;column values for 2nd matrix:&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;p&amp;gt;&amp;gt;q;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nenter the elements for matrix\n&quot;;&lt;br /&gt;
&amp;nbsp;mtrans.read_matrix();&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nthe entered matrix is\n&quot;;&lt;br /&gt;
&amp;nbsp;mtrans.display_matrix();&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;\nafter transposing matrix is \n&quot;;&lt;br /&gt;
&amp;nbsp;mtrans.transpose();&lt;br /&gt;
&amp;nbsp;break;&lt;br /&gt;
&amp;nbsp;default:exit(0);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/3121039570701436157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-implement-matrix-operations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/3121039570701436157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/3121039570701436157'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-implement-matrix-operations.html' title='C++ Program To Implement Matrix Operations'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-1010614801384436103</id><published>2013-04-08T10:10:00.001-07:00</published><updated>2013-06-22T03:48:33.743-07:00</updated><title type='text'>C++PROGRAM TO IMPLEMENT EMPLOYEE DATABASE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
class employee&lt;br /&gt;
{&lt;br /&gt;
private: char ename[20];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int eno;&lt;br /&gt;
public:void getdata();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;void putdata();&lt;br /&gt;
};&lt;br /&gt;
void employee::getdata()&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE NAME OF THE EMPLOYEE:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;ename;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE EMPLOYEE NUMBER:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;eno;&lt;br /&gt;
}&lt;br /&gt;
void employee::putdata()&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;ename&amp;lt;&amp;lt;&quot;\t\t&quot;&amp;lt;&amp;lt;eno&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
clrscr();&lt;br /&gt;
int n,i;&lt;br /&gt;
employee e[20];&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;ENTER THE NUMBER OF EMPLOYEES REQUIRED\n&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;n;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;ENTER THE EMPLOYEE DETAILS\n&quot;;&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
e[i].getdata();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;-------------------------------------------------------------------&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;NAME\t\t&quot;&amp;lt;&amp;lt;&quot;ENUMBER&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;-------------------------------------------------------------------&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
e[i].putdata();&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/1010614801384436103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-implement-employee-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/1010614801384436103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/1010614801384436103'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-implement-employee-database.html' title='C++PROGRAM TO IMPLEMENT EMPLOYEE DATABASE'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-8021885885847488283</id><published>2013-04-08T10:09:00.001-07:00</published><updated>2013-04-08T10:09:52.666-07:00</updated><title type='text'>C++ Program To Add Two Times</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
class time&lt;br /&gt;
{&lt;br /&gt;
int hr;&lt;br /&gt;
int min;&lt;br /&gt;
int sec;&lt;br /&gt;
public:time()&lt;br /&gt;
{&lt;br /&gt;
hr=0;&lt;br /&gt;
min=0;&lt;br /&gt;
sec=0;&lt;br /&gt;
}&lt;br /&gt;
time(int hh,int mm,int ss)&lt;br /&gt;
{&lt;br /&gt;
hr=hh;&lt;br /&gt;
min=mm;&lt;br /&gt;
sec=ss;&lt;br /&gt;
}&lt;br /&gt;
void display()&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;hr&amp;lt;&amp;lt;&quot;:&quot;&amp;lt;&amp;lt;min&amp;lt;&amp;lt;&quot;:&quot;&amp;lt;&amp;lt;sec&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
void gettime()&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;ENTER THE TIME IN HH-MM-SS FORMAT\n&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;hr&amp;gt;&amp;gt;min&amp;gt;&amp;gt;sec;&lt;br /&gt;
}&lt;br /&gt;
time addtime(time t1,time t2)&lt;br /&gt;
{&lt;br /&gt;
time t3;&lt;br /&gt;
t3.hr=t1.hr+t2.hr;&lt;br /&gt;
t3.min=t1.min+t2.min;&lt;br /&gt;
t3.sec=t1.sec+t2.sec;&lt;br /&gt;
if(t3.sec&amp;gt;=60)&lt;br /&gt;
{&lt;br /&gt;
t3.sec=t3.sec-60;&lt;br /&gt;
t3.min++;&lt;br /&gt;
}&lt;br /&gt;
if(t3.min&amp;gt;=60)&lt;br /&gt;
{&lt;br /&gt;
t3.min-=60;&lt;br /&gt;
t3.hr++;&lt;br /&gt;
}&lt;br /&gt;
return t3;&lt;br /&gt;
}&lt;br /&gt;
};&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
time t1,t2,t3;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;ENTER THE FIRST TIME\n&quot;;&lt;br /&gt;
t1.gettime();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;ENTER THE SECOND TIME\n&quot;;&lt;br /&gt;
t2.gettime();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;THE FIRST TIME IS:&quot;;&lt;br /&gt;
t1.display();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;THE SECOND TIME IS:&quot;;&lt;br /&gt;
t2.display();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;ADDITION OF TWO TIMES IS:&quot;;&lt;br /&gt;
t3=t3.addtime(t1,t2);&lt;br /&gt;
t3.display();&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/8021885885847488283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-add-two-times.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/8021885885847488283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/8021885885847488283'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-add-two-times.html' title='C++ Program To Add Two Times'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-2452779107497821869</id><published>2013-04-08T10:08:00.000-07:00</published><updated>2013-04-08T10:08:03.521-07:00</updated><title type='text'>C++ PROGRAM TO READ &amp; DISPLAY A MATRIX OF SIZE mXn</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
/*C++ PROGRAM TO READ &amp;amp; DISPLAY A MATRIX OF SIZE mXn&lt;br /&gt;
USING FUNCTIONS WINT ROW PARAMETER AS DEFAULT ARGUMENT FOR&lt;br /&gt;
READING &amp;amp; DISPLAYING*/&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
int a[10][10];&lt;br /&gt;
void read(int n,int m=3);&lt;br /&gt;
void display(int n,int m=3);&lt;br /&gt;
void read(int n,int m)&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER ELEMENTS OF ORDER&quot;&amp;lt;&amp;lt;m&amp;lt;&amp;lt;&quot;*&quot;&amp;lt;&amp;lt;n&amp;lt;&amp;lt;&quot;:&quot;;&lt;br /&gt;
for(int i=0;i&amp;lt;m;i++)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int j=0;j&amp;lt;n;j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cin&amp;gt;&amp;gt;a[i][j];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
void display(int n,int m)&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nTHE MATRIX TO BE DISPLAYED IS&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
for(int i=0;i&amp;lt;m;i++)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int j=0;j&amp;lt;n;j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;a[i][j]&amp;lt;&amp;lt;&quot;\t&quot;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int m,n;&lt;br /&gt;
clrscr();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE ORDER OF MATRIX:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;m&amp;gt;&amp;gt;n;&lt;br /&gt;
read(n,m);&lt;br /&gt;
display(n,m);&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE COLUMN VALUE ONLY:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;n;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nMATRIX READE &amp;amp; DISPLAYIN WITH &quot;&amp;lt;&amp;lt;&quot;DEFAULT ARGUMENTS FOR ROWS=3&quot;;&lt;br /&gt;
read(n);&lt;br /&gt;
display(n);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/2452779107497821869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-read-display-matrix-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/2452779107497821869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/2452779107497821869'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-read-display-matrix-of.html' title='C++ PROGRAM TO READ &amp; DISPLAY A MATRIX OF SIZE mXn'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-2231971125203270831</id><published>2013-04-08T09:56:00.000-07:00</published><updated>2013-04-08T09:56:05.152-07:00</updated><title type='text'>C++ PROGRAM TO COMPUTE POWER(m,n) Using Function OverLoading</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
/*C++ PROGRAM TO IMPLEMENT FUNCTION OVERLOADING IN&amp;nbsp;ORDER TO COMPUTE POWER(m,n) WHERE&lt;br /&gt;
i)m IS DOUBLE AND n IS INT&lt;br /&gt;
ii)m &amp;amp; n ARE INT */&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
double power(double m,int n)&lt;br /&gt;
{&lt;br /&gt;
double res=1.0;&lt;br /&gt;
res=pow(m,n);&lt;br /&gt;
return res;&lt;br /&gt;
}&lt;br /&gt;
int power(int m,int n)&lt;br /&gt;
{&lt;br /&gt;
int res=1;&lt;br /&gt;
res=pow(m,n);&lt;br /&gt;
return res;&lt;br /&gt;
}&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
double x;&lt;br /&gt;
int y;&lt;br /&gt;
clrscr();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE VALUES AS DOUBLE &amp;amp; INTEGER TYPES:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;x&amp;gt;&amp;gt;y;&lt;br /&gt;
double res=power(x,y);&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nPOW(&quot;&amp;lt;&amp;lt;x&amp;lt;&amp;lt;&quot;,&quot;&amp;lt;&amp;lt;y&amp;lt;&amp;lt;&quot;)=&quot;&amp;lt;&amp;lt;res&amp;lt;&amp;lt;endl;&lt;br /&gt;
int a,b;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE VALUES AS INTEGER TYPES:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;a&amp;gt;&amp;gt;b;&lt;br /&gt;
int res1=power(a,b);&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nPOW(&quot;&amp;lt;&amp;lt;a&amp;lt;&amp;lt;&quot;,&quot;&amp;lt;&amp;lt;b&amp;lt;&amp;lt;&quot;)=&quot;&amp;lt;&amp;lt;res1&amp;lt;&amp;lt;endl;&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/2231971125203270831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-compute-powermn-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/2231971125203270831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/2231971125203270831'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-compute-powermn-using.html' title='C++ PROGRAM TO COMPUTE POWER(m,n) Using Function OverLoading'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-5716976332621213234</id><published>2013-04-08T09:54:00.000-07:00</published><updated>2013-04-08T09:54:30.255-07:00</updated><title type='text'>C++ PROGRAM TO SORT AN ARRAY OF INTEGER</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
/*C++ PROGRAM TO SORT AN ARRAY OF INTEGER IN ASCENDING ORDER USIN A&lt;br /&gt;
FOUNCTION CALLED EXCHANGE() WHICH ACCEPTS TWO INTEGER&lt;br /&gt;
ARGUMENTS BY REFERENCE*/&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
void exchange(int &amp;amp;m,int &amp;amp;n)&lt;br /&gt;
{&lt;br /&gt;
int temp;&lt;br /&gt;
temp=m;&lt;br /&gt;
m=n;&lt;br /&gt;
n=temp;&lt;br /&gt;
}&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int i,j,n,a[10];&lt;br /&gt;
clrscr();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE NUMBER OF ELEMENTS:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;n;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE ARRAY ELEMENTS&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
cin&amp;gt;&amp;gt;a[i];&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(j=i+1;j&amp;lt;n;j++)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;if(a[i]&amp;gt;a[j])&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;exchange(a[i],a[j]);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nTHE SORTED ARRAY ELEMENTS ARE&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
cout&amp;lt;&amp;lt;a[i]&amp;lt;&amp;lt;endl;&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/5716976332621213234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-sort-array-of-integer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/5716976332621213234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/5716976332621213234'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-sort-array-of-integer.html' title='C++ PROGRAM TO SORT AN ARRAY OF INTEGER'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-1786041947847219023</id><published>2013-04-08T09:53:00.000-07:00</published><updated>2013-04-08T09:53:14.908-07:00</updated><title type='text'>C++ PROGRAM TO FIND THE LARGEST OF THREE NUMBERS USING INLINE FUNCTION</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
inline int large(int x,int y,int z)&lt;br /&gt;
{&lt;br /&gt;
if(x&amp;gt;y&amp;amp;&amp;amp;x&amp;gt;z)return x;&lt;br /&gt;
else if(y&amp;gt;z)return y;&lt;br /&gt;
else return z;&lt;br /&gt;
}&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
int x,y,z,big;&lt;br /&gt;
clrscr();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER 3 NUMBERS:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;x&amp;gt;&amp;gt;y&amp;gt;&amp;gt;z;&lt;br /&gt;
big=large(x,y,z);&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nTHE LARGEST NUMBER=&quot;&amp;lt;&amp;lt;big;&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/1786041947847219023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-find-largest-of-three.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/1786041947847219023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/1786041947847219023'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-find-largest-of-three.html' title='C++ PROGRAM TO FIND THE LARGEST OF THREE NUMBERS USING INLINE FUNCTION'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-8167181948139824869</id><published>2013-04-08T09:51:00.003-07:00</published><updated>2013-04-08T09:51:55.213-07:00</updated><title type='text'>C++ PROGRAM TO DISPLAY A TABLE OF VALUES FOR A FUNCTION y=e^x WHERE X VARIES FROM 0 TO 1 IN STEPS OF 0.1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;math.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
double x;&lt;br /&gt;
clrscr();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;-------------------------------------------------------------\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;X\t\t\tY\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;-------------------------------------------------------------\n&quot;;&lt;br /&gt;
for(x=0;x&amp;lt;=1;x+=0.1)&lt;br /&gt;
{&lt;br /&gt;
double y=exp(x);&lt;br /&gt;
cout&amp;lt;&amp;lt;x&amp;lt;&amp;lt;&quot;\t\t\t&quot;&amp;lt;&amp;lt;y&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/8167181948139824869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-display-table-of-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/8167181948139824869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/8167181948139824869'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-to-display-table-of-values.html' title='C++ PROGRAM TO DISPLAY A TABLE OF VALUES FOR A FUNCTION y=e^x WHERE X VARIES FROM 0 TO 1 IN STEPS OF 0.1'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-2092706359747761904</id><published>2013-04-08T09:50:00.002-07:00</published><updated>2013-04-08T09:50:57.207-07:00</updated><title type='text'>C++ PROGRAM WHICH CONVERTS GALLONS TO CUBIC FEET</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/*(1 CUBIC FEET=7.481 GALLONS)*/&lt;br /&gt;
#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
float gal,cubf;&lt;br /&gt;
clrscr();&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nENTER THE NUMBER OF GALLONS:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;gal;&lt;br /&gt;
cubf=gal/7.481;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nTHE VALUE OF &quot;&amp;lt;&amp;lt;gal&amp;lt;&amp;lt;&quot; GALLONS=&quot;&amp;lt;&amp;lt;cubf&amp;lt;&amp;lt;&quot;CUBIC FEETS\n&quot;;&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/2092706359747761904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-which-converts-gallons-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/2092706359747761904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/2092706359747761904'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/c-program-which-converts-gallons-to.html' title='C++ PROGRAM WHICH CONVERTS GALLONS TO CUBIC FEET'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-3878790575117153962</id><published>2013-04-08T09:36:00.003-07:00</published><updated>2013-06-22T03:46:56.421-07:00</updated><title type='text'>C PROGRAM TO FIND GCD OF TWO NUMBERS  RECURSIVELY USINGEUCLIDIAN ALGORITHM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int gcd(int m,int n)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;return (n==0)?m:gcd(n,(m%n));&lt;br /&gt;
}&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;int m,n;&lt;br /&gt;
&amp;nbsp;printf(&quot;ENTER THE TWO INTEGERS M AND N\n&quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;%d%d&quot;,&amp;amp;m,&amp;amp;n);&lt;br /&gt;
&amp;nbsp;printf(&quot;THE GCD OF (%d,%d)=%d&quot;,m,n,gcd(m,n));&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/3878790575117153962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/3878790575117153962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/3878790575117153962'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/04/blog-post.html' title='C PROGRAM TO FIND GCD OF TWO NUMBERS  RECURSIVELY USINGEUCLIDIAN ALGORITHM'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-3087367586493890973</id><published>2013-03-22T22:55:00.001-07:00</published><updated>2013-06-22T03:44:58.948-07:00</updated><title type='text'>C PROGRAM TO MULTIPLY TWO MATRICES</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;stdio .h=&quot;&quot;&gt;
int n,i,j,k,Mat1[4][4],Mat2[4][4],Mat3[4][4];&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
  printf(&quot;Enter order of Matrix\n&quot;);&lt;br /&gt;
  scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
   printf(&quot;Enter the elements of Matrix1&quot;);&lt;br /&gt;
    for(i=0;i&lt;n br=&quot;&quot; i=&quot;&quot;&gt;
      for(j=0;j&lt;n br=&quot;&quot; j=&quot;&quot;&gt;
 scanf(&quot;%d&quot;,&amp;amp;Mat1[i][j]);&lt;br /&gt;
   &lt;br /&gt;
   printf(&quot;Enter the elements of Matrixt2&quot;);&lt;br /&gt;
    for(i=0;i&lt;n br=&quot;&quot; i=&quot;&quot;&gt;
      for(j=0;j&lt;n br=&quot;&quot; j=&quot;&quot;&gt;
 scanf(&quot;%d&quot;,&amp;amp;Mat2[i][j]);&lt;br /&gt;
 &lt;br /&gt;
   for(i=0;i&lt;n br=&quot;&quot; i=&quot;&quot;&gt;
    {&lt;br /&gt;
      for(j=0;j&lt;n br=&quot;&quot; j=&quot;&quot;&gt;
 {&lt;br /&gt;
   Mat3[i][j]=0;&lt;br /&gt;
     for(k=0;k&lt;n br=&quot;&quot; k=&quot;&quot;&gt;
       Mat3[i][j]=Mat3[i][j]+Mat1[i][k]*Mat2[k][j];&lt;br /&gt;
 }&lt;br /&gt;
    }&lt;br /&gt;
    printf(&quot;Products of Matrix1 And Matrix2\n&quot;);&lt;br /&gt;
    for(i=0;i&lt;n br=&quot;&quot; i=&quot;&quot;&gt;
      {&lt;br /&gt;
 for(j=0;j&lt;n br=&quot;&quot; j=&quot;&quot;&gt;
   {&lt;br /&gt;
     printf(&quot;\t%d&quot;,Mat3[i][j]);&lt;br /&gt;
   }&lt;br /&gt;
      printf(&quot;\n&quot;);&lt;br /&gt;
     }&lt;br /&gt;
}&lt;/n&gt;&lt;/n&gt;&lt;/n&gt;&lt;/n&gt;&lt;/n&gt;&lt;/n&gt;&lt;/n&gt;&lt;/n&gt;&lt;/n&gt;&lt;/stdio&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/3087367586493890973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/c-program-to-multiply-two-matrices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/3087367586493890973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/3087367586493890973'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/c-program-to-multiply-two-matrices.html' title='C PROGRAM TO MULTIPLY TWO MATRICES'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-7094998023835278701</id><published>2013-03-22T22:53:00.000-07:00</published><updated>2013-06-22T03:47:41.645-07:00</updated><title type='text'>C PROGRAM TO FIND FACTORIAL OF N NUMBERS USING RECURSION</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
int fact(int n)&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;return n==0?1:n*fact(n-1);&lt;/div&gt;
&lt;div&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 n;&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;enter n value\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;scanf(&quot;%d&quot;,&amp;amp;n);&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;factorial of %d is %d&quot;,n,fact(n));&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/7094998023835278701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/c-program-to-find-factorial-of-n-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/7094998023835278701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/7094998023835278701'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/c-program-to-find-factorial-of-n-using.html' title='C PROGRAM TO FIND FACTORIAL OF N NUMBERS USING RECURSION'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-5198628130752437878</id><published>2013-03-22T22:45:00.001-07:00</published><updated>2013-04-08T09:39:40.731-07:00</updated><title type='text'>C program to convert binary to decimal number</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;html&gt;&lt;br /&gt;
#include&lt;stdio .h=&quot;&quot;&gt;&lt;br /&gt;
#include&lt;conio .h=&quot;&quot;&gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
int bin=0,i=1,dec=0;&lt;br /&gt;
printf(&quot;enter bin num&quot;);&lt;br /&gt;
scanf(&quot;%d&quot;,&amp;amp;bin);&lt;br /&gt;
while(bin!=0)&lt;br /&gt;
{&lt;br /&gt;
dec=dec+(bin%10)*i;&lt;br /&gt;
i=i*2;&lt;br /&gt;
bin=bin/10;&lt;br /&gt;
}&lt;br /&gt;
printf(&quot;dec=%d&quot;,dec);&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;/conio&gt;&lt;/stdio&gt;&lt;/html&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/5198628130752437878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/c-program-to-convert-binary-to-decimal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/5198628130752437878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/5198628130752437878'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/c-program-to-convert-binary-to-decimal.html' title='C program to convert binary to decimal number'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-1103430619144880633</id><published>2013-03-22T22:43:00.000-07:00</published><updated>2013-06-22T03:50:32.872-07:00</updated><title type='text'>C PROGRAM TO COUNT THE NUMBER OF DIGITS IN A GIVEN NUMBER</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;html&gt;&lt;br /&gt;
&lt;title&gt;C program to Count the binary digits in a given decimal number&lt;/title&gt;&lt;br /&gt;
&lt;h1&gt;
Count the binary digits in a given decimal number&lt;/h1&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int n,count=1;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;double t;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot;Enter A Number\n&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;while(n&amp;gt;1)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;n/=2;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;count++;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot;Number Of Digits=%d&quot;,count);&lt;br /&gt;
}&lt;br /&gt;
&lt;/html&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/1103430619144880633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/count-binary-digits-in-given-decimal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/1103430619144880633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/1103430619144880633'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/count-binary-digits-in-given-decimal.html' title='C PROGRAM TO COUNT THE NUMBER OF DIGITS IN A GIVEN NUMBER'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7575438243677833971.post-8703396513527775238</id><published>2013-03-22T22:39:00.001-07:00</published><updated>2013-06-22T03:51:52.870-07:00</updated><title type='text'>C PROGRAM TO FIND GCD OF (M,N) USING CONSECUTIVE INTEGER CHECKING</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;h1&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt; int gcd(int m,int n)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;int t;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(m&amp;lt;n)&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;t=m;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;t=n;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;while(t&amp;gt;0)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;if(m%t==0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(n%t==0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;return t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;t--;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt; void main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int m,n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot;ENTER THE TWO INTEGERS M AND N\n&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf(&quot;%d%d&quot;,&amp;amp;m,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot;THE GCD OF (%d,%d)=%d&quot;,m,n,gcd(m,n));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: normal;&quot;&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/h1&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nagaraj-java.blogspot.com/feeds/8703396513527775238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/finding-gcd-of-mn-using-consecutive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/8703396513527775238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7575438243677833971/posts/default/8703396513527775238'/><link rel='alternate' type='text/html' href='http://nagaraj-java.blogspot.com/2013/03/finding-gcd-of-mn-using-consecutive.html' title='C PROGRAM TO FIND GCD OF (M,N) USING CONSECUTIVE INTEGER CHECKING'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>