Postingan

SORTING AND SEARCHING FILE

Heyya ladss, back with me, the student of computer science in Binus University, so after we've been learning about file processing, we will move on to searching and sorting file. So, basically there are 5 types of sorting in a file, so what do we need sorting for bruh? analogically, do you prefer to search for your comic books in your bookselves just by searching it when it's mixed up with various comics and random volume numbers, or when it's sorted out comics by comics, and the volumes number are in sequence? Rethorical, isn't it? especially when you're dealing with a large amount of datas, that's why sorting is quite crucial, and the types of sorting are various too, starting with easy concept of sorting till complicated one, so if you have a small amount of data, you can use easy one, but if not, you'd rather use complicated ones, so classyfing by the complexity of sorting method, we can rank it from the easiest which is : bubble sort, selection sort, in...

FILE PROCESSING

SO, i'm back guys with a new topic, which is file processing, so on the session we learn HOW to process a file,in addition first i will explain struct, which means you can save various data items with different or the same data types, not like array where we can only use 1 data type, so let me begin, in here, we will first declare the libraries, then we have to write FILE *fp, fp is just the name,so you can make it basically ANYTHING, such as FILE *algorithmandprogramming, but it's better to have meaningful name in order not to confuse yourself, and the file has to use capsclock, what's the pointer here, it just points to us that " Hey, lad, everytime you open a file in this compiler, you need to save it in this fp location that i point right now temporarily" . So, what do i mean by temporary, is that the fact that you have to close up the file after you're done processing it. Firstly, i make void function for add_file and view_data, which is used as the name...

Cloud Computing

Gambar
            So ,what is cloud computing? Its meaning is basically that you don’t save   and access your progress and data, in your harddrive like ol’ times, that is when you save it in a local storage, but instead, everything you do is saved in the internet, this makes the user able to expand the storage size in the internet, such as the famous google drive, so as long as you have internet, you don’t have to afraid to lose your data, its automatically saved from you last point you’re at, such as in role playing games. And as long as internet exists at where you are at, you can open and access your progress anytime,anywhere with any electronical devices such as computers, laptop, smartphone, gaming device, etc.                                And you won’t have to afraid to forget to bring your data,literally said, it’s a lot safer this way, not like old times where y...

FUNCTIONS(DATA AND VOID),RECURSION

Gambar
The libraries that we use in C, consists of functions, for example in <stdio.h>, there exits functions, such as printf, scanf, fprintf, fscanf, etc. And each and every functions, are also made by coding, but in order to make it easier for us, the libraries are provided by the C language itself. If not, each time we want to print something, we have to code complicated stuffs , instead of just typing printf, to call the function that will execute the printing process. BUT did you know? Besides using the function that is provided by the C library, you can also make your own function, in order to simplify things, so if you want to use a process many times, you don’t have to copy paste it all over and over   again every time it needs to be used, but instead you can just declare it as a function, so every time you need to use it, you just need to type the function in one line. And each function needs to be declared, basically there are data and void functions, so what is the dif...

Algorithm and programming-review

So good morning lads,today i won't be posting as detailed as possible,we're having mid-term examination next week here at Binus,so we're having a review session in the auditorium of our campus.So whatt we're studying here at Binus is firstly introduction to C in our first week,so the programming language that we use as a start here at Binus is C,which is the mother of all language in programming,but we're usually using Dev C++,which is a compiler for C++,but it also works for C.Usually we're having a laboratorium class after this, but not for the first week.And for the next week we're studying about operands,operators,and arithmetic with a professor from Taiwan.The week after, we're back to auditorium class with Mr. Fidelson and Mr. Henry,every week since then, we apply what we learn in our tutorial class, with different lecturer in each class, and as for me,i got lectured by Mr. Fidelson from our auditorium class. The following what we learn is in sequ...

Algorithm and Programming-Array and Pointers

ALGORITHM AND PROGRAMMING ARRAY AND POINTERS We know that our computer has some way to address memory and store data for us, so we can abstract that away and program at a slightly higher level with C, using variables and arrays instead of memory addresses ourselves.We initialize an array of characters (which is exactly what a string is) to store the value that we extract from the string,  if we wanted to initialize that array of characters manually, we can do something like:... The 1st index of array starts from zero,so the last index is the number in initialization bracket minus 1.But if you want to input 3 characters,you must make at least 4 in the bracket of char of array,because the last index is always filled with '\0' char initials[4]; initials[0] = 'D'; initials[1] = 'J'; initials[2] = 'M'; initials[3] = '\0'; OR char initials[4] = {D,J,M}; Arrays can be used to store many of the same type of variable, but computer...

Algorithm And Programming-Repetition

ALGORITHM AND PROGRAMMING PROGRAM CONTROL-REPETITION (C Programming Language) What is Repetition? Basically,a repetition is one or more programs that are  repeated for a number of times which number can be defined first or defined later according to the condition.  So,there are 3 ways to do looping in C programming,which is for,while,dowhile,and for is the one that is predefined,meanwhile while's and dowhile's number is defined later Forever in C can be used like this: while ( true ) {      printf ( "hello, world \n " ); } Or... we can also use do while What is the difference?While vs do while? well for do while,we must "do" it first before checking the condition,so the loop will be executed at least once,meanwhile for while,we must check the condition before executing it even once. The while   keyword means that the loop will run as long as the Boolean expression inside the parentheses is true. And si...