Posts

Showing posts from October, 2023
Image
  To find out how many files I have, I type ls, which is short for   list
Image
  Command Line It is what enables me to create a new file and name it whatever I want, and I can also delete it. To create a new file, we write  code If you want to delete it, type  rm , short for remove, and it will look like this
Image
  Now, if I have a variable and I want to increase the value of this variable by 1, we write ++, which means the increase by 1.
Image
  Now, if I have two variables of the numeric type and I want to perform any arithmetic operation, addition, subtraction, multiplication, or division, it will be like this:
Image
  Now, if I have two variables and I want to print them, we will write the codes in this form:
Image
  Now that I was able to create a function myself, I learned the input input for this function, and this input can be anything, such as the number of repetitions, etc., and so on. It is not a normal function, but rather you used it correctly, and this input appears like this. So this function can receive input, but its function is not known, so I register any function for it and let it be the number of times for it to appear in this image.
  No one can learn programming and solve problems without knowing   algorithms . Algorithms are about taking a set of steps to solve the problem in the simplest way. You can ask why do we need algorithms for programming? One thing we must understand is that a computer has no mind, meaning it cannot think, unlike a human. If you tell it anything, it will understand it. Directly, but the computer must tell it all the steps that must be followed to do that thing, and if you forget to tell it a step or make a mistake in it, it will not understand the matter, and the steps are algorithms. Any program you want to design before you implement it in any programming language must be written in the form of  pseudocode , which is the organization of the steps that you will follow and the method of writing them, like any method of writing a programming language, so you must use it first so that your brain is qualified for programming. Example: If I want the computer to find a name for...
  No one can learn programming and solve problems without knowing   algorithms . Algorithms are about taking a set of steps to solve the problem in the simplest way. You can ask why do we need algorithms for programming? One thing we must understand is that a computer has no mind, meaning it cannot think, unlike a human. If you tell it anything, it will understand it. Directly, but the computer must tell it all the steps that must be followed to do that thing, and if you forget to tell it a step or make a mistake in it, it will not understand the matter, and the steps are algorithms. Any program you want to design before you implement it in any programming language must be written in the form of  pseudocode , which is the organization of the steps that you will follow and the method of writing them, like any method of writing a programming language, so you must use it first so that your brain is qualified for programming. Example: If I want the computer to find a name for...

#13

Image
  No one can learn programming and solve problems without knowing algorithms . Algorithms are about taking a set of steps to solve the problem in the simplest way. You can ask why do we need algorithms for programming? One thing we must understand is that a computer has no mind, meaning it cannot think, unlike a human. If you tell it anything, it will understand it. Directly, but the computer must tell it all the steps that must be followed to do that thing, and if you forget to tell it a step or make a mistake in it, it will not understand the matter, and the steps are algorithms. Any program you want to design before you implement it in any programming language must be written in the form of pseudocode , which is the organization of the steps that you will follow and the method of writing them, like any method of writing a programming language, so you must use it first so that your brain is qualified for programming. Example: If I want the computer to find a name for me, I type t...

#12

Image
    Repetition Today I learned to repeat commands, for example, if you want the object to say Meow, but more than once. First, before repeating, we have to choose a command to make a sound, which is play sound, in order to say meow. Now, if I wanted, for example, to repeat it three times, I could enter the same command three times, but you would do it successively and quickly. I can create a delay between each command through the wait command and set the number of seconds I want. But programming and algorithms in general do not depend on reaching the solution only, but rather reach the solution in the best possible way, and entering the same code several times manually is not the best way, so there are two things.                                         forever                 repeat  Repeat is to repeat the command a number of t...

#11

Image
  -   October 21, 2023 Each scratch command is a function that the program assigns to you, and we can also learn how to create functions ourselves. Now, if I want the object to ask me my name, and when I tell it, it welcomes me on its own. This method has one input but more than one output, meaning that it is not fixed because it can call me by any name. To solve it, we follow the following:   Because we want a question, we will choose ask from  Sensing  and write what's your name. Then the object receives the answer, which is my name. Then we store the answer in say, which we will fetch from  Looks . In order to be able to combine the name with the word hallo, we choose join from  operators  so that it appears with us in this image

#10

Image
-  October 21, 2023 Each scratch command is a function that the program assigns to you, and we can also learn how to create functions ourselves. Now, if I want the object to ask me my name, and when I tell it, it welcomes me on its own. This method has one input but more than one output, meaning that it is not fixed because it can call me by any name. To solve it, we follow the following:   Because we want a question, we will choose ask from  Sensing  and write what's your name. Then the object receives the answer, which is my name. Then we store the answer in say, which we will fetch from  Looks . In order to be able to combine the name with the word hallo, we choose join from  operators  so that it appears with us in this image  

#9

Image
    October 20, 2023 If I want to make the object in scratch say, for example, hallo world. Now I have input, which is hallo world, and output, which is the final output, which is to make the object say hallo world. But we are missing an algorithm, which is the method or command that we will give to the object to say hallo world. Of course, first we must bring a command from  Events , which makes the rest of the commands work, and then to Looks, from which we will fetch the  Say  command and put them together to appear in this image.

#8

Image
   This is the eighth hour of the challenge Today I learned the switch statement and the conditional operator and saw some applications on them  Tomorrow I will do my first small project so stay tuned

#7

Image
   This is the seventh hour of the challenge  Today i learned the logical operators  and the If statements and  all kinds of loops and how to use them in context  I guess I'm finally ready to do  small projects So stay tuned

#6

Image
 The day was very difficult, full of adventures and full of informatio Today was awesome. I learned how to concatenate strings with each other   This is the sixth hour of the challenge  I now know how to use arithmetic operators to make calculations  I learned how to convert a data type to another  I guess I'm getting close to being able to do some small projects so be close and follow me to see my future projects مشاركة

#5

Image
  How the CPU works Let's look at the CPU in more detail. Figure 2 is a conceptual diagram of a hypothetical CPU so that you can visualize the components more easily. The RAM and system clock are shaded because they are not part of the CPU and are only shown for clarity. Also, no connections between the CPU clock and the control unit to the CPU components are drawn in. Suffice it to say that signals from the clock and the control unit are an integral part of every other component. .تعلمت اليوم كيف يعمل البروسيسور فى جهاز الكمبيوتر كما اكملت سلسله تعلم اساسيات البرمجه

#4

Image
  This day was very difficult due to the large number of tasks. I hope to continue the challenge and am looking forward to tomorrow. The course today was full of information.

#3

Image
 This day was very difficult due to the large number of tasks. I hope to continue the challenge and am looking forward to tomorrow The course today was full of information.

#2

Image
Today is the second day of the 30-day challenge to learn the basics of programming. Yesterday I finished the introduction to the course. Today, I am very tired to complete this challenge, which is to download a working environment to write codes on, and the program is visual studio code.

#1

Image
 السلام عليكم ورحمه الله وبركاته Today we start learning the C++ programming language.I aspire to complete 30 consecutive days i will study this course online  by self study I'm very excited. Let's go complete today's tasks