<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8063205315373116551</atom:id><lastBuildDate>Fri, 08 Nov 2024 15:37:24 +0000</lastBuildDate><category>java exercise</category><category>cpp exercise</category><category>java materials</category><category>tips &amp; tricks</category><category>home</category><category>Android</category><category>Android exercise</category><category>Android materials</category><category>cpp</category><category>cpp materials</category><category>cpp tutorials</category><category>java</category><category>web</category><category>web exercise</category><category>web materials</category><category>web tutorials</category><title>Sheger Tech</title><description></description><link>https://shegertech.blogspot.com/</link><managingEditor>noreply@blogger.com (Josh)</managingEditor><generator>Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-5068148568585707004</guid><pubDate>Mon, 30 Oct 2017 10:50:00 +0000</pubDate><atom:updated>2017-11-02T01:00:36.967-07:00</atom:updated><title>Let us install Java</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://2.bp.blogspot.com/-s8tc3t_vWn0/Wfb_UufEgEI/AAAAAAAAAV8/4O8CSO5r4sE9XxOGb--mHigWc2EoI3zGQCLcBGAs/s1600/shegertech%2Bjava%2B1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;491&quot; data-original-width=&quot;994&quot; height=&quot;315&quot; src=&quot;https://2.bp.blogspot.com/-s8tc3t_vWn0/Wfb_UufEgEI/AAAAAAAAAV8/4O8CSO5r4sE9XxOGb--mHigWc2EoI3zGQCLcBGAs/s640/shegertech%2Bjava%2B1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
To write a java program, you need to install the java tools on your machine. Below, I&#39;ve prepared the minimum system requirements for installing java on your system and the tools required to write a java program.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;
Minimum System Requirements&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;Windows&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Windows 10 (8u51 and above)&lt;/li&gt;
&lt;li&gt;Windows 8.x (Desktop)&lt;/li&gt;
&lt;li&gt;Windows 7 SP1&lt;/li&gt;
&lt;li&gt;Windows Vista SP2&lt;/li&gt;
&lt;li&gt;Windows Server 2008 R2 SP1 (64-bit)&lt;/li&gt;
&lt;li&gt;Windows Server 2012 and 2012 R2 (64-bit)&lt;/li&gt;
&lt;li&gt;RAM: 128 MB&lt;/li&gt;
&lt;li&gt;Disk space: 124 MB for JRE; 2 MB for Java Update&lt;/li&gt;
&lt;li&gt;Processor: Minimum Pentium 2 266 MHz processor&lt;/li&gt;
&lt;li&gt;Browsers: Internet Explorer 9 and above, Firefox&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Mac OS X&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Intel-based Mac running Mac OS X 10.8.3+, 10.9+&lt;/li&gt;
&lt;li&gt;Administrator privileges for installation&lt;/li&gt;
&lt;li&gt;64-bit browser&lt;/li&gt;
&lt;li&gt;A 64-bit browser (Safari, for example) is required to run Oracle Java on Mac.&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Linux&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Oracle Linux 5.5+&lt;sup style=&quot;background-color: white; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 0;&quot;&gt;1&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;Oracle Linux 6.x (32-bit), 6.x (64-bit)&lt;sup style=&quot;background-color: white; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 0;&quot;&gt;2&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;Oracle Linux 7.x (64-bit)&lt;sup style=&quot;background-color: white; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 0;&quot;&gt;2&lt;/sup&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;&quot;&gt;(8u20 and above)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Red Hat Enterprise Linux 5.5+&lt;sup style=&quot;background-color: white; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 0;&quot;&gt;1&lt;/sup&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;&quot;&gt;, 6.x (32-bit), 6.x (64-bit)&lt;/span&gt;&lt;sup style=&quot;background-color: white; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 0;&quot;&gt;2&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;Red Hat Enterprise Linux 7.x (64-bit)&lt;sup style=&quot;background-color: white; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 0;&quot;&gt;2&lt;/sup&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;&quot;&gt;(8u20 and above)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Suse Linux Enterprise Server 10 SP2+, 11.x&lt;/li&gt;
&lt;li&gt;Suse Linux Enterprise Server 12.x (64-bit)&lt;sup style=&quot;background-color: white; color: #333333; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 0;&quot;&gt;2&lt;/sup&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;&quot;&gt;(8u31 and above)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Ubuntu Linux 12.04 LTS, 13.x&lt;/li&gt;
&lt;li&gt;Ubuntu Linux 14.x (8u25 and above)&lt;/li&gt;
&lt;li&gt;Ubuntu Linux 15.04 (8u45 and above)&lt;/li&gt;
&lt;li&gt;Ubuntu Linux 15.10 (8u65 and above)&lt;/li&gt;
&lt;li&gt;Browsers: Firefox&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
After meeting one of the above platform requirements, we will have to install the following java tools.&lt;/div&gt;
&lt;h3&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Java Tools&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;Java Development Kit(JDK)&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html&quot; target=&quot;_blank&quot;&gt;JDK 8&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;b&gt;Java Integrated Development Environment(IDE)&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.jetbrains.com/idea/download/#section=windows&quot; target=&quot;_blank&quot;&gt;IntelliJ IDEA&lt;/a&gt; or &lt;a href=&quot;http://www.eclipse.org/downloads/eclipse-packages/&quot; target=&quot;_blank&quot;&gt;Eclipse&lt;/a&gt; or &lt;a href=&quot;https://netbeans.org/downloads/&quot; target=&quot;_blank&quot;&gt;NetBeans&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;Simple Text Editor&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;ul&gt;
&lt;li&gt;Notepad or &lt;a href=&quot;https://notepad-plus-plus.org/download/v7.5.1.html&quot; target=&quot;_blank&quot;&gt;Notepad++&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
Watch the below tutorial that shows you how to download and install JDK8, IntelliJ IDEA and Notepad++.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://shegertech.blogspot.com/2017/10/features-of-java-programming-language.html&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;38&quot; data-original-width=&quot;88&quot; src=&quot;https://2.bp.blogspot.com/-TZTCvvqCxzQ/WfcDaHiPIUI/AAAAAAAAAWI/1qbGiBt1yO4EKXiWpFN9z5AaasUIw7BPgCLcBGAs/s1600/shegertech%2Bback.png&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-F3x2p8rAp3o/WfcDfV2hztI/AAAAAAAAAWM/wOj6xWPc3VsCatGlvzZK7qN2izz7MxquACLcBGAs/s1600/shegertech%2Bnext.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;38&quot; data-original-width=&quot;88&quot; src=&quot;https://4.bp.blogspot.com/-F3x2p8rAp3o/WfcDfV2hztI/AAAAAAAAAWM/wOj6xWPc3VsCatGlvzZK7qN2izz7MxquACLcBGAs/s1600/shegertech%2Bnext.png&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/10/installation-of-java.html</link><author>noreply@blogger.com (Josh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://2.bp.blogspot.com/-s8tc3t_vWn0/Wfb_UufEgEI/AAAAAAAAAV8/4O8CSO5r4sE9XxOGb--mHigWc2EoI3zGQCLcBGAs/s72-c/shegertech%2Bjava%2B1.jpg" height="72" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-3146733315389523239</guid><pubDate>Mon, 30 Oct 2017 08:22:00 +0000</pubDate><atom:updated>2017-10-30T01:41:35.644-07:00</atom:updated><title>Features of the java programming language</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://1.bp.blogspot.com/-GJeYaxM8bcA/Wfbdo8tZVsI/AAAAAAAAAVg/741YjJgv2Dkmmzl9GWJJuDaT-C0x1id7gCLcBGAs/s1600/shegertech.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;381&quot; data-original-width=&quot;597&quot; height=&quot;408&quot; src=&quot;https://1.bp.blogspot.com/-GJeYaxM8bcA/Wfbdo8tZVsI/AAAAAAAAAVg/741YjJgv2Dkmmzl9GWJJuDaT-C0x1id7gCLcBGAs/s640/shegertech.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Java is an &lt;b&gt;object oriented programming language&lt;/b&gt;. In Java, everything is an object. Java can be easily extended since it is based on the object model.&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Java is &lt;b&gt;platform independent&lt;/b&gt;. Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into platform specific machine, rather into platform in&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;dep&lt;/span&gt;endent byte code. This byte code is distributed over the web and interpreted by vir&lt;span style=&quot;font-family: inherit;&quot;&gt;tu&lt;/span&gt;al machine(JVM) on whichever platform it is being run.&amp;nbsp;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Java is&lt;b&gt; simple.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt; Java is designed to be easy to learn. If you
understand the basic concept of OOP Java would be easy to master.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt;Java is &lt;/span&gt;&lt;b style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt;secure.&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt;With Java&#39;s secure feature it enables to develop virus-free,
tamper-free systems. Authentication techniques are based on public-key
encryption.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Java is &lt;b&gt;architectural-neutral&lt;/b&gt;.&amp;nbsp;&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt;Java
compiler generates an architecture-neutral object file format which makes the
compiled code to be executable on many processors, with the presence of Java
runtime system.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt;Java is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;b&gt;p&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt;&lt;b&gt;ortable.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt;&amp;nbsp;Being
architectural-neutral and having no implementation dependent aspects of the
specification makes Java portable. Compiler in Java is written in ANSI C with a
clean portability boundary which is a POSIX subset.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Java is &lt;b&gt;robust&lt;/b&gt;.&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt; Java makes an effort to
eliminate error prone situations by emphasizing mainly on compile time error
checking and runtime checking.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Java is &lt;b&gt;multithreaded&lt;/b&gt;.&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt; With Java&#39;s
multithreaded feature it is possible to write programs that can do many tasks
simultaneously. This design feature allows developers to construct smoothly
running interactive applications.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Java is &lt;b&gt;interpreted&lt;/b&gt;.&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt; Java byte code is
translated on the fly to native machine instructions and is not stored
anywhere. The development process is more rapid and analytical since the
linking is an incremental and light weight process.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Java enables &lt;b&gt;high performance&lt;/b&gt;.&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt; With the use of
Just-In-Time compilers, Java enables high performance.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Java is &lt;b&gt;distributed&lt;/b&gt;.&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt; Java is designed for
the distributed environment of the internet.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Java is &lt;b&gt;dynamic&lt;/b&gt;.&lt;span style=&quot;font-size: 11pt; text-indent: -0.25in;&quot;&gt; Java is considered to be
more dynamic than C or C++ since it is designed to adapt to an evolving
environment. Java programs can carry extensive amount of run-time information
that can be used to verify and resolve accesses to objects on run-time.&lt;/span&gt;&lt;/li&gt;
&lt;br /&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://shegertech.blogspot.com/2017/10/introduction-to-java_30.html&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;38&quot; data-original-width=&quot;88&quot; src=&quot;https://3.bp.blogspot.com/-0XhtuDl5D1U/WfW7e9yAP1I/AAAAAAAAAVU/kDDvVEIHkfMGbBsAz6l5K5lTl4Q6Rc_cQCEwYBhgL/s1600/shegertech%2Bback.png&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://3.bp.blogspot.com/-2ehxlUH58kI/WfW7ujKkq-I/AAAAAAAAAVU/vv-dhazusBYqYEPjAb_gdTeAdgJ_CQh3QCEwYBhgL/s1600/shegertech%2Bnext.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;38&quot; data-original-width=&quot;88&quot; src=&quot;https://3.bp.blogspot.com/-2ehxlUH58kI/WfW7ujKkq-I/AAAAAAAAAVU/vv-dhazusBYqYEPjAb_gdTeAdgJ_CQh3QCEwYBhgL/s1600/shegertech%2Bnext.png&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;</description><link>https://shegertech.blogspot.com/2017/10/features-of-java-programming-language.html</link><author>noreply@blogger.com (Josh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-GJeYaxM8bcA/Wfbdo8tZVsI/AAAAAAAAAVg/741YjJgv2Dkmmzl9GWJJuDaT-C0x1id7gCLcBGAs/s72-c/shegertech.png" height="72" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-1687102269777809823</guid><pubDate>Mon, 30 Oct 2017 08:16:00 +0000</pubDate><atom:updated>2017-10-30T01:23:46.948-07:00</atom:updated><title>Introduction to Java</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://2.bp.blogspot.com/-5G3JkyjbEGY/WfbfesuDMUI/AAAAAAAAAVs/bv-kLH88OucWpW0gyeI-YQLNQJ6HRK-0wCLcBGAs/s1600/shegertech%2Bjava.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;518&quot; data-original-width=&quot;518&quot; height=&quot;320&quot; src=&quot;https://2.bp.blogspot.com/-5G3JkyjbEGY/WfbfesuDMUI/AAAAAAAAAVs/bv-kLH88OucWpW0gyeI-YQLNQJ6HRK-0wCLcBGAs/s320/shegertech%2Bjava.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Java was originally developed by Sun Microsystems&lt;span style=&quot;background-color: white; color: #222222; font-size: 16px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(which has since been acquired by Oracle Corporation)&lt;/span&gt;&lt;/span&gt;&amp;nbsp;which was initiated by James Gosling and released in 1995 as a core component of Sun Microsystems Java Platform(Java 1.0 [J2SE]).&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;The latest release of the Java Standard Edition is Java SE 8 as of 2017.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;With the advancement of Java and its widespread popularity, multiple configurations were built to suite various types of platforms. Ex: J2EE for building enterprise applications, J2ME for programming mobile wireless devices and J2SE for building desktop applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;The new J2 versions were renamed as Java SE, Java EE and Java ME.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Java is guaranteed to be Write Once, Run Anywhere(WORA).&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://shegertech.blogspot.com/2017/10/features-of-java-programming-language.html&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;38&quot; data-original-width=&quot;88&quot; src=&quot;https://3.bp.blogspot.com/-2ehxlUH58kI/WfW7ujKkq-I/AAAAAAAAAVQ/hTZjGresSXgDCna1nUnR_dkH5EuOYYCNACLcBGAs/s1600/shegertech%2Bnext.png&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;http://shegertech.blogspot.com/p/java-lessons.html&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;38&quot; data-original-width=&quot;88&quot; src=&quot;https://1.bp.blogspot.com/-0XhtuDl5D1U/WfW7e9yAP1I/AAAAAAAAAVM/UFoBRuJwgiUU20c1h8f9772xrLbfdAB1QCLcBGAs/s1600/shegertech%2Bback.png&quot; /&gt;&lt;/a&gt;


