+ 2

How to get easy with coding?

I am good at understanding, analyzing the code but in case of coding I lack the ability to find way and connect the dots. can you please help me sort it out?

22nd Aug 2017, 6:30 AM
Iqbal Ahmad Oruzgani
Iqbal Ahmad Oruzgani - avatar
4 Answers
+ 16
Before you write one piece of computer code, you have to know what the program is supposed to do. Before you write one line of code in any language, it is a good idea to write it in a simple way first to ensure you have included everything you need. The best way to set this up is by using pseudocode. Defining Pseudocode Pseudocode is a simple way of writing programming code in English. Pseudocode is not actual programming language. It uses short phrases to write code for programs before you actually create it in a specific language. Once you know what the program is about and how it will function, then you can use pseudocode to create statements to achieve the required results for your program. Examples of Pseudocode Let's review an example of pseudocode to create a program to add 2 numbers together and then display the result. Start Program Enter two numbers, A, B Add the numbers together Print Sum End Program Now, let's look at a few more simple examples of pseudocode. Here is a pseudocode to compute the area of a rectangle: Get the length, l, and width, w Compute the area = l*w Display the area Now, let's look at an example of pseudocode to compute the perimeter of a rectangle: Enter length, l Enter width, w Compute Perimeter = 2*l + 2*w Display Perimeter of a rectangle Gradually you can move on to difficult scenarios and problems
22nd Aug 2017, 6:40 AM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar
+ 6
True apoorva. Or if there is a code you don't understand comment every line and comment what each line does. Thus is also useful in code debugging.
22nd Aug 2017, 6:43 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 5
@Iqbal you are welcome! 😇
28th Aug 2017, 6:13 AM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar
+ 2
@Apoora thank you so much, that's what I was looking for.
28th Aug 2017, 6:12 AM
Iqbal Ahmad Oruzgani
Iqbal Ahmad Oruzgani - avatar