<?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-1451978359794097407</atom:id><lastBuildDate>Wed, 01 Oct 2025 19:43:52 +0000</lastBuildDate><category>CGPA USKT</category><category>GPA USKT</category><category>USKT</category><category>USKT CGPA</category><category>USKT CGPA Calculator 2021</category><category>USKT GPA</category><category>University Of Sialkot</category><category>assembly language</category><category>unary operator</category><category>1D Array</category><category>1D Array in c++</category><category>Arithmetic operation</category><category>C++ programming</category><category>C/C++ program of median</category><category>Character</category><category>Character set of c / C++</category><category>Compiler</category><category>Compound Assignment Operators</category><category>Conclusion of Disability</category><category>Conditional Operator example</category><category>Conditional Operator example in C / C++</category><category>Creating and Editing</category><category>Data type of an expression</category><category>Define computer program</category><category>Define explicit casting with example</category><category>Defrent between IDE and TC Editor</category><category>Diagram of Switch Statement</category><category>Different between Rvalue and Lvalue</category><category>Different between compiler and interpreter</category><category>Displaying Character Type Data</category><category>Displaying Output Values Left-Justified</category><category>Eample in c / C++</category><category>Escape Sequence with all symbols</category><category>Explain Displaying Character Type Data</category><category>Explain Loops</category><category>Explain Operators Associativity</category><category>Explain field width and their types</category><category>Explain if else statement syntax with example</category><category>Explain if statement</category><category>Explain logical operators with symbol</category><category>FCFS</category><category>FCFS Code in C</category><category>FIFO</category><category>FIFO code in C</category><category>Find Mean in UnGroup Data in C\ C++ Program</category><category>Find Mean in group and ungroup data</category><category>Find Median of Grouped And Ungrouped Data</category><category>First In First Out</category><category>First come First Serve</category><category>Floating constants</category><category>Floating point data type</category><category>Flowchart of &#39;if-else&#39; Structure</category><category>Flowchart of Nested &#39; if &#39; Structure</category><category>Flowchart of if statement</category><category>HCI for people with disabilities</category><category>History of C-Language</category><category>Implement of Hash Table Code In C++</category><category>Increment Operator and their types</category><category>Increment Operator example in C / C++</category><category>Initializing String Variable</category><category>Installing Turbo C and Dev C++</category><category>Integer constants</category><category>Intersection &amp; Difference CPP file</category><category>Intersection &amp; Difference of set A and B in C++ Source Code</category><category>Intersection Of Sets A and B Source program in C++</category><category>Language translator</category><category>Limitation of &#39;if&#39; Statement</category><category>Limitation of if Statement</category><category>Limitation of if Statement in C</category><category>Limitation of if Statement in C++</category><category>Loop Statements</category><category>Mean Formula</category><category>Median in even and odd data</category><category>Nested &#39;if&#39; Statement</category><category>Nested if With Sequence of if Statement</category><category>Numeric Constants</category><category>OR and NOT operator</category><category>Operators Associativity with example</category><category>People with Hearing Disabilities</category><category>People with Physical Disabilities</category><category>People with Speech Disabilities</category><category>Postfix Increment Operator</category><category>Postfix decrement Operator</category><category>Prefix Increment Operator</category><category>Prefix decrement Operator</category><category>Prime Number Program In C / C++</category><category>Printf() function</category><category>Program in C / C++ interchange</category><category>Program in C/C++</category><category>Relational Operator with example</category><category>SJF in OS</category><category>Schduling Algorithm</category><category>Shortcut Key in C and C++</category><category>Shortest Job First</category><category>Shortest Job First (SJF) in Operating System</category><category>Source file in c++</category><category>Specifying Field-Width for Floating-Point Numbers</category><category>Specifying Field-Width for Integers</category><category>Steps to Prepare a C/C++ Program for Execution</category><category>String Assignment</category><category>String Input and Output</category><category>Stwith Statement</category><category>Syntac of Switch Statement</category><category>The Scanf() Function</category><category>The Scanf() Function with example</category><category>The clrscr() Function</category><category>The clrscr() Function with example</category><category>Types of Constants</category><category>USKT CGPA/GPA Calculator</category><category>USKT new GPA Calculator</category><category>Union Of  Set A and B Source code</category><category>University of Sialkot CGPA Calculator by Z Code Writer</category><category>University of Sialkot New CGPA Calculator by Z Code Writer</category><category>Uskt GPA Calculator</category><category>Uskt GPA Calculator batch 18</category><category>Variable Initialization</category><category>What is Disability</category><category>What is Operators Associativity</category><category>What is Overflow and Underflow</category><category>What is comment</category><category>What is rvalue and lvalue in computer</category><category>What is standard identifier</category><category>What is standard input and out put</category><category>What is type casting</category><category>Write a program that perform all arithmetic operation in c / c++</category><category>Write a program to Calculate Union</category><category>Write a program to calculate Difference of set A and B in C++</category><category>Write a program to calculate Union of set A and B in C++</category><category>Write a program to calculate intersection of set A and B in C++</category><category>all arithmetic operation</category><category>arithmetic expression</category><category>assembler</category><category>assembler translator</category><category>binary language</category><category>break statement</category><category>c language basics</category><category>c++</category><category>character input with their types</category><category>codding</category><category>compiler and interpreter are examples of which software</category><category>compiling</category><category>complete program differnce in c++</category><category>complete program intersection in c++</category><category>compound assignment statement</category><category>constant</category><category>convert miles into kilometers in C / C++</category><category>data type</category><category>data type for floating point value</category><category>data type for integer</category><category>data type in C /C++</category><category>declaration of variable</category><category>decrement Operator and their types</category><category>decrement Operator example in C / C++</category><category>define AND</category><category>define Assignment statement</category><category>define C statement</category><category>define Conditional Operator</category><category>define Escape Sequence</category><category>define Operators Associativity in C / C++</category><category>define Relational Operator</category><category>define Repetition Structure</category><category>define Selection Structure</category><category>define Sequence Structure</category><category>define String Variable</category><category>define binary operator</category><category>define character Format Specifier</category><category>define comment statement</category><category>define compound statement</category><category>define decision structure</category><category>define formatted output function with example</category><category>define hierarchy of operators</category><category>define implicit casting with example</category><category>define integer data</category><category>define low level language</category><category>define operators</category><category>define stdio.h header file</category><category>define ternary operator</category><category>define types of identifier</category><category>define unary operator</category><category>deletion code in c++</category><category>deletion in hashing</category><category>difference Of Sets A and B Source program in C++</category><category>difference between high level language and low level language in points</category><category>difference between source code and object code in points</category><category>difference between source program and object program</category><category>difference in c++ program</category><category>different between AND</category><category>different between Explicit and Implicit</category><category>different between Overflow and Underflow</category><category>different between Postfix and Prefix Increment Operator</category><category>different between Postfix and Prefix decrement Operator</category><category>different between binary operator and unary operator</category><category>different between scanf and gets function</category><category>different between standard data type and User defined data type</category><category>different between standard input and standard output</category><category>different between structured and unstructured  programming language</category><category>different between variable and constants</category><category>double data type</category><category>escape sequence with explanation</category><category>example assignment statement in c / c++</category><category>example of comment statement</category><category>example of low level and high level language</category><category>executable file</category><category>execution</category><category>execution error</category><category>explain Conditional Operator syntax with example</category><category>explain Control Structure with their type</category><category>explain Displaying Output Values Left-Justified</category><category>explain Escape Sequence with example</category><category>explain Format Specifier and their types example with program</category><category>explain Relational Expression</category><category>explain Scanf() Function</category><category>explain binary and unary operator</category><category>explain character input</category><category>explain logical expression</category><category>explain logical operator and logical expression with example</category><category>explain overflow and underflow</category><category>explain string variable</category><category>explain the basic structure of c program with an example</category><category>expressions</category><category>features of c language</category><category>float data type</category><category>floating Format Specifier and integer Format Specifier</category><category>flowchart of if else if statement</category><category>formatted output function</category><category>getch</category><category>getch() functiom</category><category>getche</category><category>getche() function</category><category>gets</category><category>gets() function</category><category>gotoxy() function</category><category>hash function</category><category>hash table</category><category>hash table implementation</category><category>hashing introduction</category><category>high level language</category><category>high level language and low level language</category><category>history of c language pdf</category><category>hold bytes</category><category>how many types of operator in c / C++</category><category>how many types of operators in computer</category><category>how to find mean</category><category>how to install Turbo c</category><category>how to install dev C++</category><category>how we can comment in c</category><category>how we can comment in c++</category><category>if else if in C / C++</category><category>if else if statement with syntax</category><category>if else if with example</category><category>if else statement example</category><category>if else statement example in C / C++</category><category>if statement example in C / C++</category><category>if statement with their Limitation</category><category>if statemnt in C++</category><category>if statment in c</category><category>if-else statement syntax</category><category>implementation of hash table</category><category>implementation of hash table with code</category><category>importance of c language</category><category>importance of language translator</category><category>inner if statement</category><category>insertion code in hash table</category><category>insertion in hashing</category><category>int data type</category><category>int hold bytes</category><category>integer data and their types</category><category>interpreter</category><category>intersection in c++ program</category><category>iteration structure</category><category>keywords or function of standard input and output</category><category>linking</category><category>loading</category><category>logical error</category><category>logical expression</category><category>long double data type</category><category>long int data type</category><category>loop structure</category><category>machine language</category><category>major type of Disability</category><category>mean code in C/C++</category><category>median in group datamedian inungroup data</category><category>mnemonics</category><category>modular programming</category><category>multiple assignment statement</category><category>necessary step to execute a program</category><category>nested if else statement with example</category><category>nested if in Switch</category><category>operation</category><category>operator in C / C++</category><category>operators</category><category>outer if statement</category><category>overflow and underflow with detail</category><category>pdf download</category><category>preprocessor directives with include and define</category><category>prim number code in c</category><category>prime code</category><category>prime number</category><category>prime number code</category><category>prime number code in c++</category><category>prime number definition</category><category>prime number program</category><category>printf</category><category>procedural programming</category><category>program in C / C++</category><category>program in C / C++ swapping</category><category>program of c++</category><category>programming</category><category>programming language translator software</category><category>purpose</category><category>puts</category><category>puts() function</category><category>relational expression</category><category>runtime error</category><category>saving</category><category>scanf</category><category>searching code of c++</category><category>searching in hashing</category><category>short int data type</category><category>similarities between compiler and interpreter</category><category>source code vs object code vs executable code</category><category>source program in c++</category><category>standard data type</category><category>structure of Swtich</category><category>structured and unstructured programming language</category><category>sum code</category><category>sum in 1d arry</category><category>syntax</category><category>syntax error</category><category>syntax of clrscr() Function</category><category>syntax of if statement</category><category>syntax of nested if statement</category><category>syntax of the language</category><category>syntax with example</category><category>table of relational operator and relational expression</category><category>triangle coding in c++</category><category>type of execution process</category><category>type of loops</category><category>type of type casting</category><category>types of casting</category><category>types of error in c++</category><category>types of errors in C</category><category>types of language translator</category><category>union</category><category>union CPP file</category><category>union of a set</category><category>union of the set in c++</category><category>unsigned int data type</category><category>unsigned long data type</category><category>unstructured programming in c++</category><category>user define data type</category><category>variable</category><category>what is  mean</category><category>what is  programming language and their types</category><category>what is Assignment operator</category><category>what is Compound Assignment Statement with example</category><category>what is Declaring String Variable</category><category>what is Format Specifier with their symbols</category><category>what is IDE and TC Editor</category><category>what is Operators Precedence</category><category>what is binary operator</category><category>what is bugs and debugging</category><category>what is comparison operators</category><category>what is compiler</category><category>what is data type</category><category>what is escape character</category><category>what is field width specifier</category><category>what is header file</category><category>what is identifier in c / c++</category><category>what is include</category><category>what is interpreter</category><category>what is keyword in c / c++</category><category>what is lib</category><category>what is linked editor</category><category>what is loops</category><category>what is source code</category><category>what is switch in c/c++</category><category>what is switch in programming</category><category>what is the  main function</category><category>what is unary operator</category><category>what is userdefined identifier</category><category>which are Compound Assignment Operators</category><category>why we use Printf() function in c / c++</category><category>why we use The clrscr() Function</category><category>working of if else statement</category><category>working of nested if statement</category><category>working with division operator</category><category>write a note between overflow and underflow</category><category>z - code writer</category><category>z code writer</category><category>z-code witer</category><title>Z Code Writer</title><description>Z Code Writer is an Online Blog for beginner programmers. Here, you will find tech, build your Programming Skills and other Programming Languages like C, C++, HTML, JavaScript, Java Code, Web Designing and the University of Sialkot (USKT) CGPA / GPA Calculator, etc.</description><link>https://zcodewriter.blogspot.com/</link><managingEditor>noreply@blogger.com (Abdul Saboor)</managingEditor><generator>Blogger</generator><openSearch:totalResults>68</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-8175870869926296670</guid><pubDate>Sun, 14 Mar 2021 17:40:00 +0000</pubDate><atom:updated>2024-05-01T21:42:55.360+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CGPA USKT</category><category domain="http://www.blogger.com/atom/ns#">GPA USKT</category><category domain="http://www.blogger.com/atom/ns#">University Of Sialkot</category><category domain="http://www.blogger.com/atom/ns#">University of Sialkot CGPA Calculator by Z Code Writer</category><category domain="http://www.blogger.com/atom/ns#">USKT</category><category domain="http://www.blogger.com/atom/ns#">USKT CGPA</category><category domain="http://www.blogger.com/atom/ns#">USKT CGPA Calculator 2021</category><category domain="http://www.blogger.com/atom/ns#">USKT CGPA/GPA Calculator</category><category domain="http://www.blogger.com/atom/ns#">USKT GPA</category><category domain="http://www.blogger.com/atom/ns#">Uskt GPA Calculator batch 18</category><title>USKT Old CGPA / GPA Calculator</title><description>&lt;div class=&quot;Main-Div&quot;&gt;
   &lt;center&gt;&lt;h2&gt;University of Sialkot Old (USKT) CGPA Calculator Batch-18&lt;/h2&gt;&lt;/center&gt;
  &lt;b&gt;&lt;p&gt;Designed for University Of Sialkot &lt;span title=&quot;University Of Sialkot&quot;&gt;(USKT)&lt;/span&gt; Student 2 Calculate their CGPA/GPA Developed By Abdul Saboor&lt;/p&gt;&lt;/b&gt;
   
  &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxZvEzeT0v0EOLMyOAzRHO4Lydbk76JoEf2m9SlGbkJedzyidD8St6itpY0NErMrD5od55Y4XPiBaJYQ6fz_Cf6p5uR-jYEtNqs-wRoVqhWnRYnMf7cQZjkigT_qYq1M-NCLnJpr-_00A/s649/USKT-Old-CGPA-GPA-Calculator.JPG&quot; style=&quot;display: block; padding: 1em 0px; text-align: center;&quot;&gt;&lt;img alt=&quot;USKT CGPA Calculator&quot; border=&quot;0&quot; data-original-height=&quot;613&quot; data-original-width=&quot;649&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxZvEzeT0v0EOLMyOAzRHO4Lydbk76JoEf2m9SlGbkJedzyidD8St6itpY0NErMrD5od55Y4XPiBaJYQ6fz_Cf6p5uR-jYEtNqs-wRoVqhWnRYnMf7cQZjkigT_qYq1M-NCLnJpr-_00A/s600/USKT-Old-CGPA-GPA-Calculator.JPG&quot; title=&quot;USKT University Of Sialkot CGPA GPA Calculator&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
	&lt;center&gt;&lt;h2&gt;&lt;a href=&quot;https://zcodewriter.blogspot.com/2021/02/uskt-cgpa-calculator.html&quot; style=&quot;color: blue;&quot;&gt;Click For USKT New CGPA/GPA Calculator&lt;/a&gt;&lt;/h2&gt;&lt;/center&gt;
	
	&lt;br /&gt;
  &lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #ffd000;&quot;&gt;INFO&lt;/span&gt;:&amp;nbsp;&lt;/b&gt;If you want to find a CGPA, then first you need to find their &lt;strong&gt;GPA&lt;/strong&gt;. Write your current CGPA on the Current CGPA Box and Total Credit Hour.&lt;/p&gt;
	&lt;br /&gt;
  &lt;div class=&quot;CGPA-Section&quot;&gt;
		&lt;label&gt;Current CGPA&lt;/label&gt;
		&lt;input id=&quot;C_CGPA&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
		&lt;label&gt;Total Credit Hour&lt;/label&gt;
		&lt;input id=&quot;T_Credit_Hours&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
	&lt;/div&gt;
	&lt;br /&gt;
   &lt;p&gt;&lt;b&gt;NOTE:&lt;/b&gt; If You Want To Find Just &lt;b&gt;&lt;i&gt;GPA&lt;/i&gt;&lt;/b&gt; Then Fill Below Option.&lt;/p&gt;
  &lt;h2&gt;GPA Calculator&lt;/h2&gt;
	&lt;div class=&quot;Header__&quot;&gt;
		&lt;b&gt;#&lt;/b&gt;&lt;b&gt;Grade &lt;/b&gt; &lt;b&gt; Points &lt;/b&gt;&lt;b&gt; Credit Hours&lt;/b&gt;&lt;b&gt;Grade Points&lt;/b&gt;&lt;hr /&gt;
	&lt;/div&gt;
  &lt;p class=&quot;text-center hidden-lg hidden-md hidden-sm visible-xs&quot; style=&quot;background-color: red; margin-bottom: 16px;&quot;&gt;&lt;b&gt;Please Double Click On &lt;i&gt;Select&lt;/i&gt; Option to Get Value If The Value is not automaticaly Filled in The Box.&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
	&lt;div class=&quot;GPA-Section&quot;&gt;
		&lt;span&gt;&lt;b&gt;1&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(0)&quot;&gt;
			&lt;option onclick=&quot;Calls()&quot; selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option onclick=&quot;Calls()&quot; value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option onclick=&quot;Calls()&quot; value=&quot;3.7&quot;&gt;A&lt;/option&gt; 
			&lt;option onclick=&quot;Calls()&quot; value=&quot;3.4&quot;&gt;A-&lt;/option&gt;
			&lt;option onclick=&quot;Calls()&quot; value=&quot;3.0&quot;&gt;B+&lt;/option&gt;
			&lt;option onclick=&quot;Calls()&quot; value=&quot;2.7&quot;&gt;B&lt;/option&gt;
			&lt;option onclick=&quot;Calls()&quot; value=&quot;2.4&quot;&gt;B-&lt;/option&gt;
			&lt;option onclick=&quot;Calls()&quot; value=&quot;2.0&quot;&gt;C+&lt;/option&gt;
			&lt;option onclick=&quot;Calls()&quot; value=&quot;1.5&quot;&gt;C&lt;/option&gt;
			&lt;option onclick=&quot;Calls()&quot; value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option onclick=&quot;Calls()&quot; value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(0)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;

		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;2&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(1)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.7&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.4&quot;&gt;A-&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;2.7&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.4&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;1.5&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(1)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;3&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(2)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.7&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.4&quot;&gt;A-&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;2.7&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.4&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;1.5&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(2)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;4&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(3)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.7&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.4&quot;&gt;A-&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;2.7&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.4&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;1.5&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(3)&quot; readonly=&quot;&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;
		&lt;span&gt;&lt;b&gt;5&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(4)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.7&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.4&quot;&gt;A-&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;2.7&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.4&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;1.5&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(4)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;6&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(5)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.7&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.4&quot;&gt;A-&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;2.7&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.4&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;1.5&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(5)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;7&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(6)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.7&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.4&quot;&gt;A-&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;2.7&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.4&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;1.5&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(6)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;8&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(7)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.7&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.4&quot;&gt;A-&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;2.7&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.4&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;1.5&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(7)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;9&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(8)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.7&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.4&quot;&gt;A-&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;2.7&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.4&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;1.5&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(8)&quot; readonly=&quot;&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;button class=&quot;btn btn-info&quot; id=&quot;btn1&quot; onclick=&quot;Sum_of_Indexes()&quot;&gt;Calculate&lt;/button&gt;&lt;br /&gt;&lt;br /&gt;

		&lt;div class=&quot;Dis_Cal_Sum&quot;&gt;
			&lt;label&gt;Sum: &lt;/label&gt;
			&lt;input id=&quot;CH_Value&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
            &lt;input id=&quot;Grade_Value&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
			&lt;br /&gt;&lt;br /&gt;
			&lt;label&gt;GPA: &lt;/label&gt;
			&lt;input id=&quot;GPA&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
			&lt;label&gt;CGPA: &lt;/label&gt;
			&lt;input id=&quot;CGPA&quot; readonly=&quot;&quot; size=&quot;4&quot; type=&quot;text&quot; /&gt;
		&lt;/div&gt;
	&lt;/div&gt;
    &lt;br /&gt;
      &lt;h2&gt;How To Calculate USKT GPA&lt;/h2&gt;
      &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvyahwtSE7I7JCV4pBj4gd40AstNCjBabKA8yN4k9sIJPcZctYzi8t6GsRcj1Hco_PIwjCStnRDzFgkq4wuAhwMsQCAd801VezjGt0SG6SDtoABCZgyJUDpZUbhQH9d2aVLT5sZcCVmVQ/s0/USKT-GPA-Calculator.JPG&quot; style=&quot;display: block; padding: 1em 0px; text-align: center;&quot;&gt;&lt;img alt=&quot;USKT GPA Calculator&quot; border=&quot;0&quot; data-original-height=&quot;650&quot; data-original-width=&quot;411&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvyahwtSE7I7JCV4pBj4gd40AstNCjBabKA8yN4k9sIJPcZctYzi8t6GsRcj1Hco_PIwjCStnRDzFgkq4wuAhwMsQCAd801VezjGt0SG6SDtoABCZgyJUDpZUbhQH9d2aVLT5sZcCVmVQ/s0/USKT-GPA-Calculator.JPG&quot; title=&quot;USKT University Of Sialkot CGPA GPA Calculator&quot; /&gt;&lt;/a&gt;
    
        &lt;p&gt;You Just Need To Select the Select Option Box for selecting Grade and Credit Hours. When You Have Set Your all Subject Grade You Need to CLick on Calculate Button . It will Calculate your new &lt;b&gt;GPA&lt;/b&gt;. If You want to Calculate your CGPA go on top current CGPA box and write your current &lt;b&gt;CGPA&lt;/b&gt; And write sum of all Previous Credit hour on tottal credit Hour Box and  simply Click on Calculate Buuton You will Get Accurate CGPA. This is simple Design of USKT (University Of Sialkot) CGPA / GPA Calculator For USKT Student. For Using This GPA Calculator, Student can calculate their CGPA/GPA easy and efficence way. The result Show on the base of GPA of the current Semester. We Try our Best to Give you Simple Interface of USKT CGPA Calculator. The CGPA Is the main Term of Every University For result.&lt;/p&gt;
    &lt;/div&gt;
    &lt;tag&gt;USKT CGPA Calculator 2021,&lt;/tag&gt;
    &lt;tag&gt;USKT CGPA Calculator,&lt;/tag&gt;
    &lt;tag&gt;USKT GPA Calculator 2021,&lt;/tag&gt;
    &lt;tag&gt;USKT GPA Calculator,&lt;/tag&gt;
    &lt;tag&gt;USKT New GPA Calculator,&lt;/tag&gt;
    &lt;tag&gt;University od Sialkot CGPA Calculator 2021&lt;/tag&gt;
    &lt;br /&gt;
    &lt;h3&gt;&lt;a href=&quot;https://zcodewriter.blogspot.com/p/university-of-gujrat-uog-cgpa-gpa.html&quot; title=&quot;UOG CGPA GPA Calculator&quot;&gt; UOG CGPA GPA Calculator &lt;/a&gt;&lt;/h3&gt;
    &lt;h3&gt;&lt;a href=&quot;https://zcodewriter.blogspot.com/2021/02/uskt-cgpa-calculator.html&quot; title=&quot;USKT Old CGPA GPA Calculator&quot;&gt; USKT Old CGPA GPA Calculator &lt;/a&gt;&lt;/h3&gt;
    