&lt;/div&gt;
&lt;br /&gt;</description><link>https://shegertech.blogspot.com/2017/10/introduction-to-java_30.html</link><author>noreply@blogger.com (Josh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://2.bp.blogspot.com/-5G3JkyjbEGY/WfbfesuDMUI/AAAAAAAAAVs/bv-kLH88OucWpW0gyeI-YQLNQJ6HRK-0wCLcBGAs/s72-c/shegertech%2Bjava.png" height="72" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-937045473555167583</guid><pubDate>Mon, 28 Aug 2017 16:19:00 +0000</pubDate><atom:updated>2017-08-28T09:19:26.180-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">java exercise</category><title>Write a java program that finds and stores the factorials of numbers between and including 3 and 10 in an array and calculates the average of the factorials from the array.</title><description>&lt;pre style=&quot;background-color: white; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11.3pt;&quot;&gt;&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;/*&lt;/span&gt;
&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;For more exercises,&lt;/span&gt;
&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;visit shegertech.blogspot.com&lt;/span&gt;
&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;or&lt;/span&gt;
&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;shegertech.com&lt;/span&gt;
&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;Author: Eyasu M.&lt;/span&gt;
&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;Email: eyasu@india.com&lt;/span&gt;
&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;*/&lt;/span&gt;

