What is an Algorithm?

algorithmis a way designed to solve a specific problem or achieve a specific purpose. algorithm a simple, clear, sequential form of the solution of a problem. A set of finite operations defined in mathematics and computer science to do a job, which, when started from an initial state, terminates in a clearly defined end state.

It is often used in computer programming and the basis of all programming languages ​​is algorithm. At the same time, the algorithm is a step-by-step introduction of the behavior, basic commands or statements that will solve a single problem, and the sequence of these steps should be considered. There are two approaches to solving a problem: algorithmic and intuitive (herustic).

What is an Algorithm? Click here for more information.

Click to learn What is Flow Chart, How to Create,

Flow Diagram Programs Click here.

Algorithm Questions

Example 1: Design an algorithm and a flowchart to find and show the larger of the two numbers given differently.

Example 2: Design the algorithm and flow diagram to determine whether the student has passed the course according to the midterm and final grades entered.

Example 3: Design the algorithm and flow diagram to find out whether the given integer is zero, positive or negative.

Example 4: Make the algorithm that says the programmer's name 10 times on the screen ”.

Example 5: Make an algorithm and flow diagram that prints odd numbers from 1 to 100.

Example 6: Print the price entered on the screen by adding VAT (18%).

Example 7: Create the algorithm for the program that gives the sum and average of five numbers.

Example 8: Flow chart of the program that takes the factorial of the number (N) as entered from the keyboard.

Example 9: Draw the flowchart of the program that converts the degree of Fahrenheit entered from the keyboard to Cantigrad.

Example 10: Draw the flowchart of the program that finds the roots of the second order equation given as ax² + bx + c = 0.

Example 11: What is the algorithm of the program that calculates the sales price of a product by adding tax rate and profit rate from the keyboard over the purchase price?

Example 12: The grade of a university course achievement is calculated with a final exam grade of a visa. 30% of the final grade is 70% of the final grade. Draw the algorithm and the flowchart of the program which finds the average of the course as a result of these grades taken by a student in the exam.

Example 13: Perform the application that calculates the area of ​​the triangle entered from the keyboard in height and base length.

Example 14: The voltage (V) between the poles of a conductor is the current of the ampere type (I) passing through the conductor is equal to the product of the resistance (R) present on the conductor. V = I * R is represented by the formula. Using the formula, create the algorithm of the program that calculates the voltage between the poles of the conductor according to the current and resistance values ​​entered by the user.

Example 15: Create an algorithm that prints on the screen whether a number entered on the keyboard is positive or negative.

Example 16: Enter the grade of the student from a course on the keyboard and create the algorithm of the application that says success status is displayed or failed.

Example 17: Create an algorithm that states “passed” and “failed erek by entering 2 grades and 1 oral keyboard from a student's courses.

Example 18: Check whether the number received from the user is odd or even and generate the algorithm that prints on the screen.

Example 19: Visa final grades are made for the university. A student's requirement to pass the course is 30% of the midterm and 70% of the final grade is 50 and above and the final grade is 50 and higher. Create the appropriate algorithm.

Example 20: If the number that the user enters from the keyboard is fully divided into 3 and 5, create the algorithm that says not dividing if the screen says full dividing.

Example 21: If the number entered by the user is in the range 0-100, create the algorithm that says “invalid ekranda if not“ valid ekranda on the screen.

Example 22: Write the fake codes of the program that prints the grade on the screen according to the score the student has received from the exam?

Example 23: According to the temperature of the water in the form of solid liquid gaseous and written on the screen algorithm?

Example 24: User from ax2nd+ bx + c = 0 in the form of the second order equation a, b and c by calculating the delta by asking and showing the resulting delta result of the equation according to the table above shown that the roots of the algorithm?

Example 25: Algorithm that prints the number of digits from 0 to 99,999 entered on the keyboard?

Example 26: Workers with fixed wages in a factory receive an additional salary depending on their family situation. If the number of children is 1, it receives 5% of the salary, 2% of the children receive 3% and 15% of the family allowance. Accordingly, the employee's salary and the number of children by asking the algorithm that makes the necessary calculation?

