Basic programming course: Lesson #1 - Introduction to programming

in #devjr-s20w111 days ago
1000163793.png
Canvas

When it comes to programming, algorithms cannot be skipped, because it is something that has to be taken into consideration as it is a step-by-step procedure or a set of instructions that is designed to help perform a task or solve a problem which is been designed for. Today, I am here to talk about algorithms after learning from the lesson of @alejos7ven.


Task 1. Describe in your own words an algorithm of some activity you do daily.

As we have read earlier about algorithm we said it is a step-by-step procedure or a set of instructions that has been programmed (designed) to perform and solve a problem or a specific task which it is been designed for. In a simple understanding, the algorithm is the blueprint that is used for solving problems. In my case whenever I wake up in the morning I have some regular activities that I engage myself in before going out to work or doing other things.

As a guy, there are things that I do on my own without waiting for someone to help me out, and all these activities such as brushing my teeth, preparing breakfast, and a lot more are been done via the given algorithm if I should convert them into programmable code.

  • I get out of bed
  • Brush my teeth
  • I go to the kitchen
  • Turn on the gas cooker, put on a cup of water, and allow it to boil
  • Make tea and bread
  • Slice some Bread and put it inside a breakable plate
  • Take it to the dining table
  • Sit down and eat

Task 2. What is the importance of programming languages in the world? How do they help us?

image.png
freepik

The importance of programming languages isn't limited to the area of science and technology alone, it is vast and it covers many areas of the world we are in today. The key importance of programming languages that I can say, here before talking about others is that programming languages enable us to communicate instructions to computers. Below are some of the key importance of programming languages in the world

Automation of tasks: Programming languages as I have said, earlier allow us to communicate instructions to computers which by so doing the task will then be executed automatically as a program.

Problem-solving: Programming languages is all about coding This has helped in solving difficult problems that are too complex to solve by breaking them into spices, and parts. Programmers use their ideas and expertise in programming languages to create an algorithm that helps in solving problems.

Development of technology: 99% of the modern technologies that are in the world today, rely on programming to function properly which is to tell how important programming languages are.

Programming languages: It creates room for innovation by allowing programmers to create software, applications, and tools that improve our lives. Other important programming languages in the world are; job creation, data management, and analysis, communication and analysis with others that aren't mentioned here.


Task 3. What do you need while programming?

|image.png

freepik

Well based on how far, I have been in the field of learning web design and programming I do think I need the ten key things that I have briefly talked about below to successfully write and execute a good.

  • A computer or device
    Without a computer or device, programming wouldn't be possible, so I do think a computer or device is the first thing that I need while programming.

  • A programming language:
    This is the second thing that I need while programming there are many programming languages such as PSeInt, Java, Python, C++, JavaScript, Ruby, and others based on what I want to program and my area of specialization.

  • Text Editor or IDE (Integrated Development Environment)
    I will need a text editor or IDE to write my code. Visual Studio code, Notepad, Eclipse, PyCham, and others would go a long way to help me.

The other things I do need while programming are:

  • Libraries/Framework
  • A clear objective for problem-solving
  • Logic and Algorithm design
  • Access to documents and resources
  • Testing and debugging tools
  • Internet Access
  • Problem-solving mindset

If I could have all these aforementioned elements/materials mentioned above in place, my programming would improve as there would be a guide and working tools for me.


Task 4. Write your first "Hello world!" Using pseudo-code.

What I did first before writing my first "Hello world!" was installing the PSeint on my PC.

Capture1.PNGCapture2.PNG

Installation Process

After the successful installation of the PSeint, I opened it and saw how nice and friendly the interface is which I was happy that I would get to enjoy it.

Capture3.PNG

  • As you can see, I now have the PSeint on my PC and I can write my first "hello world" using pseudo-code as seen in the screenshots image below.

Capture4.PNG

  • I first write the algorithm name as "Hello World" and then move over to the next instruction and add a command which is called a print (imprimir). It is the command that helps the "Hello World" to display.

Capture5.PNG

  • After everything, I then press the F9 Key to execute the algorithm which is shown in the screenshot image below.

Capture6.PNG

Finally, you can now see that I have written and executed my first "Hello World" using pseudo-code.

I am inviting: @pelon53, @dove11, @simonnwigwe, and @ruthjoe

Sort:  

Upvoted. Thank You for sending some of your rewards to @null. It will make Steem stronger.

This post has been upvoted/supported by Team 7 via @philhughes. Our team supports content that adds to the community.

image.png

Loading...

Your post has been rewarded by the Seven Team.

Support partner witnesses

@seven.wit
@cotina
@xpilar.witness

We are the hope!