&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;public class &lt;/span&gt;FactorialAverage {
    &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;public static void &lt;/span&gt;main(String[] args) {
        &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;int &lt;/span&gt;factorial;
        &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;double &lt;/span&gt;sum = &lt;span style=&quot;color: blue;&quot;&gt;0&lt;/span&gt;;
        &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;int&lt;/span&gt;[] x = &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;new int&lt;/span&gt;[&lt;span style=&quot;color: blue;&quot;&gt;8&lt;/span&gt;];
        &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;for &lt;/span&gt;(&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;int &lt;/span&gt;i = &lt;span style=&quot;color: blue;&quot;&gt;3&lt;/span&gt;, k = &lt;span style=&quot;color: blue;&quot;&gt;0&lt;/span&gt;; i &amp;lt;= &lt;span style=&quot;color: blue;&quot;&gt;10&lt;/span&gt;; i++, k++) {
            factorial = &lt;span style=&quot;color: blue;&quot;&gt;1&lt;/span&gt;;
            &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;for &lt;/span&gt;(&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;int &lt;/span&gt;y = &lt;span style=&quot;color: blue;&quot;&gt;1&lt;/span&gt;; y &amp;lt;= i; y++) {
                factorial *= y;
            }
            x[k] = factorial;
            sum += x[k];
        }
        System.&lt;span style=&quot;color: #660e7a; font-style: italic; font-weight: bold;&quot;&gt;out&lt;/span&gt;.println(sum / x.&lt;span style=&quot;color: #660e7a; font-weight: bold;&quot;&gt;length&lt;/span&gt;);
    }
}&lt;/pre&gt;

