Posts

Day 30

Image
Now I understand that anything I can do with command line If I wanted to create a new folder and access it, then create many files within it, it would be like this These were some basics about the language C

Day 29

Image
  I can also use the graphics to rename a specific file  We're writing this down The file will be named like this  

Day 28

Image
To find out how many files I have, I type ls, which is short for list Here the word hello appeared in green, meaning that this file is usable, the file in machine language

Day 27

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

Day 26

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. If I want the variable to decrease by one, I write --

Day 25

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:

Day 24

Image
Now, if I have two variables and I want to print them, we will write the codes in this form:  

Day 23

Image
  long If the variable is of type long, which is large numbers, it will be printed like this:

Day 22

Image
letters  Now, if you want to write letters, we will write the code in this image:

Day 21

Image
decimal numbers Now that I have learned to write a numerical variable, but this was for integers, so I have learned to write decimal numbers, and it will be written in this form

Day 20

Image
Numeric variable Now that I have learned to write codes for regular variables such as sentences and words, I have now learned to write codes for numerical variables using the symbol %s or %d to appear with us in this image.

Day 19

Image
Now I have tried making a program that asks me my name and when I tell it, it welcomes me. I did it before in scratch. I used to do it through the ask command. So I will do the same thing to you in C language, so I wrote the codes in this image:

Day 18

Image
Now that I have learned a little programming on the Scratch program, I have now begun to learn the C language. The C language depends on writing codes, and most other languages in general depend on writing codes. Writing the codes is done in English, but the computer does not understand them, so I need a translator to convert the letters into numbers. So I started learning how to convert the codes to Binary so that they appear with me in this image:

Day 17

  Game I'm now starting to apply the concepts I've learned to designing a game. Each character will have its own code. We will have three characters, and I will add each character with its own commands The game will be like this

Day 16

Image
  Variables  Now we will talk about variables. A variable is simply a place where we save a certain value or data, and this value can be a number, text, or anything. If I have data, I can save it in variables and then I can change its value. That is why it is called a variable. In order for me to create a variable in scratch, I go to the Variables box and give it any name I want. For example, if I want to create a program that compares two specific values while adding some conditions to them, it will appear like this

Day 15

Image
 Conditionals Today I learned one of the most important programming concepts, which is conditions. The conditions we use in normal life are exactly the ones we use in programming, for example when a mother says to her son, “If you finish your homework, I will allow you to play.” Now I want to do something, but this order can only be executed under a certain condition. If it is met, the order will be executed. If it is not fulfilled, it will not be executed. This is done through the Control field and then bringing the if command. But before anything else, the forever command must be shared with us so that the computer always receives the condition and does not stop at a specific moment. Example: If the mouse touches the object, it will meow. We will write the commands like this:

Day 14

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.  

Day 13

  Function   The function is one of the most important programming concepts, and there are entire programs based on the function language, so I learned a few of them today. Now, if I wanted to combine several commands, I would make them into one code, but there is no specific command that would make me merge the commands, so I enable scratch. We have the opportunity to create an order ourselves through My Blocks . I can give the command any name I want and combine several commands with it to become one command. This method is useful when you have many orders, so try to simplify them in the best way possible.

Day12

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 times th...

Day 11

Image
Now if I wanted the object to speak a word instead of writing it So I will go to My Blocks and choose Text to Speech . We will find a command called speak and install commands on it so that it appears with us in this image.