2. Developing a Program from Algorithm to Code in Java

Pubblicato il: 18 novembre 2016
sul canale di: Raqib Zaman
1,968
19

LESSON NOTES: https://therevisionist.org/software-e... In this video tutorial, I highlight the importance of making an algorithm for your program before you start coding in Java.
(ノ◕ヮ◕)ノ Java Programming Playlist:    • 1. How to Make a Simple Program in Java  
---
My Gear (づ⌐■ ͜ʖ■)づ
✪ I need to buy this webcam: http://amzn.to/2fWi3b7
✪ I like this keyboard a lot: https://therevisionist.org/reviews/th...
✪ This is the mic that I use now: http://amzn.to/2gqS6AO
♥ I love My SSD, so fast!: https://therevisionist.org/reviews/pn...
✪ HDD vs SSD Reliability: https://therevisionist.org/reviews/ss...
✪ SSD vs HDD power consumption: https://therevisionist.org/reviews/ss...
Follow me ┴┬┴┤( ͡° ͜ʖ├┬┴┬
✪ My Subreddit:   / bio_hacking  
✪ Facebook: https://www.facebook.com/profile.php?...
✪ Twitter:   / raqib_zaman  
✪ Google+: https://plus.google.com/+RaqibZaman
---
Writing a program involves designing algorithms and translating algorithms into programming
instructions, or code. An algorithm describes how a problem is solved by listing
the actions that need to be taken and the order of their execution. Algorithms can help the
programmer plan a program before writing it in a programming language. Algorithms can be
described in natural languages or in pseudocode (natural language mixed with some programming
code). The algorithm for calculating the area of a circle can be described as follows:
1. Read in the circle’s radius.
2. Compute the area using the following formula:
area = radius * radius * p
3. Display the result.
---
Programming is difficult (like many activities that are useful and worthwhile -- and like most of those activities, it can also be rewarding and a lot of fun). When you write a program, you have to tell the computer every small detail of what to do. And you have to get everything exactly right, since the computer will blindly follow your program exactly as written. How, then, do people write any but the most simple programs? It's not a big mystery, actually. It's a matter of learning to think in the right way.

A program is an expression of an idea. A programmer starts with a general idea of a task for the computer to perform. Presumably, the programmer has some idea of how to perform the task by hand, at least in general outline. The problem is to flesh out that outline into a complete, unambiguous, step-by-step procedure for carrying out the task. Such a procedure is called an "algorithm." (Technically, an algorithm is an unambiguous, step-by-step procedure that always terminates after a finite number of steps. We don't want to count procedures that might go on forever.) An algorithm is not the same as a program. A program is written in some particular programming language. An algorithm is more like the idea behind the program, but it's the idea of the steps the program will take to perform its task, not just the idea of the task itself. When describing an algorithm, the steps don't necessarily have to be specified in complete detail, as long as the steps are unambiguous and it's clear that carrying out the steps will accomplish the assigned task. An algorithm can be expressed in any language, including English. Of course, an algorithm can only be expressed as an actual program if all the details have been filled in.

So, where do algorithms come from? Usually, they have to be developed, often with a lot of thought and hard work. Skill at algorithm development is something that comes with practice, but there are techniques and guidelines that can help.


In questa pagina del sito puoi guardare il video online 2. Developing a Program from Algorithm to Code in Java della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Raqib Zaman 18 novembre 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,968 volte e gli è piaciuto 19 spettatori. Buona visione!