&lt;h3 style=&quot;background-color: white; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.3pt;&quot;&gt;
&lt;b&gt;Output&lt;/b&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://2.bp.blogspot.com/-WE9XE9cSO_w/WaRB8oK7s7I/AAAAAAAAARo/3Mf_E8C_v38emhQ1j03O2fkkEiw6yrWQwCLcBGAs/s1600/shegertech.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;241&quot; data-original-width=&quot;602&quot; height=&quot;128&quot; src=&quot;https://2.bp.blogspot.com/-WE9XE9cSO_w/WaRB8oK7s7I/AAAAAAAAARo/3Mf_E8C_v38emhQ1j03O2fkkEiw6yrWQwCLcBGAs/s320/shegertech.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11.3pt;&quot;&gt;&lt;/pre&gt;
</description><link>https://shegertech.blogspot.com/2017/08/write-java-program-that-finds-and.html</link><author>noreply@blogger.com (Josh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://2.bp.blogspot.com/-WE9XE9cSO_w/WaRB8oK7s7I/AAAAAAAAARo/3Mf_E8C_v38emhQ1j03O2fkkEiw6yrWQwCLcBGAs/s72-c/shegertech.PNG" height="72" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-151240075663871852</guid><pubDate>Wed, 09 Aug 2017 20:34:00 +0000</pubDate><atom:updated>2017-08-09T13:34:22.721-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a program that calculates and displays the average of odd perfect squares from the following array values. {1,5,4,6,9,11,16,19,25,35,36,39,42,49,50}</title><description>/*&lt;br /&gt;
For more exercises,&lt;br /&gt;
visit &lt;a href=&quot;http://shegertech.blogspot.com/&quot;&gt;shegertech.blogspot.com&lt;/a&gt;&lt;br /&gt;
or&lt;br /&gt;
&lt;a href=&quot;http://shegertech.com/&quot;&gt;shegertech.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Author: Eyasu M.&lt;br /&gt;
Email: &lt;a href=&quot;mailto:eyasu@india.com&quot;&gt;eyasu@india.com&lt;/a&gt;&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int count;&lt;br /&gt;
double sum;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
void squareRootChecker(int x[], int size){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;bool flag = false;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int y=0;y&amp;lt;size;y++){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int i=1;i&amp;lt;x[y];i++){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(i*i == x[y] &amp;amp;&amp;amp; x[y]%2!=0){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;sum+=x[y];&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;count++;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int getCount(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return count;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
double getSum(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return sum;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
double getAverage(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;double average = getSum()/getCount();&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return average;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int x[15]={1,5,4,6,9,11,16,19,25,35,36,39,42,49,50};&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;squareRootChecker(x, 15);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;The average of the odd perfect squares from the array values is &quot;&amp;lt;&amp;lt;getAverage()&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// subscribe to our email list so that we notify you when new things happen.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;b&gt;Output&lt;/b&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://1.bp.blogspot.com/-3vhYaexHSPk/WYtxLuHBBuI/AAAAAAAAAJA/T9DK0ucLzA4vrilH_zuf2_BA7WeTDgq4gCLcBGAs/s1600/shegertech.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;202&quot; data-original-width=&quot;595&quot; height=&quot;216&quot; src=&quot;https://1.bp.blogspot.com/-3vhYaexHSPk/WYtxLuHBBuI/AAAAAAAAAJA/T9DK0ucLzA4vrilH_zuf2_BA7WeTDgq4gCLcBGAs/s640/shegertech.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/08/write-program-that-calculates-and.html</link><author>noreply@blogger.com (Josh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-3vhYaexHSPk/WYtxLuHBBuI/AAAAAAAAAJA/T9DK0ucLzA4vrilH_zuf2_BA7WeTDgq4gCLcBGAs/s72-c/shegertech.PNG" height="72" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-4189053300651672754</guid><pubDate>Wed, 09 Aug 2017 20:10:00 +0000</pubDate><atom:updated>2017-08-09T13:10:06.031-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a c++ program that tells the user whether a number is a perfect square or not.</title><description>/*&lt;br /&gt;
For more exercises,&lt;br /&gt;
visit &lt;a href=&quot;http://shegertech.blogspot.com/&quot;&gt;shegertech.blogspot.com&lt;/a&gt;&lt;br /&gt;
or&lt;br /&gt;
&lt;a href=&quot;http://shegertech.com/&quot;&gt;shegertech.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Author: Eyasu M.&lt;br /&gt;
Email: eyasu@india.com&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int x=0;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;bool flag = false;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout &amp;lt;&amp;lt;&quot;Enter a number : &quot;;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;x;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=1;i&amp;lt;x;i++){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(i*i == x){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;flag= true;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(flag){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Bingo ! &quot;&amp;lt;&amp;lt;x &amp;lt;&amp;lt;&quot; is a perfect square.&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;cout&amp;lt;&amp;lt;x&amp;lt;&amp;lt;&quot; is not a perfect square.&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return 0;&lt;br /&gt;
}</description><link>https://shegertech.blogspot.com/2017/08/write-c-program-that-tells-user-whether.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-2968711659748105055</guid><pubDate>Wed, 09 Aug 2017 05:15:00 +0000</pubDate><atom:updated>2017-08-08T22:27:26.244-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Android exercise</category><category domain="http://www.blogger.com/atom/ns#">Android materials</category><category domain="http://www.blogger.com/atom/ns#">cpp</category><category domain="http://www.blogger.com/atom/ns#">cpp materials</category><category domain="http://www.blogger.com/atom/ns#">cpp tutorials</category><category domain="http://www.blogger.com/atom/ns#">web</category><category domain="http://www.blogger.com/atom/ns#">web exercise</category><category domain="http://www.blogger.com/atom/ns#">web materials</category><category domain="http://www.blogger.com/atom/ns#">web tutorials</category><title></title><description>&lt;h2&gt;
Coming Soon !&lt;/h2&gt;
</description><link>https://shegertech.blogspot.com/2017/08/blog-post.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-4262758040056290647</guid><pubDate>Sun, 30 Jul 2017 09:32:00 +0000</pubDate><atom:updated>2018-08-13T13:13:58.176-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">home</category><category domain="http://www.blogger.com/atom/ns#">tips &amp; tricks</category><title>Top 7 websites to download or watch full Hollywood movies absolutely for free</title><description>&lt;span style=&quot;background-color: white; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;Are you fond of watching online movies? Do you spend a lot of time surfing the net in order to find new exciting movies and top rated movies?&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;Rejoice, because I have
compiled and prepared a list of websites that will allow you to easily download
or watch your desired movies for free.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;Here are the top 7 websites to watch and download movies for free.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;1.&amp;nbsp;&lt;a href=&quot;https://putlockers.movie/&quot; target=&quot;_blank&quot;&gt;Putlocker&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRZGsNt5u53oQFWNNWPy6k7077W4s_XUzd_H9dL6nYvcka-MGva7vZaS9NnO_5gmpPGHmo2lBo7LLusvlzTRYO-bwj90rmJK9g71UYTsTDy344R74r58c3LUsaY_g4KPHlfozVArJq446H/s1600/sheger+tech1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;330&quot; data-original-width=&quot;690&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRZGsNt5u53oQFWNNWPy6k7077W4s_XUzd_H9dL6nYvcka-MGva7vZaS9NnO_5gmpPGHmo2lBo7LLusvlzTRYO-bwj90rmJK9g71UYTsTDy344R74r58c3LUsaY_g4KPHlfozVArJq446H/s320/sheger+tech1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.primewire.org/&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;2.&amp;nbsp;&lt;a href=&quot;http://housemovie.to/&quot; target=&quot;_blank&quot;&gt;House Movie&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://housemovie.to/&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7J2YiG3oHs-GjZA39qLstBytELOKDMN6-iuWoPI_RUpjTq8ZnaJYcYG1wTF-HxPa770baTGaiZ80E5DGVNbrR1KzcP94ImDghsK4PQv1dCdUT3PYLKsCYpfA0ioPj7nTAyIhVYYkoOJ99/s1600/sheger+tech2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;520&quot; data-original-width=&quot;1024&quot; height=&quot;162&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7J2YiG3oHs-GjZA39qLstBytELOKDMN6-iuWoPI_RUpjTq8ZnaJYcYG1wTF-HxPa770baTGaiZ80E5DGVNbrR1KzcP94ImDghsK4PQv1dCdUT3PYLKsCYpfA0ioPj7nTAyIhVYYkoOJ99/s320/sheger+tech2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;3.&amp;nbsp;&lt;a href=&quot;https://solarmovie.st/&quot; target=&quot;_blank&quot;&gt;Solar Movie&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://solarmovie.st/&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMCTTpHrPkKe6CMs76Vq0OcUpy9CuyXQuBwf-5ZBXh8yks_BrYoIFzuIKZ3dmllXLFAVMLpvsPTMkBemavMj_dGFs4yvIXipIIGTsVRPeIntdQnZ4dvwLeNpguLEeqYB7zJGtwgEWobwRn/s1600/sheger+tech3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;502&quot; data-original-width=&quot;800&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMCTTpHrPkKe6CMs76Vq0OcUpy9CuyXQuBwf-5ZBXh8yks_BrYoIFzuIKZ3dmllXLFAVMLpvsPTMkBemavMj_dGFs4yvIXipIIGTsVRPeIntdQnZ4dvwLeNpguLEeqYB7zJGtwgEWobwRn/s320/sheger+tech3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;4.&amp;nbsp;&lt;a href=&quot;http://moviewatcher.io/&quot; target=&quot;_blank&quot;&gt;Movie Watcher&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://moviewatcher.io/&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-LYfu7ZNtMNG8hQVN7jsED5EADeGXopCX-8kem4pivv4K9rrlZye8sd_-XL1STvL8xs1-Q16XXPCqNPIvF9zFRciuGhOGe8meR-PiEJF1ipJyIJNGvDwyI9s3dL8G0yf7eEdJnO0JY0S9/s1600/sheger+tech4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;845&quot; data-original-width=&quot;1497&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-LYfu7ZNtMNG8hQVN7jsED5EADeGXopCX-8kem4pivv4K9rrlZye8sd_-XL1STvL8xs1-Q16XXPCqNPIvF9zFRciuGhOGe8meR-PiEJF1ipJyIJNGvDwyI9s3dL8G0yf7eEdJnO0JY0S9/s320/sheger+tech4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;5.&amp;nbsp;&lt;a href=&quot;http://watch-free.cc/&quot; target=&quot;_blank&quot;&gt;Watch Free&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6KDC13KA5gch7BmuI6tIJw8xOlI2C6Efck1ntCrYhws4YcLN36U-pCM_OIH2BsEvodPLNv7stxbNObuj4eyKUYyOO-cWV0hBEV1mpQ41B3XG5BFU9YGHsr6G469k18WpbkDclxCOyotSz/s1600/sheger+tech5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;284&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6KDC13KA5gch7BmuI6tIJw8xOlI2C6Efck1ntCrYhws4YcLN36U-pCM_OIH2BsEvodPLNv7stxbNObuj4eyKUYyOO-cWV0hBEV1mpQ41B3XG5BFU9YGHsr6G469k18WpbkDclxCOyotSz/s1600/sheger+tech5.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://watch-free.cc/&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;6.&amp;nbsp;&lt;a href=&quot;https://bmovies.to/&quot; target=&quot;_blank&quot;&gt;B Movies&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOPn_wotRcafh-qebZCc1SCCcN-pSEUz1Prlcg4PI6AlgoEG7PZq_wPyq2WVA1MADJEAmOaMGqFavioDkdzb37Ckb2HBMHcnFf1M1nDGIxyfMfbhq6wtEeNysb_GReuQKxZEX4O2YG4-n7/s1600/sheger+tech6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;755&quot; data-original-width=&quot;1600&quot; height=&quot;151&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOPn_wotRcafh-qebZCc1SCCcN-pSEUz1Prlcg4PI6AlgoEG7PZq_wPyq2WVA1MADJEAmOaMGqFavioDkdzb37Ckb2HBMHcnFf1M1nDGIxyfMfbhq6wtEeNysb_GReuQKxZEX4O2YG4-n7/s320/sheger+tech6.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
7. &lt;a href=&quot;https://xmovies8.es/&quot; target=&quot;_blank&quot;&gt;X Movies&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwJcxTKUD7vHFdTYX2igixbkBQjhq2updQ2J_tL5Akj605GbJN_5EE1cm42mhqwWnsQOG1PMTcFmu-Qz5pWX4cxgbA-kjY2Z9DoZuuNkddElUoRj-sddXlimLEfrqUpd8xdJD6mUFbHS05/s1600/sheger+tech7.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;347&quot; data-original-width=&quot;749&quot; height=&quot;148&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwJcxTKUD7vHFdTYX2igixbkBQjhq2updQ2J_tL5Akj605GbJN_5EE1cm42mhqwWnsQOG1PMTcFmu-Qz5pWX4cxgbA-kjY2Z9DoZuuNkddElUoRj-sddXlimLEfrqUpd8xdJD6mUFbHS05/s320/sheger+tech7.jpeg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/top-6-websites-to-download-or-watch.html</link><author>noreply@blogger.com (Josh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRZGsNt5u53oQFWNNWPy6k7077W4s_XUzd_H9dL6nYvcka-MGva7vZaS9NnO_5gmpPGHmo2lBo7LLusvlzTRYO-bwj90rmJK9g71UYTsTDy344R74r58c3LUsaY_g4KPHlfozVArJq446H/s72-c/sheger+tech1.jpg" height="72" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-4193348926816195801</guid><pubDate>Sun, 30 Jul 2017 07:20:00 +0000</pubDate><atom:updated>2017-07-30T00:20:56.350-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Modify the solution of exercise 1 in order to print the elements of the array in reverse order using a pointer.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include&amp;lt;iostream&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;int arr[5],i;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;int *p=arr;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;Enter five numbers separated by space:&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt;*p&amp;gt;&amp;gt;*(p+1)&amp;gt;&amp;gt;*(p+2)&amp;gt;&amp;gt;*(p+3)&amp;gt;&amp;gt;*(p+4);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;Your numbers are:\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;for(i=4;i&amp;gt;=0;i--)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;*(p+i)&amp;lt;&amp;lt;endl;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/modify-solution-of-exercise-1-in-order.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-2808703453441089756</guid><pubDate>Sun, 30 Jul 2017 07:20:00 +0000</pubDate><atom:updated>2017-07-30T00:20:14.630-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a C++ program to accept five integer values from keyword. The five values will be stored in an array using a pointer. Then print the elements of the array on the screen.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include&amp;lt;iostream&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;int arr[5],i;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;int *p=arr;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;Enter five numbers separated by space:&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt;*p&amp;gt;&amp;gt;*(p+1)&amp;gt;&amp;gt;*(p+2)&amp;gt;&amp;gt;*(p+3)&amp;gt;&amp;gt;*(p+4);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;Your numbers are:\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;for(i=0;i&amp;lt;5;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;arr[i]&amp;lt;&amp;lt;endl;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-c-program-to-accept-five-integer.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-2276031168837382469</guid><pubDate>Sun, 30 Jul 2017 07:19:00 +0000</pubDate><atom:updated>2017-07-30T00:19:10.163-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a program that checks whether a string is palindrome or not.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;cstring&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; char string1[20];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int i, length;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int flag = 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot;Enter a string: &quot;; cin &amp;gt;&amp;gt; string1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; length = strlen(string1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(i=0;i &amp;lt; length ;i++){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(string1[i] != string1[length-i-1]){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flag = 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; }&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if (flag) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; string1 &amp;lt;&amp;lt; &quot; is not a palindrome&quot; &amp;lt;&amp;lt; endl;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; } &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; else {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; string1 &amp;lt;&amp;lt; &quot; is a palindrome&quot; &amp;lt;&amp;lt; endl;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; system(&quot;pause&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;</description><link>https://shegertech.blogspot.com/2017/07/write-program-that-checks-whether_30.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-2245610854213969544</guid><pubDate>Sun, 30 Jul 2017 07:18:00 +0000</pubDate><atom:updated>2017-07-30T00:18:21.564-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a function named &quot;g_c_d&quot; that takes two positive integer arguments and returns as its value the greatest common divisor of those two integers. If the function is passed an argument that is not positive (i.e., greater than zero), then the function should return the value 0 as a sentinel value to indicate that an error occurred.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int g_c_d (int a, int b)&lt;br /&gt;
{&lt;br /&gt;
if (a &amp;lt;= 0 || b &amp;lt;= 0) // a parameter is not positive&lt;br /&gt;
return 0; // exit and return the error sentinel&lt;br /&gt;
int trial_divisor;&lt;br /&gt;
trial_divisor = ( a &amp;lt;= b ? a : b ); // set it to the smaller&lt;br /&gt;
while (a % trial_divisor != 0 || b % trial_divisor != 0)&lt;br /&gt;
--trial_divisor;&lt;br /&gt;
return trial_divisor;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int n1=12, n2=30;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;g_c_d(n1, n2)&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;system(&quot;pause&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return EXIT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-function-named-gcd-that-takes-two.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-6895640541254231204</guid><pubDate>Sun, 30 Jul 2017 07:17:00 +0000</pubDate><atom:updated>2017-07-30T00:17:40.244-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a function named &quot;enough&quot; that takes one integer argument, call it &quot;goal&quot; and returns as its value the smallest positive integer n for which 1+2+3+. . . +n is at least equal to goal .</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int enough (int goal)&lt;br /&gt;
{&lt;br /&gt;
int n = 1, sum = 1;&lt;br /&gt;
while (sum &amp;lt; goal)&lt;br /&gt;
sum += ++n;&lt;br /&gt;
return n;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int n2=5;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;enough(n2)&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;system(&quot;pause&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return EXIT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-function-named-enough-that-takes.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-1300737590063780348</guid><pubDate>Sun, 30 Jul 2017 07:17:00 +0000</pubDate><atom:updated>2017-07-30T00:17:03.265-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a function named &quot;sum_from_to&quot; that takes two integer arguments, call them &quot;first&quot; and &quot;last&quot;, and returns as its value the sum of all the integers between first and last inclusive.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
int sum_from_to (int first, int last)&lt;br /&gt;
{&lt;br /&gt;
int i, partial_sum = 0;&lt;br /&gt;
if (first &amp;lt;= last)&lt;br /&gt;
for (i = first; i &amp;lt;= last; ++i)&lt;br /&gt;
partial_sum += i;&lt;br /&gt;
else&lt;br /&gt;
for (i = first; i &amp;gt;= last; --i)&lt;br /&gt;
partial_sum += i;&lt;br /&gt;
return partial_sum;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int n1=2, n2=5;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;sum_from_to(n1, n2)&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;system(&quot;pause&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return EXIT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-function-named-sumfromto-that.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-3712809628392869005</guid><pubDate>Sun, 30 Jul 2017 07:15:00 +0000</pubDate><atom:updated>2017-07-30T00:15:45.654-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a guess number game.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;time.h&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
srand(time(NULL)); &amp;nbsp; &lt;br /&gt;
int number=rand()%100;&lt;br /&gt;
int guess=-1;&lt;br /&gt;
int trycount=0;&lt;br /&gt;
while(guess!=number &amp;amp;&amp;amp; trycount&amp;lt;8)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;Please enter a guess: &quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;guess;&lt;br /&gt;
&lt;br /&gt;
if(guess&amp;lt;number)&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;Too low&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;br /&gt;
if(guess&amp;gt;number)&lt;br /&gt;
&amp;nbsp;cout&amp;lt;&amp;lt;&quot;Too high&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;br /&gt;
trycount++;&lt;br /&gt;
}&lt;br /&gt;
if(guess==number)&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;You guessed the number&quot;;&lt;br /&gt;
else&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;Sorry, the number was: &quot;&amp;lt;&amp;lt;number;&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-guess-number-game_30.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-6664930848609585690</guid><pubDate>Sun, 30 Jul 2017 07:14:00 +0000</pubDate><atom:updated>2017-10-02T07:25:27.884-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a program that will ask the user to input three integer values from the keyboard. Then it will print the smallest and largest of those numbers.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include&amp;lt;iomanip&amp;gt;&lt;br /&gt;
#include&amp;lt;cmath&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int maxval(int a,int b,int c){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;if(a&amp;gt;b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; if(a&amp;gt;c) return(a);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; else return(c);}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;else if(b&amp;gt;c) return(b);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;else return(c);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
int minval(int a,int b,int c){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;if(a&amp;lt;b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; if(a&amp;lt;c) return(a);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; else return(c);}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;else if(b&amp;lt;c) return(b);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;else return(c);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; int a,b,c;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;Enter three integer numbers:&quot;;&lt;br /&gt;
&amp;nbsp; cin&amp;gt;&amp;gt;a&amp;gt;&amp;gt;b&amp;gt;&amp;gt;c;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;Max=&quot;&amp;lt;&amp;lt;maxval(a,b,c);cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;Min=&quot;&amp;lt;&amp;lt;minval(a,b,c);&lt;br /&gt;
&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; system(&quot;PAUSE&quot;);&lt;br /&gt;
&amp;nbsp; return EXIT_SUCCESS; }&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-program-that-will-ask-user-to_26.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-8874955356999361310</guid><pubDate>Sun, 30 Jul 2017 07:14:00 +0000</pubDate><atom:updated>2017-07-30T00:14:00.834-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a C++ program (using function overloaded) to sort 10 integer values, or 10 long values, or 10 double values.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include&amp;lt;iomanip&amp;gt;&lt;br /&gt;
#include&amp;lt;cmath&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
void mysort(int vallist[]){&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; int i,j;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int temp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; for(i=0;i&amp;lt;10;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;for(j=0;j&amp;lt;10;j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; if(vallist[j]&amp;gt;vallist[j+1]){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp=vallist[j];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vallist[j]=vallist[j+1];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vallist[j+1]=temp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(i=0;i&amp;lt;10;i++)cout&amp;lt;&amp;lt;vallist[i]&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void mysort(float vallist[]){&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; int i,j;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; float temp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; for(i=0;i&amp;lt;10;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;for(j=0;j&amp;lt;10;j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; if(vallist[j]&amp;gt;vallist[j+1]){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp=vallist[j];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vallist[j]=vallist[j+1];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vallist[j+1]=temp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(i=0;i&amp;lt;10;i++)cout&amp;lt;&amp;lt;vallist[i]&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
}&lt;br /&gt;
void mysort(double vallist[]){&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; int i,j;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; double temp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; for(i=0;i&amp;lt;10;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;for(j=0;j&amp;lt;10;j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; if(vallist[j]&amp;gt;vallist[j+1]){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp=vallist[j];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vallist[j]=vallist[j+1];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vallist[j+1]=temp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(i=0;i&amp;lt;10;i++)cout&amp;lt;&amp;lt;vallist[i]&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; int vallist[]={23,2,34,23,43,22,32,32,43,34};&lt;br /&gt;
&amp;nbsp; mysort(vallist);&lt;br /&gt;
&amp;nbsp; system(&quot;PAUSE&quot;);&lt;br /&gt;
&amp;nbsp; return EXIT_SUCCESS; }&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-c-program-using-function.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-8299257697581665930</guid><pubDate>Sun, 30 Jul 2017 07:13:00 +0000</pubDate><atom:updated>2017-08-02T22:09:35.523-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a C++ basic calculator.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include&amp;lt;iomanip&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
void displaymenu(){&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;===================================================&quot;&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MENU &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;===================================================&quot;&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot; &amp;nbsp; &amp;nbsp; 1.Add&quot;&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot; &amp;nbsp; &amp;nbsp; 2.Subtract&quot;&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot; &amp;nbsp; &amp;nbsp; 3.Multiply&quot;&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot; &amp;nbsp; &amp;nbsp; 4.Divide&quot;&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot; &amp;nbsp; &amp;nbsp; 5.Modulus&quot;&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
int Add(int a,int b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return(a+b);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int Substract(int a, int b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return(a-b);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int Multiply(int a, int b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return(a*b);&lt;br /&gt;
}&lt;br /&gt;
float Divide(int a,int b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; return(a/b);&lt;br /&gt;
}&lt;br /&gt;
int Modulus(int a, int b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return(a%b);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;//show menu&lt;br /&gt;
displaymenu();&lt;br /&gt;
int yourchoice;&lt;br /&gt;
int a;&lt;br /&gt;
int b;&lt;br /&gt;
char confirm;&lt;br /&gt;
do&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;Enter your choice(1-5):&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;yourchoice;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;Enter your two integer numbers:&quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;a&amp;gt;&amp;gt;b;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
switch(yourchoice){&lt;br /&gt;
&amp;nbsp;case 1:cout&amp;lt;&amp;lt;&quot;Sum :&quot;&amp;lt;&amp;lt;Add(a,b);break;&lt;br /&gt;
&amp;nbsp;case 2:cout&amp;lt;&amp;lt;&quot;Difference :&quot;&amp;lt;&amp;lt;Substract(a,b);break;&lt;br /&gt;
&amp;nbsp;case 3:cout&amp;lt;&amp;lt;&quot;Product :&quot;&amp;lt;&amp;lt;Multiply(a,b);break;&lt;br /&gt;
&amp;nbsp;case 4:cout&amp;lt;&amp;lt;&quot;Quotient :&quot;&amp;lt;&amp;lt;Divide(a,b);break;&lt;br /&gt;
&amp;nbsp;case 5:cout&amp;lt;&amp;lt;&quot;Remainder :&quot;&amp;lt;&amp;lt;Modulus(a,b);break;&lt;br /&gt;
&amp;nbsp;default:cout&amp;lt;&amp;lt;&quot;invalid&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;\nPress y or Y to continue:&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt;confirm;&lt;br /&gt;
}while(confirm==&#39;y&#39;||confirm==&#39;Y&#39;);&lt;br /&gt;
&amp;nbsp; system(&quot;PAUSE&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;return EXIT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-c-basic-calculator.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-8609254596098446209</guid><pubDate>Sun, 30 Jul 2017 07:12:00 +0000</pubDate><atom:updated>2017-07-30T00:12:01.313-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a program that will ask the user to input n positive numbers. The program will terminate if one of those number is not positive.</title><description>#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
int main(){&lt;br /&gt;
&lt;br /&gt;
int n=0;&lt;br /&gt;
&lt;br /&gt;
for(;;){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Enter a positive integer : &quot;;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin &amp;gt;&amp;gt;n;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(n&amp;lt;0){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;You entered a negative number. program exiting ...&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;break;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return 0;&lt;br /&gt;
}</description><link>https://shegertech.blogspot.com/2017/07/write-program-that-will-ask-user-to_30.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-5762003173451004969</guid><pubDate>Sun, 30 Jul 2017 07:05:00 +0000</pubDate><atom:updated>2017-07-30T00:05:22.134-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a C++ program that will print the pattern as shown below.</title><description>/*&lt;br /&gt;
&lt;br /&gt;
Pattern&lt;br /&gt;
&lt;br /&gt;
*&lt;br /&gt;
***&lt;br /&gt;
*****&lt;br /&gt;
*******&lt;br /&gt;
*********&lt;br /&gt;
*********&lt;br /&gt;
*******&lt;br /&gt;
*****&lt;br /&gt;
***&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;int i;&lt;br /&gt;
&amp;nbsp;int j;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;for(i=1;i&amp;lt;=9;i=i+2){&lt;br /&gt;
&amp;nbsp; for(j=1;j&amp;lt;=i;++j)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;*&quot;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;for(i=9;i&amp;gt;=1;i=i-2){&lt;br /&gt;
&amp;nbsp; for(j=i;j&amp;gt;=1;--j)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;*&quot;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;system(&quot;PAUSE&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;return EXIT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-c-program-that-will-print-pattern.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-1076028437845185836</guid><pubDate>Sun, 30 Jul 2017 07:03:00 +0000</pubDate><atom:updated>2017-07-30T00:03:00.818-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a program that accepts a number from a user and tells whether the number is even or odd. </title><description>#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main(){&lt;br /&gt;
&lt;br /&gt;
int x =0;&lt;br /&gt;
&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;Enter an integer number : &quot;;&lt;br /&gt;
cin &amp;gt;&amp;gt;x;&lt;br /&gt;
cout &amp;lt;&amp;lt;endl;&lt;br /&gt;
&lt;br /&gt;
if(x%2==0){&lt;br /&gt;
&amp;nbsp; cout &amp;lt;&amp;lt;x&amp;lt;&amp;lt;&quot; is an even number.&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
else{&lt;br /&gt;
&amp;nbsp; cout &amp;lt;&amp;lt;x&amp;lt;&amp;lt;&quot; is an odd number.&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return 0;&lt;br /&gt;
}</description><link>https://shegertech.blogspot.com/2017/07/write-program-that-accepts-number-from_30.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-4955033626341927981</guid><pubDate>Sun, 30 Jul 2017 06:59:00 +0000</pubDate><atom:updated>2017-07-29T23:59:38.899-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a program that determines a student’s grade. The program will read three types of scores (quiz, mid-term, and final scores) and determine the grade based on the below rules.</title><description>/*&lt;br /&gt;
&lt;br /&gt;
#Rules&lt;br /&gt;
&lt;br /&gt;
-if the average score =90% =&amp;gt;grade=A&lt;br /&gt;
-if the average score &amp;gt;= 70% and &amp;lt;90% =&amp;gt; grade=B&lt;br /&gt;
-if the average score&amp;gt;=50% and &amp;lt;70% =&amp;gt;grade=C&lt;br /&gt;
-if the average score&amp;lt;50% =&amp;gt;grade=F&lt;br /&gt;
&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include&amp;lt;iomanip&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char *argv[])&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp;float x;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;float y;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;float z;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;float avg;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;Enter 3 score(quiz, mid-term, and final) vales separated by space:&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt;x&amp;gt;&amp;gt;y&amp;gt;&amp;gt;z;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;avg=(x+y+z)/3;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp;if(avg&amp;gt;=90)cout&amp;lt;&amp;lt;&quot;Grade A&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;else if((avg&amp;gt;=70) &amp;amp;&amp;amp; (avg&amp;lt;90)) cout&amp;lt;&amp;lt;&quot;Grade B&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;else if((avg&amp;gt;=50) &amp;amp;&amp;amp; (avg&amp;lt;70))cout&amp;lt;&amp;lt;&quot;Grade C&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;else if(avg&amp;lt;50) cout&amp;lt;&amp;lt;&quot;Grade F&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;else cout&amp;lt;&amp;lt;&quot;Invalid&quot;;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;system(&quot;PAUSE&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;return EXIT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-program-that-determines-students.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-1924798499425998746</guid><pubDate>Sun, 30 Jul 2017 06:57:00 +0000</pubDate><atom:updated>2017-07-29T23:57:22.616-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a C++ program that prompts the user to input three integer values and find the greatest value of the three values.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include&amp;lt;iomanip&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; int a,b,c,max;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt;a&amp;gt;&amp;gt;b&amp;gt;&amp;gt;c;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;max=a; //let max take the first value&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if(max&amp;lt;b) max=b; // compare max with b and update max&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if(max&amp;lt;c) max=c; //compare max with c and take c&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;Max: &quot;&amp;lt;&amp;lt;max; //output max&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp;system(&quot;PAUSE&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;return EXIT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-c-program-that-prompts-user-to.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-7500702982066590159</guid><pubDate>Sun, 30 Jul 2017 06:55:00 +0000</pubDate><atom:updated>2017-07-29T23:55:10.651-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Given the following pseudo code, write a program that executes it. </title><description>/*&lt;br /&gt;
Pseudocode&lt;br /&gt;
&lt;br /&gt;
a.read x&lt;br /&gt;
b.read y&lt;br /&gt;
c.compute p=x*y&lt;br /&gt;
d.compute s=x+y&lt;br /&gt;
e.total=s2+p*(s-x)*(p+y)&lt;br /&gt;
f.Print total&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include&amp;lt;iomanip&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; float x;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; float y;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; float p;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; float s;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; float total;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;Enter x value:&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cin&amp;gt;&amp;gt;x;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;Enter y value:&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cin&amp;gt;&amp;gt;y;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; p=x*y;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; s=x+y;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; total=s*s+p*(s-x)*(p+y);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;Total:&quot;&amp;lt;&amp;lt;total;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; system(&quot;PAUSE&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return EXIT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/given-following-pseudo-code-write_29.html</link><author>noreply@blogger.com (Josh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8063205315373116551.post-3876870606865720155</guid><pubDate>Sun, 30 Jul 2017 06:52:00 +0000</pubDate><atom:updated>2017-07-29T23:52:53.101-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cpp exercise</category><title>Write a C++ program to prompt the user to input 3 integer values and print these values in forward and reversed order.</title><description>/*&lt;br /&gt;
For more exercises and lessons, visit http://shegertech.blogspot.com/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int val1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int val2;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int val3;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;Please enter your 3 numbers:&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cin&amp;gt;&amp;gt;val1&amp;gt;&amp;gt;val2&amp;gt;&amp;gt;val3;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nYour numbers forward:\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;val1&amp;lt;&amp;lt; &quot;\n&quot;&amp;lt;&amp;lt;val2&amp;lt;&amp;lt;&quot;\n&quot; &amp;lt;&amp;lt;val3&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt; &quot;Your numbers reversed:\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;val3&amp;lt;&amp;lt;&quot;\n&quot;&amp;lt;&amp;lt;val2 &amp;lt;&amp;lt;&quot;\n&quot;&amp;lt;&amp;lt;val1&amp;lt;&amp;lt;&quot;\n&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;system(&quot;PAUSE&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return EXIT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://shegertech.blogspot.com/2017/07/write-c-program-to-prompt-user-to-input_29.html</link><author>noreply@blogger.com (Josh)</author></item></channel></rss>