&lt;script&gt;    
  function Calls(){
		alert(&quot;Please Double Click On Select Option to Get Value If The Value is not automaticaly Filled in The Box.&quot;);
  }
&lt;/script&gt;
    
&lt;script&gt;var _0x2c97=[&#39;526824FfXrHE&#39;,&#39;Grade_Alpha_1&#39;,&#39;260381yeyfKn&#39;,&#39;Point_1&#39;,&#39;1135031iEqbwv&#39;,&#39;CH_Value&#39;,&#39;getElementById&#39;,&#39;value&#39;,&#39;CGPA&#39;,&#39;Grade_Point_1&#39;,&#39;1JBCcbm&#39;,&#39;isNaN&#39;,&#39;getElementsByName&#39;,&#39;1sxhGNJ&#39;,&#39;Credit_Hours_1&#39;,&#39;C_CGPA&#39;,&#39;1042038CvXPSK&#39;,&#39;GPA&#39;,&#39;T_Credit_Hours&#39;,&#39;725593cxjqTi&#39;,&#39;1402064PapKwr&#39;,&#39;Grade_Value&#39;,&#39;1060724bNbLoo&#39;,&#39;2ZEkHEu&#39;];var _0x4674=function(_0x583bd7,_0x258105){_0x583bd7=_0x583bd7-0xef;var _0x2c97ef=_0x2c97[_0x583bd7];return _0x2c97ef;};(function(_0x4f6101,_0x4d59d0){var _0x10098a=_0x4674;while(!![]){try{var _0x3a550e=-parseInt(_0x10098a(0xf2))+-parseInt(_0x10098a(0xf4))+parseInt(_0x10098a(0x104))+parseInt(_0x10098a(0xf8))*-parseInt(_0x10098a(0x101))+-parseInt(_0x10098a(0xef))+parseInt(_0x10098a(0xfe))*parseInt(_0x10098a(0xf6))+-parseInt(_0x10098a(0xf0))*-parseInt(_0x10098a(0xf3));if(_0x3a550e===_0x4d59d0)break;else _0x4f6101[&#39;push&#39;](_0x4f6101[&#39;shift&#39;]());}catch(_0xb1daba){_0x4f6101[&#39;push&#39;](_0x4f6101[&#39;shift&#39;]());}}}(_0x2c97,0xa0bc7));function Get_Points(_0x4665c9){var _0x4cc1ed=_0x4674,_0x276e7f=document[_0x4cc1ed(0x100)](_0x4cc1ed(0xf5))[_0x4665c9][_0x4cc1ed(0xfb)];document[&#39;getElementsByName&#39;](_0x4cc1ed(0xf7))[_0x4665c9][_0x4cc1ed(0xfb)]=_0x276e7f,Get_Grade_Points(_0x4665c9);}function Get_Grade_Points(_0x512267){var _0x1e8677=_0x4674,_0x17fcc2=document[&#39;getElementsByName&#39;](&#39;Credit_Hours_1&#39;)[_0x512267][&#39;value&#39;],_0x5451e8=document[_0x1e8677(0x100)](_0x1e8677(0xf7))[_0x512267][_0x1e8677(0xfb)];document[_0x1e8677(0x100)](_0x1e8677(0xfd))[_0x512267][_0x1e8677(0xfb)]=_0x17fcc2*_0x5451e8;}var Global;function Sum_of_Indexes(){var _0x579426=_0x4674,_0xd21337=0x0,_0x1ec81e=null;for(var _0x2a173c=0x0;_0x2a173c&lt;0x9;_0x2a173c++){var _0x4dd473=document[_0x579426(0x100)](_0x579426(0xfd))[_0x2a173c][_0x579426(0xfb)];_0x1ec81e=parseFloat(_0x4dd473);if(Number[_0x579426(0xff)](_0x1ec81e)==!![])break;_0xd21337=_0xd21337+_0x1ec81e;}document[_0x579426(0xfa)](_0x579426(0xf1))[&#39;value&#39;]=_0xd21337,Global=_0xd21337,Credit_Hours_Sum(),get_CGPA();}function Credit_Hours_Sum(){var _0x34af91=_0x4674,_0x499f25=0x0,_0xb55ae6=null;for(var _0x68261b=0x0;_0x68261b&lt;0x9;_0x68261b++){var _0x139c7d=document[_0x34af91(0x100)](_0x34af91(0x102))[_0x68261b][&#39;value&#39;];_0xb55ae6=parseFloat(_0x139c7d);if(Number[_0x34af91(0xff)](_0xb55ae6)==!![])break;_0x499f25=_0x499f25+_0xb55ae6;}document[_0x34af91(0xfa)](_0x34af91(0xf9))[_0x34af91(0xfb)]=_0x499f25,z=document[_0x34af91(0xfa)](&#39;GPA&#39;)[_0x34af91(0xfb)]=Global/_0x499f25,document[_0x34af91(0xfa)](_0x34af91(0xfc))[&#39;value&#39;]=z;}function get_CGPA(){var _0x1dc4e6=_0x4674,_0x4c17bd=document[_0x1dc4e6(0xfa)](_0x1dc4e6(0x103))[_0x1dc4e6(0xfb)],_0x33d677=document[&#39;getElementById&#39;](_0x1dc4e6(0x106))[_0x1dc4e6(0xfb)],_0x290a0b=document[_0x1dc4e6(0xfa)](_0x1dc4e6(0x105))[_0x1dc4e6(0xfb)],_0x4a46c1=document[_0x1dc4e6(0xfa)](_0x1dc4e6(0xf9))[_0x1dc4e6(0xfb)],_0x4e6bdd=_0x4c17bd*_0x33d677,_0x2ce61c=_0x290a0b*_0x4a46c1,_0x3ef753=_0x4e6bdd+_0x2ce61c,_0x115dbd=parseInt(_0x33d677)+parseInt(_0x4a46c1);document[_0x1dc4e6(0xfa)](&#39;CGPA&#39;)[_0x1dc4e6(0xfb)]=_0x3ef753/_0x115dbd;}&lt;/script&gt;
  
&lt;/div&gt;</description><link>https://zcodewriter.blogspot.com/2021/03/uskt-cgpa-gpa-calculator-batch-18.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxZvEzeT0v0EOLMyOAzRHO4Lydbk76JoEf2m9SlGbkJedzyidD8St6itpY0NErMrD5od55Y4XPiBaJYQ6fz_Cf6p5uR-jYEtNqs-wRoVqhWnRYnMf7cQZjkigT_qYq1M-NCLnJpr-_00A/s72-c/USKT-Old-CGPA-GPA-Calculator.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-6748268191555562619</guid><pubDate>Thu, 11 Feb 2021 18:56:00 +0000</pubDate><atom:updated>2024-05-01T21:43:17.360+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CGPA USKT</category><category domain="http://www.blogger.com/atom/ns#">GPA USKT</category><category domain="http://www.blogger.com/atom/ns#">University Of Sialkot</category><category domain="http://www.blogger.com/atom/ns#">University of Sialkot New CGPA Calculator by Z Code Writer</category><category domain="http://www.blogger.com/atom/ns#">USKT</category><category domain="http://www.blogger.com/atom/ns#">USKT CGPA</category><category domain="http://www.blogger.com/atom/ns#">USKT CGPA Calculator 2021</category><category domain="http://www.blogger.com/atom/ns#">USKT GPA</category><category domain="http://www.blogger.com/atom/ns#">Uskt GPA Calculator</category><category domain="http://www.blogger.com/atom/ns#">USKT new GPA Calculator</category><title>USKT New CGPA Calculator 2021</title><description>&lt;div class=&quot;Main-Div&quot;&gt;
   &lt;center&gt;&lt;h2&gt;University of Sialkot (USKT) New CGPA/GPA Calculator 2021&lt;/h2&gt;&lt;/center&gt;
  &lt;b&gt;&lt;p&gt;Designed for University Of Sialkot &lt;span title=&quot;University Of Sialkot&quot;&gt;(USKT)&lt;/span&gt; Student 2 Calculate their CGPA/GPA Developed By Abdul Saboor&lt;/p&gt;&lt;/b&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbQiPtRCpPpoJbsyDVjfes_rxE942SsMzlH1-OptT3NRvKRk1vc5pf_EjslkXUt5IvqPP8mjtj8brUShx96Yq-bhWmdJ9PoDmq6V4-YNAP2eQV4sS1GDZs4S1LHyuE8Kz5Mm5Ni79P2kA/s650/USKT+GPA+Calculator+CGPA+Calculator.JPG&quot; style=&quot;display: block; padding: 1em 0px; text-align: center;&quot;&gt;&lt;img alt=&quot;USKT CGPA Calculator&quot; border=&quot;0&quot; data-original-height=&quot;608&quot; data-original-width=&quot;650&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbQiPtRCpPpoJbsyDVjfes_rxE942SsMzlH1-OptT3NRvKRk1vc5pf_EjslkXUt5IvqPP8mjtj8brUShx96Yq-bhWmdJ9PoDmq6V4-YNAP2eQV4sS1GDZs4S1LHyuE8Kz5Mm5Ni79P2kA/s600/USKT+GPA+Calculator+CGPA+Calculator.JPG&quot; title=&quot;USKT University Of Sialkot CGPA GPA Calculator&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
	&lt;center&gt;&lt;h2&gt;&lt;a href=&quot;https://zcodewriter.blogspot.com/2021/03/uskt-cgpa-gpa-calculator-batch-18.html&quot; style=&quot;color: blue;&quot;&gt;Click For Old USKT CGPA Calculator For Batch-18&lt;/a&gt;&lt;/h2&gt;&lt;/center&gt;
	
	&lt;br /&gt;
  &lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #ffd000;&quot;&gt;INFO&lt;/span&gt;:&amp;nbsp;&lt;/b&gt;If you want to find a CGPA, then first you need to find their&amp;nbsp;&lt;strong&gt;GPA&lt;/strong&gt;. Write your current CGPA on the Current CGPA Box and Total Credit Hour.&lt;/p&gt;
	&lt;br /&gt;
  &lt;div class=&quot;CGPA-Section&quot;&gt;
		&lt;label&gt;Current CGPA&lt;/label&gt;
		&lt;input id=&quot;C_CGPA&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
		&lt;label&gt;Total Credit Hour&lt;/label&gt;
		&lt;input id=&quot;T_Credit_Hours&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
	&lt;/div&gt;
	&lt;br /&gt;
   &lt;p&gt;&lt;b&gt;NOTE:&lt;/b&gt; If You Want To Find Just &lt;b&gt;&lt;i&gt;GPA&lt;/i&gt;&lt;/b&gt; Then Fill Below Option.&lt;/p&gt;
  &lt;h2&gt;GPA Calculator&lt;/h2&gt;
	&lt;div class=&quot;Header__&quot;&gt;
		&lt;b&gt;#&lt;/b&gt;&lt;b&gt;Grade &lt;/b&gt; &lt;b&gt; Points &lt;/b&gt;&lt;b&gt; Credit Hours&lt;/b&gt;&lt;b&gt;Grade Points&lt;/b&gt;&lt;hr /&gt;
	&lt;/div&gt;
  &lt;p class=&quot;text-center hidden-lg hidden-md hidden-sm visible-xs&quot; style=&quot;background-color: red; margin-bottom: 16px;&quot;&gt;&lt;b&gt;Please Double Click On &lt;i&gt;Select&lt;/i&gt; Option to Get Value If The Value is not automaticaly Filled in The Box.&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
	&lt;div class=&quot;GPA-Section&quot;&gt;
		&lt;span&gt;&lt;b&gt;1&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(0)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.66&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.33&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.66&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.33&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.66&quot;&gt;C-&lt;/option&gt;
			&lt;option value=&quot;1.33&quot;&gt;D+&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(0)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;

		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;2&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(1)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.66&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.33&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.66&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.33&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.66&quot;&gt;C-&lt;/option&gt;
			&lt;option value=&quot;1.33&quot;&gt;D+&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(1)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;3&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(2)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.66&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.33&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.66&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.33&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.66&quot;&gt;C-&lt;/option&gt;
			&lt;option value=&quot;1.33&quot;&gt;D+&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(2)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;4&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(3)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.66&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.33&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.66&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.33&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.66&quot;&gt;C-&lt;/option&gt;
			&lt;option value=&quot;1.33&quot;&gt;D+&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(3)&quot; readonly=&quot;&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;
		&lt;span&gt;&lt;b&gt;5&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(4)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.66&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.33&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.66&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.33&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.66&quot;&gt;C-&lt;/option&gt;
			&lt;option value=&quot;1.33&quot;&gt;D+&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(4)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;6&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(5)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.66&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.33&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.66&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.33&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.66&quot;&gt;C-&lt;/option&gt;
			&lt;option value=&quot;1.33&quot;&gt;D+&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(5)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;7&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(6)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.66&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.33&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.66&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.33&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.66&quot;&gt;C-&lt;/option&gt;
			&lt;option value=&quot;1.33&quot;&gt;D+&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(6)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;8&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(7)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.66&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.33&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.66&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.33&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.66&quot;&gt;C-&lt;/option&gt;
			&lt;option value=&quot;1.33&quot;&gt;D+&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(7)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;span&gt;&lt;b&gt;9&lt;/b&gt;&lt;/span&gt;
		&lt;select name=&quot;Grade_Alpha_1&quot; onclick=&quot;Get_Points(8)&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;4.0&quot;&gt;A+&lt;/option&gt;
			&lt;option value=&quot;3.66&quot;&gt;A&lt;/option&gt; 
			&lt;option value=&quot;3.33&quot;&gt;B+&lt;/option&gt;
			&lt;option value=&quot;3.0&quot;&gt;B&lt;/option&gt;
			&lt;option value=&quot;2.66&quot;&gt;B-&lt;/option&gt;
			&lt;option value=&quot;2.33&quot;&gt;C+&lt;/option&gt;
			&lt;option value=&quot;2.0&quot;&gt;C&lt;/option&gt;
			&lt;option value=&quot;1.66&quot;&gt;C-&lt;/option&gt;
			&lt;option value=&quot;1.33&quot;&gt;D+&lt;/option&gt;
			&lt;option value=&quot;1.0&quot;&gt;D&lt;/option&gt;
			&lt;option value=&quot;0.0&quot;&gt;F&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;select name=&quot;Credit_Hours_1&quot; onclick=&quot;Get_Grade_Points(8)&quot; readonly=&quot;&quot;&gt;
			&lt;option selected=&quot;&quot; value=&quot;&quot;&gt;Select&lt;/option&gt;
			&lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
			&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt; 
			&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
			&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
			&lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
			&lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
		&lt;/select&gt;
			&lt;input name=&quot;Grade_Point_1&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		
		&lt;br /&gt;
		&lt;br /&gt;

		&lt;button class=&quot;btn btn-info&quot; id=&quot;btn1&quot; onclick=&quot;Sum_of_Indexes()&quot;&gt;Calculate&lt;/button&gt;&lt;br /&gt;&lt;br /&gt;

		&lt;div class=&quot;Dis_Cal_Sum&quot;&gt;
			&lt;label&gt;Sum: &lt;/label&gt;
			&lt;input id=&quot;CH_Value&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
            &lt;input id=&quot;Grade_Value&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
			&lt;br /&gt;&lt;br /&gt;
			&lt;label&gt;GPA: &lt;/label&gt;
			&lt;input id=&quot;GPA&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
			&lt;label&gt;CGPA: &lt;/label&gt;
			&lt;input id=&quot;CGPA&quot; readonly=&quot;&quot; size=&quot;6&quot; type=&quot;text&quot; /&gt;
		&lt;/div&gt;
	&lt;/div&gt;
    &lt;br /&gt;
      &lt;h2&gt;How To Calculate USKT GPA&lt;/h2&gt;
      &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvyahwtSE7I7JCV4pBj4gd40AstNCjBabKA8yN4k9sIJPcZctYzi8t6GsRcj1Hco_PIwjCStnRDzFgkq4wuAhwMsQCAd801VezjGt0SG6SDtoABCZgyJUDpZUbhQH9d2aVLT5sZcCVmVQ/s0/USKT-GPA-Calculator.JPG&quot; style=&quot;display: block; padding: 1em 0px; text-align: center;&quot;&gt;&lt;img alt=&quot;USKT GPA Calculator&quot; border=&quot;0&quot; data-original-height=&quot;650&quot; data-original-width=&quot;411&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvyahwtSE7I7JCV4pBj4gd40AstNCjBabKA8yN4k9sIJPcZctYzi8t6GsRcj1Hco_PIwjCStnRDzFgkq4wuAhwMsQCAd801VezjGt0SG6SDtoABCZgyJUDpZUbhQH9d2aVLT5sZcCVmVQ/s0/USKT-GPA-Calculator.JPG&quot; title=&quot;USKT University Of Sialkot CGPA GPA Calculator&quot; /&gt;&lt;/a&gt;
    
        &lt;p&gt;You Just Need To Select the Select Option Box for selecting Grade and Credit Hours. When You Have Set Your all Subject Grade You Need to CLick on Calculate Button . It will Calculate your new &lt;b&gt;GPA&lt;/b&gt;. If You want to Calculate your CGPA go on top current CGPA box and write your current &lt;b&gt;CGPA&lt;/b&gt; And write sum of all Previous Credit hour on tottal credit Hour Box and  simply Click on Calculate Buuton You will Get Accurate CGPA. This is simple Design of USKT (University Of Sialkot) CGPA / GPA Calculator For USKT Student. For Using This GPA Calculator, Student can calculate their CGPA/GPA easy and efficence way. The result Show on the base of GPA of the current Semester. We Try our Best to Give you Simple Interface of USKT CGPA Calculator. The CGPA Is the main Term of Every University For result.&lt;/p&gt;
    &lt;/div&gt;
    &lt;tag&gt;USKT CGPA Calculator 2021,&lt;/tag&gt;
    &lt;tag&gt;USKT CGPA Calculator,&lt;/tag&gt;
    &lt;tag&gt;USKT GPA Calculator 2021,&lt;/tag&gt;
    &lt;tag&gt;USKT GPA Calculator,&lt;/tag&gt;
    &lt;tag&gt;University od Sialkot CGPA Calculator 2021&lt;/tag&gt;
    
    &lt;br /&gt;
    &lt;h3&gt;&lt;a href=&quot;https://zcodewriter.blogspot.com/p/university-of-gujrat-uog-cgpa-gpa.html&quot; title=&quot;USKT CGPA GPA Calculator&quot;&gt; USKT CGPA GPA Calculator &lt;/a&gt;&lt;/h3&gt;
    
&lt;script&gt;var _0x2c97=[&#39;526824FfXrHE&#39;,&#39;Grade_Alpha_1&#39;,&#39;260381yeyfKn&#39;,&#39;Point_1&#39;,&#39;1135031iEqbwv&#39;,&#39;CH_Value&#39;,&#39;getElementById&#39;,&#39;value&#39;,&#39;CGPA&#39;,&#39;Grade_Point_1&#39;,&#39;1JBCcbm&#39;,&#39;isNaN&#39;,&#39;getElementsByName&#39;,&#39;1sxhGNJ&#39;,&#39;Credit_Hours_1&#39;,&#39;C_CGPA&#39;,&#39;1042038CvXPSK&#39;,&#39;GPA&#39;,&#39;T_Credit_Hours&#39;,&#39;725593cxjqTi&#39;,&#39;1402064PapKwr&#39;,&#39;Grade_Value&#39;,&#39;1060724bNbLoo&#39;,&#39;2ZEkHEu&#39;];var _0x4674=function(_0x583bd7,_0x258105){_0x583bd7=_0x583bd7-0xef;var _0x2c97ef=_0x2c97[_0x583bd7];return _0x2c97ef;};(function(_0x4f6101,_0x4d59d0){var _0x10098a=_0x4674;while(!![]){try{var _0x3a550e=-parseInt(_0x10098a(0xf2))+-parseInt(_0x10098a(0xf4))+parseInt(_0x10098a(0x104))+parseInt(_0x10098a(0xf8))*-parseInt(_0x10098a(0x101))+-parseInt(_0x10098a(0xef))+parseInt(_0x10098a(0xfe))*parseInt(_0x10098a(0xf6))+-parseInt(_0x10098a(0xf0))*-parseInt(_0x10098a(0xf3));if(_0x3a550e===_0x4d59d0)break;else _0x4f6101[&#39;push&#39;](_0x4f6101[&#39;shift&#39;]());}catch(_0xb1daba){_0x4f6101[&#39;push&#39;](_0x4f6101[&#39;shift&#39;]());}}}(_0x2c97,0xa0bc7));function Get_Points(_0x4665c9){var _0x4cc1ed=_0x4674,_0x276e7f=document[_0x4cc1ed(0x100)](_0x4cc1ed(0xf5))[_0x4665c9][_0x4cc1ed(0xfb)];document[&#39;getElementsByName&#39;](_0x4cc1ed(0xf7))[_0x4665c9][_0x4cc1ed(0xfb)]=_0x276e7f,Get_Grade_Points(_0x4665c9);}function Get_Grade_Points(_0x512267){var _0x1e8677=_0x4674,_0x17fcc2=document[&#39;getElementsByName&#39;](&#39;Credit_Hours_1&#39;)[_0x512267][&#39;value&#39;],_0x5451e8=document[_0x1e8677(0x100)](_0x1e8677(0xf7))[_0x512267][_0x1e8677(0xfb)];document[_0x1e8677(0x100)](_0x1e8677(0xfd))[_0x512267][_0x1e8677(0xfb)]=_0x17fcc2*_0x5451e8;}var Global;function Sum_of_Indexes(){var _0x579426=_0x4674,_0xd21337=0x0,_0x1ec81e=null;for(var _0x2a173c=0x0;_0x2a173c&lt;0x9;_0x2a173c++){var _0x4dd473=document[_0x579426(0x100)](_0x579426(0xfd))[_0x2a173c][_0x579426(0xfb)];_0x1ec81e=parseFloat(_0x4dd473);if(Number[_0x579426(0xff)](_0x1ec81e)==!![])break;_0xd21337=_0xd21337+_0x1ec81e;}document[_0x579426(0xfa)](_0x579426(0xf1))[&#39;value&#39;]=_0xd21337,Global=_0xd21337,Credit_Hours_Sum(),get_CGPA();}function Credit_Hours_Sum(){var _0x34af91=_0x4674,_0x499f25=0x0,_0xb55ae6=null;for(var _0x68261b=0x0;_0x68261b&lt;0x9;_0x68261b++){var _0x139c7d=document[_0x34af91(0x100)](_0x34af91(0x102))[_0x68261b][&#39;value&#39;];_0xb55ae6=parseFloat(_0x139c7d);if(Number[_0x34af91(0xff)](_0xb55ae6)==!![])break;_0x499f25=_0x499f25+_0xb55ae6;}document[_0x34af91(0xfa)](_0x34af91(0xf9))[_0x34af91(0xfb)]=_0x499f25,z=document[_0x34af91(0xfa)](&#39;GPA&#39;)[_0x34af91(0xfb)]=Global/_0x499f25,document[_0x34af91(0xfa)](_0x34af91(0xfc))[&#39;value&#39;]=z;}function get_CGPA(){var _0x1dc4e6=_0x4674,_0x4c17bd=document[_0x1dc4e6(0xfa)](_0x1dc4e6(0x103))[_0x1dc4e6(0xfb)],_0x33d677=document[&#39;getElementById&#39;](_0x1dc4e6(0x106))[_0x1dc4e6(0xfb)],_0x290a0b=document[_0x1dc4e6(0xfa)](_0x1dc4e6(0x105))[_0x1dc4e6(0xfb)],_0x4a46c1=document[_0x1dc4e6(0xfa)](_0x1dc4e6(0xf9))[_0x1dc4e6(0xfb)],_0x4e6bdd=_0x4c17bd*_0x33d677,_0x2ce61c=_0x290a0b*_0x4a46c1,_0x3ef753=_0x4e6bdd+_0x2ce61c,_0x115dbd=parseInt(_0x33d677)+parseInt(_0x4a46c1);document[_0x1dc4e6(0xfa)](&#39;CGPA&#39;)[_0x1dc4e6(0xfb)]=_0x3ef753/_0x115dbd;}&lt;/script&gt;
  
&lt;/div&gt;</description><link>https://zcodewriter.blogspot.com/2021/02/uskt-cgpa-calculator.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbQiPtRCpPpoJbsyDVjfes_rxE942SsMzlH1-OptT3NRvKRk1vc5pf_EjslkXUt5IvqPP8mjtj8brUShx96Yq-bhWmdJ9PoDmq6V4-YNAP2eQV4sS1GDZs4S1LHyuE8Kz5Mm5Ni79P2kA/s72-c/USKT+GPA+Calculator+CGPA+Calculator.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-3752926433058146688</guid><pubDate>Thu, 24 Dec 2020 18:14:00 +0000</pubDate><atom:updated>2020-12-26T23:35:46.682+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Conclusion of Disability</category><category domain="http://www.blogger.com/atom/ns#">HCI for people with disabilities</category><category domain="http://www.blogger.com/atom/ns#">major type of Disability</category><category domain="http://www.blogger.com/atom/ns#">People with Hearing Disabilities</category><category domain="http://www.blogger.com/atom/ns#">People with Physical Disabilities</category><category domain="http://www.blogger.com/atom/ns#">People with Speech Disabilities</category><category domain="http://www.blogger.com/atom/ns#">What is Disability</category><title>HCI for people with disabilities</title><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%; mso-bidi-font-size: 11.0pt;&quot;&gt;HCI for People with Disabilities&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;



&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Description/Abstract&lt;/b&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;This article deals with the Human Computer Interaction(HCI)
of people with disability and how the designed system can assist the disable
person. This issue of disable people is currently becoming the interest of both
the expert and non-expert population in the field of HCI. The introduction
focuses on the clarification that what is HCI, how it is related to disabled
people in aspect of communication, its requirement and importance. After that
dimensions and types of disability is defined which ultimately leads to the
requirement of having the solution of disability type in field of HCI. Solution
of four major disabilities (i.e., visual, hearing, physical and speech
disability) is explained that what kind of system is required for the concerned
problem and how a related person can use it. References/Sources are mentioned at
the end of the Article/Blog.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Introduction&lt;/b&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;Human-Computer Interface (HCI) is the study and development
of computer based interfaces with the express purpose of making them convenient,
simpler, easier and productive for the human. We can find applications and
devices inferring new concepts of HCI. It is about designing new systems
(specifically computer systems) that support human so they carry out their
deeds productively and safely. It attempts to study new modes of communication
that could be used for human computer communication and simultaneously to
develop devices and techniques to use such modes. The technique devices can be
used for communication with the human and in the same way human can communicate
with such techniqued devices using their perceptual abilities, processes and
organs. The serious and sensitive aspect of using such technology for the
disabled people. They need more inclusive technology rather than having
separate world(i.e., Virtual Reality). HCI is actively considering the
assistance of disabled people. Human-Computer Interface (HCI) systems allows
more natural communication with the machines. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;What is Disability?&lt;/b&gt;&lt;/h4&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;A disability is any condition of the body or mind
(impairment) that makes it more difficult for the person with the condition to
do certain activities (activity limitation) and interact with the world around
them (participation restrictions). According to WorldBank.org , out of One
billion people, 15% of the world’s population, experience some form of
disability, and disability prevalence is higher for developing countries.
One-fifth of the estimated global total, or between 110 million and 190 million
people, experience significant disabilities. Persons with disabilities are more
likely to experience adverse socioeconomic outcomes such as less education,
poorer health outcomes, lower levels of employment, and higher poverty rates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Dimensions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;According to the WHO, disability
has three dimensions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Impairment in a person’s body structure or
function, or mental functioning; examples of impairments include loss of a
limb, loss of vision or memory loss.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Activity limitation, such as difficulty seeing,
hearing, walking, or problem solving.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;3.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Participation restrictions in normal daily
activities, such as working, engaging in social and recreational activities,
and obtaining health care and preventive services.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Major types:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;Disability has many types which
affects the person:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Vision&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Movement&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Thinking&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Remembering&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Learning&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Communicating&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Hearing&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Mental health&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 1in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Social relationships&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;People with Visual
Disabilities&lt;/b&gt;&lt;/h3&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;Visual disability is one that impairs one’s vision or causes
loss of vision. The main reason of assistance of HCI in this field is the
interaction of disable people with computers. They can hardly read contexts of
computer with their naked eyes and it also depends upon the level of vision that
one find it difficult to see small icons and read small font of text. Normal eyeglasses
and better interface design is the best solution for this level of vision. But
for the people with extreme vision disability (who find trouble seeing large
amount of text, keys of keyboard), one way is the use of system that make
sounds when using multimedia. Sound multimedia helps visually disabled human to
navigate through the multimedia menu and text reader helps to read the written
message, screen readers such as JAWS, exist for blind people to navigate
through a website. They read the text of the screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;To perform a user&#39;s required task or activity, the user
firstly needs to input the required information via some input device such as
keyboard. But in case of visually impaired persons, they can not enter value or
input in a normal way so new keyboard have been established to help them enter
data into the system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&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/AVvXsEimUC6RZl2t_PBX4q5UKwyao6Jng8Y2aKYcgZJhyphenhyphenU4UBhe2rvIjlDmrR_Mn7vkNaObgOVb-o-c6qOkRJtpFDvThbsJfenMWaY0f97w8m4Lr3Bu0GBBcByggy1TF5ay1dcSc-qvpNP3-yt4/s2709/blogpost-header-v02.gif&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1161&quot; data-original-width=&quot;2709&quot; height=&quot;147&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimUC6RZl2t_PBX4q5UKwyao6Jng8Y2aKYcgZJhyphenhyphenU4UBhe2rvIjlDmrR_Mn7vkNaObgOVb-o-c6qOkRJtpFDvThbsJfenMWaY0f97w8m4Lr3Bu0GBBcByggy1TF5ay1dcSc-qvpNP3-yt4/w343-h147/blogpost-header-v02.gif&quot; width=&quot;343&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;As the input is provided to the system with the use of
input devise. Computer monitor is the component where the entered information
has been displayed to see or get the output. So to ease this, the screen
magnifiers have been developed to magnify the content of the screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; margin-bottom: .0001pt; margin: 0in; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;-webkit-text-stroke-width: 0px; background: white; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 15.75pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 15.75pt; orphans: 2; outline: 0px; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; vertical-align: baseline; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Such a system should also have an
option to zoom in and zoom out text feature or change of the text size so it becomes
convenient for vision impaired people to read the content and context.
Meanwhile, proper color contrast should be used (prominent between text,
background and graphics) for color blind people. In other words, system with screen
magnifier is better for such people but not for completely blind persons though
having said they need a system with screen reader.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-text-stroke-width: 0px; background: white; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 15.75pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 15.75pt; orphans: 2; outline: 0px; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; vertical-align: baseline; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h3 style=&quot;background: white; margin: 0in 0in 15.75pt; text-align: left; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;People with Hearing Disabilities&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;

&lt;p style=&quot;background: white; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Hearing
loss, deafness, hard of hearing, or hearing impairment, is defined as a partial
or total inability to hear.&lt;/span&gt; &lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Audio
commonly used for feedback and situational awareness.&lt;/span&gt; &lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Many such people with this disability cannot express themselves
clearly in public as they&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;cannot&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;use&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;speech&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;as&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;a&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;medium&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;of&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;communication,&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;yet&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;a&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;large&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;part&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;of the hearing population cannot communicate with the deaf because they
do not know sign language.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; vertical-align: baseline;&quot;&gt;&lt;/p&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/AVvXsEi8pGsk1PUjVBqUSdjBekPda-OyGGR_DvYz91OoANamZFDaRrJm_pJ9iLAqHuGM5mmAvujoN0nMezAtyt2lzAJGBuH7KzIk9XdTg4DMFBP0NkHxZoQEWAy4wZGovDqamDU96RWtoP6ENu4/s301/2.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;167&quot; data-original-width=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8pGsk1PUjVBqUSdjBekPda-OyGGR_DvYz91OoANamZFDaRrJm_pJ9iLAqHuGM5mmAvujoN0nMezAtyt2lzAJGBuH7KzIk9XdTg4DMFBP0NkHxZoQEWAy4wZGovDqamDU96RWtoP6ENu4/s0/2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Sign&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Language&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;is&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;the&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;main&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;communication&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;medium&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;of&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;the&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;hearing&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;impaired or deaf people. In order to assist such
people with hearing disability, a system is required which can help people with
hearing loss one way is &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;through auto
transcription. Increase use of captions in video can help their accessibility. In
most cases, websites or products have speech or video based clips. In this
scenerio, speech/audio clips should have transcript and videos should have
captions available. In this way, not only those with hearing impaired people
are benefitted but also other users (like if someone is new in that language or
one is travelling in a noisy environment i.e., bus, train so this can be
helpful for both). Introducing Gesture-based interfaces can be somehow better
for such people.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Having
said earlier sign language is the better medium of communication for such
people. Infering this knowledge, a new technology (which is still in its early
stages of innovation) is Sign Language Recognition and Synthesis. It uses
computer vision techniques to convert sign language videos into the spoken or
written form. A hearing disabled person can wear a glove having sensors
connected, and make gestures of sign language which will be converting to the
spoken or written form. In the same way sign language is synthesized with
gestures and can make a video visualisation though the system is not certain
completely.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h3 style=&quot;background: white; margin: 0in 0in 15.75pt; text-align: left; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;People with Physical Disabilities&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;

&lt;p style=&quot;background: white; margin-bottom: 15.75pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 15.75pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;A
physical disability is a physical condition that affects a person’s mobility,
physical capacity, stamina, or dexterity. This can include brain or spinal cord
injuries, multiple sclerosis, cerebral palsy, respiratory disorders, epilepsy,
hearing and visual impairments and more. People with physical disability have
limited control over their body.&lt;/span&gt; &lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Fine
mouse movements, keyboard usage or any precise motion is difficult for them.
For devising a system for such users,&lt;/span&gt; &lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;one
can think of speech input rather than keyboarding. Head pointer technology
(demo image is displayed below) can also be considered if motor control of
extremities is greatly impaired&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; margin-bottom: 15.75pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 15.75pt; vertical-align: baseline;&quot;&gt;&lt;/p&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/AVvXsEiuUEbzTkN_NqGBrt4dhfXRUAXIOUMwFsLg9Q-8_M0Gz-uZ-eeOXMpuqTHvuPpGj-vkwpwD4EiuIgudo7G5ncTNQcnO4Oe3DGMPc13Hjcul1ibP0Vuzf9RbqkrVUl0Tws12-OR9rpPDPVQ/s570/3.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;380&quot; data-original-width=&quot;570&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuUEbzTkN_NqGBrt4dhfXRUAXIOUMwFsLg9Q-8_M0Gz-uZ-eeOXMpuqTHvuPpGj-vkwpwD4EiuIgudo7G5ncTNQcnO4Oe3DGMPc13Hjcul1ibP0Vuzf9RbqkrVUl0Tws12-OR9rpPDPVQ/s320/3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;People with physical impairment have difficult precise
motion than other technology user do when using components of system. For this,
the system should be made least precision as possible. For example, buttons
with mild hit should be triggered and enhancing the button&#39;s hit area. In case
of interfaces, the designs should not be closed up too close as the probability
of hitting wrong target is greater in physically impaired people.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3 style=&quot;background: white; margin: 0in 0in 15.75pt; text-align: left; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;People with Speech Disabilities&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;

&lt;p style=&quot;background: white; margin-bottom: 15.75pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 15.75pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;People
who cannot speak or having difficulty in producing sounds fall under the class
of speech disability. Such people only have a lack in slow communication as the
medium of their communication is typing or writing. Spoken communication is far
more faster than typing/writing. Such people can also use sign language and its
technology to communicate. To make their communication more faster, common communication
auto text suggestion is recommended in system which is already available in
most of the system in this era. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; margin-bottom: 15.75pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 15.75pt; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Conclusion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;It is necessary to say this research blog/article has its
limitations. The first limitation is that the people has wide classification in
sense of disability and they are further divided into sub-classes so it was not
possible to mention all so a generic research based blog is made. HCI has
always been characterized by the successful fallout of technologies from one
application to other ones. Its technology getting innovated and improved
according to the better concept. We live in an imperfect world and hence we
should design products to be used by everyone with various different flaws,
backgrounds, disabilities, and experiences. Technical developments in HCI
allows us to be optimistic in forseeing the overcoming barriers to gain access
to computer and through them to technical networks.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;References&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;https://www.cdc.gov/ncbddd/disabilityandhealth/disability.html&quot;&gt;https://www.cdc.gov/ncbddd/disabilityandhealth/disability.html&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;https://medium.com/@kalyan.vejalla/hci-for-people-with-disabilities-979b6371467b&quot;&gt;https://medium.com/@kalyan.vejalla/hci-for-people-with-disabilities-979b6371467b&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;https://blog.google/products/android/braille-keyboard/&quot;&gt;https://blog.google/products/android/braille-keyboard/&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;https://www.disabled-world.com/disability/types/hearing/&quot;&gt;https://www.disabled-world.com/disability/types/hearing/&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;https://www.mdpi.com/2076-3417/9/18/3790/htm&quot;&gt;https://www.mdpi.com/2076-3417/9/18/3790/htm&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;http://parkinsonsdysarthria.weebly.com/aac-assessment.html&quot;&gt;http://parkinsonsdysarthria.weebly.com/aac-assessment.html&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;</description><link>https://zcodewriter.blogspot.com/2020/12/hci-for-people-with-disabilities.html</link><author>noreply@blogger.com (Abdul Samad)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimUC6RZl2t_PBX4q5UKwyao6Jng8Y2aKYcgZJhyphenhyphenU4UBhe2rvIjlDmrR_Mn7vkNaObgOVb-o-c6qOkRJtpFDvThbsJfenMWaY0f97w8m4Lr3Bu0GBBcByggy1TF5ay1dcSc-qvpNP3-yt4/s72-w343-h147-c/blogpost-header-v02.gif" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-2198024767105692943</guid><pubDate>Sun, 26 Jul 2020 15:19:00 +0000</pubDate><atom:updated>2023-04-20T22:33:00.331+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Explain Loops</category><category domain="http://www.blogger.com/atom/ns#">Loop Statements</category><category domain="http://www.blogger.com/atom/ns#">type of loops</category><category domain="http://www.blogger.com/atom/ns#">what is loops</category><title>Explain Loops</title><description>&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;What is Loop?&lt;/b&gt;&lt;/h2&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;A method or mechanism through which a statement or a set of statements of program can be executed again and again (repeat) that is called &lt;b&gt;loop. &lt;/b&gt;The body of loop can be executed again and again for a given number of times.&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Loop Statements&lt;/b&gt;&lt;/h2&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Loop statement are used to execute a statement or a set of statements again and again. Loops are the most important function of any programming language. Loop Statement is also known as&amp;nbsp;&lt;b&gt;iterative structure &lt;/b&gt;or&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;repetitive structure&lt;/b&gt;&lt;b&gt;. &lt;/b&gt;When we need to use loop we must need to tell the system starting number and ending number to execute yhe loop statement otherwise it may give error or infinite loop.&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Types of Loop Statements in C&lt;/b&gt;&lt;/h2&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;In C/C++ language there are three types of loop statements.&lt;br /&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&#39;while&#39; loop&lt;/li&gt;&lt;li&gt;&#39;do-while&#39; loop&lt;/li&gt;&lt;li&gt;&#39;for&#39; loop&lt;/li&gt;&lt;/ol&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Control Variable&lt;/b&gt;&lt;/h2&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Any variable which is used in loop statement to control the number execution or flow in the loop that is known as &lt;b&gt;loop control variable. &lt;/b&gt;Usually, we initialize variable at before the body of loop because it will be see where the loop statement will be execute first.&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&#39;while&#39; Loop&lt;/b&gt;&lt;/h2&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&#39;while&#39; loop is a conditional loop structure in programming language. It is used to execute a statement or a set of statements as long as the given condition remains true. This loop structure is used when the programmer does not know in advance the number of repetition of loop.&lt;br /&gt;
The general syntax of &#39;while&#39; structure is as follows:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (condition)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statement ;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; next_statement ;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;The syntax of &#39;while&#39; structure for a group of statements is as follows:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (condition)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; group of statements ;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;next_statement ;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Flowchart of &#39;while&#39; Loop&lt;/b&gt;&lt;/h2&gt;
Following is the flowchart of &#39;while&#39; loop structure:&lt;br /&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEfM3JnHZpDWRrpOaDTOO0j6rMasYQoGYCSRwsSpWhCMT_so4ArBlLSr05qzOBANCQgM6X6WNsvnwHXRzphV6GOutwsq4MjAwHLr6IVrkC4z_JtXieVT9y7CzqlkGvxUE_TauSnUV01ben4CveAt6jgLH34zx_nC0Poui3Cb-ScHomOgN8RXqQZk26/s1519/While-loop-diagram.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;While-loop-diagram&quot; border=&quot;0&quot; data-original-height=&quot;1519&quot; data-original-width=&quot;1200&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEfM3JnHZpDWRrpOaDTOO0j6rMasYQoGYCSRwsSpWhCMT_so4ArBlLSr05qzOBANCQgM6X6WNsvnwHXRzphV6GOutwsq4MjAwHLr6IVrkC4z_JtXieVT9y7CzqlkGvxUE_TauSnUV01ben4CveAt6jgLH34zx_nC0Poui3Cb-ScHomOgN8RXqQZk26/w253-h320/While-loop-diagram.png&quot; title=&quot;While-loop-diagram&quot; width=&quot;253&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;While loop diagram&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h2&gt;&lt;/div&gt;</description><link>https://zcodewriter.blogspot.com/2019/07/loop-mechanism-through-which-statement.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEfM3JnHZpDWRrpOaDTOO0j6rMasYQoGYCSRwsSpWhCMT_so4ArBlLSr05qzOBANCQgM6X6WNsvnwHXRzphV6GOutwsq4MjAwHLr6IVrkC4z_JtXieVT9y7CzqlkGvxUE_TauSnUV01ben4CveAt6jgLH34zx_nC0Poui3Cb-ScHomOgN8RXqQZk26/s72-w253-h320-c/While-loop-diagram.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-1861207823127382213</guid><pubDate>Sun, 26 Jul 2020 15:18:00 +0000</pubDate><atom:updated>2023-04-20T22:38:22.155+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">break statement</category><category domain="http://www.blogger.com/atom/ns#">Diagram of Switch Statement</category><category domain="http://www.blogger.com/atom/ns#">nested if in Switch</category><category domain="http://www.blogger.com/atom/ns#">structure of Swtich</category><category domain="http://www.blogger.com/atom/ns#">Stwith Statement</category><category domain="http://www.blogger.com/atom/ns#">Syntac of Switch Statement</category><category domain="http://www.blogger.com/atom/ns#">what is switch in c/c++</category><category domain="http://www.blogger.com/atom/ns#">what is switch in programming</category><title>The Switch Statement</title><description>&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;The switch Statement&lt;/b&gt;&lt;/h2&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;The &#39;switch&#39; statement is another selection structure in programming language. It can be used as alternative of if else if structure. We can used this when we have multiple option given and we need to select one option in the given.&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;For example, usually, this structure is used for menu selections.&lt;/div&gt;&lt;div&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;The &#39;switch&#39; structure contains only one expression at its beginning and multiple cases within its body. Each case contains a set of statements.&lt;br /&gt;
The general syntax of &#39;switch&#39; structure is as follows:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switch (expression)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case label 1 :&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set of statements-1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break ;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case label 2 :&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set of statements-2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break ;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---&amp;nbsp; &amp;nbsp; ---------------------&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---&amp;nbsp; &amp;nbsp; ---------------------&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set of statements-n&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Flowchart of &#39;switch&#39; Structure&lt;/b&gt;&lt;/h2&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;The flowchart of switch structure is as follows:&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiZTHFYaIcbD1X6xk759hQTL_ggCWMhOV4E9jiD2shCvnLEyQWWjePx2FnTsx0Ybpa5fYJRI5ausk2S5t04xReV1oDP5m9PPB5Vw0AySqlLVOthWpc-hwQuLdRUbaultaZ7-wvF7xwnNL_rveggBt2GjPczFNwxBpczkOTh3ir3P4ILtxvDj0KRBj3/s662/flowchart-switch-statement.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;flowchart-switch-statement&quot; border=&quot;0&quot; data-original-height=&quot;662&quot; data-original-width=&quot;460&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiZTHFYaIcbD1X6xk759hQTL_ggCWMhOV4E9jiD2shCvnLEyQWWjePx2FnTsx0Ybpa5fYJRI5ausk2S5t04xReV1oDP5m9PPB5Vw0AySqlLVOthWpc-hwQuLdRUbaultaZ7-wvF7xwnNL_rveggBt2GjPczFNwxBpczkOTh3ir3P4ILtxvDj0KRBj3/w278-h400/flowchart-switch-statement.jpg&quot; title=&quot;flowchart-switch-statement&quot; width=&quot;278&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Flowchart Switch Statement&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;The &#39;break Statement&lt;/b&gt;&lt;/h2&gt;
&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;The &#39;break&#39; statement is used to exit from the body of the &#39;switch&#39; structure. In the &#39;switch&#39; structure, the &#39;break&#39; statement is normally used at the end of statements in each case. If all &#39;break&#39; statements are omitted from the &#39;switch&#39; structure, then the statements of all remaining cases that come after the matched case are also executed.&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Difference Between &#39;switch&#39; and Nested &#39;if-else&#39; Structures&lt;/b&gt;&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;The &#39;switch&#39; Structure&lt;/b&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;It is easy to use and to understand.&lt;/li&gt;&lt;li&gt;It can be used for only simple menu selections.&lt;/li&gt;&lt;li&gt;It is fast because computer evaluates only one expression.&lt;/li&gt;
&lt;li&gt;it uses single expression which returns a single integer value or a single character.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Nested &#39;if-else&#39; Structure&lt;/b&gt;&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;It is complicated. It is difficult to use and to understand.&lt;/li&gt;
&lt;li&gt;It uses multiple expressions and each returns are true or false value.&lt;/li&gt;&lt;li&gt;It is very slow because computer evaluates more than one expire.&lt;/li&gt;
&lt;li&gt;It can used for complicated multiple choices.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><link>https://zcodewriter.blogspot.com/2019/07/the-switch-statement-switch-statement.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiZTHFYaIcbD1X6xk759hQTL_ggCWMhOV4E9jiD2shCvnLEyQWWjePx2FnTsx0Ybpa5fYJRI5ausk2S5t04xReV1oDP5m9PPB5Vw0AySqlLVOthWpc-hwQuLdRUbaultaZ7-wvF7xwnNL_rveggBt2GjPczFNwxBpczkOTh3ir3P4ILtxvDj0KRBj3/s72-w278-h400-c/flowchart-switch-statement.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-657233498545714568</guid><pubDate>Sat, 25 Jul 2020 05:34:00 +0000</pubDate><atom:updated>2020-07-25T10:39:44.147+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C/C++ program of median</category><category domain="http://www.blogger.com/atom/ns#">Find Median of Grouped And Ungrouped Data</category><category domain="http://www.blogger.com/atom/ns#">Median in even and odd data</category><category domain="http://www.blogger.com/atom/ns#">median in group datamedian inungroup data</category><category domain="http://www.blogger.com/atom/ns#">program of c++</category><title>Find Median of Grouped And UnGrouped Data</title><description>&lt;h2 style=&quot;text-align: left;&quot;&gt;What is Median ?&lt;/h2&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Median is a middle&amp;nbsp;value in the given sorted data. It may be ascending or descending That is called &lt;b&gt;Median&lt;/b&gt;.&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span&gt;Median In Un-Grouped Data&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;In Un-Grouped data we have more two categories.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;b&gt;i.&amp;nbsp;&lt;/b&gt; &amp;nbsp; &amp;nbsp;Even&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;ii.&lt;/b&gt;&amp;nbsp; &amp;nbsp; Odd&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Even&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; If our observed data is even, than we need to add both center values.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Formula:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWCYVAMV0gbKU8vmILR9iaQO-c4vPDL_HVbK5mDZ5uTCgqWdTPDfNnPirL0LwK6UoZaAIWY9_93MlrUBPy2i_blPuAAjTrYHVoEP_GhFaL237XAh2Rcez9EH7XKldHen56_mIf3EU6ajs/s862/Median+formula+in+ungrouped+Even+Data.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Median of Ungrouped Data Formula of Even Number&quot; border=&quot;0&quot; data-original-height=&quot;292&quot; data-original-width=&quot;862&quot; height=&quot;108&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWCYVAMV0gbKU8vmILR9iaQO-c4vPDL_HVbK5mDZ5uTCgqWdTPDfNnPirL0LwK6UoZaAIWY9_93MlrUBPy2i_blPuAAjTrYHVoEP_GhFaL237XAh2Rcez9EH7XKldHen56_mIf3EU6ajs/w320-h108/Median+formula+in+ungrouped+Even+Data.png&quot; title=&quot;Median of Ungrouped Data Formula of Even Number&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Median of Ungrouped Data Formula of Even Number&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;Odd&lt;/b&gt;&lt;/h3&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; If our Observed data is odd we simply put the middle Number on the Array.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Formula:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijqsd3I_OPfFFE9lFAlAtEvJArBK34T_IiJfj_AIXUJVYBqP4wRdy1O1cufFUMQM0TChugt8WX-tH65NeuRPyiok6seL73520h8HVrPKrH9-EHakSq-lwdk1OssnFBNtM550r6H6NumYw/s764/Median+of+Ungrouped+Data+Formula+of+ODD+Number.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Median of Ungrouped Data Formula of Even Number&quot; border=&quot;0&quot; data-original-height=&quot;328&quot; data-original-width=&quot;764&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijqsd3I_OPfFFE9lFAlAtEvJArBK34T_IiJfj_AIXUJVYBqP4wRdy1O1cufFUMQM0TChugt8WX-tH65NeuRPyiok6seL73520h8HVrPKrH9-EHakSq-lwdk1OssnFBNtM550r6H6NumYw/w320-h137/Median+of+Ungrouped+Data+Formula+of+ODD+Number.png&quot; title=&quot;Median of Ungrouped Data Formula of Even Number&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Median of Ungrouped Data Formula of Odd Number&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h2&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;b&gt;Median In Group Data&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; In this method we have given class intervals and frequency we simply solve this using formula.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Formula:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguTbmFMJApTOF6xjz28nHWCz54A86yrpsEIkPKWCbad43Azggw5rqBicqN5Nh912hIE2MqVeE660ly1NFJSSazgSuITUdlkh8HD4MNIm5t6lWFoyUKn8VFRCRRBY75RfohUU2D8-DTGlQ/s862/Formula+of+Median+in+grouped+Data.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Formula of Median in grouped Data&quot; border=&quot;0&quot; data-original-height=&quot;292&quot; data-original-width=&quot;862&quot; height=&quot;108&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguTbmFMJApTOF6xjz28nHWCz54A86yrpsEIkPKWCbad43Azggw5rqBicqN5Nh912hIE2MqVeE660ly1NFJSSazgSuITUdlkh8HD4MNIm5t6lWFoyUKn8VFRCRRBY75RfohUU2D8-DTGlQ/w320-h108/Formula+of+Median+in+grouped+Data.png&quot; title=&quot;Formula of Median in grouped Data&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Formula of Median in grouped Data&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;b&gt;Median of Un-Group Data Code / Program in C /C++&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;div&gt;&lt;div&gt;#include&amp;lt;iostream&amp;gt;&lt;/div&gt;&lt;div&gt;using namespace std;&lt;/div&gt;&lt;div&gt;int main(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;int num;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;float x[10],sum=0,mean,temp[10],Oloc,Eloc;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Enter Total Number &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cin&amp;gt;&amp;gt;num;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;X&quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cin&amp;gt;&amp;gt;x[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Given Data is: &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;x[i]&amp;lt;&amp;lt;&quot;, &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;for(int j=i+1;j&amp;lt;num;j++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if(x[i]&amp;gt;x[j]){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;temp[i]=x[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;x[i]=x[j];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;x[j]=temp[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&quot; Arange : &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;x[i]&amp;lt;&amp;lt;&quot;, &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if(num % 2 == 1){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Oloc=x[num/2];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Median of Odd Data is &quot;&amp;lt;&amp;lt;Oloc;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;else{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Eloc=(x[num/2-1]+x[num/2])/2;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Median of Even Data is &quot;&amp;lt;&amp;lt;Eloc;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return 0;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Input&lt;/h4&gt;&lt;div&gt;&lt;b&gt;Odd Data&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;Enter Total Number 9&lt;/div&gt;&lt;div&gt;X&lt;/div&gt;&lt;div&gt;5&lt;/div&gt;&lt;div&gt;7&lt;/div&gt;&lt;div&gt;9&lt;/div&gt;&lt;div&gt;8&lt;/div&gt;&lt;div&gt;3&lt;/div&gt;&lt;div&gt;2&lt;/div&gt;&lt;div&gt;1&lt;/div&gt;&lt;div&gt;6&lt;/div&gt;&lt;div&gt;4&lt;/div&gt;&lt;div&gt;&amp;nbsp;Given Data is: 5, 7, 9, 8, 3, 2, 1, 6, 4,&lt;/div&gt;&lt;div&gt;&amp;nbsp;Arange : 1, 2, 3, 4, 5, 6, 7, 8, 9,&lt;/div&gt;&lt;div&gt;&amp;nbsp;Median of Odd Data is 5&lt;/div&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Output&lt;/h4&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/AVvXsEiw5BH_qwVpouNt_-yThULPZ6KPZuSCRz5CA71Hdp57dmfTJxcIBIxx4IaFDmiibSvQ8ReoQy6XRYChypOCqRnq-ZQkw-9McM6cux_hhJDnwGHk8ATspS2W6i2Zdkw1SFt5X17R4aEKn44/s420/Output+of+median+in+ungrouped+Odd+data.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;238&quot; data-original-width=&quot;420&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw5BH_qwVpouNt_-yThULPZ6KPZuSCRz5CA71Hdp57dmfTJxcIBIxx4IaFDmiibSvQ8ReoQy6XRYChypOCqRnq-ZQkw-9McM6cux_hhJDnwGHk8ATspS2W6i2Zdkw1SFt5X17R4aEKn44/s320/Output+of+median+in+ungrouped+Odd+data.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h4&gt;Input&lt;/h4&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Even Data&lt;/h4&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Enter Total Number 8&lt;/div&gt;&lt;div&gt;X&lt;/div&gt;&lt;div&gt;5&lt;/div&gt;&lt;div&gt;1&lt;/div&gt;&lt;div&gt;2&lt;/div&gt;&lt;div&gt;9&lt;/div&gt;&lt;div&gt;7&lt;/div&gt;&lt;div&gt;3&lt;/div&gt;&lt;div&gt;2&lt;/div&gt;&lt;div&gt;4&lt;/div&gt;&lt;div&gt;&amp;nbsp;Given Data is: 5, 1, 2, 9, 7, 3, 2, 4,&lt;/div&gt;&lt;div&gt;&amp;nbsp;Arange : 1, 2, 2, 3, 4, 5, 7, 9,&lt;/div&gt;&lt;div&gt;&amp;nbsp;Median of Even Data is 3.5&lt;/div&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Output&lt;/h4&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/AVvXsEhl76dOT4VQnuvR0KmE-Jg0AToF1nkArNZTIIlZSAokY_JqnN41uz-LK2ZXfZDu4ZCXolLbTEyNkxIJnBeBVjriw3bOqH9zrU-rCFo1W1sUcrWqSUvHUoTJzBK-CM2ynHC0qYkWDoPv4t0/s364/Output+of+median+in+ungrouped+data.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;222&quot; data-original-width=&quot;364&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl76dOT4VQnuvR0KmE-Jg0AToF1nkArNZTIIlZSAokY_JqnN41uz-LK2ZXfZDu4ZCXolLbTEyNkxIJnBeBVjriw3bOqH9zrU-rCFo1W1sUcrWqSUvHUoTJzBK-CM2ynHC0qYkWDoPv4t0/s320/Output+of+median+in+ungrouped+data.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;&lt;b&gt;Median of Group Data Code / Program in C /C++&lt;/b&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;#include&amp;lt;iostream&amp;gt;&lt;/div&gt;&lt;div&gt;using namespace std;&lt;/div&gt;&lt;div&gt;int main(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;float num,sumf=0,median=0,sumCF=0;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;float start[10],end[10],f[10];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; \t\t &amp;lt;&amp;lt;----- Median Of Grouped Data -----&amp;gt;&amp;gt; &quot;&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Enter Total Number &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cin&amp;gt;&amp;gt;num;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Enter Class Intrvals&quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;i+1&amp;lt;&amp;lt;&quot;- Range Start &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cin&amp;gt;&amp;gt;start[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;i+1&amp;lt;&amp;lt;&quot;- Range End &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cin&amp;gt;&amp;gt;end[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;i+1&amp;lt;&amp;lt;&quot;- Enter Frequency of this Range &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cin&amp;gt;&amp;gt;f[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;int CF[10],loc,index;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;float CBStart[10],CBEnd[10];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;sumf=sumf+f[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;CF[i]=sumf;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;CBStart[i]=start[i]-0.5;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;CBEnd[i]=end[i]+0.5;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;loc=sumf/2;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;if(CF[i]&amp;gt;=loc){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;index=i;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;i=num;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Class Interval&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Frequency&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Class&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Boundaries&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Cumulative Frequency&quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;start[i]&amp;lt;&amp;lt;&quot; - &quot;&amp;lt;&amp;lt;end[i]&amp;lt;&amp;lt;&quot;\t\t&quot;&amp;lt;&amp;lt;f[i]&amp;lt;&amp;lt;&quot;\t\t&quot;&amp;lt;&amp;lt;CBStart[i]&amp;lt;&amp;lt;&quot; - &quot;&amp;lt;&amp;lt;CBEnd[i]&amp;lt;&amp;lt;&quot;\t\t\t&quot;&amp;lt;&amp;lt;CF[i]&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;float l,h,f1,c;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;l=CBStart[index];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;h=(end[index]-start[index])+1;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;f1=f[index];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;c=CF[index-1];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Lower Class Boundary (l) &quot;&amp;lt;&amp;lt;l&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Hight (h) &quot;&amp;lt;&amp;lt;h&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Frequency oF Location (f) &quot;&amp;lt;&amp;lt;f1&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Sum of Frequency (Sum(f) &quot;&amp;lt;&amp;lt;sumf&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; C (C) &quot;&amp;lt;&amp;lt;c&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;median=(l+(h/f1)*((sumf/2)-c));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Median = l+(f/n)*((sum(F)/2)-c) = &quot;&amp;lt;&amp;lt;median;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return 0;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Input&lt;/b&gt;&lt;/h4&gt;&lt;div&gt;&lt;div&gt;Enter Total Number 5&lt;/div&gt;&lt;div&gt;Enter Class Intrvals&lt;/div&gt;&lt;div&gt;1- Range Start 2&lt;/div&gt;&lt;div&gt;1- Range End 4&lt;/div&gt;&lt;div&gt;2- Range Start 5&lt;/div&gt;&lt;div&gt;2- Range End 7&lt;/div&gt;&lt;div&gt;3- Range Start 8&lt;/div&gt;&lt;div&gt;3- Range End 10&lt;/div&gt;&lt;div&gt;4- Range Start 11&lt;/div&gt;&lt;div&gt;4- Range End 13&lt;/div&gt;&lt;div&gt;5- Range Start 14&lt;/div&gt;&lt;div&gt;5- Range End 16&lt;/div&gt;&lt;div&gt;1- Enter Frequency of this Range 6&lt;/div&gt;&lt;div&gt;2- Enter Frequency of this Range 3&lt;/div&gt;&lt;div&gt;3- Enter Frequency of this Range 9&lt;/div&gt;&lt;div&gt;4- Enter Frequency of this Range 10&lt;/div&gt;&lt;div&gt;5- Enter Frequency of this Range 12&lt;/div&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Output&lt;/h4&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/AVvXsEioYzOHuKqrAI4wpPpmEiatqIYUSOePCPn2omD1IehnZRpsa1ei0YIs3AGwuHlXet0oGewXdPUPAYSA5sDfV1KHW9xKRPwn5FtjfoTLhqo8zSqEnJ15RMksMyyLdV7Cva4JJArkWSb682M/s648/Output+of+median+in+grouped+data.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;594&quot; data-original-width=&quot;648&quot; height=&quot;458&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioYzOHuKqrAI4wpPpmEiatqIYUSOePCPn2omD1IehnZRpsa1ei0YIs3AGwuHlXet0oGewXdPUPAYSA5sDfV1KHW9xKRPwn5FtjfoTLhqo8zSqEnJ15RMksMyyLdV7Cva4JJArkWSb682M/w500-h458/Output+of+median+in+grouped+data.png&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;&lt;br /&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description><link>https://zcodewriter.blogspot.com/2020/07/find-median-of-grouped-and-ungrouped.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWCYVAMV0gbKU8vmILR9iaQO-c4vPDL_HVbK5mDZ5uTCgqWdTPDfNnPirL0LwK6UoZaAIWY9_93MlrUBPy2i_blPuAAjTrYHVoEP_GhFaL237XAh2Rcez9EH7XKldHen56_mIf3EU6ajs/s72-w320-h108-c/Median+formula+in+ungrouped+Even+Data.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-275313462327592796</guid><pubDate>Thu, 16 Jul 2020 04:46:00 +0000</pubDate><atom:updated>2020-07-16T10:21:53.829+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Find Mean in group and ungroup data</category><category domain="http://www.blogger.com/atom/ns#">Find Mean in UnGroup Data in C\ C++ Program</category><category domain="http://www.blogger.com/atom/ns#">how to find mean</category><category domain="http://www.blogger.com/atom/ns#">mean code in C/C++</category><category domain="http://www.blogger.com/atom/ns#">Mean Formula</category><category domain="http://www.blogger.com/atom/ns#">program in C / C++</category><category domain="http://www.blogger.com/atom/ns#">Program in C/C++</category><category domain="http://www.blogger.com/atom/ns#">what is  mean</category><title>Find Mean in UnGroup Data in C\ C++ Program</title><description>&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;times&quot;&gt;What is Mean ?&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;font face=&quot;times&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Mean is define as the sum of all observed data divided by total number&lt;/font&gt;&lt;span style=&quot;font-family: times;&quot;&gt;. The mean or arithmetic mean is average of group measure.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: times;&quot;&gt;It is also called&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: times;&quot;&gt;Arithmetic&amp;nbsp;Mean.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;&lt;font face=&quot;times&quot;&gt;Mean in Ungroup Data&lt;/font&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;In Ungroup Data, we have only given data X that means we solve this Array of data. &lt;/span&gt;&lt;b style=&quot;font-family: times;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-family: times;&quot;&gt;Formula of&amp;nbsp; Mean on in group Data:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;times&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&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/AVvXsEghSZ7ZmnlKPMyP_C3CGDVkInbuPLgYoywOfOxD76Cd1HBFMSv3bWPR8VZfGDQ89GrJ1icgonL3PAqZ_AkZfMILfQJyP0amhyphenhyphen9wzeScRlfnfWLEdfsYFjl_fFxcCFdVLP-uCMDpJLQPeQo/s1372/Arithmetic+Mean+Formula.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Arithmetic Mean Formula of ungroup Data&quot; border=&quot;0&quot; data-original-height=&quot;566&quot; data-original-width=&quot;1372&quot; height=&quot;85&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghSZ7ZmnlKPMyP_C3CGDVkInbuPLgYoywOfOxD76Cd1HBFMSv3bWPR8VZfGDQ89GrJ1icgonL3PAqZ_AkZfMILfQJyP0amhyphenhyphen9wzeScRlfnfWLEdfsYFjl_fFxcCFdVLP-uCMDpJLQPeQo/w205-h85/Arithmetic+Mean+Formula.png&quot; title=&quot;Arithmetic Mean Formula of ungroup Data&quot; width=&quot;205&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Here n is the total number of X.&lt;/div&gt;&lt;font face=&quot;times&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;times&quot;&gt;&lt;b&gt;Program in C / C++&lt;/b&gt;&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;font face=&quot;times&quot;&gt;&lt;div&gt;#include&amp;lt;iostream&amp;gt;&lt;/div&gt;&lt;div&gt;using namespace std;&lt;/div&gt;&lt;div&gt;int main(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;float x[10],num,sum=0,mean;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Enter Total Number &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cin&amp;gt;&amp;gt;num;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;X&quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cin&amp;gt;&amp;gt;x[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;sum=sum+x[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Sum: &quot;&amp;lt;&amp;lt;sum&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;mean=sum/num;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Mean = Sum(x)/n = &quot;&amp;lt;&amp;lt;mean;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return 0;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;Input:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;X: &lt;/span&gt;5, 10, 15, 20, 25&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;Output:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTMrk3WiznYpo1dnfPWMw7s4V-_F3Agq2gu6Xv9NJAnlzGCW7twQkIwjaxlMRdAS2RMI1sA7krKE0Zc4xBcnNtAvNlc0nBcIRIso29ZO6l5SkS_nFWOry1W1DdPtkBWv-Xmk_YQsT2aGU/s482/Arithmetic+Mean+in+C+C%252B%252B.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Arithmetic Mean in UnGroup Data&quot; border=&quot;0&quot; data-original-height=&quot;268&quot; data-original-width=&quot;482&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTMrk3WiznYpo1dnfPWMw7s4V-_F3Agq2gu6Xv9NJAnlzGCW7twQkIwjaxlMRdAS2RMI1sA7krKE0Zc4xBcnNtAvNlc0nBcIRIso29ZO6l5SkS_nFWOry1W1DdPtkBWv-Xmk_YQsT2aGU/w400-h223/Arithmetic+Mean+in+C+C%252B%252B.png&quot; title=&quot;Arithmetic Mean in UnGroup Data&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;h2 style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;font face=&quot;times&quot;&gt;Mean in Group Data&lt;/font&gt;&lt;/h2&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-weight: 400;&quot;&gt;&lt;font face=&quot;times&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;font-family: times;&quot;&gt;In Group Data, we have given data Class interval and frequency (f). Formula of mean group data.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-weight: 400;&quot;&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/AVvXsEjIMWENzLU9wEnV-sywPbuVzV83sMBCDJ33UYW_AXv7kZIy780dvDbER7yMnYBP07Y5FIUIlI2qxoMXCkpA_gXjWPdlXRM0MEfzboAZcJKX_e9sWYwJd4uR8kIoYf4tJNXgnbGmV5-Tje8/s1264/Arithemetic+mean+Formula+of+Group+Data.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Arithmetic Mean Formula of group Data&quot; border=&quot;0&quot; data-original-height=&quot;414&quot; data-original-width=&quot;1264&quot; height=&quot;105&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIMWENzLU9wEnV-sywPbuVzV83sMBCDJ33UYW_AXv7kZIy780dvDbER7yMnYBP07Y5FIUIlI2qxoMXCkpA_gXjWPdlXRM0MEfzboAZcJKX_e9sWYwJd4uR8kIoYf4tJNXgnbGmV5-Tje8/w320-h105/Arithemetic+mean+Formula+of+Group+Data.png&quot; title=&quot;Arithmetic Mean Formula of group Data&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;b&gt;Step 1:&lt;/b&gt; Find X of every index.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;X= lover Class interval + Higher Class interval /2&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;b&gt;Step 2: &lt;/b&gt;find F*X.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;we simply multiply every index f*x and Sum of all F*X.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;b&gt;Step 3: &lt;/b&gt;Sum of F.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;Program in C /C++&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;#include&amp;lt;iostream&amp;gt;&lt;/div&gt;&lt;div&gt;using namespace std;&lt;/div&gt;&lt;div&gt;int main(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;float x[10],fx[10],num,sumf=0,sumfx=0,mean;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;float start[10],end[10],f[10];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot; \t\t &amp;lt;&amp;lt;----- Mean Of Group Data -----&amp;gt;&amp;gt; &quot;&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Enter Total Number &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cin&amp;gt;&amp;gt;num;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Enter Class Intrvals&quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;i+1&amp;lt;&amp;lt;&quot;- Range Start &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cin&amp;gt;&amp;gt;start[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;i+1&amp;lt;&amp;lt;&quot;- Range End &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cin&amp;gt;&amp;gt;end[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;i+1&amp;lt;&amp;lt;&quot;- Enter Frequency of this Range &quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cin&amp;gt;&amp;gt;f[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;sumf=sumf+f[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;x[i]=(start[i]+end[i])/2;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;fx[i]=f[i]*x[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;sumfx=sumfx+fx[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Class Interval&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Frequency\tX\tF*X&quot;&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cout&amp;lt;&amp;lt;start[i]&amp;lt;&amp;lt;&quot; - &quot;&amp;lt;&amp;lt;end[i]&amp;lt;&amp;lt;&quot;\t\t&quot;&amp;lt;&amp;lt;f[i]&amp;lt;&amp;lt;&quot;\t\t&quot;&amp;lt;&amp;lt;x[i]&amp;lt;&amp;lt;&quot;\t&quot;&amp;lt;&amp;lt;fx[i]&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Sum(F)&amp;nbsp; = &quot;&amp;lt;&amp;lt;sumf&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Sum(FX) = &quot;&amp;lt;&amp;lt;sumfx&amp;lt;&amp;lt;endl;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;mean=sumfx/sumf;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;cout&amp;lt;&amp;lt;&quot;Mean = Sum(fx)/Sum(f) = &quot;&amp;lt;&amp;lt;mean;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return 0;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Input:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Class Interval&amp;nbsp; |&amp;nbsp; Frequemcy&lt;/div&gt;&lt;div&gt;5-10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;8&lt;/span&gt;&lt;/div&gt;&lt;div&gt;11-15&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; 16&lt;/span&gt;&lt;/div&gt;&lt;div&gt;16-20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;21-25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; 5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;26-30&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&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/AVvXsEjTlCBGk0c0o6QD5xMxkRigYJcNwS7A1xrJXMORjBZgzLUY9K3ziq9ip8fBUYVbHbif0hGq275M-RgGkS8lsupTh_TzlRy9sgfXb5msn6ydHXXCOBlv4Qi1Uehh25gXINUum-2Md_Bib8w/s512/Arithmetic+Mean+Group+data+in+C+C%252B%252B.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Arithmetic Mean in Group Data&quot; border=&quot;0&quot; data-original-height=&quot;492&quot; data-original-width=&quot;512&quot; height=&quot;385&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTlCBGk0c0o6QD5xMxkRigYJcNwS7A1xrJXMORjBZgzLUY9K3ziq9ip8fBUYVbHbif0hGq275M-RgGkS8lsupTh_TzlRy9sgfXb5msn6ydHXXCOBlv4Qi1Uehh25gXINUum-2Md_Bib8w/w400-h385/Arithmetic+Mean+Group+data+in+C+C%252B%252B.png&quot; title=&quot;Arithmetic Mean in Group Data&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;</description><link>https://zcodewriter.blogspot.com/2020/07/find-mean-in-ungroup-data-in-c-c-program.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghSZ7ZmnlKPMyP_C3CGDVkInbuPLgYoywOfOxD76Cd1HBFMSv3bWPR8VZfGDQ89GrJ1icgonL3PAqZ_AkZfMILfQJyP0amhyphenhyphen9wzeScRlfnfWLEdfsYFjl_fFxcCFdVLP-uCMDpJLQPeQo/s72-w205-h85-c/Arithmetic+Mean+Formula.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-5449416199639699853</guid><pubDate>Sun, 12 Jul 2020 17:11:00 +0000</pubDate><atom:updated>2023-04-20T22:27:42.537+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Schduling Algorithm</category><category domain="http://www.blogger.com/atom/ns#">Shortest Job First</category><category domain="http://www.blogger.com/atom/ns#">Shortest Job First (SJF) in Operating System</category><category domain="http://www.blogger.com/atom/ns#">SJF in OS</category><title>Shortest Job First (SJF) in Operating System</title><description>&lt;div&gt;&lt;b&gt;&lt;font face=&quot;trebuchet&quot; size=&quot;5&quot;&gt;Shortest Job First (SJF) in Operating System&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Shortest Job First (SJF) is a scheduling algorithm in which the process having the smallest execution time it will be execute first and the next process will execute after previous smaller process.&amp;nbsp;This scheduling method can be preemptive or non-preemptive.&amp;nbsp;This method reduces the average waiting time for other processes awaiting execution.&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;b&gt;&lt;font size=&quot;5&quot;&gt;Program in C / C++&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;#include&amp;lt;iostream&amp;gt;&lt;/div&gt;&lt;div&gt;#include&amp;lt;conio.h&amp;gt;&lt;/div&gt;&lt;div&gt;int main(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;int arr[5],sort[5],num,temp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;system(&quot;COLOR F9&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;printf(&quot; ENTER a Integer NUMBER &quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;scanf(&quot;%i&quot;,&amp;amp;num);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;printf(&quot; Your Job Number &quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;scanf(&quot;%i&quot;,&amp;amp;arr[i]);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;sort[i]=arr[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp;for(int j=i+1;j&amp;lt;num;j++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if(sort[j]&amp;lt;sort[i]){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;temp=sort[i];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;sort[i]=sort[j];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;sort[j]=temp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for(int i=0;i&amp;lt;num;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;printf(&quot; Inputs&amp;nbsp; %i&amp;nbsp; Priority&amp;nbsp; %i&amp;nbsp; Job&amp;nbsp; %i \n&quot;,arr[i],i+1,sort[i]);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;getch();&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6rF_iwgAPdL5tYBLsJmiF0M-xvSpjxoHUk0cKQbUu21sWDdwCYqUcugiycc02r68Gvr3k1kEtp0RdsVOWKl-19Sj3-Mbf_jLTwdvzqVA5F-5SZ-qramVIl4gtwzK3UTIdnC_zgn5SZljIpT6KyH4MjUvjCo8jBEcvNwsP_LcOf8Qb7CLvfyvTSe5D/s429/Shortest-Job-First-(SJF).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Shortest-Job-First-(SJF)&quot; border=&quot;0&quot; data-original-height=&quot;235&quot; data-original-width=&quot;429&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6rF_iwgAPdL5tYBLsJmiF0M-xvSpjxoHUk0cKQbUu21sWDdwCYqUcugiycc02r68Gvr3k1kEtp0RdsVOWKl-19Sj3-Mbf_jLTwdvzqVA5F-5SZ-qramVIl4gtwzK3UTIdnC_zgn5SZljIpT6KyH4MjUvjCo8jBEcvNwsP_LcOf8Qb7CLvfyvTSe5D/w400-h219/Shortest-Job-First-(SJF).png&quot; title=&quot;Shortest-Job-First-(SJF)&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Shortest Job First (SJF)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</description><link>https://zcodewriter.blogspot.com/2020/07/shortest-job-first-sjf-in-operating.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6rF_iwgAPdL5tYBLsJmiF0M-xvSpjxoHUk0cKQbUu21sWDdwCYqUcugiycc02r68Gvr3k1kEtp0RdsVOWKl-19Sj3-Mbf_jLTwdvzqVA5F-5SZ-qramVIl4gtwzK3UTIdnC_zgn5SZljIpT6KyH4MjUvjCo8jBEcvNwsP_LcOf8Qb7CLvfyvTSe5D/s72-w400-h219-c/Shortest-Job-First-(SJF).png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-4386945718755348791</guid><pubDate>Fri, 10 Jul 2020 18:12:00 +0000</pubDate><atom:updated>2023-04-20T22:30:23.606+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">FCFS</category><category domain="http://www.blogger.com/atom/ns#">FCFS Code in C</category><category domain="http://www.blogger.com/atom/ns#">FIFO</category><category domain="http://www.blogger.com/atom/ns#">FIFO code in C</category><category domain="http://www.blogger.com/atom/ns#">First come First Serve</category><category domain="http://www.blogger.com/atom/ns#">First In First Out</category><title>First Come First Serve (FCFS) in Operating System</title><description>&lt;b&gt;&lt;font face=&quot;trebuchet&quot; size=&quot;5&quot;&gt;First Come First Serve (FCFS) in Operating System&lt;/font&gt;&lt;/b&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;First Come First Served (FCFS) is a process scheduling algorithm in operating system (OS) that automatically execute processes and queued data by their sequence. In this Algorithm which process comes first to the queue is execute first, the next process will execute when the previous process complete their execution. FCFS is also known as (FIFO) First in First Out and First Come First Choice (FCFC).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;5&quot;&gt;Program in C / C++&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;div&gt;int nxt=0,arry[5],c=0,d;&lt;/div&gt;&lt;div&gt;void menu();&lt;/div&gt;&lt;div&gt;void Insert();&lt;/div&gt;&lt;div&gt;void Delete();&lt;/div&gt;&lt;div&gt;void Display();&lt;/div&gt;&lt;div&gt;int main(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;int ch=1;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;menu();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;while(ch!=0){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;printf(&quot; Enter Your Choice &quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;scanf(&quot;%i&quot;,&amp;amp;ch);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;switch(ch){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;case 0:&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;printf(&quot; Exit ........ \n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;break;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;case 1:&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;Insert();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;break;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;case 2:&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;Delete();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;break;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;case 3:&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;Display();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;break;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;default:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;printf(&quot; Invalid Choice \n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void menu(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;printf(&quot;--------- Menu --------\n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;printf(&quot; Press 1 for Insert\n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;printf(&quot; Press 2 for Delete\n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;printf(&quot; Press 3 for Display\n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;printf(&quot; Press 0 for Exit\n\n&quot;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void Insert(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if(c&amp;lt;5){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;c++;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;printf(&quot; Enter data &quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;scanf(&quot;%i&quot;,&amp;amp;d);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;arry[nxt]=d;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;nxt++;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;else{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;printf(&quot; Que is Full \n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void Delete(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if(c&amp;gt;0){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;c--;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;for(int i=0;i&amp;lt;nxt;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;arry[i]=arry[i+1];&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;nxt--;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;printf(&quot;\n Deletion Have Done&amp;nbsp; \n\n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;else{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;printf(&quot; Empty ...! \n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void Display(){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if(c&amp;gt;0){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;for(int i=0;i&amp;lt;nxt;i++){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;printf(&quot; Priority %d&quot;,i+1);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;printf(&quot; Job %d \n&quot;,arry[i]);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;else{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;printf(&quot; Empty ...! \n&quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt; }&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1ArfXU_6hYSN6y9-OAWLrqPSoQRas2ZzldtSlp_4aWuDRDqcDAEjyMp6gDpwLm0DenwRNaKLKtk6Rxm14oxYiDWqizpxm4dpvRReOQguHh06u2HopRjVr3KmSNtB7JHDhursOncPlr9snzLeeEbBIOlhB0AHyDRvFo2YjLH9yW30YSLzo1-7UNf5Z/s672/First-Come-First-Serve(FCFS).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;First-Come-First-Serve-(FCFS)&quot; border=&quot;0&quot; data-original-height=&quot;444&quot; data-original-width=&quot;672&quot; height=&quot;264&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1ArfXU_6hYSN6y9-OAWLrqPSoQRas2ZzldtSlp_4aWuDRDqcDAEjyMp6gDpwLm0DenwRNaKLKtk6Rxm14oxYiDWqizpxm4dpvRReOQguHh06u2HopRjVr3KmSNtB7JHDhursOncPlr9snzLeeEbBIOlhB0AHyDRvFo2YjLH9yW30YSLzo1-7UNf5Z/w400-h264/First-Come-First-Serve(FCFS).png&quot; title=&quot;First-Come-First-Serve-(FCFS)&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;First Come First Serve (FCFS)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description><link>https://zcodewriter.blogspot.com/2020/07/first-come-first-serve-fcfs-in.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1ArfXU_6hYSN6y9-OAWLrqPSoQRas2ZzldtSlp_4aWuDRDqcDAEjyMp6gDpwLm0DenwRNaKLKtk6Rxm14oxYiDWqizpxm4dpvRReOQguHh06u2HopRjVr3KmSNtB7JHDhursOncPlr9snzLeeEbBIOlhB0AHyDRvFo2YjLH9yW30YSLzo1-7UNf5Z/s72-w400-h264-c/First-Come-First-Serve(FCFS).png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-5827126340469092636</guid><pubDate>Fri, 01 May 2020 19:28:00 +0000</pubDate><atom:updated>2020-05-02T00:30:34.233+05:00</atom:updated><title>Define Bridge ...!</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A bridge is a type of computer network device that provides interconnection with other bridge networks that use the same protocol. Bridge devices work at the data link layer of the Open System Interconnect (OSI) model, connecting two different networks together and providing communication between them. Bridges are similar to repeaters and hubs in that they broadcast data to every node. However, bridges maintain the media access control (MAC) address table as soon as they discover new segments, so subsequent transmissions are sent to only to the desired recipient. Bridges are also known as Layer 2 switches.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;A bridge uses a database to ascertain where to pass, transmit or discard the data frame.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If the frame received by the bridge is meant for a segment that resides on the same host network, it will pass the frame to that node and the receiving bridge will then discard it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If the bridge receives a frame whose node MAC address is of the connected network, it will forward the frame toward it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In computer networking, a bridge serves the same purpose. It connects two or more local area networks (LANs) together. The cars, or the data in this case, use the bridge to travel to and from different areas of the network. The device is similar to a router, but it does not analyze the data being forwarded. Because of this, bridges are typically fast at transferring data, but not as versatile as a router. For example, a bridge cannot be used as a firewall like most routers can. A bridge can transfer data between different protocols (i.e. a Token Ring and Ethernet network) and operates at the &quot;data link layer&quot; or level 2 of the OSI (Open Systems Interconnection) networking reference model.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;A bridge operates at data link layer. A bridge is a repeater, with add on the functionality of filtering content by reading the MAC addresses of source and destination. It is also used for interconnecting two LANs working on the same protocol. It has a single input and single output port, thus making it a 2 port device.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;A network bridge is a computer networking device that creates a single aggregate network from multiple communication networks or network segments. This function is called network bridging.[1] Bridging is distinct from routing. Routing allows multiple networks to communicate independently and yet remain separate, whereas bridging connects two separate networks as if they were a single network.[2] In the OSI model, bridging is performed in the data link layer (layer 2).[3] If one or more segments of the bridged network are wireless, the device is known as a wireless bridge.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The main types of network bridging technologies are simple bridging, multiport bridging, and learning or transparent bridging&lt;/span&gt;&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2020/05/a-bridge-is-type-of-computer-network.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-7047452390891369011</guid><pubDate>Sat, 18 Apr 2020 22:06:00 +0000</pubDate><atom:updated>2020-04-19T03:06:08.134+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">prim number code in c</category><category domain="http://www.blogger.com/atom/ns#">prime code</category><category domain="http://www.blogger.com/atom/ns#">prime number</category><category domain="http://www.blogger.com/atom/ns#">prime number code</category><category domain="http://www.blogger.com/atom/ns#">prime number code in c++</category><category domain="http://www.blogger.com/atom/ns#">prime number definition</category><category domain="http://www.blogger.com/atom/ns#">prime number program</category><category domain="http://www.blogger.com/atom/ns#">Prime Number Program In C / C++</category><title>Prime Number Program In C / C++</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Prime Number Program In C / C++&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A whole Number which is greater than 1 and which is divider of itself. For example 13 divided only 13,17 divided only 17 and series is 2,3,5,7,11,13,17, ...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Prime Code in C&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;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 num,i,j;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int temp=0;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot; Enter Any integer Number &quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scanf(&quot;%d&quot;,&amp;amp;num);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(num&amp;lt;2){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf(&quot; Number Should be greater than 1 \n&quot;);&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;for(i=2;i&amp;lt;=num;i++){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for(j=2;j&amp;lt;i;j++){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if(i%j==0){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;temp=1;&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(temp==0){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;printf(&quot;\n %d&quot;,i);&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;temp=0;&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;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;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Prime Number Code in C++&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&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;int num,i,j;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int temp=0;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter Any integer Number &quot;;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;num;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(num&amp;lt;2){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Number Should be greater than 1 \n&quot;;&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;for(i=2;i&amp;lt;=num;i++){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for(j=2;j&amp;lt;i;j++){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if(i%j==0){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;temp=1;&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(temp==0){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\n&quot;&amp;lt;&amp;lt;i;&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;temp=0;&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;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;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2020/04/prime-number-program-in-c-c.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-6682331913852256503</guid><pubDate>Sat, 21 Dec 2019 13:47:00 +0000</pubDate><atom:updated>2019-12-21T18:58:13.127+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">deletion code in c++</category><category domain="http://www.blogger.com/atom/ns#">hash function</category><category domain="http://www.blogger.com/atom/ns#">hash table implementation</category><category domain="http://www.blogger.com/atom/ns#">Implement of Hash Table Code In C++</category><category domain="http://www.blogger.com/atom/ns#">insertion code in hash table</category><category domain="http://www.blogger.com/atom/ns#">searching code of c++</category><title>Implementation Of Hash Table Code</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Implementation Of Hash Table Code&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-xs-12&quot;&gt;
&lt;div style=&quot;border-color: black;&quot;&gt;
&lt;br /&gt;
&lt;section style=&quot;background-color: #eaeaea; border-color: #706e6e; border: 1px solid; font-size: 13pt; height: 2450px; margin: 30px; overflow: scroll; padding: 10px; width: 80%;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
#include&amp;lt;iostream&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
using namespace std;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;// Create an Entity&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
class Entry{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0in; text-indent: 0.5in;&quot;&gt;
public:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int key;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int value;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in; text-indent: 0in;&quot;&gt;
Entry(int k,int v){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key= k;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = v;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
};&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
class HashTable{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;text-indent: 36.25pt;&quot;&gt;
Entry **temp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int size;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;b&gt;//Constructor &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HashTable() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; Enter Size of Table: &quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;size;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = new Entry * [size];&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i&amp;lt; size; i++) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp[i] = NULL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;b&gt;// Hashing Funtion&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
int HashFun(int k) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return k % size;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;b&gt;// Insertion In Hashing&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
void Insert(int k,int v){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(k&amp;lt;=size &amp;amp;&amp;amp; k&amp;gt;0){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
int h = HashFun(k);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(temp[h] != NULL &amp;amp;&amp;amp; temp[h]-&amp;gt;key == k){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h = HashFun(h + 1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(temp[h] != NULL)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; delete temp[h];&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp[h] = new Entry(k, v);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; else{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; You Are Enter Invalid Key &quot;&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;// Searching In Hashing&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int SearchKey(int k){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int h = HashFun(k);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in; text-indent: 0.5in;&quot;&gt;
while (temp[h] != NULL &amp;amp;&amp;amp; temp[h]-&amp;gt;key != k){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h = HashFun(h + 1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(temp[h] == NULL){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return temp[h]-&amp;gt;value;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;// Delection In Hashing&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;text-indent: 36.25pt;&quot;&gt;
void Delete(int k){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int h = HashFun(k);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in; text-indent: 0in;&quot;&gt;
while (temp[h] != NULL){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(temp[h]-&amp;gt;key == k)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h = HashFun(h + 1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (temp[h] == NULL){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; No Element Found at Key &quot;&amp;lt;&amp;lt;k&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete temp[h];&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 35.75pt; text-indent: 36.25pt;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; Element Successfuly Deleted &quot;&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
};&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
int main(){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HashTable h;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int k, v;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int c;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; 1. Insert Element into Table&quot;&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; 2. Search Element from Key&quot;&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; 3. Delete Element from Key&quot;&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; 4. Exit&quot;&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\nEnter your Choice: &quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;c;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch(c){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;Enter Element to Insert: &quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;v;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;Enter key at which Element to be Insert: &quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;k;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h.Insert(k, v);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;Enter key which Element you want to Search: &quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;k;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(h.SearchKey(k) == -1){&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; No Element Found at Key &quot;&amp;lt;&amp;lt;k&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; continue;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot; Element at Key &quot;&amp;lt;&amp;lt;k&amp;lt;&amp;lt;&quot; : &quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;h.SearchKey(k)&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 3:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n Enter Key which Element you want to Delete: &quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cin&amp;gt;&amp;gt;k;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h.Delete(k);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 4:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n Please Enter Correct Option\n&quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; return 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; line-height: 113%;&quot;&gt;}&lt;/span&gt; &lt;/section&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;a href=&quot;https://zcodewriter.blogspot.com/2019/12/hashing-introduction.html&quot; style=&quot;color: red;&quot; target=&quot;_blank&quot; title=&quot;Introduction To Hashing&quot;&gt;Introduction To Hashing&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2019/12/implementation-of-hash-table-code.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-9196806458821888356</guid><pubDate>Sat, 21 Dec 2019 08:34:00 +0000</pubDate><atom:updated>2019-12-21T19:01:05.514+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">deletion in hashing</category><category domain="http://www.blogger.com/atom/ns#">hash table</category><category domain="http://www.blogger.com/atom/ns#">hashing introduction</category><category domain="http://www.blogger.com/atom/ns#">implementation of hash table</category><category domain="http://www.blogger.com/atom/ns#">implementation of hash table with code</category><category domain="http://www.blogger.com/atom/ns#">insertion in hashing</category><category domain="http://www.blogger.com/atom/ns#">searching in hashing</category><title>Hashing Introduction</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Introduction&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/h2&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: 21.3333px; line-height: 113%;&quot;&gt;Searching Techniques:&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; There are several searching techniques like linear search, binary search etc. In these techniques, time taken to search any particular element depends on the total number of elements. For Example&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;complexity of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Linear Search&lt;/span&gt;&lt;span style=&quot;font-size: 14pt; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;O(n), Binary Search O(logn)&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Hash table &lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;O(1).&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Hashing:&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&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-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;Hashing is an algorithm that calculates a fixed-size bit value from indexes. It is a searching technique that Used to Uniquely identify a specific object from a group of similar object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Hash:&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&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-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;Hash is a function that convert one value to another. Hashing data is a common practice in computer science and is used for several different purposes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Hash Function:&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 24.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;Hash function is a function that maps any number or string to a small integer value.&lt;/span&gt;&lt;span style=&quot;font-size: 8.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;Hash&amp;nbsp;function takes the data item as an input and returns a small integer value as an output. The small integer value is called as a hash value. Hash value of the data item is then used as an index for storing it into the hash table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: 36.25pt;&quot;&gt;
&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&amp;nbsp;h(k) = k mod (%) SizeOfArray &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Properties of Hash Function:&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: 36.25pt;&quot;&gt;
&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt; mso-bidi-font-weight: bold;&quot;&gt;- It is efficiently computable.&lt;/span&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt; mso-bidi-font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - It minimizes the number of collisions.&lt;/span&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - It distributes the keys uniformly over the table.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgZyXux2W1AZ8PrPw59-R7LfDGeKsT-JdVJjMUy1IEKRcOqSWFM4P_Pe4rZacXBsiq0xwxAiuwnpnuq9ogMJETniX8Sm_1OzHxYJdZjduiS9VhPAm9mtRrwPvXPYpJKRZZwGTCHRu1LPI/s1600/a.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;230&quot; data-original-width=&quot;315&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgZyXux2W1AZ8PrPw59-R7LfDGeKsT-JdVJjMUy1IEKRcOqSWFM4P_Pe4rZacXBsiq0xwxAiuwnpnuq9ogMJETniX8Sm_1OzHxYJdZjduiS9VhPAm9mtRrwPvXPYpJKRZZwGTCHRu1LPI/s400/a.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h4 style=&quot;margin-left: 0in; text-align: left; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Collision:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hash function is get a number of a key, there is possibility that there are two key result in same value. The situation where a newly inserted key maps to an already occupied slot in hash table is called collision. We must need to solve it. There are basic two methods of solving collision.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&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/AVvXsEgenQIQjqOqDHjsy-il1C-dzMMYjz5x6Adb_H11DKHEQ5UOwl8kcInmGuBiLG7jBZiaRw4f8gC39E-G2Bz4kbpWQnfRPD6W5QX3ZKXQXb8AktuZUTJglwLlkDruJUlztGQJUOA1FKSFC9M/s1600/b.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;920&quot; data-original-width=&quot;1200&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgenQIQjqOqDHjsy-il1C-dzMMYjz5x6Adb_H11DKHEQ5UOwl8kcInmGuBiLG7jBZiaRw4f8gC39E-G2Bz4kbpWQnfRPD6W5QX3ZKXQXb8AktuZUTJglwLlkDruJUlztGQJUOA1FKSFC9M/s400/b.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 113%; text-align: left; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&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;b style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 14pt; text-align: left; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 14pt; text-align: left; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;2. Separate Chaining:&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;h4 style=&quot;text-align: left; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-weight: normal;&quot;&gt;In this technique, each cell point to a linked list of a record. If any key has same number than that index creates a linked list Which have same function value.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;br /&gt;
&lt;/span&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/AVvXsEigBn6ihMs5Wuh0UaDG6zZJtOCJjkARSKAojSTCchUIGKpf1VRJsJ-iExiXw-8U3uLH8YmMOuvPpCeEckR-wM3WSgeiHjc17CYCDoms9Y4y3iuqcTpw1zkieQAu20qNs0d_GSCqRkyF6i8/s1600/c.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;351&quot; data-original-width=&quot;444&quot; height=&quot;315&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigBn6ihMs5Wuh0UaDG6zZJtOCJjkARSKAojSTCchUIGKpf1VRJsJ-iExiXw-8U3uLH8YmMOuvPpCeEckR-wM3WSgeiHjc17CYCDoms9Y4y3iuqcTpw1zkieQAu20qNs0d_GSCqRkyF6i8/s400/c.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 14pt; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;2. O&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 14pt; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;pen Addressing:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; text-indent: -0.25in;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; text-indent: -0.25in;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Like separating chaining, open addressing is also a method for handling collisions. In this collision, All the element is stored in a separate index (itself) in hash table. If any bucket is already occupied, then it is increased key every time until it found empty index to place. It has also three types.&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;margin-left: 0.75in; text-align: left; text-indent: -0.5in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;i.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Quadratic Probing:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; text-indent: -0.25in;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; text-indent: .5in;&quot;&gt;
&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Quadratic probing is similar to linear probing but it has one difference When collision occurs, we probe for &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;cambria math&amp;quot; , serif; font-size: 16.0pt; line-height: 113%;&quot;&gt;𝑘&lt;/span&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;^2 bucket in &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;cambria math&amp;quot; , serif; font-size: 16.0pt; line-height: 113%;&quot;&gt;𝑘&lt;/span&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;cambria math&amp;quot; , serif; font-size: 16.0pt; line-height: 113%;&quot;&gt;𝑡&lt;/span&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;ℎ iteration. We keep probing until an empty bucket is found. Formula h(k) = &lt;/span&gt;&lt;!--[if gte msEquation 12]&gt;&lt;m:oMath&gt;&lt;m:sSup&gt;&lt;m:sSupPr&gt;&lt;span
   style=&#39;font-size:16.0pt;mso-ansi-font-size:16.0pt;mso-bidi-font-size:16.0pt;
   font-family:&quot;Cambria Math&quot;,serif;mso-ascii-font-family:&quot;Cambria Math&quot;;
   mso-hansi-font-family:&quot;Cambria Math&quot;;font-style:italic;mso-bidi-font-style:
   normal&#39;&gt;&lt;m:ctrlPr&gt;&lt;/m:ctrlPr&gt;&lt;/span&gt;&lt;/m:sSupPr&gt;&lt;m:e&gt;&lt;i style=&#39;mso-bidi-font-style:
   normal&#39;&gt;&lt;span style=&#39;font-size:16.0pt;line-height:113%;font-family:&quot;Cambria Math&quot;,serif&#39;&gt;&lt;m:r&gt;k&lt;/m:r&gt;&lt;/span&gt;&lt;/i&gt;&lt;/m:e&gt;&lt;m:sup&gt;&lt;i
   style=&#39;mso-bidi-font-style:normal&#39;&gt;&lt;span style=&#39;font-size:16.0pt;line-height:
   113%;font-family:&quot;Cambria Math&quot;,serif&#39;&gt;&lt;m:r&gt;2&lt;/m:r&gt;&lt;/span&gt;&lt;/i&gt;&lt;/m:sup&gt;&lt;/m:sSup&gt;&lt;/m:oMath&gt;&lt;![endif]--&gt;&lt;!--[if !msEquation]--&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12pt; line-height: 113%; position: relative; top: 6pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
 id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot;
 path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot; stroked=&quot;f&quot;&gt;  &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;  &lt;v:formulas&gt;   &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;   &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;   &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;   &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;   &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;   &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;   &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;   &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;  &lt;/v:formulas&gt;  &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;  &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt; &lt;/v:shapetype&gt;&lt;v:shape id=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot; style=&#39;width:17.25pt;
 height:21.75pt&#39;&gt;  &lt;v:imagedata src=&quot;file:///C:/Users/zains/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png&quot;
  o:title=&quot;&quot; chromakey=&quot;white&quot;/&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;&amp;nbsp;mod (%) SizeOfArray&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&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/AVvXsEj73Lh8naL8nH_JrCHBrEiCqeZ9wB4NAlLs-HeqImABdCGVu5Sx7vOtlqXkpNb5A-IEot-xGdepVKaVcAX1kjt_rdUPcCqrDIJXPwMQ1d8qqqaMI47XPXj_y2UfpyyYuHlgJy2wyTFK69I/s1600/d.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;342&quot; data-original-width=&quot;456&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj73Lh8naL8nH_JrCHBrEiCqeZ9wB4NAlLs-HeqImABdCGVu5Sx7vOtlqXkpNb5A-IEot-xGdepVKaVcAX1kjt_rdUPcCqrDIJXPwMQ1d8qqqaMI47XPXj_y2UfpyyYuHlgJy2wyTFK69I/s400/d.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;margin-left: 0.75in; text-align: left; text-indent: -0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;ii.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Quadratic Probing:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; text-indent: .5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Quadratic probing is similar to linear probing but it has one difference When collision occurs, we probe for &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;cambria math&amp;quot; , serif; font-size: 16.0pt; line-height: 113%;&quot;&gt;𝑘&lt;/span&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;^2 bucket in &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;cambria math&amp;quot; , serif; font-size: 16.0pt; line-height: 113%;&quot;&gt;𝑘&lt;/span&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;cambria math&amp;quot; , serif; font-size: 16.0pt; line-height: 113%;&quot;&gt;𝑡&lt;/span&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;ℎ iteration. We keep probing until an empty bucket is found. Formula h(k) = &lt;/span&gt;&lt;!--[if gte msEquation 12]&gt;&lt;m:oMath&gt;&lt;m:sSup&gt;&lt;m:sSupPr&gt;&lt;span
   style=&#39;font-size:16.0pt;mso-ansi-font-size:16.0pt;mso-bidi-font-size:16.0pt;
   font-family:&quot;Cambria Math&quot;,serif;mso-ascii-font-family:&quot;Cambria Math&quot;;
   mso-hansi-font-family:&quot;Cambria Math&quot;;font-style:italic;mso-bidi-font-style:
   normal&#39;&gt;&lt;m:ctrlPr&gt;&lt;/m:ctrlPr&gt;&lt;/span&gt;&lt;/m:sSupPr&gt;&lt;m:e&gt;&lt;i style=&#39;mso-bidi-font-style:
   normal&#39;&gt;&lt;span style=&#39;font-size:16.0pt;line-height:113%;font-family:&quot;Cambria Math&quot;,serif&#39;&gt;&lt;m:r&gt;k&lt;/m:r&gt;&lt;/span&gt;&lt;/i&gt;&lt;/m:e&gt;&lt;m:sup&gt;&lt;i
   style=&#39;mso-bidi-font-style:normal&#39;&gt;&lt;span style=&#39;font-size:16.0pt;line-height:
   113%;font-family:&quot;Cambria Math&quot;,serif&#39;&gt;&lt;m:r&gt;2&lt;/m:r&gt;&lt;/span&gt;&lt;/i&gt;&lt;/m:sup&gt;&lt;/m:sSup&gt;&lt;/m:oMath&gt;&lt;![endif]--&gt;&lt;!--[if !msEquation]--&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 12.0pt; line-height: 113%; position: relative; top: 6.0pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
 id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot;
 path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot; stroked=&quot;f&quot;&gt;  &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;  &lt;v:formulas&gt;   &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;   &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;   &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;   &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;   &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;   &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;   &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;   &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;  &lt;/v:formulas&gt;  &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;  &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt; &lt;/v:shapetype&gt;&lt;v:shape id=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot; style=&#39;width:17.25pt;
 height:21.75pt&#39;&gt;  &lt;v:imagedata src=&quot;file:///C:/Users/zains/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png&quot;
  o:title=&quot;&quot; chromakey=&quot;white&quot;/&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;mod (%) SizeOfArray&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&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/AVvXsEgQDrt4SZg-42Y1bTPnDgr-_fbKHptSCXgxH_KCzJ7R99em_vxRUq9-um_ZPuHuCls-3HM9HFZb5l4q0-gUTdGffASPDe5L-WSquPyT3GpYgR6AsM5MYRRbDCUsfCiKSOEtxBLMg1MLNSI/s1600/e.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;480&quot; data-original-width=&quot;640&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQDrt4SZg-42Y1bTPnDgr-_fbKHptSCXgxH_KCzJ7R99em_vxRUq9-um_ZPuHuCls-3HM9HFZb5l4q0-gUTdGffASPDe5L-WSquPyT3GpYgR6AsM5MYRRbDCUsfCiKSOEtxBLMg1MLNSI/s400/e.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin-left: .75in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.5in;&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;iii.&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;!--[endif]--&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Double hashing:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; text-indent: .5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;Double hashing is similar to linear probing but it has also difference We use another hash function hash2(k) and look for k * hash2(k) bucket in &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;cambria math&amp;quot; , serif; font-size: 14.0pt; line-height: 113%;&quot;&gt;𝑘&lt;/span&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;cambria math&amp;quot; , serif; font-size: 14.0pt; line-height: 113%;&quot;&gt;𝑡&lt;/span&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;ℎ iteration. It requires more computation time as two hash functions need to be computed. h(k) = key mod(%) SizeOfArray&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; text-indent: .5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;h(k) = (h(k) –k) mod(%) h(k)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; text-indent: .5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfu3PqbNOfZG5g5YI6ZNx7hcTxhupfdKRf0wdDyLa18CLeUggEGrahGkxni7eN_gyHBMC5Knfpp6plMvNp-lZSGTNzQI6JlDvi9NU2GwYm0EC-sLI78k5qNbVwbzddF2mOGvxqH8yNsZs/s1600/f.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;480&quot; data-original-width=&quot;640&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfu3PqbNOfZG5g5YI6ZNx7hcTxhupfdKRf0wdDyLa18CLeUggEGrahGkxni7eN_gyHBMC5Knfpp6plMvNp-lZSGTNzQI6JlDvi9NU2GwYm0EC-sLI78k5qNbVwbzddF2mOGvxqH8yNsZs/s400/f.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: 0in; text-align: center; text-indent: 0in;&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; line-height: 113%;&quot;&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Functions in Hashing&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; line-height: 113%;&quot;&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Insertion: &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;Move to the bucket corresponds to the above calculated hash index and insert the new node at the end of the list.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-xs-12&quot;&gt;
&lt;div style=&quot;border-color: black;&quot;&gt;
&lt;br /&gt;
&lt;section style=&quot;background-color: #eaeaea; border-color: #706e6e; border: 1px solid; height: 207px; margin: 30px; overflow: scroll; padding: 10px; width: 80%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;int insert(int k, int v){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int hash = HashFun(k);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (temp[hash] != NULL &amp;amp;&amp;amp; temp[hash]-&amp;gt;key == k) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hash = HashFun(hash + 1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (temp[hash] != NULL)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete temp[hash];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp[hash] = new insert(int k,int v);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/section&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Searching:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&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-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;For search value from hash table, calculate the hash index for the key, move to the bucket corresponds to the calculated hash index, search the list in the current bucket.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;section style=&quot;background-color: #eaeaea; border-color: #706e6e; border: 1px solid; height: 228px; margin: 30px; overflow: scroll; padding: 10px; width: 70%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;void&amp;nbsp;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;SearchKey(int k)&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int h = HashFunc(k);&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;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (temp[h] != NULL &amp;amp;&amp;amp; temp[h]-&amp;gt;key != k){&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;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h = HashFunc(h + 1);&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;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (temp[h] == NULL)&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;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;&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;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return temp[h]-&amp;gt;value;&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;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/section&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;margin-left: -0.75pt; text-indent: 0in;&quot;&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%;&quot;&gt;Deletion:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0in; tab-stops: 1.5in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 113%;&quot;&gt;&lt;span style=&quot;font-size: 16.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 113%; mso-bidi-font-size: 11.0pt;&quot;&gt;To delete a node from hash table, calculate the hash index for the key, move to the bucket corresponds to the calculated hash index, search the list in the current bucket to find and remove the node with the given key (if found).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-xs-12&quot;&gt;
&lt;div style=&quot;border-color: black;&quot;&gt;
&lt;br /&gt;
&lt;section style=&quot;background-color: #eaeaea; border-color: #706e6e; border: 1px solid; height: 310px; margin: 30px; overflow: scroll; padding: 10px; width: 70%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;void Delete(int k) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int h = HashFun(k);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (temp[h] != NULL) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (temp[h]-&amp;gt;key == k)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;h = HashFun(h + 1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (temp[h] == NULL) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt;&quot;No Element found at key &quot;&amp;lt;&amp;lt;k&amp;lt;&amp;lt;endl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete temp[h];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-size: medium; margin-left: 0in; text-indent: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot; , serif; font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 14pt; line-height: 21.0933px;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 18.08px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt; &lt;/section&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://zcodewriter.blogspot.com/2019/12/implement-of-hash-table-code-in-c.html&quot; target=&quot;_blank&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot; title=&quot;Implementation Of Hash Table&quot;&gt;Implementation Of Hash Table&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2019/12/hashing-introduction.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgZyXux2W1AZ8PrPw59-R7LfDGeKsT-JdVJjMUy1IEKRcOqSWFM4P_Pe4rZacXBsiq0xwxAiuwnpnuq9ogMJETniX8Sm_1OzHxYJdZjduiS9VhPAm9mtRrwPvXPYpJKRZZwGTCHRu1LPI/s72-c/a.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-3697836273361069861</guid><pubDate>Sat, 14 Dec 2019 18:43:00 +0000</pubDate><atom:updated>2019-12-14T23:43:31.721+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">1D Array</category><category domain="http://www.blogger.com/atom/ns#">1D Array in c++</category><category domain="http://www.blogger.com/atom/ns#">C++ programming</category><category domain="http://www.blogger.com/atom/ns#">sum code</category><category domain="http://www.blogger.com/atom/ns#">sum in 1d arry</category><title>1D Array</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&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;br /&gt;
&amp;nbsp; &amp;nbsp; int arr[10],sum=0,i;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;Enter 10 numbers&quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(i=0;i&amp;lt;10;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cin&amp;gt;&amp;gt;arr[i];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum = sum+arr[i];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;Sum = &quot;&amp;lt;&amp;lt;sum;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2019/12/1d-array.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-4656386647083524311</guid><pubDate>Sat, 14 Dec 2019 18:42:00 +0000</pubDate><atom:updated>2019-12-14T23:42:02.684+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">c++</category><category domain="http://www.blogger.com/atom/ns#">codding</category><category domain="http://www.blogger.com/atom/ns#">programming</category><category domain="http://www.blogger.com/atom/ns#">triangle coding in c++</category><title>Triangle</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
#include&amp;lt;iostream&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
int main(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=1; i&amp;lt;=5; i++){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int j=1; j&amp;lt;=i; j++){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; &quot;;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&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 k=5; k&amp;gt;=i; k--){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;*&quot;;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; &quot;;&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;&lt;br /&gt;
}&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2019/12/triangle.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-1857216934861083840</guid><pubDate>Sun, 18 Aug 2019 12:37:00 +0000</pubDate><atom:updated>2019-08-18T17:40:11.906+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">flowchart of if else if statement</category><category domain="http://www.blogger.com/atom/ns#">if else if in C / C++</category><category domain="http://www.blogger.com/atom/ns#">if else if statement with syntax</category><category domain="http://www.blogger.com/atom/ns#">if else if with example</category><category domain="http://www.blogger.com/atom/ns#">Nested if With Sequence of if Statement</category><category domain="http://www.blogger.com/atom/ns#">syntax</category><category domain="http://www.blogger.com/atom/ns#">working of if else statement</category><title>Nested &#39;if&#39; With Sequence of &#39;if&#39; Statement</title><description>&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Nested &#39;if&#39; With Sequence of &#39;if&#39; Statement&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The nested &#39;if&#39; structure may contain multiple &#39;if&#39; statements that may be nested up to any level. Some &#39;if&#39; statements are executed while other may be skipped.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;In a sequence of &#39;if&#39; statements, multiple &#39;if&#39; statements are written one after the other. All &#39;if&#39; statements are executed in an order. No &#39;if&#39; statement is skipped.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Following program finds whether a number is positive, negative or zero:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; void main (void)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int num;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&quot;Enter a number ? &quot;) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf (&quot;%d&quot; ,&amp;nbsp; &amp;amp;num) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (num &amp;gt; 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf (&quot;The number is positive&quot;) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (num &amp;lt; 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&quot;The number is negative&quot;) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (num == 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&quot;The number is zero&quot;) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the above program, three &#39;if&#39; statements are given in a sequence. Suppose the user enters a positive number. The number is tested with first &#39;if&#39; statement. The answer is true because number is positive. The message is displayed on the display screen. After displaying the message, other two &#39;if&#39; statements will also be executed. Although the answers of these two &#39;if&#39; statements will be false. There is no need to execute these &#39;if&#39; statements. These statements should be skipped. Otherwise processor of computer has to consume extra time without any purpose.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The &#39;if-else-if&#39; structure can be used to handle this kind of situation.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;The &#39;if-else-if&#39; Statement&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The &#39;if-else-if&#39; statement is also called multiple &#39;if-else&#39; statement or nested &#39;if-else&#39; statement. It is used to execute on block of statements from multiple blocks of statements. In this statement/structure, multiple conditions and multiple blocks of statements are given. When any given condition is true, the statement associated with that condition are executed. All other blocks of statements are ignored.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The general syntax of nested &#39;if-else&#39; is as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (condition-1)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ Block-1 }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (condition-2)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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; { Block-2 }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (condition-m)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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; { Block-m }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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; else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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; { Block-n }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The use of &quot;else&quot; part of condition-m is optional.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Working of &#39;if-else-if&#39; Structure&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The &#39;if-else-if&#39; structure is executed as follows:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The conditions in this structure are evaluated in the given sequence until a true condition is found.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;When true condition is found, the statements associated with that condition are executed. All remaining conditions are skipped.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If all conditions are false, then the block of statements following the last else is executed.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Flowchart of &#39;if-else-if&#39; Structure&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The flowchart of nested &#39;if-else&#39; structure is as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjurgl-utz95RA5ZVSMlBCDTdh65uMuQM4MSuRwbWHfMf1Wg-tvNEtvv0KXG_d5VFNjMgwiheznAXcEdvNUOc0rMPnpoWxNeP065QdzHkWLf2Iev_4cANM3j6f0nGq4erlaXp2d9NuF2pQ/s1600/vba_if_elseif_else_statement.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;438&quot; data-original-width=&quot;560&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjurgl-utz95RA5ZVSMlBCDTdh65uMuQM4MSuRwbWHfMf1Wg-tvNEtvv0KXG_d5VFNjMgwiheznAXcEdvNUOc0rMPnpoWxNeP065QdzHkWLf2Iev_4cANM3j6f0nGq4erlaXp2d9NuF2pQ/s400/vba_if_elseif_else_statement.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;</description><link>https://zcodewriter.blogspot.com/2019/08/nested-if-with-sequence-of-if-statement.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjurgl-utz95RA5ZVSMlBCDTdh65uMuQM4MSuRwbWHfMf1Wg-tvNEtvv0KXG_d5VFNjMgwiheznAXcEdvNUOc0rMPnpoWxNeP065QdzHkWLf2Iev_4cANM3j6f0nGq4erlaXp2d9NuF2pQ/s72-c/vba_if_elseif_else_statement.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-5740940428964403742</guid><pubDate>Sat, 10 Aug 2019 13:32:00 +0000</pubDate><atom:updated>2019-08-18T18:15:11.504+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Intersection &amp; Difference CPP file</category><category domain="http://www.blogger.com/atom/ns#">Intersection &amp; Difference of set A and B in C++ Source Code</category><category domain="http://www.blogger.com/atom/ns#">Source file in c++</category><category domain="http://www.blogger.com/atom/ns#">union</category><category domain="http://www.blogger.com/atom/ns#">Write a program to Calculate Union</category><title>Union, Intersection &amp; Difference Source Code</title><description>&lt;h2&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Write a program to Calculate&amp;nbsp;Union, Intersection &amp;amp; Difference of set A and B in C++ Source Code.&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;row&quot;&gt;&lt;div class=&quot;col-xs-12&quot;&gt;&lt;div style=&quot;border-color: black;&quot;&gt;&lt;br /&gt;
&lt;section style=&quot;background-color: #eaeaea; border-color: #706e6e; border: 1px solid; height: 3000px; margin: 30px; overflow: scroll; padding: 10px; width: 77%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt;iostream&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;using namespace std;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;//&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Intersection oF set A and B&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;int intersection(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int v;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int n=0,m=0,o=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of Set A :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of Set B :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;m;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a[n],b[m],c[o];&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter Elements of Set A \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt; a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;n;i++){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (int j=i;j&amp;lt;n;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(a[i]&amp;gt;a[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;v=a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[i]=a[j];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[j]=v;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;++i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int j=i+1;j&amp;lt;n;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(a[i]==a[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int k=j;k&amp;lt;n-1;++k)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[k]=a[k+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;--n;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;++j;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter Elements of Set B \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt; b[i];&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int j=i;j&amp;lt;m;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(b[i]&amp;gt;b[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;v=b[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;b[i]=b[j];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;b[j]=v;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;++i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int j=i+1;j&amp;lt;m;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(b[i]==b[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int k=j;k&amp;lt;m-1;++k)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;b[k]=b[k+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;--m;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;++j;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for( int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int j=0;j&amp;lt;m;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(a[i]==b[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;c[o]=a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;o++;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; A Intersection B = {&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;o;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;c[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(i&amp;lt;(o-1))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;, &quot;;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;}&quot;;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;void setting(int r[],int r1){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large; white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;r1;++i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int j=i+1;j&amp;lt;r1;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(r[i]==r[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int k=j;k&amp;lt;r1-1;++k)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;r[k]=r[k+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;--r1;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;++j;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;r1-1;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int j=i;j&amp;lt;r1;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(r[i]&amp;gt;r[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;t=r[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;r[i]=r[j];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;r[j]=t;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Union of set A &amp;amp; B\n\n A U B = {&quot;;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;r1;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;r[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(i&amp;lt;(r1-1))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;, &quot;;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;} &lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;}&quot;;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;//&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Union of Set A and B&lt;span style=&quot;white-space: pre;&quot;&gt;              &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int Union(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int n=0,m=0,o=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of set A :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of set B :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;m;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;o=n+m;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a[n], b[m], u[o];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter elements of set A \n\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt; a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter elements of set B \n\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt; b[i];&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;u[i]=a[i];&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int k=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=n;i&amp;lt;o;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;u[i]=b[k];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;k++;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;setting(u,o);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;//&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Difference of Set A - B&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;int difference(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;int n=0,m=0,o=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of set A :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of set B :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;m;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a[n];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int b[m];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter elements of set A \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt;&amp;nbsp; a[i];&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;int t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{for (int j=i;j&amp;lt;n;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(a[i]&amp;gt;a[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;t=a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[i]=a[j];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[j]=t&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;;}}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;for(int i=0;i&amp;lt;n;++i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int j=i+1;j&amp;lt;n;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(a[i]==a[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int k=j;k&amp;lt;n-1;++k)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[k]=a[k+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;--n;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;++j;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cout&amp;lt;&amp;lt;a[i]&amp;lt;&amp;lt;&quot; &quot;;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cout&amp;lt;&amp;lt;&quot; Enter elements of set B \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;&amp;nbsp; b[i];&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{for (int j=i;j&amp;lt;m;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(b[i]&amp;gt;b[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;t=b[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;b[i]=b[j];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;b[j]=t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}}&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;++i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int j=i+1;j&amp;lt;m;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(b[i]==b[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int k=j;k&amp;lt;m-1;++k)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;b[k]=b[k+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;--m;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;++j;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;b[i]&amp;lt;&amp;lt;&quot; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int j=0;j&amp;lt;m;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if (a[i]==b[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{ for( int z=i;z&amp;lt;n;z++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int t=a[z];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[z]=a[z+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[z+1]=t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large; white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;n--;}}}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Difference of A to B \nA-B = {&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(i&amp;lt;(n-1))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;, &quot;;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}} &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;}&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;// Menu of the program&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;void menu(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\t ======== Welcome ========\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\t&amp;nbsp; Enter 1 for Union \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\t&amp;nbsp; Entet 2 for Intersection \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\t&amp;nbsp; Enter 3 for Difference \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\t&amp;nbsp; Enter 0 for Exit \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\n\n Enter Your Choice : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;// Main Program&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;int main(int argc, char** argv)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int no;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;menu();&amp;nbsp; //&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;call menu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Repeat:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;no;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if ( no &amp;gt; 3 || no &amp;lt; 0 )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; You Are Entered a Wroung Number!! \n Please Try Again ...! \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\n\n Enter Your Choice : &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;goto Repeat;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;switch(no)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;case 0:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;case 1:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Union();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;case 2:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;intersection();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;case 3:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;difference();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;break;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;/section&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;!-- sq 1 --&gt;&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8178057947844536&quot;
     data-ad-slot=&quot;3610703722&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-large; text-decoration: none;&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/1CMWeS_DOFUy7C-CSPNZpeT1m3Bh_QXUH/view?usp=sharing&quot; style=&quot;color: red; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Click Here To Download&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;br /&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;!-- sq 1 --&gt;&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8178057947844536&quot;
     data-ad-slot=&quot;3610703722&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;&lt;br /&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;</description><link>https://zcodewriter.blogspot.com/2019/08/union-intersection-difference-source.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-3702836516684903782</guid><pubDate>Mon, 05 Aug 2019 17:56:00 +0000</pubDate><atom:updated>2019-08-05T22:56:47.711+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">complete program differnce in c++</category><category domain="http://www.blogger.com/atom/ns#">difference in c++ program</category><category domain="http://www.blogger.com/atom/ns#">difference Of Sets A and B Source program in C++</category><category domain="http://www.blogger.com/atom/ns#">Write a program to calculate Difference of set A and B in C++</category><title>Difference Of Set A and B Source Program</title><description>&lt;h2&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Write a program to Calculate Difference of set A and B in C++&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;border-color: black; border: 50px;&quot;&gt;
&lt;br /&gt;
&lt;section style=&quot;background-color: #c8c8c8; border-color: #706e6e; border: solid; height: 1000px; margin: 30px; overflow: scroll; padding: 10px; width: 85%;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt;iostream&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;using namespace std;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;int difference(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int n=0,m=0,o=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of set A :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of set B :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;m;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a[n];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int b[m];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter elements of set A \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt;&amp;nbsp; a[i];&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int j=i;j&amp;lt;n;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(a[i]&amp;gt;a[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;t=a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;a[i]=a[j];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;a[j]=t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;++i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int j=i+1;j&amp;lt;n;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; if(a[i]==a[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; for(int k=j;k&amp;lt;n-1;++k)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; a[k]=a[k+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; --n;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; ++j;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;a[i]&amp;lt;&amp;lt;&quot; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;endl;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter elements of set B \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; cin&amp;gt;&amp;gt;&amp;nbsp; b[i];&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; for (int j=i;j&amp;lt;m;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; if(b[i]&amp;gt;b[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; t=b[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; b[i]=b[j];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; b[j]=t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;++i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int j=i+1;j&amp;lt;m;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(b[i]==b[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int k=j;k&amp;lt;m-1;++k)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;b[k]=b[k+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;--m;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;++j;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;b[i]&amp;lt;&amp;lt;&quot; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int j=0;j&amp;lt;m;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if (a[i]==b[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for( int z=i;z&amp;lt;n;z++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;int t=a[z];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;a[z]=a[z+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;a[z+1]=t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;n--;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Difference of A to B \n A-B = {&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&amp;nbsp; cout&amp;lt;&amp;lt;a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(i&amp;lt;(n-1))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&amp;nbsp; cout&amp;lt;&amp;lt;&quot;, &quot;;&amp;nbsp; }}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;}&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;int main(int argc, char** argv)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\t ***** Difference ***** \n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;difference();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;/section&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>https://zcodewriter.blogspot.com/2019/08/difference-of-set-and-b-source-program.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-6041219037542036298</guid><pubDate>Sun, 04 Aug 2019 19:01:00 +0000</pubDate><atom:updated>2019-08-05T00:01:49.395+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">complete program intersection in c++</category><category domain="http://www.blogger.com/atom/ns#">intersection in c++ program</category><category domain="http://www.blogger.com/atom/ns#">Intersection Of Sets A and B Source program in C++</category><category domain="http://www.blogger.com/atom/ns#">Write a program to calculate intersection of set A and B in C++</category><title>Intersection Of Sets A and B Source program</title><description>&lt;h2&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Write a program to calculate intersection of set A and B in C++.&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;border-color: black; border: 50px;&quot;&gt;
&lt;br /&gt;
&lt;section style=&quot;background-color: #c8c8c8; border-color: #706e6e; border: solid; height: 1000px; margin: 30px; overflow: scroll; padding: 10px; width: 85%;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt;iostream&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;using namespace std;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;//&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Intersection portion&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;int intersection(){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int v;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int n=0,m=0,o=0;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of Set A :&amp;nbsp; &quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;n;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of Set B :&amp;nbsp; &quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;m;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a[n],b[m],c[o];&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter Elements of Set A \n&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp;cin&amp;gt;&amp;gt; a[i];&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;n;i++){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (int j=i;j&amp;lt;n;j++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(a[i]&amp;gt;a[j])&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;v=a[i];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[i]=a[j];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[j]=v;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;++i)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int j=i+1;j&amp;lt;n;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(a[i]==a[j])&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int k=j;k&amp;lt;n-1;++k)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;a[k]=a[k+1];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;--n;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;++j;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter Elements of Set B \n&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt; b[i];&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int j=i;j&amp;lt;m;j++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(b[i]&amp;gt;b[j])&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;v=b[i];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;b[i]=b[j];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;b[j]=v;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;++i)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int j=i+1;j&amp;lt;m;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(b[i]==b[j])&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int k=j;k&amp;lt;m-1;++k)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;b[k]=b[k+1];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;--m;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;++j;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for( int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int j=0;j&amp;lt;m;j++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(a[i]==b[j])&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;c[o]=a[i];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;o++;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; A Intersection B = {&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;o;i++)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;c[i];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(i&amp;lt;(o-1))&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;, &quot;;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;}&quot;;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;int main(){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\t ***** INTERSECTION *****\n&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;intersection();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return 0;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/section&gt;&lt;/div&gt;
&lt;br /&gt;</description><link>https://zcodewriter.blogspot.com/2019/08/intersection-of-sets-and-b-source.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-8722252408642027495</guid><pubDate>Sat, 03 Aug 2019 14:12:00 +0000</pubDate><atom:updated>2019-08-03T19:26:52.253+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">pdf download</category><category domain="http://www.blogger.com/atom/ns#">source program in c++</category><category domain="http://www.blogger.com/atom/ns#">union CPP file</category><category domain="http://www.blogger.com/atom/ns#">Union Of  Set A and B Source code</category><category domain="http://www.blogger.com/atom/ns#">union of a set</category><category domain="http://www.blogger.com/atom/ns#">union of the set in c++</category><category domain="http://www.blogger.com/atom/ns#">Write a program to calculate Union of set A and B in C++</category><title>Union Of  Set A and B Source Program</title><description>&lt;h2&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Write a program&amp;nbsp; to calculate Union of set A and B in C++.&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;border-color: black; border: 50px;&quot;&gt;
&lt;br /&gt;
&lt;section style=&quot;background-color: #c8c8c8; border-color: #706e6e; border: solid; height: 1000px; margin: 30px; overflow: scroll; padding: 10px; width: 85%;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt;iostream&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;using namespace std;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;void setting(int r[],int r1){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;r1;++i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int j=i+1;j&amp;lt;r1;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(r[i]==r[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int k=j;k&amp;lt;r1-1;++k)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;r[k]=r[k+1];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;--r1;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;++j;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int t;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int i=0;i&amp;lt;r1-1;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for (int j=i;j&amp;lt;r1;j++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(r[i]&amp;gt;r[j])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;t=r[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;r[i]=r[j];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;r[j]=t;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Union of set A &amp;amp; B\n\n A U B = {&quot;;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;r1;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;r[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(i&amp;lt;(r1-1))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;, &quot;;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;} &lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;}&quot;;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;//&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Union&amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt;               &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int Union(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int n=0,m=0,o=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of set A :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;n;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter size of set B :&amp;nbsp; &quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt;m;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;o=n+m;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int a[n], b[m], u[o];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter elements of set A \n\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt; a[i];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot; Enter elements of set B \n\n&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;m;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cin&amp;gt;&amp;gt; b[i];&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;u[i]=a[i];&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int k=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(int i=n;i&amp;lt;o;i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;u[i]=b[k];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;k++;&lt;span style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;setting(u,o);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;int main(){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cout&amp;lt;&amp;lt;&quot;\t ***** UNION ***** \n&quot;;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Union();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;getch();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return 0;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/section&gt;&lt;/div&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/14Umsxgt1GHGdzzAup8fJwZWK0R9gCtAM/view?usp=sharing&quot; style=&quot;color: red; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Click Here To Download .CPP File&lt;/a&gt;&lt;/span&gt;</description><link>https://zcodewriter.blogspot.com/2019/08/union-of-set-and-b-source-program.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-2990096942803489150</guid><pubDate>Mon, 29 Jul 2019 19:40:00 +0000</pubDate><atom:updated>2019-07-30T00:40:22.058+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flowchart of Nested &#39; if &#39; Structure</category><category domain="http://www.blogger.com/atom/ns#">inner if statement</category><category domain="http://www.blogger.com/atom/ns#">Nested &#39;if&#39; Statement</category><category domain="http://www.blogger.com/atom/ns#">nested if else statement with example</category><category domain="http://www.blogger.com/atom/ns#">outer if statement</category><category domain="http://www.blogger.com/atom/ns#">syntax of nested if statement</category><category domain="http://www.blogger.com/atom/ns#">working of nested if statement</category><title>Nested &#39;if&#39; Statement</title><description>&lt;div style=&quot;height: 0px;&quot;&gt;
&lt;/div&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Nested &#39;if&#39; Statement&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; An &#39; if &#39; statement within another &#39; if &#39; statement is called &lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;nested &#39; if &#39; statement. &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The &#39; if &#39; statement that contains another &#39; if &#39; statement is called &lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;outer &#39; if &#39; statement. &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The &#39; if &#39; statement used inside outer &#39; if &#39; statement is called &lt;b&gt;inner&lt;/b&gt; &lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&#39; if &#39; statement.&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The nested &#39; if &#39; statements are used when multiple conditions have to check. Nested can be up to any level. However, it increases the complicity of the logic of program.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The general form of nested &#39;if&#39; statement is given as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (condition-1)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (condition-2)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Block-1 ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Block-2 ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Block-3 ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the above syntax, the &#39;if&#39; statement that has &quot;condition-1&quot; contains another &#39;if&#39; statement that has &quot;condition-2&quot;. The Block-1 represents the statement(s) of inner &#39;if&#39; statement, while Block-2 represents the statement(s) of its &#39;else&#39; part. The Block-3 represents the statement(s) of &#39;else&#39; part of outer &#39;if&#39; statement.&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Flowchart of Nested &#39; if &#39; Structure&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The flowchart about general form of nested &#39;if&#39; structure is as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6EhskvVS3kvk0rn6sF8XnSQ-kBq6a0Gyvj3L0Do6iGZXysI_lAJZ38IMTPkG2t5jNcw20Sspt1PTfLcmzaLSmTZsWNZ2TUf8sfJfBzJ1HztImEQTerxuiphXGITyqs9GaeB3-aZj0FYs/s1600/IMG_20190729_193137.jpeg&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;1168&quot; data-original-width=&quot;1600&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6EhskvVS3kvk0rn6sF8XnSQ-kBq6a0Gyvj3L0Do6iGZXysI_lAJZ38IMTPkG2t5jNcw20Sspt1PTfLcmzaLSmTZsWNZ2TUf8sfJfBzJ1HztImEQTerxuiphXGITyqs9GaeB3-aZj0FYs/s400/IMG_20190729_193137.jpeg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Working of Nested &#39; if &#39; Structure&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The nested &#39; if &#39; structure is&amp;nbsp; executed as follows:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The condition of the outer &#39; if &#39; statement is evaluated first.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If condition of the outer &#39; if &#39; statement is true, inner &#39;if&#39; statement is executed.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If condition of the inner &#39; if &#39; statement is true, Block-1 is executed.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If condition of the inner &#39; if &#39; statement is false, Block-2 is executed.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If condition of the outer &#39; if &#39; statement is false, Block-3 is executed.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Following statements check whether the value of variable &#39;a&#39; is greater than the values of variables &#39;b&#39; and &#39;c&#39;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (a&amp;nbsp; &amp;gt;&amp;nbsp; b)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (a&amp;nbsp; &amp;gt;&amp;nbsp; c)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&quot;a is greater than b and c&quot;) ;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the above piece of code, the &#39;if&#39; structure that has condition (a &amp;gt; c) is inner &#39; if &#39; structure. It comes inside the &#39; if &#39; structure that has condition (a &amp;gt; b).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</description><link>https://zcodewriter.blogspot.com/2019/07/nested-if-statement.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6EhskvVS3kvk0rn6sF8XnSQ-kBq6a0Gyvj3L0Do6iGZXysI_lAJZ38IMTPkG2t5jNcw20Sspt1PTfLcmzaLSmTZsWNZ2TUf8sfJfBzJ1HztImEQTerxuiphXGITyqs9GaeB3-aZj0FYs/s72-c/IMG_20190729_193137.jpeg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-4798947374947370292</guid><pubDate>Fri, 26 Jul 2019 19:36:00 +0000</pubDate><atom:updated>2019-07-27T00:36:17.442+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Conditional Operator example</category><category domain="http://www.blogger.com/atom/ns#">Conditional Operator example in C / C++</category><category domain="http://www.blogger.com/atom/ns#">define Conditional Operator</category><category domain="http://www.blogger.com/atom/ns#">define ternary operator</category><category domain="http://www.blogger.com/atom/ns#">explain Conditional Operator syntax with example</category><title>Conditional Operator</title><description>&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Conditional Operator&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The conditional operator is also used for making two-way decisions. It can be used in place of simple &#39;if-else&#39; structure. It is denoted by&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;?&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;and&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;:&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;signs. Three operands are used with conditional operator. It is also called&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;ternary operator.&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The general syntax of conditional operator is as follows:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (condition)&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;?&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; exp1&amp;nbsp; :&amp;nbsp; exp2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Write a program that inputs two numbers and displays greater number using conditional operator.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example in C&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt; stdio.h &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt; conio.h &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;void main ( )&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int a , b ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; clrscr ( ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; printf ( &quot; Enter first Number : &quot; ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scanf ( &quot; %d &quot; , &amp;amp;a ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; printf ( &quot; Enter second Number : &quot; ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scanf ( &quot; %d &quot; , &amp;amp;b ) ;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( a &amp;gt; b ) ? printf ( &quot; %d is greater &quot; , a ) : printf ( &quot; %d is greater &quot; , b ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; getch ( ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example in C++&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt; iostream &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;using namespace std;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;int main ( )&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int a , b ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot; Enter first Number &quot; ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scanf &amp;gt;&amp;gt; a ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot; Enter second Number &quot; ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scanf &amp;gt;&amp;gt; b ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;( a &amp;gt; b ) ? cout &amp;lt;&amp;lt; a &amp;lt;&amp;lt; &quot; is greater &quot; : cout &amp;lt;&amp;lt; b &amp;lt;&amp;lt; &quot; is greater &quot; ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; retirn 0 ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;tab-stops: 134.25pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr style=&quot;height: 106.35pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; height: 106.35pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 216.5pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 134.25pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: 18.0pt; mso-bidi-font-size: 11.0pt;&quot;&gt;Output of the program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 134.25pt;&quot;&gt;
&lt;span style=&quot;font-size: 16.0pt; mso-bidi-font-size: 11.0pt;&quot;&gt;Enter first Number: 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 134.25pt;&quot;&gt;
&lt;span style=&quot;font-size: 16.0pt; mso-bidi-font-size: 11.0pt;&quot;&gt;Enter second Number: 15&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 134.25pt;&quot;&gt;
&lt;span style=&quot;font-size: 16.0pt; mso-bidi-font-size: 11.0pt;&quot;&gt;15 is greater&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2019/07/conditional-operator.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-8297710768086822876</guid><pubDate>Thu, 25 Jul 2019 19:47:00 +0000</pubDate><atom:updated>2019-07-27T00:17:02.134+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Explain if else statement syntax with example</category><category domain="http://www.blogger.com/atom/ns#">Flowchart of &#39;if-else&#39; Structure</category><category domain="http://www.blogger.com/atom/ns#">if else statement example</category><category domain="http://www.blogger.com/atom/ns#">if else statement example in C / C++</category><category domain="http://www.blogger.com/atom/ns#">if-else statement syntax</category><title> &#39;if-else&#39; Statement</title><description>&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;The &#39;if-else&#39; Statement&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The &#39;if-else&#39;&amp;nbsp;statement is another form of &#39;if&#39;&amp;nbsp;statement. It is used for making two way decisions. In this&amp;nbsp;statement/structure, one condition and two blocks of&amp;nbsp;statement are given. It executes one block of statements when the condition is true and the other when condition is false. In any situation, one block of&amp;nbsp;statements is executed and the other is skipped.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The general syntax of simple &#39;if-else&#39; structure is as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&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; if (condition)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statement - 1 ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statement - 2 ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the above syntax, &quot;statement-1&quot; will be executed if the condition is true and&amp;nbsp;statement-2 will be ignored. If the condition is false, &quot;statement-2&quot; is executed and &quot;statement-1&quot; will be ignored.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In case of compound&amp;nbsp;statement, the syntax of &#39;if-else&#39; structure is as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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;if (condition)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Block-1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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;br /&gt;
&lt;span style=&quot;font-size: large;&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;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Block-2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&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;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The Block-1 indicates a sent of&amp;nbsp;statements on one side and Block-2 indicates set of&amp;nbsp;statements on another side. The &#39;if-else&#39; structure may contain a single&amp;nbsp;statement (without curly brackets) on one side and compound&amp;nbsp;statement on another side.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Flowchart of &#39;if-else&#39; Structure&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The flowchart of &#39;if-else&#39; structure is as follows:&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&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;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihHO96UoBrcXLr1yQDrouuS_7dibdWYOqEzPRYuwRV8-T7AWzdk-97oOB6Vt_hfJNfjBxrlerpGeNceY99exXXt1emxliSr7KXcv94C1Lu5FhHzB6G6QHVTn-B8ryKhJhD6wuBOQ0ypD8/s1600/IMG_20190725_232603.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;983&quot; data-original-width=&quot;1600&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihHO96UoBrcXLr1yQDrouuS_7dibdWYOqEzPRYuwRV8-T7AWzdk-97oOB6Vt_hfJNfjBxrlerpGeNceY99exXXt1emxliSr7KXcv94C1Lu5FhHzB6G6QHVTn-B8ryKhJhD6wuBOQ0ypD8/s320/IMG_20190725_232603.jpeg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;h2&gt;
&#39;if-else&#39; Statement&lt;/h2&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;h2&gt;
Write a program that input a number and finds whether it is even or odd.&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;
&lt;b&gt;Example in C&lt;/b&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt; stdio.h &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt; conio.h &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;void main ( )&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int num ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; clrscr ( ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; printf ( &quot; Enter a Number : &quot; ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scanf ( &quot; %d &quot; , &amp;amp;num ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if ( n%2 == 0 )&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf ( &quot; %d is Even Number &quot; , num ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf ( &quot; %d is Odd Number &quot; , num ) ;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; getch ( ) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;h2&gt;
&lt;b&gt;Example in C++&lt;/b&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include &amp;lt; iostream &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;usimng namespace std ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;int main ( )&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int num ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; system ( &quot; cls &quot; ) ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot; Enter a Number : &quot; ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cin &amp;gt;&amp;gt; num ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if ( n%2 == 0 )&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; num &amp;lt;&amp;lt; &quot; is Even Number &quot; ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;else&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; num &amp;lt;&amp;lt; &quot; is Odd Number &quot; ;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return 0 ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr style=&quot;height: 74.95pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; height: 74.95pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 214.95pt;&quot; valign=&quot;top&quot; width=&quot;287&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: 18.0pt; mso-bidi-font-size: 11.0pt;&quot;&gt;Output of the program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: 16.0pt; mso-bidi-font-size: 11.0pt;&quot;&gt;Enter a
  Number : 31&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: 16.0pt; mso-bidi-font-size: 11.0pt;&quot;&gt;31 is odd
  Number &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2019/07/if-else-statement.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihHO96UoBrcXLr1yQDrouuS_7dibdWYOqEzPRYuwRV8-T7AWzdk-97oOB6Vt_hfJNfjBxrlerpGeNceY99exXXt1emxliSr7KXcv94C1Lu5FhHzB6G6QHVTn-B8ryKhJhD6wuBOQ0ypD8/s72-c/IMG_20190725_232603.jpeg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-1342668300781808268</guid><pubDate>Wed, 24 Jul 2019 20:16:00 +0000</pubDate><atom:updated>2019-07-25T01:16:40.103+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">if statement with their Limitation</category><category domain="http://www.blogger.com/atom/ns#">Limitation of &#39;if&#39; Statement</category><category domain="http://www.blogger.com/atom/ns#">Limitation of if Statement</category><category domain="http://www.blogger.com/atom/ns#">Limitation of if Statement in C</category><category domain="http://www.blogger.com/atom/ns#">Limitation of if Statement in C++</category><title>Limitation of &#39;if&#39; Statement</title><description>&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Limitation of &#39;if&#39; Statement&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Although, &#39;if&#39;&amp;nbsp;statement is the simplest form of selection structure but its use is limited in programs. It executes a statement or set of statements if the given condition is true. But if the given condition is false, then no alternate action is performed. It means the simple &#39;if&#39;&amp;nbsp;statement cannot be used for making two-way decisions.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Suppose you want to execute one set of statements if the given condition is true and other set of&amp;nbsp;statements if given condition is false. In this situation, you cannot handle this kind of problem properly using simple &#39;if&#39;&amp;nbsp;statement. However, this kind of problem can be handle using sequence of simple &#39;if&#39;&amp;nbsp;statements. This is not a proper way.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Following programs find whether given number is positive or negative using sequence of simple &#39;if&#39; statements.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;void main (void)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int num ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&quot;Enter a number ? &quot;) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf (&quot;%d&quot;, &amp;amp;num) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (num &amp;gt; 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&quot;The number is positive&quot;) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (num &amp;lt; 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf (&quot;The number is negative&quot;) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the above program two simple &#39;if&#39;&amp;nbsp;statements are given in a sequence. Suppose the user enters a positive number. The number is tested with first &#39;if&#39;&amp;nbsp;statement. The answer is true because number is positive. The message will be displayed on screen. After displaying the message, next &#39;if&#39;&amp;nbsp;statement will also be executed. Although the answer of this &#39;if&#39;&amp;nbsp;statement will be false. There is no need to execute this &#39;if&#39; statement. This &#39;if&#39;&amp;nbsp;statement should be skipped; otherwise processor of computer has to consume extra time without any purpose.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the above program, if the second &#39;if&#39;&amp;nbsp;statement is omitted and the user enters a negative number, the condition will return false. No message will be displayed on the screen.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In either case, there should be proper reason from the program. The &#39;if-else&#39; structure can be used to handle this kind of situation.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2019/07/limitation-of-if-statement.html</link><author>noreply@blogger.com (Abdul Saboor)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1451978359794097407.post-6829054569744154128</guid><pubDate>Wed, 24 Jul 2019 16:32:00 +0000</pubDate><atom:updated>2019-07-24T21:44:05.234+05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">define compound statement</category><category domain="http://www.blogger.com/atom/ns#">Explain if statement</category><category domain="http://www.blogger.com/atom/ns#">Flowchart of if statement</category><category domain="http://www.blogger.com/atom/ns#">if statement example in C / C++</category><category domain="http://www.blogger.com/atom/ns#">if statemnt in C++</category><category domain="http://www.blogger.com/atom/ns#">if statment in c</category><category domain="http://www.blogger.com/atom/ns#">syntax of if statement</category><category domain="http://www.blogger.com/atom/ns#">syntax with example</category><title>if Statement</title><description>&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;The &#39;if&#39; Statement&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The &#39;if&#39; statement is the simplest form of selection structure. It is a decision making&lt;b&gt;&amp;nbsp;&lt;/b&gt;statement. It is used to execute or to ignore a statement or a set of statements after testing a condition.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The &#39; if &#39; statement evaluates the condition. If the given condition is true, the statement or a set of statements following the &#39; if &#39; statement is ignored and control transfers to the statement that comes after the &#39;if&#39; structure.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The syntax of &#39;if&#39; statement for a single statement is as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( condition )&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statement - 1 ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statement - 2 ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the above syntax:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;condition&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;It indicates the test condition. It can be a relational expression or logical expression.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;statement-1&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;It is a single statement which will be executed if the condition is true. If the condition&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;is false, statement-1 is ignored.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;statement-2&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;This statement comes after the &#39;if&#39; structure.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; A set of statements following the &#39;if&#39; statement can be given. In this case, these statements are written within curly braces { }. The set of statements surrounded by curly braces { } is called &lt;b&gt;compound statement.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The syntax of &#39;if&#39; statement for compound statement is as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( condition )&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statement - 1 ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statement - 2 ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- - - - - - - - - -&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statement - m ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;statement - n ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the above syntax, the set of statements (from statement-1 to statement-m ) represent the compound statement. The statement-n represents the statement that comes after the &#39;if&#39;&amp;nbsp; structure.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Flowchart of Simple &#39; if &#39; Structure&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The flowchart of &#39;if&#39; statement is as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRY5zHquwch5YbwegGboHvp_N_bfayaWXX_cksNBqnwH2XjTGlYQeKeGI_kVJflUZ9yCSdhLAWX5WqIqKhzNEUmvL_F84Vwl0V6JX9ftU_dv2ECxrYseOpEmTE3-VxzQ9LNNTU99uWh6c/s1600/IMG_20190724_212125.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1600&quot; data-original-width=&quot;1200&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRY5zHquwch5YbwegGboHvp_N_bfayaWXX_cksNBqnwH2XjTGlYQeKeGI_kVJflUZ9yCSdhLAWX5WqIqKhzNEUmvL_F84Vwl0V6JX9ftU_dv2ECxrYseOpEmTE3-VxzQ9LNNTU99uWh6c/s400/IMG_20190724_212125.jpeg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;h2&gt;
Flowchart Of&amp;nbsp; &#39; if&amp;nbsp; &#39; Statement&lt;/h2&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Write a program that inputs a number and displays a message if the number is greater than 100.&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Example in C&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;#include &amp;lt; stdio.h &amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;#include &amp;lt; conio.h &amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;void main ( )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int&amp;nbsp; &amp;nbsp;n ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; printf&amp;nbsp; ( &quot; Enter a Number &quot; ) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scanf ( &quot; %d &quot; , &amp;amp;n ) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if ( n &amp;gt;= 100 )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf ( &quot; Number is greater than 100\n&quot; ) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; getch ( ) ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;h2&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Example in C&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;#include &amp;lt; iostream &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;using namespace std ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;int main ( )&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int&amp;nbsp; &amp;nbsp;n ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot; Enter a Number &quot; ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cin &amp;gt;&amp;gt; n ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if ( n &amp;gt;= 100 )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; &quot; Number is greater than 100 &quot; ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>https://zcodewriter.blogspot.com/2019/07/if-statement.html</link><author>noreply@blogger.com (Abdul Saboor)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRY5zHquwch5YbwegGboHvp_N_bfayaWXX_cksNBqnwH2XjTGlYQeKeGI_kVJflUZ9yCSdhLAWX5WqIqKhzNEUmvL_F84Vwl0V6JX9ftU_dv2ECxrYseOpEmTE3-VxzQ9LNNTU99uWh6c/s72-c/IMG_20190724_212125.jpeg" height="72" width="72"/><thr:total>0</thr:total></item></channel></rss>