Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Algorithms | Fundamentals of Programming
2 Views • Mar 31, 2020
Description
What is an algorithm?
"The term algorithm refers to the logic of the program".
further
Characteristics of Programming
Advantages of algorithms
disadvantages of algorithms
are discussed
Examples are discussed within the lecture.
Example #1
Write an algorithm that add two numbers by the user?
Step 1: Start
Step 2: Declare variables num1,num2 and sum.
Step 3: Read the values of num1,num2 and sum.
Step 4: Add num1 and num2 and assign it to sum.
Step 5: Sum = num1+num2.
Step 6: Print sum.
Step 7: Stop.
Example # 2
Write an algorithm to check the greatest of 10 numbers?
Step 1: Start
Step 2: Declare variables a and b.
Step 3: Read the values of a and b.
Step 4: If a greater than b
Step 5: Print a is greatest.
Step 6: Else
Step 7: Print b is greatest.
Step 8: Stop.
The channel is also available on Youtube
https://www.youtube.com/channel/UCI8PfOyRF0-PmaHjQg1Rzzg
More from User
How are microchips made-
Engineering Technology and Future
Application of C++
Engineering Technology and Future
Introduction to C++ programming - Fundamentals of Programming
Engineering Technology and Future
C++ | Program to calculate area of triangle by Hero's Formula | Fundamentals of Programming.
Engineering Technology and Future
Algorithms | Fundamentals of Programming
Engineering Technology and Future
University of Lahore | Virtual learning | Google Drive | How to upload data on drive and UOL slate
Engineering Technology and Future
Related Videos
[PDF Download] The Art of Computer Programming Vol. 1: Fundamental Algorithms 3rd Edition [Read]
Zsefwtll
[PDF Download] The Art of Computer Programming Vol. 1: Fundamental Algorithms 3rd Edition [Download]
Dacasx
(PDF Download) The Art of Computer Programming Vol. 1: Fundamental Algorithms 3rd Edition Read
Ahdasar
Read Programming Fundamentals Using Java: A Game Application Approach (Computer Science) Ebook
Hedevig
[PDF Download] Art of Computer Programming Volume 2: Seminumerical Algorithms (3rd Edition)
Saxaz
[Download] Art of Computer Programming, Volume 2: Seminumerical Algorithms (3rd Edition) Kindle Free
Jelaga