Saturday, September 22, 2018
Lab0
Part 1
Assalamualaikum, in this post I would like to share about my computer programming SSK3100 class . This is my our first class, so we just learn some basic stuff about the command prompt.
firstly, in the computer lab , our lecturer teach us how to open the command prompt and navigate ourself by typing `dir` thtough all the folders in the computer. How to enter some specific file is by typing `cd name of the file`, then enter , it will automatically open the file.
After we have familliar ourself with the command prompt, our lecturer ask us to make our own file by using this command prompt. The step is we have to type`mkdir our name` then enter. it will automatically create the folder. then , we have to make another file within our name file which is the Lab0 file. The step to make this file is just the same as to make our own file. Then, we also create a file called notepad in the Lab0 file.
Next, we have to check whether the computer got the latest version of java or not. how to know it , we have to google it. then from there we will know what is theatest version of java. After checking the java version, our lecturer ask us to compile the java by using command prompt so that we can use it anywhere in the computer.
To compile the java, we have to make our own java program. by using the notepad, we just type `myfirstjavaprogram` then save it in the Lab0 file. But to open it , we have to type `javac myfirstjavaprogram` in the command prompt.
When we want to compile the java file, make sure there is no typing error. If there is any typing error, in the command prompt, it will tells you what is the error then you have to rewrite the terms until there is no error. After you finished fix the error, only then it can be compile , otherwise it will pop out the errors.
Part 2
Assalamualaikum , this is my second entry. in this entry, I would like to share about the first lecture of my computer programming class. For the first class, as usual we learn the first topic for this subject.
Its the same topic as we learn in the lab. the difference is in the lab we practically learn how to do it but in this lecture we just learn it theoretically how it works.
what makes it interesting is , our lecturer ask us how is the image and music are stored in the computer. As we know that computer system can only reads a binary number and the arithmetic. So the question is how the computer system can keep the image , music and even how the letter can be keep as well.
So to find these answer, I google it and I found the answer. I found that actually the image already have the fix number for the pixels by the column and row. Normally this pixels are keeps in computer as raster image where these values are stored in compressed form.
Then , for the colour image, there is actually a tiny square of colour which is composed by pixels together. Pixels contain specific number and that number represent each colour.
Next is about music. We know that music travel as a wave. Since it in wave form and computer can only store data in number, so we have to manipulated the sound so that it will be stored in digital form. So when we keep the sound in computer, it will be converted to digital from analog and when we want to play it, it will be converted back to analog from digital.
Hence , that is my answer for the question how do the music and picture are stored in computer.
p/s: link to Atika`s blog
ssk3100.blogspot.com
Subscribe to:
Posts (Atom)