Example 27: When calculating the wages of the workers in a factory, the following craters are complied with; If the worker has worked less than 40 hours, the hour and hourly wage is calculated by multiplying the wage, if the worker has worked 40 hours or more, the hour will be calculated as 2 hours and the information will be calculated accordingly and the amount to be paid is printed.

Example 28: Example of the flowchart of the program that finds the roots of Equation 2.

Example 29: The registration number, working hours and hourly wages of an employee are given as input to the computer. Draw the algorithm and flow chart that calculates the salary of the employee with this information.

Example 30: Perform the algorithm that finds the difference of the two numbers.

Example 31: Algorithm of the program that finds the sum of odd numbers from 1 to N and the sum of the squares of even numbers according to the number N entered from the keyboard

Example 32: Write the algorithm of the program that collects 10 numbers entered from the keyboard and displays the result on the screen.

Example 33: Flowchart Example listing the numbers between the numbers a and b entered from the keyboard:

Example 34: Algorithm flow diagram that will be displayed on the screen which will be processed according to the entered transaction number to be entered after 2 numbers will be entered from the keyboard.

Example 35: Algorithm of the program that prints the 1st, 2nd and 3rd digits (Digit Values) of the 3-digit number entered from the keyboard.

Example 36: Flowchart that prints its name 10 times on the screen

Example 37: Design the algorithm and flowchart of the program that prints a student's average, b-5, and c-letter system.

Example 38: Workers with fixed wages in a factory receive additional wages depending on their family situation and the number of parts they produce. Design the algorithm and flow diagram of the program that calculates the salaries of workers according to the instructions given below.

Example 39: The keyboard enters 3 side lengths. With the entered edge lengths: a-Whether the triangle can be drawn, b-If the triangle is drawn, type the triangle (isosceles, isosceles, equilateral), c- Design the algorithm and flow diagram of the program that finds the area and circumference of the drawn triangle.

Example 40: Flow chart of positives and negatives and “0” number of 10 numbers entered separately.

Example 41: Example of algorithm and flowchart that calculates the area and volume of the sphere.

Example 42: Example of algorithm and flow chart calculating Area and Volume of Cylinder

Example 43: Example of the algorithm that finds the largest of the 3 numbers entered

Example 44: Algorithm that finds the sum and average of odd numbers between 7-24

Example 45: Algorithm that averages the 3 numbers entered from the keyboard

Example 46: Create the flow diagram that finds and prints the average of the 5 numbers entered on the keyboard with the loop logic.

Example 47: Flow chart with numbers from 1 to 40 that are multiples of 5.

Example 48: Flow diagram of 3 times the number entered from the keyboard without multiplication.

Example 49: Algorithm calculating the area of ​​the parallelogram where the base length and height are entered.

Example 50: Example of an algorithm that takes the difference of these two means obtained by finding the average of 10 integers randomly entered and the average of the largest and smallest of these numbers.

Example 51: Example of the algorithm showing the grade (1-5) corresponding to the student's score (0-100).

Example 52: Click for Simple Algorithm Examples.

Example 53: Click here for examples of difficult algorithms.

Example 54: 6. Click for examples of class algorithms.

Example 55: Click here for examples of algorithms from daily life.

Study Questions:

Example 56: Algorithm and flow diagram of the program that takes the factorial of an integer between 1-25 entered from the keyboard
write.

Example 57: Prompts the keyboard to input numbers consecutively, and continues as long as this number is not between 10 and 15.
Write the algorithm and flow diagram of the program.

Example 58: Write the algorithm and flowchart of the program that finds the sum of the squares of numbers from 1 to 25.

Example 59: It asks for 10 integers from the keyboard and finds how many of these integers are negative.
Write the algorithm and flow diagram of the program.

Example 60: a, b, and c to be entered from the keyboard, ax2 + bx + c = 0 algorithm that finds the roots of the equation and
Write the flow diagram.

