<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Simplilearn Engineering - Medium]]></title>
        <description><![CDATA[Simplilearn Engineering Blog - Medium]]></description>
        <link>https://medium.com/simplilearn-engineering?source=rss----683d8d96f377---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Simplilearn Engineering - Medium</title>
            <link>https://medium.com/simplilearn-engineering?source=rss----683d8d96f377---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 15:26:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/simplilearn-engineering" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AI-powered closed caption generator for learning videos at Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/ai-powered-closed-caption-generator-for-learning-videos-at-simplilearn-15d560315add?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/15d560315add</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[amazon-transcribe]]></category>
            <category><![CDATA[simplilearn]]></category>
            <category><![CDATA[closed-captioning]]></category>
            <dc:creator><![CDATA[Aman Jain]]></dc:creator>
            <pubDate>Fri, 24 Mar 2023 17:33:06 GMT</pubDate>
            <atom:updated>2023-03-24T17:33:06.798Z</atom:updated>
            <content:encoded><![CDATA[<p><em>At Simplilearn, ensuring the reach of our video content is paramount. That’s why we believe in providing high-quality, accessible learning experiences to our students. Subtitling is a crucial aspect of achieving this goal, but creating subtitles manually can be a significant investment of time and resources. To streamline this process and make our content creation more efficient, we turned to </em>Amazon Transcribe<em>. In this blog post, we’ll discuss our experience with the service and how it has helped us automate our subtitle creation process.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vMNUUUkY4qFNtVrexwVqlw.png" /><figcaption>Fig 1: Sample screenshot of our video content with subtitles</figcaption></figure><h3>Subtitles</h3><p>The beauty of subtitles lies in their ability to translate audio into a language that is easily readable by learners. Subtitles appear as text displayed at the bottom of the screen during videos and serve as a valuable tool for individuals who can hear the audio but may struggle to understand the narration. By providing subtitles, we can ensure that our content is accessible to a wider audience and promote a more inclusive learning environment.</p><p>When we release a course, we understand the importance of having subtitles available in different languages to cater to our diverse student base. However, generating subtitles manually can be a time-consuming task, and it also requires the content creator to have knowledge of different languages and accents. This can be a challenge, as accents can vary widely even within the same language, making accurate translation a difficult task. As a result, manually creating subtitles can lead to delays in releasing high-quality content. To address these challenges, we turned to automation to streamline our subtitle creation process and make our content more accessible to learners worldwide.</p><p>We explored many solutions for subtitle creation. Eventually, we choose Amazon Transcribe because of its high accuracy, support of other languages, and flexibility to train.</p><h3>Amazon Transcribe</h3><p>Powered by deep learning technologies, Amazon Transcribe is a fully managed and continuously trained automatic speech recognition service that generates time-stamped text transcripts from audio files.</p><p>Additionally, it offers other advanced features such as custom vocabulary, custom language models, and vocabulary filtering to provide greater accuracy and flexibility in transcription.</p><h3>Solution Architecture</h3><figure><img alt="Project Architecture" src="https://cdn-images-1.medium.com/max/796/1*ZToF18IFhyJg38VtpHPIXQ.png" /><figcaption>Fig 2: Automatic Speech Recognition Workflow using Amazon Transcribe</figcaption></figure><p>To initiate the job on Amazon Transcribe, an API call is made which produces the message to the Kafka cluster. Apache Kafka is a fast, scalable, fault-tolerant, publish-subscribe messaging system used for this purpose. The message contains details of the video, and when the consumer picks it up, it initiates the job on Amazon Transcribe.</p><p>Once the job is started, a MySQL table is updated by the backend API call to maintain the history of the job. In addition to this, we use Amazon EventBridge to trigger a Lambda function when the job status changes to “COMPLETED” or “FAILED”. EventBridge is a serverless event bus service that makes it easy to connect services using data from your own applications to AWS services. By using EventBridge to trigger a Lambda function, we can automatically initiate downstream processes based on the status of the transcription job, such as sending notifications or initiating a lambda function.</p><p>The Lambda function forwards the request to the webhook along with the job details. If the job is successfully completed, the backend processes the request and maps the generated subtitles with the video in the database. In case the job fails, the topic is sent back to Kafka for reprocessing.</p><h3>Well, that was simple!</h3><p>After Amazon Transcribe creates the subtitles, it doesn’t transcribe all the words correctly. Wait? What! Isn’t that its only job?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*mluavIfzE3XLncbY91cfVQ.png" /><figcaption>Courtesy: <a href="https://abcnews.go.com/US/school-daze-contractor-misspells-crosswalk/story?id=62508163">ABC News</a></figcaption></figure><p>Some of the technical jargon and brand names like Jira, Trello, and GitHub were not transcribed correctly. Those got transcribed as Gira, Grello, Getup, etc respectively.</p><h3>Custom vocabulary and Custom language models to the rescue</h3><p>To enhance the accuracy of the transcription, a Custom vocabulary and Custom language model (CLM) were used. In our use case, brand names were defined in the custom vocabularies to ensure their recognition during transcription.</p><p>To develop domain-specific speech recognition models, the previously created subtitles were used to train the models. The subtitles were formatted into text files, and the domain-specific models were created using CLM.</p><h3>Outcome</h3><p>After processing about 40 GB of content amounting to 120 hours, statistics were generated and analyzed. The results showed that the combination of Custom vocabulary and CLM resulted in 97% accuracy of the generated subtitles, successfully transcribing all brand names and technical jargon.</p><p>In conclusion, leveraging Amazon Transcribe for automated subtitle generation has been a successful endeavor. By using custom vocabularies and language models, we were able to increase accuracy and reduce the time and effort required for manual transcription. This has allowed us to focus more on creating high-quality content and providing an improved learning experience for our users.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15d560315add" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/ai-powered-closed-caption-generator-for-learning-videos-at-simplilearn-15d560315add">AI-powered closed caption generator for learning videos at Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Global Variable in Python With Examples [Updated] | Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/global-variable-in-python-with-examples-updated-simplilearn-5057cf264279?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/5057cf264279</guid>
            <dc:creator><![CDATA[Simplilearn]]></dc:creator>
            <pubDate>Wed, 18 Jan 2023 07:13:29 GMT</pubDate>
            <atom:updated>2023-01-18T07:13:19.481Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*seDmBFN5D7VKh5k7.jpg" /></figure><p>Python also uses variables to hold data. They also have a name and a type; however, in python, you don’t have to declare the data type. Instead, you can create a python variable as follows.</p><p>class_number = 4;</p><p>In the above example, the variable ‘class_number’ has the value of 4; it is an integer data type. And unlike other programming languages, you don’t need to declare a variable without initializing.</p><h3>What Does Variable Scope in Python Mean?</h3><p>Variable scope means the area in which parts of a program can access the variable. There are four variable scopes in python:</p><ol><li>Local</li><li>Global</li><li>Enclosing</li><li>Built-in</li></ol><p>In this article, you will learn the first two types. You will learn to create python variables with local and global scope.</p><h3>What Is the Global Variable In Python?</h3><p>In the programming world, a global variable in Python means having a scope throughout the program, i.e., a global variable value is accessible throughout the program unless shadowed.</p><p>A global variable in Python is often declared as the top of the program. In other words, variables that are declared outside of a function are known as global variables.</p><p>You can access global variables in Python both inside and outside the function.</p><p>Syntax:</p><p>X = “sampleGlobalValue”</p><p>Def fn1():</p><h3>How to Create Global Variables in Python?</h3><p>To create a global variable in Python, you need to declare the variable outside the function or in a global scope.</p><h3>Example:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*vY_q5ybjoUV15NCHzB2EuA.png" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Enk5mcnbsCChxVQrBVLsNQ.png" /></figure><h3>How to Access the Global Variable Inside and Outside of the Function?</h3><h3>Example:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*ctMzng5LkvzNOrRNWUA4mg.png" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*N6nQC8eN9vi-XMoBcceDlw.png" /></figure><p>In the example depicted above, you saw a global variable declared and accessed both inside and outside of the function.</p><p>So, you are accessing the value both inside and outside of the function, which is fine, but what happens if you try to modify the global scope variable value inside a function?</p><p>See the example mentioned below to understand better.</p><h3>Example:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*hZBkR7HsNicVRgW_or8SeQ.png" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*rTByDW8x6WU7Mv5cly1iOQ.jpeg" /></figure><p>As it is evident, this throws an error. When you try to modify the global variable value inside a function, it will throw UnboundLocalError, because while modifying Python treats x as a local variable, but x is also not defined inside the function (myfunc()).</p><p>That’s where the Global keyword comes into the picture. You will see the usage of Global Keywords in the following sections.</p><h3>How to Create Variables With Local Scope in Python with Examples?</h3><p>A local variable’s scope is a function in which you declared it. To access the variable, you have to call the corresponding function. For example, you can create a local variable as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*QLgvzJ5yQBg_9lzD6Bis0Q.png" /></figure><h3>Global Keyword</h3><p>Global keyword is used to modify the global variable outside its current scope and meaning. It is used to make changes in the global variable in a local context. The keyword ‘Global’ is also used to create or declare a global variable inside a function.</p><p>Usually, when you create a variable inside a function (a local variable), it can only be used within that function. That’s where the global keyword comes in the play, which helps to create global variables inside the function and which can be accessible in a global scope.</p><p>Syntax:</p><p>Def func():</p><p>Global variable</p><h3>Example 1:</h3><p>Use a global keyword to create a variable in the global scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*tZJy3shdvv65ZbhH39I0Rg.png" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*UTVOW_Q0GOqYYwCKuTUEEQ.png" /></figure><h3>Example 2:</h3><p>Use a global keyword to change the value of the global variable inside the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*hkcRURkjkIOGPiGXzLtX9Q.png" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*RWZs2A513zCeBPUhggRwug.jpeg" /></figure><p>You have seen what ‘global’ keywords are, their examples, and how to use global keywords. But Python has some basic rules to use the ‘global’ keyword.</p><p>Let’s see Global in Nested functions.</p><p>When you declare a global keyword variable inside the nested function and when you change the global keyword variable inside the nested function, it will reflect outside the local scope, since it is used as a global keyword.</p><h3>Example:</h3><p>Let’s see an example for global in nested functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*OUbyWKdywJUSxfYSYGxPGw.png" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*VeEfdzRT7GyK23cE-v0pPQ.png" /></figure><p>You can see the above output for the global in nested functions. But maybe a quick following explanation will help for better understanding.</p><p>You have declared the global variable inside the inner() function, which is nested inside the main() function.</p><p>Before and after calling the inner(), the variable ‘integ’ takes the value of the local variable main i.e. integ = 20. Outside of the main() function, the variable ‘integ’ takes the value of the global keyword declared inside the inner() function i.e., integ = 20 as you used the global keyword inside the inner() function local scope. If you make any changes inside the inner() function global keyword variable ‘integ’, will reflect outside of the scope, as a behavior of the global keyword.</p><p>The fundamental rules of the ‘global’ keyword are as follows:</p><ul><li>When you create a variable inside the function, it is in a local context by default</li><li>When you create or define a variable outside the function, by default it is a global context, there’s no need for a global keyword here</li><li>Global keywords can be used to read or modify the global variable inside the function</li><li>Using a global keyword outside of the function has no use or makes no effect.</li></ul><h3>How Can You Create Variables Using Global Scope in Python With Examples?</h3><p>You can create a variable with global scope by initializing outside all the functions in a python program. And you can access the variable from anywhere in the python program.</p><p>Creating a global variable is simple; you can do it as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*pqI_q6KTvqPOZvtN3yTQPQ.png" /></figure><h3>How to Use Global Keywords in Python With Examples?</h3><p>If you use a variable inside a function, python thinks you are referring to a local variable. So use the global keyword to change a global variable within a python function.</p><p>The following example shows the use of global keywords in a python program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*NlEncIsL-2cj9NG5WXPJ9A.png" /></figure><h3>Local Variables</h3><p>The following example shows a mistake.</p><h3>Example 1: Accessing Local Variable Outside the Scope</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*3RvFHKlui0IFUj1rhBaAlg.png" /></figure><p>In the above program, you are trying to access ‘y’ defined in the function loc(). And the line print(y) will give you a Name Error: name ‘y’ is not defined.</p><p>The following example shows how to rewrite the above program.</p><h3>Example 2: Create a Local Variable</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*9bUkoThedv33-5nE3yVPoQ.png" /></figure><h3>Global and Local Variables</h3><p>As you can not access a local variable from outside a function, it does not matter if the global and the local variables have the same name. Below you can find an example where there are two variables. One is global, and the other is local. Both have the same name.</p><h3>Example1: Global Variable and Local Variable With the Same Name</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*99NRfP2vyzGbhNH8-XNFfg.png" /></figure><p>In the above example, the print function in the man () function accesses the local variable x with a value of 4. And the print function outside accesses the local variable with a value of 5.</p><h3>Difference Between Global and Local Variables</h3><p>Let us see an example of how global and local variables behave in the same code.</p><h3>Example:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*ZXNNcVQXFOebKnNE9Ms_Mg.png" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*HGWW1tkUyFnbwSsyECN_Sg.jpeg" /></figure><h3>Explanation:</h3><p>Here in the program above, you declared x as a global and y as a local variable in the same program. Then it tried to modify the global variable using the global keyword in the local function and printing both gx and ly.</p><p>Once you called function1(), the value of gx became global global. As you tried to modify as gx*2, it printed ‘global’ two times. After this, you printed the local variable ly, which displayed the local variable value i.e., again ‘local’.</p><h3>Difference Between Global and Nonlocal Variables</h3><p>When a variable is either in local or global scope, it is called a nonlocal variable. Nonlocal variables are defined in the nested function whose scope is not defined.</p><h3>Example:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*f8VzQBdxuz5ZwkhsEcFaSg.jpeg" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*QUCVNFMROAv3-XrmF7jxfw.png" /></figure><h3>Explanation:</h3><p>From the above program, it can be noticed that the nested function is innerfn(). Inside the innerfn(), you saw the use of a nonlocal keyword to create a nonlocal variable. The innerfn() is defined in the scope of outerfn(). If you make changes to the value of a nonlocal variable, they reflect in the local variable.</p><p>In conclusion, understanding the scope of python variables is essential for an error-free program. You can access the global variables from anywhere in the program. However, you can only access the local variables from the function. Additionally, if you need to change a global variable from a function, you need to declare that the variable is global. You can do this using the “global” keyword.</p><blockquote><em>Looking forward to making a move to the programming field? Take up the </em><a href="https://www.simplilearn.com/mobile-and-software-development/python-development-training?source=GhPreviewCTAText"><em>Python Training Course</em></a><em> and begin your career as a professional Python programmer</em></blockquote><h3>Conclusion</h3><p>Variables are one of the most basic elements of a programming language. It is an abstraction layer for the memory cells that contain the actual value. Global, Local and Nonlocal types of variables help the programmer to access some values entirely in the program scope, or some values that are limited to within the function.</p><p>In this article, you learned what a global variable is in Python, how to define global variables in Python, how to declare a global variable in Python, what is a global keyword, when to use a global keyword, the difference between global, local, and nonlocal variables along with some working examples.</p><p>Join <a href="https://www.simplilearn.com/big-data-and-analytics/python-for-data-science-training?source=GhPreviewCoursepages">Simplilearn’s Python Training Course</a> to learn more about this topic. This course will teach you the basics of Python, conditional statements, data operations, shell scripting, and Django. This certification course, which includes 38 hours of blended learning and 8 hours of online self-paced learning, will prepare you for a fulfilling career as a professional Python programmer by providing you with practical programming experience.</p><p>Have any questions for us? Leave them in the comments section of this article, and our experts will get back to you on them, as soon as possible!</p><p><em>Originally published at </em><a href="https://www.simplilearn.com/tutorials/python-tutorial/global-variable-in-python"><em>https://www.simplilearn.com</em></a><em> on April 29, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5057cf264279" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/global-variable-in-python-with-examples-updated-simplilearn-5057cf264279">Global Variable in Python With Examples [Updated] | Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Feasibility Study in Project Management and Its Types? | Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/what-is-feasibility-study-in-project-management-and-its-types-simplilearn-b17101a16c30?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/b17101a16c30</guid>
            <dc:creator><![CDATA[Simplilearn]]></dc:creator>
            <pubDate>Wed, 18 Jan 2023 06:30:56 GMT</pubDate>
            <atom:updated>2023-01-18T06:30:31.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*sEIbFwZ0um6urW5K.jpg" /></figure><p>The growth and recognition of project management training have changed significantly over the past few years, and these changes are expected to continue and expand. And with the rise of project management comes the need for a feasibility study.</p><p>It can be thrilling to start a complex, large-scale project with a significant impact on your company. You are creating real change. Failure can be scary. This article will help you get started if you have never done a feasibility study on project management.</p><h3>What is a Feasibility Study?</h3><p>A feasibility study evaluates a project’s or system’s practicality. As part of a feasibility study, the objective and rational analysis of a potential business or venture is conducted to determine its strengths and weaknesses, potential opportunities and threats, resources required to carry out, and ultimate success prospects. Two criteria should be considered when judging feasibility: the required cost and expected value.</p><p>A feasibility study is a comprehensive evaluation of a proposed project that evaluates all factors critical to its success in order to assess its likelihood of success. Business success can be defined primarily in terms of ROI, which is the amount of profits that will be generated by the project.</p><p>In a feasibility study, a proposed plan or project is evaluated for its practicality. As part of a feasibility study, a project or venture is evaluated for its viability in order to determine whether it will be successful.</p><p>As the name implies, a feasibility analysis is used to determine the viability of an idea, such as ensuring a project is legally and technically feasible as well as economically justifiable. It tells us whether a project is worth the investment-in some cases, a project may not be doable. There can be many reasons for this, including requiring too many resources, which not only prevents those resources from performing other tasks but also may cost more than an organization would earn back by taking on a project that isn’t profitable.</p><p>A well-designed study should offer a historical background of the business or project, such as a description of the product or service, accounting statements, details of operations and management, marketing research and policies, financial data, legal requirements, and tax obligations. Generally, such studies precede technical development and project implementation.</p><h3>Understanding A Feasibility Study</h3><p>Project management is the process of planning, organizing, and managing resources to bring about the successful completion of specific project goals and objectives. A feasibility study is a preliminary exploration of a proposed project or undertaking to determine its merits and viability. A feasibility study aims to provide an independent assessment that examines all aspects of a proposed project, including technical, economic, financial, legal, and environmental considerations. This information then helps decision-makers determine whether or not to proceed with the project.</p><p>The feasibility study results can also be used to create a realistic project plan and budget. Without a feasibility study, it cannot be easy to know whether or not a proposed project is worth pursuing.</p><h3>Types of Feasibility Study</h3><p>A feasibility analysis evaluates the project’s potential for success; therefore, perceived objectivity is an essential factor in the credibility of the study for potential investors and lending institutions. There are five types of feasibility study-separate areas that a feasibility study examines, described below.</p><h3>1. Technical Feasibility</h3><p>This assessment focuses on the technical resources available to the organization. It helps organizations determine whether the technical resources meet capacity and whether the technical team is capable of converting the ideas into working systems. Technical feasibility also involves the evaluation of the hardware, software, and other technical requirements of the proposed system. As an exaggerated example, an organization wouldn’t want to try to put Star Trek’s transporters in their building-currently, this project is not technically feasible.</p><h3>2. Economic Feasibility</h3><p>This assessment typically involves a cost/ benefits analysis of the project, helping organizations determine the viability, cost, and benefits associated with a project before financial resources are allocated. It also serves as an independent project assessment and enhances project credibility-helping decision-makers determine the positive economic benefits to the organization that the proposed project will provide.</p><h3>3. Legal Feasibility</h3><p>This assessment investigates whether any aspect of the proposed project conflicts with legal requirements like zoning laws, data protection acts or social media laws. Let’s say an organization wants to construct a new office building in a specific location. A feasibility study might reveal the organization’s ideal location isn’t zoned for that type of business. That organization has just saved considerable time and effort by learning that their project was not feasible right from the beginning.</p><h3>4. Operational Feasibility</h3><p>This assessment involves undertaking a study to analyze and determine whether-and how well-the organization’s needs can be met by completing the project. Operational feasibility studies also examine how a project plan satisfies the requirements identified in the requirements analysis phase of system development.</p><h3>5. Scheduling Feasibility</h3><p>This assessment is the most important for project success; after all, a project will fail if not completed on time. In scheduling feasibility, an organization estimates how much time the project will take to complete.</p><p>When these areas have all been examined, the feasibility analysis helps identify any constraints the proposed project may face, including:</p><ul><li>Internal Project Constraints: Technical, Technology, Budget, Resource, etc.</li><li>Internal Corporate Constraints: Financial, Marketing, Export, etc.</li><li>External Constraints: Logistics, Environment, Laws, and Regulations, etc.</li></ul><h3>Importance of Feasibility Study</h3><p>The importance of a feasibility study is based on organizational desire to “get it right” before committing resources, time, or budget. A feasibility study might uncover new ideas that could completely change a project’s scope. It’s best to make these determinations in advance, rather than to jump in and to learn that the project won’t work. Conducting a feasibility study is always beneficial to the project as it gives you and other stakeholders a clear picture of the proposed project.</p><p>Below are some key benefits of conducting a feasibility study:</p><ul><li>Improves project teams’ focus</li><li>Identifies new opportunities</li><li>Provides valuable information for a “go/no-go” decision</li><li>Narrows the business alternatives</li><li>Identifies a valid reason to undertake the project</li><li>Enhances the success rate by evaluating multiple parameters</li><li>Aids decision-making on the project</li><li>Identifies reasons not to proceed</li></ul><p>Apart from the approaches to feasibility study listed above, some projects also require other constraints to be analyzed -</p><ul><li>Internal Project Constraints: Technical, Technology, Budget, Resource, etc.</li><li>Internal Corporate Constraints: Financial, Marketing, Export, etc.</li><li>External Constraints: Logistics, Environment, Laws, and Regulations, etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*pbCtz8Rkx4nJrBfGElg25g.jpeg" /></figure><h3>Benefits of a Feasibility Study</h3><p>Preparing a project’s feasibility study is an important step that may assist project managers in making informed decisions about whether or not to spend time and money on the endeavor. Feasibility studies may also help a company’s management avoid taking on a tricky business endeavor by providing them with critical information.</p><p>An additional advantage of doing a feasibility study is that it aids in the creation of new ventures by providing information on factors such as how a company will work, what difficulties it could face, who its competitors are, and how much and where it will get its funding from. These marketing methods are the goal of feasibility studies, which try to persuade financiers and banks whether putting money into a certain company venture makes sense.</p><h3>What Is Included in a Feasibility Study Report?</h3><p>When starting a business, one of the most important steps is to conduct a feasibility study. This study will help to determine if your business idea is viable and has the potential to be successful. Several factors need to be considered when conducting a feasibility study, including the marketability of your product or service, the competition, the financial stability of your company, and more. A feasibility study should cover the amount of technology, resources required, and ROI.</p><p>The results of your feasibility studies study are summarized in a feasibility report, which typically comprises the following sections.</p><ul><li>Executive summary</li><li>Specifications of the item or service</li><li>Considerations for the future of technology</li><li>The marketplace for goods and services</li><li>Approach to marketing</li><li>Organization/staffing</li><li>Schedule</li><li>The financial forecasts</li><li>Recommendations based on research</li></ul><h3>Tools for Conducting a Feasibility Study</h3><h3>Suggested Best Practices</h3><p>While every project has its own goals and needs, the following are best practices for conducting a feasibility study.</p><ul><li>Do a preliminary analysis. This includes getting feedback from relevant stakeholders on the new project. Also, look for other business scenarios.</li><li>To ensure that the data is solid, determine and ask queries about it in the initial phase.</li><li>Take a market survey to identify market demand and opportunities for the new concept or business.</li><li>Create an organizational, operational, or business plan. This includes identifying how much labor is required, what costs, and how long.</li><li>Make a projected income statement that involves revenue, operating expenses, and profit.</li><li>Create an opening day balance sheet.</li><li>You will need to identify and address any vulnerabilities or obstacles.</li><li>Take an initial decision to go ahead with the plan.</li></ul><h3>Suggested Components</h3><p>Here are the some suggested components for conducting a feasibility study:</p><ul><li>Executive Summary: Write a narrative describing the project, product, or service.</li><li>Technological considerations: Ask yourself what it will take. Are you able to afford it? How much will it cost?</li><li>Current marketplace: Find out the market for your product, service, or plan in the local and global markets.</li><li>Marketing strategy: Define in the detailed description.</li><li>Required staff: What human resources are needed for this project?</li><li>Timeline and schedule: Use important interim markers to indicate when the project will be completed.</li><li>Project financials. Project financials are the different ways managers can account for money spent and earned on projects. One of the most important aspects of financial management is creating and tracking accurate project financials.</li></ul><h3>Examples of a Feasibility Study</h3><p>A local university was concerned about the state of the science building, which was built in the 1970s. School officials sought to determine the costs and benefits of expanding and upgrading the building, given the scientific and technological advances over the past 20 years. A feasibility study was therefore conducted.</p><p>School officials looked at several options and weighed the costs and benefits of updating and expanding the science building. There were concerns expressed by school officials about the project’s cost and public reaction. The proposed new science building will be larger than the current one. The community board rejected similar proposals in the past. The feasibility study will address these concerns and any possible legal or zoning issues.</p><p>The feasibility study examined the technology requirements of the proposed concept(new science building), the potential benefits for students, and its long-term viability. Modernizing the science facility will increase the scientific research potential and ameliorate its modules. It also would allure new students.</p><p>Financial projections provided information about the scope &amp; cost of this project and also provided information on raising funds. This covers issuing an investor’s bonds and tapping into its endowment. Projections also help determine how the new science program attracts more fresh students to enroll in offered programs, increasing tuition and fees revenue.</p><p>The feasibility study proved that the proposed concept was feasible, which allowed for the expansion and modernization of the science building. The feasibility study would not have allowed school administrators to know if the expansion plans were feasible without it.</p><h3>What is the Purpose of a Feasibility Study?</h3><p>A feasibility study is an important first step in starting a new business. It is a detailed examination of whether or not a proposed business venture is likely to be successful. A feasibility study aims to provide information that will help business owners make informed decisions about their new venture.</p><p>The feasibility study will answer important questions about the proposed business, including:</p><ul><li>What is the target market for this business?</li><li>Who are the competitors?</li><li>What are the costs associated with starting and running this business?</li><li>What are the potential risks and rewards associated with this venture?</li><li>How much revenue can this business generate?</li><li>What are the estimated profits and losses for this business?</li><li>What is the potential for growth in this industry?</li></ul><h3>How Do You Write a Feasibility Study?</h3><p>This feasibility study will outline why your business idea is worth pursuing and will also help you identify any potential risks or problems that could occur. When writing a feasibility study, there are a few key things to keep in mind:</p><ol><li>Outline your target market and how you plan to reach them.</li><li>Discuss your product or service in detail and explain why it is unique and needed.</li><li>Outline your financial projections and explain how you plan to make a profit.</li></ol><h3>7 Steps to Do a Feasibility Study</h3><h3>1. Conduct a Preliminary Analysis</h3><p>A preliminary investigation is necessary to determine whether a full feasibility study is warranted. During this stage, key information will be gathered to assess the project’s potential and make a preliminary decision about its feasibility. This should include a review of relevant documents, interviews with key personnel, and surveys of potential customers or users.</p><h3>2. Prepare a Projected Income Statement</h3><p>To do a feasibility study, you must create a projected income statement. Your projected income statement will show how much money your business is expected to make in the coming year. It will include both your estimated revenue and your estimated expenses. This document will be essential in helping you make informed decisions about your business.</p><h3>3. Conduct a Market Survey, or Perform Market Research</h3><p>Conducting market research is an important step in any feasibility study. By understanding the needs and wants of your potential customers, you can determine if there is a market for your product or service. You can also get an idea of what your competition is doing and how to best position your business to meet the needs of your target market.</p><p>There are a variety of ways to conduct market research. One popular method is to conduct a survey. You can survey potential customers directly or use data from secondary sources such as surveys conducted by other organizations. You can also use focus groups or interviews to get feedback from potential customers.</p><p>Once you have gathered your data, you can use it to create a profile of your ideal customer. This will help you understand your target market and how to reach them.</p><h3>4. Plan Business Organization and Operations</h3><p>When starting a business, one of the first things you need is to plan your organization and operations. This involves creating a structure for your company and figuring out the logistics of how you will run it. There are many factors to consider when planning your organization and operations, such as:</p><ul><li>Company Structure: What type of company will you be (sole proprietorship, partnership, corporation, etc.)? What will the hierarchy look like?</li><li>Location: Where will your business be located? Will you have a physical storefront or operate online only?</li><li>Marketing: How will you promote your business?</li></ul><h3>5. Prepare an Opening Day Balance Sheet</h3><p>The opening day balance sheet is a snapshot of the company’s financial position at the beginning of the business venture. The purpose of the opening day balance sheet is to give an idea of the amount of money that the company has to work with and track its expenses and income as they occur. This information is vital to making sound business decisions. The opening day balance sheet will include the following:</p><ul><li>Cash on hand</li><li>Accounts receivable</li><li>Inventory</li><li>Prepaid expenses</li><li>Fixed assets</li><li>Accounts payable</li><li>Notes payable</li><li>Long-term liabilities</li><li>Share</li></ul><h3>6. Review and Analyze All Data</h3><p>The feasibility study should include reviewing and analyzing all data relevant to the proposed project. The data collected should be verified against source documentation, and any discrepancies should be noted. The purpose of the feasibility study is to provide a basis for making a decision, and the data should be sufficient to support that decision.</p><p>The analysis should consider both the positive and negative aspects of the proposed project. The financial analysis should be thorough, and all assumptions should be documented. The risk assessment should identify any potential risks and mitigation strategies. The team assigned to the project should review the feasibility study and recommend the organization’s leadership.</p><p>Organizational leadership should decide whether to proceed with the project based on the feasibility study’s findings. If the project is approved, the organization should develop a project plan that includes a detailed budget and timeline</p><h3>7. Make a Go/No-Go Decision</h3><p>It is important to know when to cut your losses when starting a business. The go/no-go decision in a feasibility study comes in. The go/no-go decision is a key part of a feasibility study, and it can help you determine whether or not your business idea is worth pursuing.</p><p>Making the go/no-go decision is all about risk assessment. You need to weigh the risks and rewards of starting your business and decide whether the potential rewards are worth the risks. If the risks are too high, you may want to reconsider your business idea.</p><h3>How to Conduct a Feasibility Study</h3><p>Now, let’s discuss a few of the steps we take in order to do the feasibility study.</p><ul><li>To begin, we do a preliminary study of the business case to define what is included and what we are examining and attempting to find is realistic.</li><li>Following that, we generate a forecasted income statement. We need to understand the revenue sources; how are we going to profit from this? Where does the income originate? Additionally, we must do a market study.</li><li>We need to find out whether this is a demand for our product. How much demand does this have? Is there a market for this product or service?</li><li>Plan your company’s structure and operations, which is the fourth step. Specifically, what type of organization do we need, and what resources do we have? Do we have any specific personnel needs?</li><li>We also plan to generate a balance sheet on the first day. What are the income and expenses, and how can we be confident we’ll be able to decide whether we’re going to make our ROI?</li><li>As a result, we plan to go through and examine all of our data before making a final decision on whether or not to go forward. In other words, are we going to pursue this project or business opportunity?</li></ul><h3>Feasibility Study vs. Business Plan</h3><p>When starting a business, you must create two very important documents: a feasibility study and a business plan. While they may seem similar, they are two different things with different purposes.</p><p>A feasibility study is a preliminary document that assesses the feasibility of a proposed business. It looks at the market potential, the competition, the costs and benefits of starting the business, and the risks and rewards involved.</p><p>On the other hand, a business plan is a more detailed document that outlines how a business will be run and what its goals are. It includes information about its mission statement, its products and services, its target market, its finances, and its management team.</p><h3>Reasons to Do or Not to Do a Feasibility Study</h3><p>There are many factors to consider when deciding whether or not to conduct a feasibility study. The most important question is whether the study will help you make a better decision.</p><p>Some reasons to do a feasibility study include:</p><ul><li>You are considering a major change or investment</li><li>You want to assess the viability of a new business or product</li><li>You need to understand the risks and potential rewards associated with a project</li></ul><p>On the other hand, some reasons not to do a feasibility study include:</p><ul><li>You are pressed for time and don’t think the study will provide enough value to justify the time commitment.</li><li>You are confident that your idea is feasible, and a study will only confirm what you already believe.</li><li>The change or investment is not significant enough to warrant the study.</li></ul><h3>Enroll Today With These PGP on Project Management to Enhance Your Skills</h3><ul><li><a href="https://www.simplilearn.com/digital-project-manager-masters-program-certification-training?tag=Certified%20information%20security%20manager">Digital Project Manager:</a> This program will help you move from technical to managerial positions. This certification is recognized internationally and can open up exciting career opportunities in IT management.</li><li>Post Graduate Program in Project Management: This project management certification course aligns with PMI-PMP(r) and IASSC -Lean Six Sigma. You can attend live online interactive classes and masterclasses.</li></ul><h3>Conclusion</h3><p>This article introduces the concept of a feasibility study and provides a few tips on conducting one. A feasibility study is an important tool for evaluating a project before starting it. By understanding the feasibility of a project, you can make better decisions about whether to move forward.</p><p>We hope this helped you understand the concept of feasibility study better. To learn more about similar project management concepts, explore our library of Project Management articles or check out our Post Graduate Program in Project Management that covers new trends, emerging practices, tailoring considerations, and core competencies required of a Project Management professional.</p><h3>FAQs</h3><h3>Q1. What Is the Main Objective of a Feasibility Study?</h3><p>Feasibility study helps decision makers to determine the success or failure of a proposed project or investment. It evaluates the predicted cost and benefits of the proposed project.</p><h3>Q2. What Are the Steps in a Feasibility Study?</h3><p>The first step in a feasibility study is to conduct the primary analysis and create the projected income statement. Followed by doing a market survey and accordingly planning business operations. The last step is to create a balance sheet to review and analyze data. Based on your analysis, you can decide whether to go or not go ahead with the proposed statement.</p><h3>Q3. Who Conducts a Feasibility Study?</h3><p>Feasibility study is done by the senior management of the organization. Sometimes, they take help from mid-senior employees to complete the analysis in short span of time.</p><h3>Q4. What Are the 5 Types of Feasibility?</h3><p>The 5 types of feasibility study are Scheduling Feasibility, Operational Feasibility, Legal Feasibility, Economic Feasibility, and Technical Feasibility.</p><h3>Q5. Why is a Feasibility Study Important?</h3><p>A feasibility study helps in identifying the financial, market and logistical challenges of a proposed project. It is done by evaluating the estimated funds for the project and return of investment.</p><h3>Q6. When is the Feasibility Study Done?</h3><p>The feasibility study is done before the business plan is created.</p><h3>Q7. What is the Primary Purpose of Conducting a Feasibility Analysis?</h3><p>The objective of feasibility study is to assess the financial viability of developed plan and whether it will be successful or not.</p><p><em>Originally published at </em><a href="https://www.simplilearn.com/feasibility-study-article"><em>https://www.simplilearn.com</em></a><em> on July 14, 2012.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b17101a16c30" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/what-is-feasibility-study-in-project-management-and-its-types-simplilearn-b17101a16c30">What is Feasibility Study in Project Management and Its Types? | Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bubble Sort in C — How to Use Bubble Sort in C Programming? | Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/bubble-sort-in-c-how-to-use-bubble-sort-in-c-programming-simplilearn-fe01d46b85ac?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/fe01d46b85ac</guid>
            <dc:creator><![CDATA[Simplilearn]]></dc:creator>
            <pubDate>Wed, 18 Jan 2023 06:21:08 GMT</pubDate>
            <atom:updated>2023-01-18T06:20:38.608Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bubble Sort in C — How to Use Bubble Sort in C Programming?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*fhSGkPCmDLsXJJKQ.jpg" /></figure><p>There might come situations when you would want to order data in a specific order. That’s when a sorting algorithm will come in handy. Bubble sort in C is a straightforward sorting algorithm that checks and swaps elements if they are not in the intended order. It compares two adjacent elements to find which one is greater or lesser and switches them based on the given condition until the final place of the element is found. In this article, you will learn about bubble sort and how to write a C program for bubble sort implementation using different ways.</p><h3>Working of Bubble Sort</h3><p>Bubble sort is a data sorting algorithm that works by randomly copying elements from the first array into a smaller second array, and then reversing the order of these arrays. After this process has been repeated multiple times, the sorted data will be located in the middle of the larger array.</p><p>The basic idea behind the bubble sort is to compare the elements of an array one by one until they are sorted in ascending order, which is called bubble bursting. When an element needs to be moved, instead of moving the entire array, only the element affected by the change is moved. This technique conserves memory and keeps overall execution speed high because there are fewer updates than with other sorting algorithms.</p><h3>1. First Iteration (Compare and Swap)</h3><p>Bubble Sort is a sorting algorithm that works by first sorting the items into two piles, and then swapping the items in each pile until they are sorted in reverse order. This process is known as the First Iteration of Bubble Sort.</p><p>For example, we need to sort these elements -5, 72,0, 33, — 9, then the sequence will work in this way.</p><ul><li>Starting with the first index, the first and second components should be juxtaposed.</li><li>The first and second elements are switched if the first one is bigger.</li><li>Compare the second and third items right now. If they are not in the proper sequence, swap them.</li><li>The method described above continues until the last component.</li></ul><p>Bubble sort first iteration in C program</p><p>#include&lt;stdio.h&gt;</p><p>int main() {</p><p>double Array[5]; // array to be sorted</p><p>double temp; // temporary variable to hold the current element of the array</p><p>void bubbleSort(Array); // function that performs bubble sort on a given array</p><p>while (true) {</p><p>temp=Array[0]; /* swap two elements */</p><p>Arrays[1]=Arrays[2]; /* update second position */</p><p>Arrows ++; /* make next move */</p><p>}/*endwhile*/ // loop body }// end of Bubble Sort First Iteration in C programming language</p><h3>2. Remaining Iteration</h3><p>The Bubble Sort is an efficient sorting algorithm that works in O(n log n) time, where n is the number of items to be sorted. The first iteration of the Bubble Sort sorts the input item at index 0 into ascending order, and then repeats this process until all the inputs have been sorted. So, after performing one iteration of the bubble sort on an input dataset containing five items, there would be four remaining iterations left to perform.</p><h3>The Bubble Sort Algorithm in C</h3><p>The basic bubble sort algorithm can be explained as follows:</p><p>bubbleSort(array)</p><p>for i &lt;- 1 to indexOfLastUnsortedElement-1</p><p>if leftElement &gt; rightElement</p><p>swap leftElement and rightElement</p><p>end bubbleSort</p><p>This algorithm does the swapping of elements to get the final output in the desired order. For instance, if you pass an array consisting of the elements: (6, 3, 8, 2, 5, 7), the final array after the bubble sort implementation will be: (2, 3, 5, 6, 7, 8).</p><h3>How Does the C Program for Bubble Sort Work?</h3><p>As mentioned, the C program for bubble sort works by comparing and swapping adjacent elements in an array. Let’s understand this in a step-by-step method:</p><p>Suppose we want to sort an array, let’s name it arr, with n elements in ascending order; this is how the bubble sort algorithm will work.</p><ol><li>Starts from the first index: arr[0] and compares the first and second element: arr[0] and arr[1]</li><li>If arr[0] is greater than arr[1], they are swapped</li><li>Similarly, if arr[1] is greater than arr[2], they are swapped</li><li>The above process continues until the last element arr[n-1]</li></ol><p>All four steps are repeated for each iteration. Upon completing each iteration, the largest unsorted element is moved to the end of the array. Finally, the program ends when no elements require swapping, giving us the array in ascending order. Now that we know the working of the bubble sort let’s implement it in C programming using different methods.</p><h3>C Program for Bubble Sort Using for Loop</h3><p>We will write the first C program for bubble sort using a for loop. In this example, we will a use nested for loop in C to sort the elements of a one-dimensional array. To begin with, we will ask for the total number of elements and then the values from the user. Once we get the elements, we will use the for loop to iterate through the elements and sort them in ascending order.</p><p>#include &lt;stdio.h&gt;</p><p>int main(){</p><p>int arr[50], num, x, y, temp;</p><p>printf(“Please Enter the Number of Elements you want in the array: “);</p><p>scanf(“%d”, &amp;num);</p><p>printf(“Please Enter the Value of Elements: “);</p><p>for(x = 0; x &lt; num; x++)</p><p>scanf(“%d”, &amp;arr[x]);</p><p>for(x = 0; x &lt; num — 1; x++){</p><p>for(y = 0; y &lt; num — x — 1; y++){</p><p>if(arr[y] &gt; arr[y + 1]){</p><p>temp = arr[y];</p><p>arr[y] = arr[y + 1];</p><p>arr[y + 1] = temp;</p><p>}</p><p>}</p><p>}</p><p>printf(“Array after implementing bubble sort: “);</p><p>for(x = 0; x &lt; num; x++){</p><p>printf(“%d “, arr[x]);</p><p>}</p><p>return 0;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LlxUa3E0r18WIE2NtNUZ7A.jpeg" /></figure><h3>C Program for Bubble Sort Using While Loop</h3><p>For this example, we will follow the same method as in the previous example. The only difference is that we will replace the for loop with the nested while loop.</p><p>#include &lt;stdio.h&gt;</p><p>int main(){</p><p>int arr[50], num, x, y, temp;</p><p>printf(“Please Enter the Number of Elements you want in the array: “);</p><p>scanf(“%d”, &amp;num);</p><p>printf(“Please Enter the Value of Elements: “);</p><p>for(x = 0; x &lt; num; x++)</p><p>scanf(“%d”, &amp;arr[x]);</p><p>x = 0;</p><p>while(x &lt; num — 1){</p><p>y = 0;</p><p>while(y &lt; num — x — 1){</p><p>if(arr[y] &gt; arr[y + 1]){</p><p>temp = arr[y];</p><p>arr[y] = arr[y + 1];</p><p>arr[y + 1] = temp;</p><p>}</p><p>y++;</p><p>}</p><p>x++;</p><p>}</p><p>printf(“Array after implementing bubble sort: “);</p><p>for(x = 0; x &lt; num; x++)</p><p>printf(“%d “, arr[x]);</p><p>return 0;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C1_DcUs--rgGgjlkOemzHg.jpeg" /></figure><h3>C Program for Bubble Sort Using Functions</h3><p>In this C program for bubble sort, we will create a user-defined function and write down the mechanism of sorting the array elements inside it. Here’s how to implement bubble sort in C using functions.</p><p>#include &lt;stdio.h&gt;</p><p>void bubbleSortExample(int arr[], int num){</p><p>int x, y, temp;</p><p>for(x = 0; x &lt; num — 1; x++){</p><p>for(y = 0; y &lt; num — x — 1; y++){</p><p>if(arr[y] &gt; arr[y + 1]){</p><p>temp = arr[y];</p><p>arr[y] = arr[y + 1];</p><p>arr[y + 1] = temp;</p><p>}</p><p>}</p><p>}</p><p>}</p><p>int main(){</p><p>int arr[50], n, x;</p><p>printf(“Please Enter the Number of Elements you want in the array: “);</p><p>scanf(“%d”, &amp;n);</p><p>printf(“Please Enter the Value of Elements: “);</p><p>for(x = 0; x &lt; n; x++)</p><p>scanf(“%d”, &amp;arr[x]);</p><p>bubbleSortExample(arr, n);</p><p>printf(“Array after implementing bubble sort: “);</p><p>for(x = 0; x &lt; n; x++){</p><p>printf(“%d “, arr[x]);</p><p>}</p><p>return 0;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-XxCuV0Q6mHbzsbzxIy6w.jpeg" /></figure><h3>C Program for Bubble Sort Using Pointers</h3><p>In this C program for bubble sort, we have used C pointers. All we did was create another user-defined function to standardize the use of pointers in it. Here’s how the implementation goes.</p><p>#include &lt;stdio.h&gt;</p><p>void SwapFunc(int *i, int *j){</p><p>int Temp;</p><p>Temp = *i;</p><p>*i = *j;</p><p>*j = Temp;</p><p>}</p><p>void bubbleSortExample(int arr[], int num){</p><p>int x, y, temp;</p><p>for(x = 0; x &lt; num — 1; x++) {</p><p>for(y = 0; y &lt; num — x — 1; y++) {</p><p>if(arr[y] &gt; arr[y + 1]) {</p><p>SwapFunc(&amp;arr[y], &amp;arr[y + 1]);</p><p>}</p><p>}</p><p>}</p><p>}</p><p>int main(){</p><p>int arr[50], n, x;</p><p>printf(“Please Enter the Number of Elements you want in the array: “);</p><p>scanf(“%d”, &amp;n);</p><p>printf(“Please Enter the Value of Elements: “);</p><p>for(x = 0; x &lt; n; x++)</p><p>scanf(“%d”, &amp;arr[x]);</p><p>bubbleSortExample(arr, n);</p><p>printf(“Array after implementing bubble sort: “);</p><p>for(x = 0; x &lt; n; x++)</p><p>{</p><p>printf(“%d “, arr[x]);</p><p>}</p><p>return 0;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qn53Kh-uSSWB4BXMl8lpsg.jpeg" /></figure><h3>C Program for Optimized Implementation of Bubble Sort</h3><p>All the elements are compared in standard bubble sorting even if the last elements are already sorted based on the previous iterations. This increases the execution time, which can be reduced by optimizing the C program for bubble sort. All we need to do is introduce an additional variable; let’s name it Swap.</p><p>The variable Swap is set as true if the swapping of elements has occurred; otherwise, it is false. When the program finds that the value of the Swap variable is false, it will understand that the sorting is already done and break out of the loop. This will reduce the execution time by optimizing the algorithm. The code below shows how to optimize the C program for bubble sort.</p><p>#include &lt;stdio.h&gt;</p><p>// Function for bubble sorting</p><p>void bubbleSortExample(int arr[], int n){</p><p>for (int i = 0; i &lt; n — 1; ++i){</p><p>int Swap = 0;</p><p>// Comparing array elements</p><p>for (int x = 0; x &lt; n — i — 1; ++x){</p><p>if (arr[x] &gt; arr[x + 1]){</p><p>int temp = arr[x];</p><p>arr[x] = arr[x + 1];</p><p>arr[x + 1] = temp;</p><p>Swap = 1;</p><p>}</p><p>}</p><p>if (Swap == 0){ // No swapping required</p><p>break;</p><p>}</p><p>}</p><p>}</p><p>void displayArray(int arr[], int n){</p><p>for (int x = 0; x &lt; n; ++x){</p><p>printf(“%d “, arr[x]);</p><p>}</p><p>printf(“\n”);</p><p>}</p><p>// Driver method</p><p>int main(){</p><p>int data[] = {27, 13, -54, 93, -20};</p><p>// finding array’s length</p><p>int n = sizeof(data) / sizeof(data[0]);</p><p>bubbleSortExample(data, n);</p><p>printf(“Array after implementing bubble sort: \n”);</p><p>displayArray(data, n);</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vA9l-S3vWjv0Av-EFK3bVw.jpeg" /></figure><h3>Bubble Sort Code in Python, Java, and C/C++</h3><h3>Bubble Sort Code in Python</h3><p>def bubbleSort(array):</p><p># loop to access each array element</p><p>for i in range(len(array)):</p><p># loop to compare array elements</p><p>for j in range(0, len(array) — i — 1):</p><p># compare two adjacent elements</p><p># change &gt; to &lt; to sort in descending order</p><p>if array[j] &gt; array[j + 1]:</p><p># swapping elements if elements</p><p># are not in the intended order</p><p>temp = array[j]</p><p>array[j] = array[j+1]</p><p>array[j+1] = temp</p><p>data = [-5, 72, 0, 33, -9]</p><p>bubbleSort(data)</p><p>print(‘Sorted Array in Ascending Order:’)</p><p>print(data)</p><h3>Bubble Sort Code in Java</h3><p>import java.util.Arrays;</p><p>class Main {</p><p>// perform the bubble sort</p><p>static void bubbleSort(int array[]) {</p><p>int size = array.length;</p><p>// loop to access each array element</p><p>for (int i = 0; i &lt; size — 1; i++)</p><p>// loop to compare array elements</p><p>for (int j = 0; j &lt; size — i — 1; j++)</p><p>// compare two adjacent elements</p><p>// change &gt; to &lt; to sort in descending order</p><p>if (array[j] &gt; array[j + 1]) {</p><p>// swapping occurs if elements</p><p>// are not in the intended order</p><p>int temp = array[j];</p><p>array[j] = array[j + 1];</p><p>array[j + 1] = temp;</p><p>}</p><p>}</p><p>public static void main(String args[]) {</p><p>int[] data = { -5, 72, 0, 33, -9 };</p><p>// call method using class name</p><p>Main.bubbleSort(data);</p><p>System.out.println(“Sorted Array in Ascending Order:”);</p><p>System.out.println(Arrays.to String(data));</p><p>}</p><p>}</p><h3>Bubble Sort Code in C Programming</h3><p>// Bubble sort in C</p><p>#include &lt;stdio.h&gt;</p><p>// perform the bubble sort</p><p>void bubbleSort(int array[], int size) {</p><p>// loop to access each array element</p><p>for (int step = 0; step &lt; size — 1; ++step) {</p><p>// loop to compare array elements</p><p>for (int i = 0; i &lt; size — step — 1; ++i) {</p><p>// compare two adjacent elements</p><p>// change &gt; to &lt; to sort in descending order</p><p>if (array[i] &gt; array[i + 1]) {</p><p>// swapping occurs if elements</p><p>// are not in the intended order</p><p>int temp = array[i];</p><p>array[i] = array[i + 1];</p><p>array[i + 1] = temp;</p><p>}</p><p>}</p><p>}</p><p>}</p><p>// print array</p><p>void printArray(int array[], int size) {</p><p>for (int i = 0; i &lt; size; ++i) {</p><p>printf(“%d “, array[i]);</p><p>}</p><p>printf(“\n”);</p><p>}</p><p>int main() {</p><p>int data[] = {-5, 72, 0, 33, -9};</p><p>// find the array’s length</p><p>int size = sizeof(data) / sizeof(data[0]);</p><p>bubbleSort(data, size);</p><p>printf(“Sorted Array in Ascending Order:\n”);</p><p>printArray(data, size);</p><p>}</p><h3>Bubble Sort Code in C++</h3><p>#include &lt;iostream&gt;</p><p>using namespace std;</p><p>// perform bubble sort</p><p>void bubbleSort(int array[], int size) {</p><p>// loop to access each array element</p><p>for (int step = 0; step &lt; size; ++step) {</p><p>// loop to compare array elements</p><p>for (int i = 0; i &lt; size — step; ++i) {</p><p>// compare two adjacent elements</p><p>// change &gt; to &lt; to sort in descending order</p><p>if (array[i] &gt; array[i + 1]) {</p><p>// swapping elements if elements</p><p>// are not in the intended order</p><p>int temp = array[i];</p><p>array[i] = array[i + 1];</p><p>array[i + 1] = temp;</p><p>}</p><p>}</p><p>}</p><p>}</p><p>// print array</p><p>void printArray(int array[], int size) {</p><p>for (int i = 0; i &lt; size; ++i) {</p><p>cout &lt;&lt; “ “ &lt;&lt; array[i];</p><p>}</p><p>cout &lt;&lt; “\n”;</p><p>}</p><p>int main() {</p><p>int data[] = {-2, 45, 0, 11, -9};</p><p>// find array’s length</p><p>int size = sizeof(data) / sizeof(data[0]);</p><p>bubbleSort(data, size);</p><p>cout &lt;&lt; “Sorted Array in Ascending Order:\n”;</p><p>printArray(data, size);</p><p>}</p><h3>Optimized Bubble Sort Algorithm</h3><p>An optimized bubble sort algorithm is one that performs better than the standard bubble sort algorithm. The main benefit of an optimized bubble sort algorithm is that it takes less time to execute, which can be important in applications where performance is a critical factor.</p><p>How to optimize the bubble sort?</p><ul><li>We may add a new variable, which is called swap, that has been switched into the optimized bubble sort to optimize the bubble sort. The value of swap is set to be true if there is an element swap. If not, it is set to be false.</li><li>If no swapping occurs after an iteration, the value of swapping will be false. This indicates that the elements have already been sorted and that no more iterations are required.</li><li>This will speed up the process and optimize bubble sort efficiency.</li></ul><h3>Algorithm for Optimized Bubble Sort</h3><p>bubbleSort(array)</p><p>swapped &lt;- false</p><p>for i &lt;- 1 to index Of Last Unsorted Element-1</p><p>if left Element &gt; right Element</p><p>swap left Element and right Element</p><p>swapped &lt;- true</p><p>end bubbleSort</p><h3>Optimized Bubble Sort in Python, Java, and C/C++</h3><h3>Optimized Bubble Sort in Python</h3><p>def bubbleSort(array):</p><p># loop through each element of array</p><p>for i in range(len(array)):</p><p># keep track of swapping</p><p>swapped = False</p><p># loop to compare array elements</p><p>for j in range(0, len(array) — i — 1):</p><p># compare two adjacent elements</p><p># change &gt; to &lt; to sort in descending order</p><p>if array[j] &gt; array[j + 1]:</p><p># swapping occurs if elements</p><p># are not in the intended order</p><p>temp = array[j]</p><p>array[j] = array[j+1]</p><p>array[j+1] = temp</p><p>swapped = True</p><p># no swapping means the array is already sorted</p><p># so no need for further comparison</p><p>if not swapped:</p><p>break</p><p>data = [-5, 72, 0, 33, -9]</p><p>bubbleSort(data)</p><p>print(‘Sorted Array in Ascending Order:’)</p><p>print(data)</p><h3>Optimized Bubble Sort in Java</h3><p>import java.util.Arrays;</p><p>class Main {</p><p>// perform the bubble sort</p><p>static void bubbleSort(int array[]) {</p><p>int size = array.length;</p><p>// loop to access each array element</p><p>for (int i = 0; i &lt; (size-1); i++) {</p><p>// check if swapping occurs</p><p>boolean swapped = false;</p><p>// loop to compare adjacent elements</p><p>for (int j = 0; j &lt; (size-i-1); j++) {</p><p>// compare two array elements</p><p>// change &gt; to &lt; to sort in descending order</p><p>if (array[j] &gt; array[j + 1]) {</p><p>// swapping occurs if elements</p><p>// are not in the intended order</p><p>int temp = array[j];</p><p>array[j] = array[j + 1];</p><p>array[j + 1] = temp;</p><p>swapped = true;</p><p>}</p><p>}</p><p>// no swapping means the array is already sorted</p><p>// so no need for further comparison</p><p>if (!swapped)</p><p>break;</p><p>}</p><p>}</p><p>public static void main(String args[]) {</p><p>int[] data = { -5, 72, 0, 33, -9 };</p><p>// call method using the class name</p><p>Main.bubbleSort(data);</p><p>System.out.println(“Sorted Array in Ascending Order:”);</p><p>System.out.println(Arrays.toString(data));</p><p>}</p><p>}</p><h3>Optimized Bubble Sort in C Programming</h3><p>#include</p><p>// perform the bubble sort</p><p>void bubbleSort(int array[], int size) {</p><p>// loop to access each array element</p><p>for (int step = 0; step &lt; size — 1; ++step) {</p><p>// check if swapping occurs</p><p>int swapped = 0;</p><p>// loop to compare array elements</p><p>for (int i = 0; i &lt; size — step — 1; ++i) {</p><p>// compare two array elements</p><p>// change &gt; to &lt; to sort in descending order</p><p>if (array[i] &gt; array[i + 1]) {</p><p>// swapping occurs if elements</p><p>// are not in the intended order</p><p>int temp = array[i]</p><p>array[i] = array[i + 1];</p><p>array[i + 1] = temp;</p><p>swapped = 1;</p><p>}</p><p>}</p><p>// no swapping means the array is already sorted</p><p>// so no need for further comparison</p><p>if (swapped == 0) {</p><p>break;</p><p>}</p><p>}</p><p>}</p><p>// print array</p><p>void printArray(int array[], int size) {</p><p>For (int i = 0; i &lt; size; ++i) {</p><p>printf(“%d “, array[i]);</p><p>}</p><p>printf(“\n”);</p><p>}</p><p>// main method</p><p>int main() {</p><p>int data[] = {-5, 72, 0, 33, -9};</p><p>// find the array’s length</p><p>int size = sizeof(data) / sizeof(data[0]);</p><p>bubbleSort(data, size);</p><p>printf(“Sorted Array in Ascending Order:\n”);</p><p>printArray(data, size);</p><p>}</p><h3>Optimized Bubble Sort in C++</h3><p>#include</p><p>using namespace std;</p><p>// perform bubble sort</p><p>void bubbleSort(int array[], int size) {</p><p>// loop to access each array element</p><p>for (int step = 0; step &lt; (size-1); ++step) {</p><p>// check if swapping occurs</p><p>int swapped = 0;</p><p>// loop to compare two elements</p><p>for (int i = 0; i &lt; (size-step-1); ++i) {</p><p>// compare two array elements</p><p>// change &gt; to &lt; to sort in descending order</p><p>if (array[i] &gt; array[i + 1]) {</p><p>// swapping occurs if elements</p><p>// are not in intended order</p><p>int temp = array[i];</p><p>array[i] = array[i + 1];</p><p>array[i + 1] = temp;</p><p>swapped = 1;</p><p>}</p><p>}</p><p>// no swapping means the array is already sorted</p><p>// so no need of further comparison</p><p>if (swapped == 0)</p><p>break;</p><p>}</p><p>}</p><p>// print an array</p><p>void printArray(int array[], int size) {</p><p>For (int i = 0; i &lt; size; ++i) {</p><p>cout &lt;&lt; “ “ &lt;&lt; array[i];</p><p>}</p><p>cout &lt;&lt; “\n”;</p><p>}</p><p>int main() {</p><p>int data[] = {-5, 72, 0, 33, -9};</p><p>// find the array’s length</p><p>int size = sizeof(data) / sizeof(data[0]);</p><p>bubbleSort(data, size);</p><p>cout &lt;&lt; “Sorted Array in Ascending Order:\n”;</p><p>printArray(data, size);</p><p>}</p><p>By now, you must have noticed that we left out one important part when explaining how the bubble sort works: the time complexity. The time complexity varies depending on which sorting algorithm is used, as well as the types of data. In short, if a sorting task takes very long in your programming language and you don’t mind losing some efficiency, try optimizing your bubble sort algorithms.</p><h3>The Complexity of Bubble Sort in C</h3><h3>Time Complexity</h3><ul><li>Worst Case Complexity: If the array elements are in descending order and we want to make it in ascending order, it is the worst case. The time complexity for the worst case is O(n²).</li><li>Best Case Complexity: The best case is when all the elements are already sorted, and no swapping is required. The time complexity in this scenario is O(n).</li><li>Average Case Complexity: This is the case when the elements are jumbled. The time complexity for the average case in bubble sort is O(n²).</li></ul><h3>Space Complexity</h3><ul><li>Space complexity for the standard bubble sort algorithm is O(1) as there is one additional variable required to hold the swapped elements temporarily.</li><li>Space complexity for optimized implementation of the bubble sort algorithm is O(2). This is because two additional variables are required.</li></ul><h3>Applications of Bubble Sort in C</h3><p>The best scenarios to use the bubble sort program in C is when:</p><ul><li>Complexity does not matter</li><li>Slow execution speed does not matter</li><li>Short and easy to understand coding is preferred</li></ul><blockquote><em>Advance your career as a MEAN stack developer with the </em><a href="https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training?source=GhPreviewCTAText"><em>Full Stack Web Developer — MEAN Stack Master’s Program</em></a><em>. Enroll now!</em></blockquote><h3>Alternatives to Bubble Sort in C</h3><p>Besides the bubble sort algorithm, you can also sort arrays and lists using the following sorting algorithms.</p><ul><li>Quicksort</li><li>Selection sort</li><li>Merge sort</li><li>Insertion sort</li></ul><p>Watch the video below that will help you understand what is bubble sort algorithm and how bubble sort works in real-time.</p><h3>Wrapping It Up</h3><p>In this article, you have learned what bubble sorting is and how you can write a C program for bubble sort in different ways. You can now put your knowledge to practice and hone your skills. To learn about more such fundamental C programming concepts, you can sign up for our <a href="https://www.simplilearn.com/skillup-free-online-courses?referrer=top-nav#Software-Development">SkillUp platform</a>. The platform offers numerous free courses to help you learn and understand concepts of various programming languages, including C and C++.</p><p>Learning the fundamentals of a single programming language is not enough in today’s competitive world. Hence, it is vital to master multiple languages. You can opt for our <a href="https://www.simplilearn.com/pgp-full-stack-web-development-certification-training-course?source=GhPreviewCoursepages">Post Graduate Program for Full Stack Web Development</a> for that. The certification course is a mixture of some of the most popular development languages in the world. By registering for the course, you get the chance to learn about multiple programming languages and relevant tools to land yourself a lucrative high-paying job in a multinational company.</p><p>If you have any doubts or queries regarding bubble sort using C programming, then feel free to post them in the comments section below. Our expert team will review them and get back to you with solutions at the earliest.</p><p><em>Originally published at </em><a href="https://www.simplilearn.com/tutorials/c-tutorial/c-program-for-bubble-sort"><em>https://www.simplilearn.com</em></a><em> on July 8, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe01d46b85ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/bubble-sort-in-c-how-to-use-bubble-sort-in-c-programming-simplilearn-fe01d46b85ac">Bubble Sort in C — How to Use Bubble Sort in C Programming? | Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Here’s How to Delete Duplicate Rows in SQL with Syntax and Examples | Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/heres-how-to-delete-duplicate-rows-in-sql-with-syntax-and-examples-simplilearn-a760d7d069fd?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/a760d7d069fd</guid>
            <dc:creator><![CDATA[Simplilearn]]></dc:creator>
            <pubDate>Fri, 13 Jan 2023 05:53:54 GMT</pubDate>
            <atom:updated>2023-01-13T05:53:28.175Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*Hcxl4pZJsft-COAm.jpg" /></figure><p>In SQL tables, there may be duplicate rows which often leads to data inconsistency. These problems can be overcome with a primary key, but sometimes when these rules are not followed or an exception occurs, the problem becomes more daunting. It is a better practice to use the relevant keys and constraints to remove the risk of duplicate rows. To clean up duplicate data, you must use some special procedures.</p><h3>Deleting Duplicate Rows in SQL</h3><p>In an SQL Server table, duplicate records can be a serious problem. Duplicate data can result in orders being handled several times, incorrect reporting results, and more. In SQL Server, there are many options for dealing with duplicate records in a table, depending on the circumstances. They are:</p><ul><li>Unique constraints in Table</li><li>No Unique constraints in Table</li></ul><h3>Unique Constraints in Table</h3><p>According to Delete duplicate rows in SQL, a table with a unique index can use the index to identify duplicate data, and then delete the duplicate records. Self-joins, ordering the data by the maximum value, using the RANK function, or using NOT IN logic is used to perform identification.</p><h3>No Unique Constraints in Table</h3><p>Under Delete duplicate rows in SQL, it’s a little difficult for tables without a special index. The ROW NUMBER() function can be used in connection with a common table expression (CTE) to sort the data and then remove the duplicate records.</p><h3>SQL Delete Duplicate Rows using Group By and Having Clause</h3><p>According to Delete Duplicate Rows in SQL, for finding duplicate rows, you need to use the SQL GROUP BY clause. The COUNT function can be used to verify the occurrence of a row using the Group by clause, which groups data according to the given columns.</p><h3>Code:</h3><p>Creating and inserting data into the table:</p><p>First, you need to create a table as follows:</p><p>CREATE TABLE stud(Regno integer, Name text,Marks integer);</p><p>/* Create few records in this table */</p><p>INSERT INTO stud VALUES(1,’Tom’,77);</p><p>INSERT INTO stud VALUES(2,’Lucy’,78);</p><p>INSERT INTO stud VALUES(3,’Frank’,89);</p><p>INSERT INTO stud VALUES(4,’Jane’,98);</p><p>INSERT INTO stud VALUES(5,’Robert’,78);</p><p>INSERT INTO stud VALUES(3,’Frank’,89);</p><p>INSERT INTO stud VALUES(5,’Robert’,78);</p><p>INSERT INTO stud VALUES(4,’Jane’,98);</p><p>COMMIT;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*HEO24GbaMSSXNa_5rJvKQw.jpeg" /></figure><h3>Fetching and Identifying the duplicate rows in SQL</h3><p>/* Display all the records from the table */</p><p>SELECT * FROM stud;</p><h3>Input</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*-9UtRsU3hAtkMiMiX-AziA.jpeg" /></figure><h3>Output</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/1*I_KXl6LR3DHwYt3rWir7OQ.jpeg" /></figure><p>The table depicted above consisting of data repetition, that is duplicate data, can be deleted using the group by clause as follows:</p><h3>Deleting Duplicate Rows From the Table Using Group by and Having Clause</h3><p>Under SQL, delete duplicate Rows in SQL is done with the Group by and Having clause. It is done as follows:</p><h3>Code:</h3><p>select Name,Marks,grade,count(*) as cnt from stud group by Name,Marks,grade having count(*) &gt; 1;</p><h3>Input:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*FlDDmjxTcGEvc5B6dJaWuw.jpeg" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*VCol8xpTu29jUNGGsY9rEg.jpeg" /></figure><h3>SQL Delete Duplicate Rows Using Common Table Expressions (CTE)</h3><h3>Common Table Expression</h3><p>In delete duplicate rows in SQL, the acronym CTE stands for “common table expression.” It’s a named temporary result set created by a simple query and specified within the scope of a single SELECT, INSERT, UPDATE, or DELETE expression. You can write complex recursive queries using CTE. It has a lot more traction than temporary tables.</p><h3>Syntax</h3><p>WITH [CTEName]</p><p>As</p><p>( Select col1,col2,col3 from [tablename] where [condition]</p><p>Select col1,col2,col3 from [CTEName]</p><h3>Procedure for Removing the Duplicate Rows Using CTE</h3><p>First, you need to make a table Employ_DB table script to SQL Server and run it in the required database.</p><h3>Creating the Table</h3><p>Create table Employ_DB(emp_no number(10),emp_name varchar(20),emp_address varchar(25), emp_eoj date);</p><h3>Input:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*mM_LqeOuBwDLXul6f6fpaA.jpeg" /></figure><h3>Output</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*ruNbpxQx9zofE7C2IBtFaQ.jpeg" /></figure><h3>Inserting Data Into the Table</h3><p>After the table has been established, you must now insert some records into it, including some duplicates.</p><h3>Code:</h3><p>Insert into Employ_DB values(11,’Mohith’,’tokya’,’12-may-2000&#39;);</p><h3>Input:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*i2iiWfkAJ5Y69wPRlNh7Xw.jpeg" /></figure><h3>Output:</h3><p>(8) rows inserted</p><h3>Searching Data From the Table</h3><p>Next, execute the preceding script and use the following query to search for the data in the table.</p><p>To print the records from the Employ_EB in a sorted list, use the field name and address of an employee.</p><h3>Code:</h3><p>Select * from Employ_DB order by emp_name,emp_address;</p><h3>Input:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*8SEkpMG_9emqTg3de1wzow.jpeg" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*PLIiZNhpbDkhfpY7fjMUNA.jpeg" /></figure><h3>Deleting Duplicate Rows in SQL Using CTE</h3><p>According to Delete Duplicate Rows in SQL, the above contains many of the duplicated records that have been fixed onto the table. For numbering duplicate city records by state, you’ll use CTE’s row number () feature. CTE can generate a temporary result set that you can use to remove redundant records from the actual table with a single question.</p><h3>Code:</h3><p>With CTE as (Select emp_no,emp_name,row_number()</p><p>Over (partition by emp_no order by emp_no) as number_of_employ</p><p>From Employ_DB)Select * from CTE order by emp_name,emp_no;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*irsivFXYjAKDQx_R5C6TkA.jpeg" /></figure><p>Finally, delete the duplicate record using the Common Type expression is as follows:</p><h3>Code:</h3><p>With CTE as (Select emp_no,emp_name,row_number()</p><p>Over (partition by emp_no order by emp_no) as number_of_employ</p><p>From Employ_DB)</p><p>Select * from CTE where number of employ &gt;1 order by emp_no;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*V2lVxfbWNVCsSm2OqLqukQ.jpeg" /></figure><p>According to Delete Duplicate Rows in SQL, in the above table, only two of the records are duplicated based on the emp_no. So, now you are going to delete that duplicate record from the table Employ_DB using the following code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*8H9Ab_eGYjO9USIBHlqzMg.jpeg" /></figure><h3>Rank Function to SQL Delete Duplicate Rows</h3><p>According to Delete Duplicate Rows in SQL, you can also use the SQL RANK feature to get rid of the duplicate rows. Regardless of duplicate rows, the SQL RANK function returns a unique row ID for each row.</p><p>You need to use aggregate functions like Max, Min, and AVG to perform calculations on data. Using these functions, you get a single output row. The SQL RANK functions in SQL Server allow you to specify a rank for individual fields based on categorizations. For each participating line, it returns an aggregated value. RANK functions in SQL are often referred to as Window Functions.</p><p>You can implement Rank functions in four ways.</p><ol><li>ROW_NUMBER()</li><li>RANK()</li><li>DENSE_RANK()</li><li>NTILE()</li></ol><p>According to Delete Duplicate Rows in SQL, the PARTITION BY clause is used with the RANK function in the following query. The PARTITION BY clause divides the data into subsets for the listed columns and assigns a rank to each partition.</p><h3>Code:</h3><p>Select *,</p><p>RANK() OVER ( PARTITION BY Animal_id,Animal_name ORDER BY sno DESC )rank</p><p>From Animals ) T on A.sno=T.sno</p><p>Where T.Rank&gt;1</p><p>Alter table Animals</p><p>Drop column sno</p><p>Select * from Animals</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*jBAHki-cbF9J59BnPSxlnw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*waQ5x6K8Vknjkmni92nTlQ.jpeg" /></figure><p>You can see in the screenshot that the row with a rank greater than one needs to be removed. Let’s use the following question to get rid of those rows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*SPHXqHe0QM5YbiJV3Lvdqw.jpeg" /></figure><h3>Use SSIS Package to SQL Delete Duplicate Rows</h3><p>The SQL Server integration service includes several transformations and operators that aid administrators and developers in reducing manual labor and optimizing tasks. The SSIS package can also be used to delete duplicate rows from a SQL table.</p><h3>Use Sort Operator in an SSIS Package for Removing Duplicating Rows</h3><p>A Sort operator can be used to sort the values in a SQL table. You may wonder how data sorting will help you get rid of duplicate rows. Here is how it is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/164/1*3cImryj9OPXAyZhDoBqk9w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*YwaSLE06o_-4D4AOns_CEw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*YBTa_yfvtt0wWIq_TL68_Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*75yyHI6hEMlVda5UnJ-bgA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*PjXuum5bLKa9flN4hvQkjQ.jpeg" /></figure><p>To demonstrate this challenge, build an SSIS kit.</p><p>First, build a new Integration kit in SQL Server Data Tools. Add an OLE DB source link to the new bundle.</p><blockquote><em>Gain expertise in the latest Business analytics tools and techniques with the </em><a href="https://www.simplilearn.com/business-analyst-certification-training-course?source=GhPreviewCTAText"><em>Business Analyst Certification Program</em></a><em>. Enroll now!</em></blockquote><h3>Conclusion</h3><p>In this article, you looked at how to remove duplicate rows in SQL using T-SQL, CTE, and the SSIS kit, among other methods. You are free to use whatever approach makes you feel most at ease. However, it is advised against directly implementing these procedures and packaging on output results. You should conduct your tests in a less demanding setting.</p><p>To become an expert in SQL programming language, join our <a href="https://www.simplilearn.com/sql-database-training-course?referrer=search&amp;tag=SQL">Simplilearn’s SQL Certification Training Course</a>. This SQL certification course provides you with everything you need to get started working with SQL databases and incorporating them into your applications. Learn how to organize your database correctly, write effective SQL statements and clauses, and maintain your SQL database for scalability. This course includes comprehensive coverage of SQL basics, comprehensive coverage of all relevant query tools and SQL commands, an industry-recognized course completion certificate, and lifetime access to self-paced learning.</p><p>Despite the fact that SQL is an old language, it is still very useful today as companies all over the world collect massive amounts of data. SQL is one of the most in-demand engineering skills, and mastering it will vastly improve your resume.</p><p>Database and relationship management, Query tools and SQL commands, Aggregate functions, Group by clause, Tables and joins, Subqueries, Data manipulation, Transaction control, Views, and procedures are among the skills covered.</p><p>Start learning for free today’s most in-demand skills. This course emphasize the development of good core skills for future career advancement. Experts in the field will teach you. Get access to 300+ job-ready skills in today’s most in-demand fields. Learn from anywhere, on any laptop, while working or studying. <a href="https://www.simplilearn.com/skillup-free-online-courses?referrer=top-nav#exploreCourse">Explore free courses here</a>. You can find free guides on various career paths, wages, interview tips, and more.</p><p>Have any questions for us? Leave them in the comments section of this article, and our experts will get back to you on them, as soon as possible!</p><p><em>Originally published at </em><a href="https://www.simplilearn.com/tutorials/sql-tutorial/delete-duplicate-rows-in-sql"><em>https://www.simplilearn.com</em></a><em> on May 7, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a760d7d069fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/heres-how-to-delete-duplicate-rows-in-sql-with-syntax-and-examples-simplilearn-a760d7d069fd">Here’s How to Delete Duplicate Rows in SQL with Syntax and Examples | Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C Program to Find Factorial of a Number: Loops, Recursion, and More [Updated] | Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/c-program-to-find-factorial-of-a-number-loops-recursion-and-more-updated-simplilearn-6954807ca661?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/6954807ca661</guid>
            <dc:creator><![CDATA[Simplilearn]]></dc:creator>
            <pubDate>Fri, 13 Jan 2023 05:29:51 GMT</pubDate>
            <atom:updated>2023-01-13T05:29:41.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*z4VDNJPK7Pif-K_O.jpg" /></figure><p>Factorial of a positive integer (number) is the sum of multiplication of all the integers smaller than that positive integer. For example, factorial of 5 is 5 * 4 * 3 * 2 * 1 which equals to 120.</p><p><strong>Factorial Program in C</strong>: All positive descending integers are added together to determine the factor of n. Hence, n! is denoted as a Factorial of n.</p><p>A factorial is denoted by “!”. So, suppose, you want to find the factorial of the number n, then n! = n * (n-1) * (n-2) * (n-3) … *.</p><p>Now, let’s see how to write a C program for factorial of a number?</p><h3>Algorithm of Factorial Program in C</h3><p>The algorithm of a C program to find factorial of a number is:</p><ul><li>Start program</li><li>Ask the user to enter an integer to find the factorial</li><li>Read the integer and assign it to a variable</li><li>From the value of the integer up to 1, multiply each digit and update the final value</li><li>The final value at the end of all the multiplication till 1 is the factorial</li><li>End program</li></ul><h3>Pseudocode of C Program for Factorial</h3><p>Using the above algorithm, we can create pseudocode for the C program to find factorial of a number, such as:</p><p>procedure fact(num)</p><p>until num=1</p><p>fact = fact*(num-1)</p><p>Print fact</p><p>end procedure</p><p>Now that we know the basic algorithm and pseudocode to write a C program for factorial, let’s start implementing it using various methods.</p><p>Now, let’s start implementing it using various methods.</p><h3>C Program to Find Factorial Using For Loop</h3><p>We will start by using a for loop to write a C program for the factorial of a number. The program will have an integer variable with a value of 1. The for loop will keep increasing the value by 1 with each iteration until the number is equal to the number entered by the user. The final value in the fact variable will be the factorial of the number entered by the user.</p><h3>Example:</h3><p>#include&lt;stdio.h&gt;</p><p>int main(){</p><p>int x,fact=1,n;</p><p>printf(“Enter a number to find factorial: “);</p><p>scanf(“%d”,&amp;n);</p><p>for(x=1;x&lt;=n;x++)</p><p>fact=fact*x;</p><p>printf(“Factorial of %d is: %d”,n,fact);</p><p>return 0;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*Ng49HX-KNfHea15Dnx-LdQ.jpeg" /></figure><h3>C Program to Find Factorial Using While Loop</h3><p>In this example, we will implement the algorithm using a while loop and find the factorial program in c.</p><p>#include&lt;stdio.h&gt;</p><p>int main(){</p><p>int x=1,fact=1,n;</p><p>printf(“Enter a number to find factorial: “);</p><p>scanf(“%d”,&amp;n);</p><p>while(x&lt;=n){</p><p>fact=fact*x;</p><p>x++;</p><p>}</p><p>printf(“Factorial of %d is: %d”,n,fact);</p><p>return 0;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*dGnOsY6TlJup_CYJpQ3q_Q.jpeg" /></figure><h3>C Program to Find Factorial Using Recursion</h3><p>Now, we will write a factorial program using a recursive function. The recursive function will call itself until the value is not equal to 0.</p><p>Now, we will write a C program for factorial using a recursive function. The recursive function will call itself until the value is not equal to 0.</p><h3>Example :</h3><p>#include &lt;stdio.h&gt;</p><p>int main(){</p><p>int x = 7;</p><p>printf(“The factorial of the number is %d”, fact(x));</p><p>return 0;</p><p>}</p><p>// Recursive function to find factorial</p><p>int fact(int y){</p><p>if (y == 0)</p><p>return 1;</p><p>return y * fact(y — 1);</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*06ebpff3A0X5DrHu3jmlhA.jpeg" /></figure><h3>C Program to Find Factorial Using Ternary Operator</h3><p>The ternary operator is like a shorthand for an if…else statement. It provides two conditions and the statements to be executed based on the conditions. Here’s the C program for factorial using a ternary operator.</p><p>Here’s the factorial program using a ternary operator.</p><p>#include &lt;stdio.h&gt;</p><p>int main(){</p><p>int n = 4;</p><p>printf(“The factorial of %d is %d”,</p><p>n, fact(n));</p><p>return 0;</p><p>}</p><p>int fact(int x){</p><p>// Using ternary operator</p><p>return (x == 1 || x == 0)</p><p>? 1</p><p>: x * fact(x — 1);</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*8tFgSiSg9ooHZJVhGltaTQ.jpeg" /></figure><h3>C Program to Find Factorial Using tgamma() Method</h3><p>The tgamma() function is a library function defined in math.h library in C programming. It computes the gamma function of the passed argument.</p><p>Let’s use this function to write a C factorial program.</p><p>#include &lt;math.h&gt;</p><p>#include &lt;stdio.h&gt;</p><p>int main(){</p><p>int x = 5;</p><p>x = tgamma(x + 1);</p><p>printf(“%d”, x);</p><p>return 0;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*mHpZEVvbQyDLOU9ysJka-Q.jpeg" /></figure><p>Note: The tgamma() function works only for small integers as C can’t store large values. Also, for integers above 5, you will have to add 1 to the final output to get the factorial.</p><h3>C Program to Find Factorial Using Function</h3><p>You can also create your own function to find the factorial of a given number. The below code demonstrates the use of functions to find factorial.</p><h3>Example:</h3><p>#include&lt;stdio.h&gt;</p><p>int findFact(int);</p><p>int main(){</p><p>int x,fact,n;</p><p>printf(“Enter a number to get factorial: “);</p><p>scanf(“%d”,&amp;n);</p><p>fact = findFact(n);</p><p>printf(“The factorial of %d is: %d”,n,fact);</p><p>return 0;</p><p>}</p><p>int findFact(int n){</p><p>int x,fact=1;</p><p>for(x=1;x&lt;=n;x++)</p><p>fact=fact*x;</p><p>return fact;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*vMIq7dmG1Nym7t9_H0jOAg.jpeg" /></figure><h3>C Program to Find Factorial Using Pointers</h3><p>For this example, we will create a C program to find the factorial of a number using C pointers. Below is the code to use pointers for finding factorials.</p><p>#include&lt;stdio.h&gt;</p><p>void findFact(int,int *);</p><p>int main(){</p><p>int x,fact,n;</p><p>printf(“Enter a number to get factorial: “);</p><p>scanf(“%d”,&amp;n);</p><p>findFact(n,&amp;fact);</p><p>printf(“The factorial of %d is: %d”,n,fact);</p><p>return 0;</p><p>}</p><p>void findFact(int n,int *fact){</p><p>int x;</p><p>*fact =1;</p><p>for(x=1;x&lt;=n;x++)</p><p>*fact=*fact*x;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*AUI3rrlySgpNqeeujbUaog.jpeg" /></figure><h3>C Program to Find Factorial Series</h3><p>Besides just finding factorial for a single number, we can also write a C program to find factorials of multiple numbers in a series. The below code demonstrates how to find a factorial series of numbers in a range.</p><p>#include&lt;stdio.h&gt;</p><p>int main(){</p><p>long fact=1;</p><p>int x,n,s_range,e_range;</p><p>printf(“Enter the starting range: “);</p><p>scanf(“%d”,&amp;s_range);</p><p>printf(“Enter the ending range: “);</p><p>scanf(“%d”,&amp;e_range);</p><p>printf(“Factorial series of the given range is: “);</p><p>for(n=s_range;n&lt;=e_range;n++){</p><p>fact=1;</p><p>for(x=1;x&lt;=n;x++){</p><p>fact=fact*x;</p><p>}</p><p>printf(“%ld “,fact);</p><p>}</p><p>return 0;</p><p>}</p><h4>Output:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y8jbC8vgGO9iWTgfj4avXg.jpeg" /></figure><blockquote><em>Advance your career as a MEAN stack developer with the </em><a href="https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training?source=GhPreviewCTAText"><em>Full Stack Web Developer — MEAN Stack Master’s Program</em></a><em>. Enroll now!</em></blockquote><h3>Conclusion</h3><p>In this article, you have learned how to write C programs to find the factorial of a number in different ways. The C factorial program is one of the essential programs in C that is used as an introduction to various concepts such as loops, operators, and functions. You can now use the programs to find factorial of any number.</p><p>If you want to sharpen your C programming knowledge, you can sign up on our <a href="https://www.simplilearn.com/skillup-free-online-courses?referrer=top-nav#Software-Development">SkillUp platform</a>. The platform offers multiple free courses to help you get a clear understanding of the fundamentals of numerous programming languages, including C. However, if you want to excel in software development, it is crucial to learn multiple languages instead of sticking to one. Our <a href="https://www.simplilearn.com/pgp-full-stack-web-development-certification-training-course?source=GhPreviewCoursepages">Post Graduate Program in Full Stack Web Development</a> provides applied learning materials to help you get acquainted with various programming concepts and tools to become a great software developer.</p><p><em>Originally published at </em><a href="https://www.simplilearn.com/tutorials/c-tutorial/c-program-for-factorial"><em>https://www.simplilearn.com</em></a><em> on August 5, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6954807ca661" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/c-program-to-find-factorial-of-a-number-loops-recursion-and-more-updated-simplilearn-6954807ca661">C Program to Find Factorial of a Number: Loops, Recursion, and More [Updated] | Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide on How to Add a New Line in JavaScript | Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/guide-on-how-to-add-a-new-line-in-javascript-simplilearn-70958604676a?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/70958604676a</guid>
            <dc:creator><![CDATA[Simplilearn]]></dc:creator>
            <pubDate>Fri, 13 Jan 2023 05:17:31 GMT</pubDate>
            <atom:updated>2023-01-13T05:17:20.964Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*Buh4pOYLRfpYh-En.jpg" /></figure><p>The Java programming language is object-oriented and provides applications for several platforms. The compiled code of the JavaScript new line is written on most OS (Bytecode) platforms, including Windows, Linux, and Mac OS, when a programmer develops a Java application. Java inherits a large part of its programming C and C++ syntax.</p><p>In the mid-1990s, Java was created in collaboration with Mike Sheridan and Patrick Naughton by James A. Gosling, a former computer scientist of Sun Microsystems.</p><h3>Adding a New Line in Javascript</h3><p>Depending on the result to be achieved, there are two approaches to add a new line to JavaScript. This lesson shows how both the JavaScript console and the DOM may be added to the new line.</p><h3>A New Console Output Line Will Be Added</h3><p>If you wish to add a new line to the JavaScript new line console while printing a few words, the \n sign for the new line can be used.</p><p>JavaScript new line string manipulation is one of the things that is easy to learn, but difficult to master. Once you believe you’ve got a grip on it, a context change can shock what you have learned up to that point.</p><p>If you experienced difficulty adding a new line to a string, read on.</p><h3>How Can I Add a New String Line?</h3><p>The newline character is \n in JavaScript and many other languages. All you need to do is add \n character whenever you require a line break to add a new line to a string.</p><h3>Example:</h3><p>let str = “Hello World!\nThis is my string”;</p><p>console.log(str);</p><h4>Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/208/1*8wEbP9FZ290BzP6WeMxU3g.jpeg" /></figure><h3>The New DOM Output Line Is Added</h3><p>You must alter the DOM and add the &lt;br&gt; HTML element to display the text below, when you have to produce the new line for a webpage.</p><p>Line breaks differ between platforms in strings, although the most frequent ones are:</p><ul><li>Windows: Carry return \r\n followed by a character on the newline.</li><li>Linux: \n a character on a newline.</li><li>Older Macs: a character returned by a carriage.</li></ul><p>This JavaScript new line task is accomplished using two methods. One method is to visit every character one by one using the conventional programming circuit. Another one uses regular phrases.</p><p>The stitching method: This is the basic technique to solve this problem. Check each string character and slice it so as to remove the characters from the newline and return carriage.</p><p>The line end (EOL), line break, line feed, line break or carriage return character is a control character, which is the end of a text line, and the following character should start in a different line. It’s \r\n on the Windows system, and it’s Linux on \n.</p><p>We may use System.lineSeparator() in Java to obtain a new line character depending on the platform.</p><p>The ASCII codes 13 (CR) and 10 (LF) respectively are represented as \r and \n. They are two lines apart, but operating systems use them differently. They are both different.</p><p>A two character sequence is used for starting a new line on Windows, followed immediately by an LF, CR. On the other hand, only LF is used on Unix-like platforms.</p><p>We need to be aware of the line break characters we use while creating Java programs, since the applications will be compatible with the operating system.</p><p>System.lineSeparator is the safest and most compatible choice (). In this approach, we do not need to consider the operating system.</p><h3>Example</h3><p>public class EndLineCharacterMain {</p><p>public static void main(String[] args)</p><p>{</p><p>// Should be used in Linux OS</p><p>String str1 = “Hello”+ “\n” +”world”;</p><p>System.out.println(str1);</p><p>// Should be used in Windows</p><p>String str2 = “Hello”+ “\r\n” +”world”;</p><p>System.out.println(str2);</p><p>}</p><p>}</p><h4>Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/94/1*W5V6dFXP44FJx2EAjxTgbg.jpeg" /></figure><blockquote><em>Advance your career as a MEAN stack developer with the </em><a href="https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training?source=GhPreviewCTAText"><em>Full Stack Web Developer — MEAN Stack Master’s Program</em></a><em>. Enroll now!</em></blockquote><h3>Conclusion</h3><p>You must understand that java is a complex language and it works according to concepts and quotes. This article covers the concept of adding a new line in JavaScript. Now that you have understood how you can add a new line to your program, you might feel comfortable in making complex codes. In case you need further guidance, the <a href="https://www.simplilearn.com/pgp-full-stack-web-development-certification-training-course">Full Stack Development course</a> can aid you in understanding and grasping the concepts. You can also enhance your expertise with the <a href="https://www.simplilearn.com/skillup-free-online-courses?referrer=top-nav#Software-Development">skill up courses</a> offered by Simplilearn to enjoy a bright career ahead.</p><p><em>Originally published at </em><a href="https://www.simplilearn.com/tutorials/javascript-tutorial/javascript-new-line"><em>https://www.simplilearn.com</em></a><em> on November 19, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70958604676a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/guide-on-how-to-add-a-new-line-in-javascript-simplilearn-70958604676a">Guide on How to Add a New Line in JavaScript | Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Insert a Checkbox in Excel (With Examples)? | Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/how-to-insert-a-checkbox-in-excel-with-examples-simplilearn-f8886daea6c1?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/f8886daea6c1</guid>
            <dc:creator><![CDATA[Simplilearn]]></dc:creator>
            <pubDate>Thu, 12 Jan 2023 11:02:53 GMT</pubDate>
            <atom:updated>2023-01-12T11:02:38.493Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*QnKU9uiLO7y7kSvT.jpg" /></figure><p>Microsoft Excel is a powerful tool that provides the user with lots of interactive options. One such feature is the Checkboxes in Excel. A checkbox is an interactive tool that allows users to select or deselect an option.</p><h3>How to Get the Developer Tab in the Excel Ribbon?</h3><p>The first step in inserting the checkbox is to turn on the developer tab on the Excel ribbon, hidden by default. To add the developer tab to the Excel ribbon, do the following:</p><ol><li>Right-click anywhere on the ribbon and select Customize the Ribbon.</li><li>Under Customize the Ribbon, check the Developer box and click OK.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*Lymh2xNa2QtKEDz84tfbcw.jpeg" /></figure><h3>How to Insert a Checkbox in Excel?</h3><p>If you are creating an Excel checklist, the first step will be to make a list of tasks or other items for which the checkboxes will be inserted.</p><p>For this example, we’ve created the following grocery list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/206/1*rCSIk8Ee75IXhmG-_FNtRA.jpeg" /></figure><p>To <strong>insert a checkbox in Excel</strong>, execute the following steps:</p><ul><li>Step 1: Go to Developer Tab — -&gt; Controls — -&gt; Insert — -&gt; Form Controls — -&gt; Check Box.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*Wc8D1K7aDZT5nzw354LQmw.jpeg" /></figure><ul><li><strong>Step 2:</strong> Click in the cell where you want to insert the first checkbox (F4 in our example).</li><li><strong>Step 3:</strong> Position the checkbox by dragging it. To remove the text “Check Box 1”, right-click the check box, select Edit Text in the context menu, and then delete the text.</li></ul><p>Your first checkbox is ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*9ZeQ1wKwBMcKFtDafxAjFQ.jpeg" /></figure><h3>Copy the Checkbox to other Cells</h3><p>Drag the checkbox cells to all the below cells to copy them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*14FQ03SzDNhGgN0fk2rCAw.jpeg" /></figure><h3>Link a Checkbox to a Cell</h3><p>To capture the status (checked or unchecked) of a checkbox, you need to link the checkbox to a particular cell. To do this, execute these steps:</p><ol><li>Right-click on the checkbox and select Format Control.</li><li>In the Format Control dialog box, make the following changes, and click OK.</li></ol><ul><li>Value: Checked. This makes sure that the checkbox is checked by default when you open the workbook.</li><li>Cell Link: $H$4. This is the cell linked to the checkbox. You can also enter it manually or select the cell to get the reference.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*-TryIFJGcINCifMvQNwJ4Q.jpeg" /></figure><p>Now your checkbox is linked to the cell. In the linked cells, TRUE appears for selected checkboxes and FALSE for cleared checkboxes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*unEavT53KYc6dQHX-6xa1w.jpeg" /></figure><h3>Creating an Interactive To-Do-List in Excel</h3><p>Below is the example of a To-Do-List that uses the checkboxes to mark the task complete.</p><p>A couple of things will happen in the example.</p><ul><li>As soon as you check-mark the list, the status will change to DONE from TO BE DONE.</li><li>The value of the cell linked to that checkbox changes from FALSE to TRUE.</li><li>It reflects the changes in the Task Completed and % Of Task Completed cell.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*dXqL8h9LhM7__TfQpfv17Q.jpeg" /></figure><p>Follow these steps to make this interactive To-Do-List:</p><ol><li>List all the activities from G5:G9.</li><li>Insert the checkboxes from H5:H9.</li><li>Link the checkboxes to cell J5:J9. You will have to manually link each checkbox one by one.</li><li>In the cell I5, enter the following formula: =IF(J5,” Done”,” To Be Done”) and drag for all the cells below.</li><li>In the cell H11, enter the following formula: =COUNTA(G5:G9) to count the total number of tasks.</li><li>In the cell H12, enter the following formula: =COUNTIF($J$5:$J$9, TRUE).</li></ol><blockquote><em>Gain expertise in the latest Business analytics tools and techniques with the </em><a href="https://www.simplilearn.com/business-analyst-certification-training-course?source=GhPreviewCTAText"><em>Business Analyst Master’s Program</em></a><em>. Enroll now!</em></blockquote><h3>The Next Step</h3><p>In this article, you have learned how to add a checkbox to your Excel worksheet. You have also created an interactive To-Do-List with the help of the checkboxes.</p><p>Boost your analytics career with powerful new Microsoft Excel skills by taking the Business Analytics with Excel course, which includes Power BI training. This <a href="https://www.simplilearn.com/pgp-business-analytics-certification-course">Business Analytics course</a> teaches you the basic concepts of data analysis and statistics to help data-driven decision making. This training introduces you to Power BI and delves into the statistical concepts that will help you devise insights from available data to present your findings using executive-level dashboards.</p><p>Do you have any questions FOR US? Feel free to mention them in this article’s comments section, and our experts will answer them for you at the earliest!</p><h3>FAQs</h3><h3>1. How to make check boxes in Excel?</h3><p>In order to make a check box in Excel, you need to go to Developer Tab — -&gt; Controls — -&gt; Insert — -&gt; Form Controls — -&gt; Check Box. Now, click on the cell where you want to place the checkbox; you can position the checkbox by dragging it.</p><h3>2. How to delete checkbox in Excel?</h3><p>To delete a checkbox in Excel, on the Home Tab, click Find &amp; Select and click Select Objects. Now, click on the checkbox objects you want to delete. Press on the Delete key to clear boxes on the keyboard.</p><h3>3. How to align checkboxes in Excel?</h3><p>On the Quick Access Toolbar, click on the Align dropdown option. Select from the Top, Bottom, Left, and Right Align.</p><h3>4. How to Insert a Checkbox in Excel? 3 EASY Examples</h3><p>To insert a Checkbox, on the Developer Tab, select controls, Insert, Form Controls, and then Checkbox.</p><h3>5. How do checkboxes work in Excel?</h3><p>Add the Developer Tab to the Top Ribbon of your Excel sheet, select Insert, Form Control, and then Checkbox. Select the cell where you want to insert the checkbox and right-click on the checkbox to edit the text and sizing.</p><p><em>Originally published at </em><a href="https://www.simplilearn.com/tutorials/excel-tutorial/excel-checkbox"><em>https://www.simplilearn.com</em></a><em> on January 7, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8886daea6c1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/how-to-insert-a-checkbox-in-excel-with-examples-simplilearn-f8886daea6c1">How to Insert a Checkbox in Excel (With Examples)? | Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Data Analysis? Process, Types, Methods and Techniques | Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/what-is-data-analysis-process-types-methods-and-techniques-simplilearn-59aae8c67f74?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/59aae8c67f74</guid>
            <dc:creator><![CDATA[Simplilearn]]></dc:creator>
            <pubDate>Thu, 12 Jan 2023 10:42:19 GMT</pubDate>
            <atom:updated>2023-01-12T10:41:58.569Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*7q2oVtfWDwkQnIE3.jpg" /></figure><p>Businesses today need every edge and advantage they can get. Thanks to obstacles like rapidly changing markets, economic uncertainty, shifting political landscapes, finicky consumer attitudes, and even global pandemics, businesses today are working with slimmer margins for error.</p><p>Companies that want to stay in business and thrive can improve their odds of success by making smart choices while answering the question: “What is data analysis?” And how does an individual or organization make these choices? They collect as much useful, actionable information as possible and then use it to make better-informed decisions!</p><p>This strategy is common sense, and it applies to personal life as well as business. No one makes important decisions without first finding out what’s at stake, the pros and cons, and the possible outcomes. Similarly, no company that wants to succeed should make decisions based on bad data. Organizations need information; they need data. This is where data analysis or data analytics enters the picture.</p><p>The job of understanding data is currently one of the growing industries in today’s day and age, where data is considered as the ‘new oil’ in the market. <a href="https://www.simplilearn.com/pgp-data-analytics-certification-training-course?source=GhPreviewCoursepages">Our Data Analytics Program</a> can help you learn how to make sense of data and get trends from them.</p><p>Now, before getting into the details about the data analysis methods, let us first answer the question, what is data analysis?</p><h3>What Is Data Analysis?</h3><p>Although many groups, organizations, and experts have different ways of approaching data analysis, most of them can be distilled into a one-size-fits-all definition. Data analysis is the process of cleaning, changing, and processing raw data and extracting actionable, relevant information that helps businesses make informed decisions. The procedure helps reduce the risks inherent in decision-making by providing useful insights and statistics, often presented in charts, images, tables, and graphs.</p><p>A simple example of data analysis can be seen whenever we make a decision in our daily lives by evaluating what has happened in the past or what will happen if we make that decision. Basically, this is the process of analyzing the past or future and making a decision based on that analysis.</p><p>It’s not uncommon to hear the term “ big data” brought up in discussions about data analysis. Data analysis plays a crucial role in processing big data into useful information. Neophyte data analysts who want to dig deeper by revisiting big data fundamentals should go back to the basic question, “ What is data?”</p><h3>Why is Data Analysis Important?</h3><p>Here is a list of reasons why data analysis is crucial to doing business today.</p><ul><li>Better Customer Targeting: You don’t want to waste your business’s precious time, resources, and money putting together advertising campaigns targeted at demographic groups that have little to no interest in the goods and services you offer. Data analysis helps you see where you should be focusing your advertising efforts.</li><li>You Will Know Your Target Customers Better: Data analysis tracks how well your products and campaigns are performing within your target demographic. Through data analysis, your business can get a better idea of your target audience’s spending habits, disposable income, and most likely areas of interest. This data helps businesses set prices, determine the length of ad campaigns, and even help project the number of goods needed.</li><li>Reduce Operational Costs: Data analysis shows you which areas in your business need more resources and money, and which areas are not producing and thus should be scaled back or eliminated outright.</li><li>Better Problem-Solving Methods: Informed decisions are more likely to be successful decisions. Data provides businesses with information. You can see where this progression is leading. Data analysis helps businesses make the right choices and avoid costly pitfalls.</li><li>You Get More Accurate Data: If you want to make informed decisions, you need data, but there’s more to it. The data in question must be accurate. Data analysis helps businesses acquire relevant, accurate information, suitable for developing future marketing strategies, business plans, and realigning the company’s vision or mission.</li></ul><h3>What Is the Data Analysis Process?</h3><p>Answering the question “what is data analysis” is only the first step. Now we will look at how it’s performed. The process of data analysis, or alternately, data analysis steps, involves gathering all the information, processing it, exploring the data, and using it to find patterns and other insights. The process of data analysis consists of:</p><ul><li>Data Requirement Gathering: Ask yourself why you’re doing this analysis, what type of data you want to use, and what data you plan to analyze.</li><li>Data Collection: Guided by your identified requirements, it’s time to collect the data from your sources. Sources include case studies, surveys, interviews, questionnaires, direct observation, and focus groups. Make sure to organize the collected data for analysis.</li><li>Data Cleaning: Not all of the data you collect will be useful, so it’s time to clean it up. This process is where you remove white spaces, duplicate records, and basic errors. Data cleaning is mandatory before sending the information on for analysis.</li><li>Data Analysis: Here is where you use data analysis software and other tools to help you interpret and understand the data and arrive at conclusions. Data analysis tools include Excel, Python, R, Looker, Rapid Miner, Chartio, Metabase, Redash, and Microsoft Power BI.</li><li>Data Interpretation: Now that you have your results, you need to interpret them and come up with the best courses of action based on your findings.</li><li>Data Visualization: Data visualization is a fancy way of saying, “graphically show your information in a way that people can read and understand it.” You can use charts, graphs, maps, bullet points, or a host of other methods. Visualization helps you derive valuable insights by helping you compare datasets and observe relationships.</li></ul><h3>What Is the Importance of Data Analysis in Research?</h3><p>A huge part of a researcher’s job is to sift through data. That is literally the definition of “research.” However, today’s Information Age routinely produces a tidal wave of data, enough to overwhelm even the most dedicated researcher.</p><p>Data analysis, therefore, plays a key role in distilling this information into a more accurate and relevant form, making it easier for researchers to do to their job.</p><p>Data analysis also provides researchers with a vast selection of different tools, such as descriptive statistics, inferential analysis, and quantitative analysis.</p><p>So, to sum it up, data analysis offers researchers better data and better ways to analyze and study said data.</p><h3>What is Data Analysis: Types of Data Analysis</h3><p>A half-dozen popular types of data analysis are available today, commonly employed in the worlds of technology and business. They are:</p><ul><li>Diagnostic Analysis: Diagnostic analysis answers the question, “Why did this happen?” Using insights gained from statistical analysis (more on that later!), analysts use diagnostic analysis to identify patterns in data. Ideally, the analysts find similar patterns that existed in the past, and consequently, use those solutions to resolve the present challenges hopefully.</li><li>Predictive Analysis: Predictive analysis answers the question, “What is most likely to happen?” By using patterns found in older data as well as current events, analysts predict future events. While there’s no such thing as 100 percent accurate forecasting, the odds improve if the analysts have plenty of detailed information and the discipline to research it thoroughly.</li><li>Prescriptive Analysis: Mix all the insights gained from the other data analysis types, and you have prescriptive analysis. Sometimes, an issue can’t be solved solely with one analysis type, and instead requires multiple insights.</li><li>Statistical Analysis: Statistical analysis answers the question, “What happened?” This analysis covers data collection, analysis, modeling, interpretation, and presentation using dashboards. The statistical analysis breaks down into two sub-categories:</li></ul><ol><li>Descriptive: Descriptive analysis works with either complete or selections of summarized numerical data. It illustrates means and deviations in continuous data and percentages and frequencies in categorical data.</li><li>Inferential: Inferential analysis works with samples derived from complete data. An analyst can arrive at different conclusions from the same comprehensive data set just by choosing different samplings.</li></ol><p>Next, we will get into the depths to understand about the data analysis methods.</p><h3>Data Analysis Methods</h3><p>Some professionals use the terms “data analysis methods” and “data analysis techniques” interchangeably. To further complicate matters, sometimes people throw in the previously discussed “data analysis types” into the fray as well! Our hope here is to establish a distinction between what kinds of data analysis exist, and the various ways it’s used.</p><p>Although there are many data analysis methods available, they all fall into one of two primary types: qualitative analysis and quantitative analysis.</p><ul><li>Qualitative Data Analysis: The qualitative data analysis method derives data via words, symbols, pictures, and observations. This method doesn’t use statistics. The most common qualitative methods include:</li><li>Content Analysis, for analyzing behavioral and verbal data.</li><li>Narrative Analysis, for working with data culled from interviews, diaries, surveys.</li><li>Grounded Theory, for developing causal explanations of a given event by studying and extrapolating from one or more past cases.</li></ul><ol><li>Hypothesis Testing, for assessing the truth of a given hypothesis or theory for a data set or demographic.</li><li>Mean, or average determines a subject’s overall trend by dividing the sum of a list of numbers by the number of items on the list.</li><li>Sample Size Determination uses a small sample taken from a larger group of people and analyzed. The results gained are considered representative of the entire body.</li></ol><p>We can further expand our discussion of data analysis by showing various techniques, broken down by different concepts and tools.</p><blockquote><em>Our Data Analyst Master’s Program will help you learn analytics tools and techniques to become a Data Analyst expert! It’s the perfect course for you to jumpstart your career. Enroll now!</em></blockquote><h3>Artificial Intelligence and Machine Learning</h3><p>AI is on the rise and has proven a valuable tool in the world of data analysis. Related analysis techniques include:</p><ul><li>Artificial Neural Networks</li><li>Decision Trees</li><li>Evolutionary Programming</li><li>Fuzzy Logic</li></ul><h3>Mathematics and Statistics</h3><p>This is the technique where you find number-crunching data analytics. The techniques include:</p><ul><li>Descriptive Analysis</li><li>Dispersion Analysis</li><li>Discriminant Analysis</li><li>Factor Analysis</li><li>Regression Analysis</li><li>Time Series Analysis</li></ul><h3>Graphs and Visualization</h3><p>We are visually oriented creatures. Images and displays attract our attention and stay in our memory longer. The techniques include:</p><ol><li>Area Chart</li><li>Bubble Chart</li><li>Column Charts and Bar Charts</li><li>Funnel Chart</li><li>Gantt Chart</li><li>Line Chart</li><li>Pie Chart</li><li>Radar Chart</li><li>Word Cloud Chart</li><li>Gauge</li></ol><ul><li>Frame Diagram</li><li>Rectangular Tree Diagram</li><li>Maps, which in turn break down into four distinct types:</li></ul><ol><li>Flow Map</li><li>Heat Map</li><li>Point Map</li><li>Regional Map</li></ol><ul><li>Scatter Plot</li></ul><h3>How to Become a Data Analyst</h3><p>Now that we have answered the question “what is data analysis”, if you want to pursue a career in data analytics, you should start by first researching what it takes to become a data analyst. You should follow this up by taking selected data analytics courses, such as the Data Analyst Master’s certification training course offered by Simplilearn.</p><p>This seven-course Data Analyst Master’s Program is run in collaboration with IBM and will make you an expert in data analysis. You will learn about data analysis tools and techniques, working with SQL databases, the R and Python languages, creating data visualizations, and how to apply statistics and predictive analytics in a commercial environment.</p><p>You can even check out the PG Program in Data Analytics in partnership with Purdue University and in collaboration with IBM. This program provides a hands-on approach with case studies and industry-aligned projects to bring the relevant concepts live. You will get broad exposure to key technologies and skills currently used in data analytics.</p><p>According to Forbes, the data analytics profession is exploding. The United States Bureau of Labor Statistics forecasts impressively robust growth for data science jobs skills and predicts that the data science field will grow about 28 percent through 2026. Amstat.org backs up these predictions, reporting that, by the end of 2021, almost 70 percent of business leaders surveyed will look for prospective job candidates that have data skills.</p><p>Payscale reports that Data Analysts can earn a yearly average of USD 62,559. Payscale also shows Data Analysts in India making an annual average of ₹456,667.</p><p>So, if you want a career that pays handsomely and will always be in demand, then check out Simplilearn and get started on your new, brighter future!</p><blockquote><em>Build your career in Data Analytics with our Data Analyst Master’s Program! Cover core topics and important concepts to help you get started the right way!</em></blockquote><h3>FAQs</h3><h3>1. What is the role of data analytics?</h3><p>Data Analytics is the process of collecting, cleaning, sorting, and processing raw data to extract relevant and valuable information to help businesses. An in-depth understanding of data can improve customer experience, retention, targeting, reducing operational costs, and problem-solving methods.</p><h3>2. What are the types of data analytics?</h3><p>Diagnostic Analysis, Predictive Analysis, Prescriptive Analysis, Text Analysis, and Statistical Analysis are the most commonly used data analytics types. Statistical analysis can be further broken down into Descriptive Analytics and Inferential Analysis.</p><h3>3. What are the analytical tools used in data analytics?</h3><p>The top 10 data analytical tools are Sequentum Enterprise, Datapine, Looker, KNIME, Lexalytics, SAS Forecasting, RapidMiner, OpenRefine, Talend, and NodeXL. The tools aid different data analysis processes, from data gathering to data sorting and analysis.</p><h3>4. What is the career growth in data analytics?</h3><p>Starting off as a Data Analysis, you can quickly move into Senior Analyst, then Analytics Manager, Director of Analytics, or even Chief Data Officer (CDO).</p><h3>5. Why Is Data Analytics Important?</h3><p>Data Analysis is essential as it helps businesses understand their customers better, improves sales, improves customer targeting, reduces costs, and allows for the creation of better problem-solving strategies.</p><h3>6. Who Is Using Data Analytics?</h3><p>Data Analytics has now been adopted almost across every industry. Regardless of company size or industry popularity, data analytics plays a huge part in helping businesses understand their customer’s needs and then use it to better tweak their products or services. Data Analytics is prominently used across industries such as Healthcare, Travel, Hospitality, and even FMCG products.</p><p><em>Originally published at </em><a href="https://www.simplilearn.com/data-analysis-methods-process-types-article"><em>https://www.simplilearn.com</em></a><em> on May 26, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59aae8c67f74" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/what-is-data-analysis-process-types-methods-and-techniques-simplilearn-59aae8c67f74">What is Data Analysis? Process, Types, Methods and Techniques | Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 30+ Ethical Hacking Tools and Software for 2023 | Simplilearn]]></title>
            <link>https://medium.com/simplilearn-engineering/top-30-ethical-hacking-tools-and-software-for-2023-simplilearn-1e669210a63a?source=rss----683d8d96f377---4</link>
            <guid isPermaLink="false">https://medium.com/p/1e669210a63a</guid>
            <dc:creator><![CDATA[Simplilearn]]></dc:creator>
            <pubDate>Thu, 12 Jan 2023 10:35:02 GMT</pubDate>
            <atom:updated>2023-01-12T10:34:45.003Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*F1l7E65YBnPrsx39.jpg" /></figure><p>The realm of ethical hacking or penetration testing has witnessed a drastic change with the advent of automated tools. Currently, several tools that can accelerate the process of testing are being developed. Ethical hacking helps organizations in better protecting their information and systems. It is also one of the best methods to augment the skills of security professionals of an organization. Making ethical hacking a part of the security efforts of an organization can prove to be exceptionally helpful.</p><h3>What Are Hacking Tools and Software?</h3><p>Hacking is the process of using various types of tools or technology in the form of computer programs and scripts to get access to unauthorized data for the security measures of a computer system or network.</p><p>Hacking tools and software are nothing but just computer programs or a complex type of script designed by the developers that are used by hackers to know the weaknesses in computer OS, various web applications as well as servers and networks. Nowadays, many employers, especially in the banking sectors, are using ethical hacking tools to secure their data from attackers. Hacking tools are available either in open source form (freeware or shareware) or in commercial solutions. One can also download such tools from the browser especially if someone wants to use them for malicious purposes.</p><p>Ethical hacking tools are used by security professionals especially to get access to computer systems in order to access the vulnerabilities in computer systems so that their security will improve. Security professionals use hacking tools such as packet sniffers to intercept the network traffic, password crackers to discover the passwords, port scanners to identify open ports on computers, etc. Though there is a variety of hacking tools available in the market keep in mind what should be its purpose.</p><p>Nevertheless, the field of network administration has grown tremendously in the last couple of years. Initially, it is used to simply monitor the networks and now it can be used to manage firewalls, intrusion detection systems (IDS), VPNs, anti-virus software, and anti-spam filters.</p><p>Some of the most famous hacking tools in the market are Nmap (Network Mapper), Nessus, Nikto, Kismet, NetStumbler, Acunetix, Netsparker, and Intruder, Nmap, Metasploit, Aircrack-Ng, etc.</p><h3>Importance of Hacking Software</h3><p>Whenever it comes to hacking software, we often feel anxious or paranoid that it will cause damage to our computer system. However, the reality is so different that employers might need someone as a professional expert to protect the important data concerning valuable assets to companies, hardware, and software systems from attackers. Thus, the need for ethical hacking has become so obvious and important that companies started hiring ethical hackers. Following are some important features of hacking software:</p><ul><li>It provides inside and outside security from the threats to end users.</li><li>It is used to test the network security by finding loopholes in it and fixing them.</li><li>One can also download ethical hacking software for his/her home network security from the open source and secure it from threats.</li><li>One can also get a vulnerability assessment to protect their network or system from external attacks.</li><li>It is also used to audit the security of the company by ensuring that the computer system is running smoothly with no issues.</li></ul><h3>Top Ethical Hacking Tools to Watch Out For in 2022</h3><h3>1. Invicti</h3><p>Invicti is a web application security scanner hacking tool to find SQL Injection, XSS, and vulnerabilities in web applications or services automatically. It is usually available on SAAS solution</p><h4>Features:</h4><ul><li>It detects Dead accurate vulnerability with the help of unique Proof-Based Scanning Technology.</li><li>It requires minimal configuration with a scalable solution.</li><li>It automatically detects URL rewrite rules as well as custom 404 error pages.</li><li>There is a REST API for seamless integration with the SDLC and bug tracking systems.</li><li>It scans up to 1,000 plus web applications within just 24 hours.</li></ul><p>Price: It will cost from $4,500 to $26,600 with Invicti Security features.</p><h3>2. Fortify WebInspect</h3><p>Fortify WebInspect is a hacking tool with comprehensive dynamic analysis security in automated mode for complex web applications and services.</p><ul><li>It is used to identify security vulnerabilities by allowing it to test the dynamic behavior of running web applications.</li><li>It can keep the scanning in control by getting relevant information and statistics.</li><li>It provides Centralized Program Management, vulnerability trending, compliance management, and risk oversight with the help of simultaneous crawl professional-level testing to novice security testers.</li></ul><p>Price: It will cost around $29,494.00 provided by HP company with Tran security and virus protection.</p><h3>3. Cain &amp; Abel</h3><p>Cain &amp; Abel is an Operating System password recovery tool provided by Microsoft.</p><ul><li>It is used to recover the MS Access passwords</li><li>It can be used in Sniffing networks</li><li>The password field can be uncovered.</li><li>It Cracks encrypted passwords with the help of dictionary attacks, brute-force, and cryptanalysis attacks.</li></ul><p>Price: It is free. One can download it from open source.</p><h3>4. Nmap (Network Mapper)</h3><p>Used in port scanning, one of the phases in ethical hacking, is the finest hacking software ever. Primarily a command-line tool, it was then developed for operating systems based on Linux or Unix, and the windows version of Nmap is now available.<br> <br>Nmap is basically a network security mapper capable of discovering services and hosts on a network, thereby creating a network map. This software offers several features that help in probing computer networks, host discovery as well as detection of operating systems. Being script extensible it provides advanced vulnerability detection and can also adapt to network conditions such as congestion and latency while scanning.</p><h3>5. Nessus</h3><p>The next ethical hacking tool on the list is Nessus. Nessus is the world’s most well-known vulnerability scanner, which was designed by tenable network security. It is free and is chiefly recommended for non-enterprise usage. This network-vulnerability scanner efficiently finds critical bugs on any given system.<br> <br>Nessus can detect the following vulnerabilities:</p><ul><li>Unpatched services and misconfiguration</li><li>Weak passwords — default and common</li><li>Various system vulnerabilities</li></ul><h3>6. Nikto</h3><p>Nikto is a web scanner that scans and tests several web servers for identifying software that is outdated, dangerous CGIs or files, and other problems. It is capable of performing server-specific as well as generic checks and prints by capturing the received cookies. It is a free, open-source tool, which checks version-specific problems across 270 servers and identifies default programs and files.<br> <br>Here are some of the chief features of Nikto hacking software:</p><ul><li>Open-source tool</li><li>Checks web servers and identifies over 6400 CGIs or files that are potentially dangerous</li><li>Checks servers for outdated versions as well as version-specific problems</li><li>Checks plug-inns and misconfigured files</li><li>Identifies insecure programs and files</li></ul><h3>7. Kismet</h3><p>This is the best ethical hacking tool used for testing wireless networks and hacking of wireless LAN or wardriving. It passively identifies networks and collects packets and detects non-beaconing and hidden networks with the help of data traffic.<br> <br>Kismet is basically a sniffer and wireless-network detector that works with other wireless cards and supports raw-monitoring mode.<br> <br>Basic features of Kismet hacking software include the following:</p><ul><li>Runs on Linux OS, which may be Ubuntu, backtrack, or more</li><li>Applicable to windows at times</li></ul><h3>8. NetStumbler</h3><p>This is also an ethical hacking tool that is used to prevent wardriving, which works on operating systems based on windows. It is capable of detecting IEEE 902.11g, 802, and 802.11b networks. A newer version of this called MiniStumbler is now available.<br> <br>The NetStumbler ethical hacking software has the following uses:</p><ul><li>Identifying AP (Access Point) network configuration</li><li>Finding causes of interference</li><li>Accessing the strength of signals received</li><li>Detecting unauthorized access points</li></ul><h3>9. Acunetix</h3><p>This ethical hacking tool is fully automated, detecting and reporting on more than 4500 web vulnerabilities, including every variant of XSS and SQL Injection. Acunetix fully supports JavaScript, HTML5, and single-page applications so you can audit complex authenticated applications.</p><p>Basic features include:</p><ul><li>Consolidated view</li><li>Integration of scanner results into other platforms and tools</li><li>Prioritizing risks based on data</li></ul><h3>10. Netsparker</h3><p>If you want a tool that mimics how hackers work, you want Netsparker. This tool identifies vulnerabilities in web APIs and web applications such as cross-site scripting and SQL Injection.</p><p>Features include:</p><ul><li>Available as an on-line service or Windows software</li><li>Uniquely verifies identified vulnerabilities, showing that they are genuine, not false positives</li><li>Saves time by eliminating the need for manual verification</li></ul><h3>11. Intruder</h3><p>This tool is a completely automated scanner that searches for cybersecurity weaknesses, explains the risks found, and helps address them. Intruder takes on much of the heavy lifting in vulnerability management and offers over 9000 security checks.</p><p>Features included:</p><ul><li>Identifies missing patches, misconfigurations, and common web app issues like cross-site scripting and SQL Injection</li><li>Integrates with Slack, Jira, and major cloud providers</li><li>Prioritizes results based on context</li><li>Proactively scans systems for the latest vulnerabilities</li></ul><h3>12. Nmap</h3><p>Nmap is an open-source security and port scanner, as well as a network exploration tool. It works for single hosts and large networks alike. Cybersecurity experts can use Nmap for network inventory, monitoring host and service uptime, and managing service upgrade schedules.</p><p>Among its features:</p><ul><li>Offer binary packages for Windows, Linux, and Mac OS X</li><li>Contains a data transfer, redirection, and debugging tool</li><li>Results and GUI viewer</li></ul><h3>13. Metasploit</h3><p>The Metasploit Framework is open-source, and Metasploit Pro is a commercial offering, with a 14-day free trial. Metasploit is geared towards penetration testing, and ethical hackers can develop and execute exploit codes against remote targets.</p><p>The features include:</p><ul><li>Cross-platform support</li><li>Ideal for finding security vulnerabilities</li><li>Great for creating evasion and anti-forensic tools</li></ul><h3>14. Aircrack-Ng</h3><p>Wireless network use is rising, so it’s becoming more important to keep Wi-Fi secure. Aircrack-Ng offers ethical hackers an array of command-line tools that check and evaluate Wi-Fi network security. Aircrack-Ng is dedicated to activities such as attacking, monitoring, testing, and cracking. The tool supports Windows, OS X, Linux, eComStation, 2Free BSD, NetBSD, OpenBSD, and Solaris.</p><p>Among its features:</p><ul><li>Supports exporting data to text files</li><li>It can crack WEP keys and WPA2-PSK, and check Wi-Fi cards</li><li>Supports multiple platforms</li></ul><h3>15. Wireshark</h3><p>Wireshark is a great hacking software for analyzing data packets and can also perform deep inspections of a large number of established protocols. You can export analysis results to many different file formats like CSV, PostScript, Plaintext, and XML.</p><p>Features:</p><ul><li>Performs live captures and offline analysis</li><li>Cross-platform support</li><li>Allows coloring rules to packet lists to facilitate analysis</li><li>It’s free</li></ul><h3>16. OpenVAS</h3><p>The Open Vulnerability Assessment Scanner is a fully featured tool performs authenticated and unauthenticated testing and performance tuning. It is geared towards large-scale scans.</p><p>OpenVAS has the capabilities of various high and low-level Internet and industrial protocols, backed up by a robust internal programming language.</p><h3>17. SQLMap</h3><p>SQLMap is an open-source hacking software that automates detecting and exploiting SQL Injection flaws and taking control of database servers. You can use it to connect directly with specific databases. SQLMap completely supports a half-dozen SQL injection techniques (Boolean-based blind, error-based, stacked queries, time-based blind, UNION query-based, and out-of-band).</p><p>SQLMap’s features include:</p><ul><li>Powerful detection engine</li><li>Supports executing arbitrary commands</li><li>Supports MySQL, Oracle, PostgreSQL, and more.</li></ul><h3>18. Ettercap</h3><p>Ettercap is a free tool that is best suited for creating custom plug-ins.</p><p>Among its features:</p><ul><li>Content filtering</li><li>Live connections sniffer</li><li>Network and host analysis</li><li>Active and passive dissection of a lot of protocols</li></ul><h3>19. Maltego</h3><p>Maltego is a tool dedicated to link analysis and data mining. It comes in four forms: The free Community version, Maltego CE; Maltego Classic, which costs $999; Maltego XL, costing $1999, and the server products like Comms, CTAS, and ITDS, starting at $40000. Maltego is best suited to working with very large graphs.</p><p>Its features include:</p><ul><li>Support for Windows, Linux, and Mac OS</li><li>Performs real-time information gathering and data mining</li><li>Displays results in easy-to-read graphics</li></ul><h3>20. Burp Suite</h3><p>This security-testing tool comes in three price tiers: Community edition (free), Professional edition (starting at $399 per user/per year), and Enterprise edition (starting at $3999/year). Burp Suite distinguishes itself as a web vulnerability scanner.</p><p>Its features include:</p><ul><li>Scan scheduling and repeating</li><li>Uses out-of-band techniques</li><li>Offers CI integration</li></ul><h3>21. John the Ripper</h3><p>This free tool is ideal for password cracking. It was created to detect weak UNIX passwords, and can be used on DOS, Windows, and Open VMS.</p><p>Features:</p><ul><li>Offers a customizable cracker and several different password crackers in one bundle</li><li>Performs dictionary attacks</li><li>Tests different encrypted passwords</li></ul><h3>22. Angry IP Scanner</h3><p>This is a free tool for scanning IP addresses and ports, though it’s unclear what it’s so angry about. You can use this scanner on the Internet or your local network, and supports Windows, MacOS, and Linux.</p><p>Noted features:</p><ul><li>Can export results in different formats</li><li>Command-line interface tool</li><li>Extensible with lots of data fetchers</li></ul><h3>23. SolarWinds Security Event Manager</h3><p>SolarWinds emphasizes computer security improvement, automatically detecting threats and monitoring security policies. You can easily keep track of your log files and get instant alerts should anything suspicious happen.</p><p>Features include:</p><ul><li>Built-in integrity monitoring</li><li>Intuitive dashboard and user interface</li><li>Recognized as one of the best SIEM tools, helping you easily manage memory stick storage</li></ul><h3>24. Traceroute NG</h3><p>Traceroute focuses on network path analysis. It can identify host names, packet loss, and IP addresses, providing accurate analysis via command line interface.</p><p>Features include:</p><ul><li>Supports IP4 and IPV6</li><li>Detects paths changes and alerts you about them</li><li>Permits continuous network probing</li></ul><h3>25. LiveAction</h3><p>This is one of the best ethical hacking tools available today. Used in conjunction with LiveAction packet intelligence, it can diagnose network issues more effectively and faster.</p><p>Among its top features:</p><ul><li>Easy to use workflow</li><li>Automates network’s automated data capture is fast enough to allow rapid response to security alerts</li><li>Its packet intelligence provides deep analyses</li><li>Onsite deployment for use in appliances</li></ul><h3>26. QualysGuard</h3><p>If you want a hacker security tool that checks vulnerabilities in online cloud systems, look no further. QualysGuard lets businesses streamline their compliance and security solutions, incorporating security into digital transformation initiatives.</p><p>Top features:</p><ul><li>Easy to use workflow</li><li>Automates network’s automated data capture is fast enough to allow rapid response to security alerts</li><li>Its packet intelligence provides deep analyses</li><li>Onsite deployment for use in appliances</li></ul><h3>27. WebInspect</h3><p>WebInspect is an automated dynamic testing tool that’s well-suited for ethical hacking operations. It offers hackers a dynamic comprehensive analysis of complex web applications and services.</p><p>Its features include:</p><ul><li>Lets users stay in control of scans through relevant statistics and information at a glance</li><li>Contains a variety of technologies suited for and level of tester, from novice to professional</li><li>Tests dynamic behavior of web applications for the purpose of spotting security vulnerabilities</li></ul><h3>28. Hashcat</h3><p>Password cracking is a big part of ethical hacking, and Hashcat is a robust cracking tool. It can help ethical hackers audit password security, retrieve lost passwords, and discover the data stored in a hash.</p><p>Notable features include:</p><ul><li>Open source</li><li>Multiple platform support</li><li>Supports distributed cracking networks</li><li>Supports automatic performance tuning</li></ul><h3>29. L0phtCrack</h3><p>This is a password recovery and audit tool that can identify and assess password vulnerabilities over local networks and machines.</p><p>Features:</p><ul><li>Easily customizable</li><li>Fixes weak passwords issues by forcing a password reset or locking out accounts</li><li>Optimizes hardware courtesy of multicore and multi-GPU support</li></ul><h3>30. Rainbow Crack</h3><p>Here’s another entry in the password-cracking category. It employs rainbow tables to crack hashes, employing a time-memory tradeoff algorithm to accomplish it.</p><p>Its features include:</p><ul><li>Runs on Windows and Linux</li><li>Command-line and graphic user interfaces</li><li>Unified rainbow table file format</li></ul><h3>31. IKECrack</h3><p>IKECrack is an authentication cracking tool with the bonus of being open source. This tool is designed to conduct dictionary or brute-force attacks. IKECrack enjoys a solid reputation for successfully running cryptography tasks.</p><p>Its features include:</p><ul><li>Strong emphasis on cryptography</li><li>Ideally suited for either commercial or personal use</li><li>Free</li></ul><h3>32. Sboxr</h3><p>SBoxr is another open source hacking tool that emphasizes vulnerability testing. It has a favorable reputation as a customizable tool that lets hackers create their own custom security scanners.</p><p>Its main features include:</p><ul><li>Easy to use and GUI-based</li><li>Supports Ruby and Python</li><li>Uses an effective, powerful scanning engine</li><li>Generates reports in RTF and HTML formats</li><li>Checks for over two dozen types of web vulnerabilities</li></ul><h3>33. Medusa</h3><p>Medusa is one of the best online speedy, brute-force parallel password crackers tools out there for ethical hackers.</p><p>Features:</p><ul><li>Includes flexible user input which can be specified in many ways</li><li>Supports many services that allow remote authentication</li><li>One of the best tools for thread-based parallel testing and brute-force testing</li></ul><h3>34. Cain and Abel</h3><p>Cain and Abel is a tool used to recover passwords for the Microsoft Operating System. It uncovers password fields, sniffs networks, recovers MS Access passwords, and cracks encrypted passwords using brute-force, dictionary, and cryptanalysis attacks.</p><h3>35. Zenmap</h3><p>This open source application is the official Nmap Security Scanner software, and is multi-platform. Zenmap is ideal for any level of experience, from newbies to experienced hackers.</p><p>Among its features:</p><ul><li>Administrators can track new hosts or services that appear on their networks and track existing downed services</li><li>Graphical and interactive results viewing</li><li>Can draw topology maps of discovered networks</li></ul><h3>How Do You Use A Hacking Software?</h3><p>Here’s how to get started using any hacking software, either from the above list or wherever else on the Internet you find it:</p><ol><li>Download and install the desired hacking software you like</li><li>Launch the software once it’s installed</li><li>Chose and set the startup options for your hacking tool</li><li>Explore the tool’s interface and functionalities; get familiar with it</li><li>Test the software with a preconfigured external browser</li><li>Use the hacking software to scan a website or perform penetration testing</li></ol><h3>Is Using Hacking Tools Legal?</h3><p>You can use hacking tools if you fulfill both of the following conditions:</p><ul><li>You are using the tools for white hat hacking</li><li>You have secured written permission from the target site that you plan to “attack.”</li></ul><h3>Conclusion</h3><p>With the growing Internet security threats, employers now seek skilled and certified ethical hackers by taking up courses like the Certified Ethical Hacking Course to prevent fraudulent crimes and identity thefts. End users have always been the weakest links using which cybercriminals crack even highly sophisticated defenses. The recent past has witnessed several large businesses announcing major security breaches. Ethical hacking tools help companies identify possible shortcomings in internet security and prevent data breaches. Get started to upskill yourself now!</p><p>If you have any doubts or queries regarding the article or the Ethical Hacking course, feel free to drop them in the comments below. Our team will review and get back to you at the earliest.</p><p><em>Originally published at </em><a href="https://www.simplilearn.com/top-5-ethical-hacking-tools-rar313-article"><em>https://www.simplilearn.com</em></a><em> on September 3, 2012.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e669210a63a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplilearn-engineering/top-30-ethical-hacking-tools-and-software-for-2023-simplilearn-1e669210a63a">Top 30+ Ethical Hacking Tools and Software for 2023 | Simplilearn</a> was originally published in <a href="https://medium.com/simplilearn-engineering">Simplilearn Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>