






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







COURSE: BSc.it SEMESTER: SECTION: YEAR OF ENROLLMENT:
Programming 2020
Introduction................................................................................................................................................................ Algorithm................................................................................................................................................................... Key Features of Algorithm..................................................................................................................................... Advantages of Algorithm....................................................................................................................................... Disadvantages of Algorithms:................................................................................................................................ Examples of algorithm............................................................................................................................................ Part 1
Introduction Programming is a process creating a set of instructions that orders the computer how to perform a certain task by using a variety of programming language like JavaScript, python, C#, C, etc. Programming is generally used to find a set of instruction which will automate the given task at hand. The process of writing different set of programming language is called coding. We will be discussing about what algorithm mean and what are its features as well as its advantages and disadvantages with some examples as well. Next, we will also be discussing about software development life cycle with different types IDE or development environment for different programming languages and which we will be using in order to make our software and why are we using this certain development environment with its useful features and so on.
Name (HND/ First Semester)
Let’s start with what algorithm really is so basically, algorithm is to write a logical step-by-step method to solve the problem, in other words, an algorithm is a step for solving problems. In order to solve a mathematical or computer problem, this is the first step of the procedure. An algorithm includes calculations, reasoning and data processing. Algorithms can also be presented by flowchart. Name (HND/ First Semester)
Step 1: Start Step 2: Declare variables a, b and c. Step 3: Read variables a, b and c. Step 4: If a > b If a > c Display a is the largest number. Else Display c is the largest number. Else If b > c Display b is the largest number. Else Display c is the greatest number. Step 5: Stop To complete an algorithm to find the largest among three different numbers, firstly we should start the program by writing start in step 1. Then, we should enter the value three numbers. For example, if the three numbers are a, b and c then we should enter the value for a, b and c. Then the program reads the value of the entered three numbers that is a, b and c in the next step. After reading the value of three numbers, we should denote the numbers to with greater than sign. After performing mathematical operation, we should get the output of the program that is greater number. Then, we can finally close our program in the next step by writing stop and run the program. Finally, we can get the final output that was to find the largest among three different numbers. Name (HND/ First Semester)