I firstly entered Binus University and thought
"If i weren't wrong, this campus is home of expert programmers and stuffs."
Well, to be honest, I came here without any knowledge of IT. I only knew how to use a computer in daily basis use.
First weeks passed by, I struggled to keep up on Algorithm and Programming. I was afraid that I won't make it out and understand anything. But then, I got some friends in my Class that has sympathy over me.
Weeks passed by and I learnt so much until I actually reach the tops of the class. All are thanks to the educational system and also the classmates and lecturers I met.
Here's what I got in my thoughts after these past 4 months in a quote:
"Life is never about being what is at the least of all, it is to obtain something better even after you reach some points in life. It is all about growing up and passing torches to each other."
I thank all lecturers and my Laboratory Class LT-01. Thanks for this semester, I am grateful for all thinks that had happened.
Excelsior!
Tuesday, December 18, 2018
Wednesday, December 12, 2018
Sorting & Searching
This is the last session probably for the first semester, I would like to thank the lecturers in the Collaborative Learning class for Algorithm & Programming for this semester.
The last session talks about Sorting and Searching.
It basically is:
1. Sorting
It is for us to sort some data in a program with certain method. There are 5 sort methods that I learned from here, those are:
1. Bubble Sort
2. Selection Sort
3. Insertion Sort
4. Quick Sort
5. Merge Sort
2. Searching
This method is used to search data in a sorted data in a program. There are 3 search methods that I learned from this session, those are:
1. Linear Search
2. Binary Search
3. Interpolation Search
Thanks again for the semester, I am proud to make this blog as I learned much theories from the Collaborative Learning class in Binus University.
Wednesday, December 5, 2018
File Processing
In here I was taught of how i make programs that can process files, or basically manipulate files haha.
Here's how I open a file,
1. first we need to input a variable to represent the file.
Syntax:
FILE *fp;
2. And we open the file. for example, we want to write on a file called "output.txt" in data D.
Syntax:
fp = fopen("D:\\output.txt","w"); //w here means write
3. We use "fprintf" to print inside the txt file.
Syntax:
fprintf(fp,"Hello World!");
And the result is, there will be a text "Hello World!" inside output.txt in Data D.
Here's how I read it,
1. Input the variable like this.
Syntax:
fp = fopen("D:\\output.txt","r"); //r here means read
2. you can scan the data in the output.txt file by using "fscanf". Here's how it's done.
Syntax:
fscanf(fp,"%s",a);
//if we print a, it will be "Hello".
With all these lectures, it is said that file can be processed and manipulated through programs.
Here's how I open a file,
1. first we need to input a variable to represent the file.
Syntax:
FILE *fp;
2. And we open the file. for example, we want to write on a file called "output.txt" in data D.
Syntax:
fp = fopen("D:\\output.txt","w"); //w here means write
3. We use "fprintf" to print inside the txt file.
Syntax:
fprintf(fp,"Hello World!");
And the result is, there will be a text "Hello World!" inside output.txt in Data D.
Here's how I read it,
1. Input the variable like this.
Syntax:
fp = fopen("D:\\output.txt","r"); //r here means read
2. you can scan the data in the output.txt file by using "fscanf". Here's how it's done.
Syntax:
fscanf(fp,"%s",a);
//if we print a, it will be "Hello".
With all these lectures, it is said that file can be processed and manipulated through programs.
Subscribe to:
Comments (Atom)