Example 61: Enter the number of integers 1-12 on the keyboard and find out which month corresponds to the program
Write the algorithm and flow diagram.

Example 62: By giving one code number to four operations, the two numbers entered from the keyboard are again according to the operation code entered from the keyboard.
Write the algorithm and flow diagram of the program that adds, subtracts, multiplies or divides.

Example 63: The program that collects the numbers entered consecutively from the keyboard and stops when the entered number is negative
Write the flow diagram.

Example 64: Not Unsuccessful ”if the note is between 0-49 and“ Intermediate aras if it is between 50-64, 65-84.
between “Good aras, 85-100“ Very good yazın Write the algorithm and flow diagram of the program.

Example 65: Algorithm and flow diagram of the program that finds the larger of the two integers entered on the keyboard and prints them on the screen
write.

Example 66: The algorithm of the program that takes the power of the first positive integer from the two
write the flow chart without using a ready-made function.

Example 67: n! Write the algorithm and flow diagram of the program that calculates the value.

Example 68: Write the algorithm and flow diagram of the program that calculates the value of 1 + 4 + 9 +… + 100 =.

Example 69: Write the algorithm and flow diagram of the program that performs addition, subtraction, multiplication and division.

Example 70: Calculates the number of hours a vehicle travels on an average distance of 60 km / h.
Write the algorithm and flow diagram of the program.

Algorithm Answers

Example 1- Design an algorithm and flow diagram to find and display the larger of the two numbers given differently.

Flow diagram

flow2 "width =" 810 "height =" 1103 "data-recalc-dims =" 1 "srcset =" https://i1.wp.com/www.softwarecoding.com/wp-content/uploads/2015/11/ akis2.jpg? w = 366 & ssl = 1 366w, https://i1.wp.com/www.softwareincoding.com/wp-content/uploads/2015/11/akis2.jpg?resize=220%2C300&ssl=1 220w, https://i1.wp.com/www.softwareincoding.com/wp-content/uploads/2015/11/akis2.jpg?resize=29%2C40&ssl=1 29w "data-lazy-sizes =" (max-width : 810px) 100vw, 810px "src =" https://i1.wp.com/www.softwareincoding.com/wp-content/uploads/2015/11/akis2.jpg?resize=810%2C1103&is-pending-load= 1 "srcset =" data: image / gif; base64, R0lGODlhAQABAIAAAAAAAP /// yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 "/><noscript><img data-attachment-id=

BASLa

SUMMER ("Enter your visa note")

READ visa

SUMMER ("Enter your final grade")

READ final

average=visa * 0:40 + final * 0.60

TOĞER average > = 60 ISA

SUMMER "Student Has Passed Lesson"

ALSOÐ theLSA

SUMMER "Instrstudent From the lesson KaldorI"

BITIR

stream3 "width =" 810 "height =" 1203 "data-recalc-dims =" 1 "srcset =" https://i2.wp.com/www.softwarecoding.com/wp-content/uploads/2015/11/ akis3.jpg? resize = 202% 2C300 & ssl = 1 202w, https://i2.wp.com/www.softwarecoding.com/wp-content/uploads/2015/11/akis3.jpg?resize=27%2C40&ssl=1 27w, https://i2.wp.com/www.softwareincoding.com/wp-content/uploads/2015/11/akis3.jpg?w=328&ssl=1 328w "data-lazy-sizes =" (max-width : 810px) 100vw, 810px "src =" https://i2.wp.com/www.softwareincoding.com/wp-content/uploads/2015/11/akis3-202x300.jpg?resize=810%2C1203&is-pending- load = 1 "srcset =" data: image / gif; base64, R0lGODlhAQABAIAAAAAAAAP /// yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 "/><noscript><img data-attachment-id=

BASLa

READ number

TOĞER countI>0 ISA SUMMER "This number is Positive"

TOĞER countI<0 ISA SUMMER "This number is negative."

TOĞER countI=0 ISA SUMMER "This number is Zero"

BITIR