Showing posts with label Phirum Tan. Show all posts
Showing posts with label Phirum Tan. Show all posts

Friday, November 30, 2012

Program C++ Tutorial 9 : Calculator

Hello ! everybody, in this Tutorial 9 I'd like to make simple program Calculator by use C++ language and below is Video and source code for make it.

Source Code :

/*
Name : Phirum Tan
NIM  : 49012082
Major: TMD
*/
#include <iostream>
using namespace std;
float multi(float x , float y)
{
float result;
result = x * y ;
return result;
};
float addi(float x ,float y)
{
float result;
result = x + y ;
return result;
};
float sub(float x , float y)
{
float result;
result = x - y;
return result;
};
float divide(float x ,float y)
{
float result;
result = x / y;
return result;
};
int main()
{
int i;
float a , b , show;
cout << "This is Simple program calculator."
<< endl;
cout << "Press number 1 for Multi."
<< endl;
cout << "Press number 2 for Addition."
<< endl;
cout << "Press number 3 for Minus"
<< endl;
cout << "Press number 4 for Divide."
<< endl;
cin >> i;
switch(i)
{
case 1 :
{
cout << "Value 1 = "
<< endl;
cin >> a;
cout << "Value 2 = "
<< endl;
cin >> b;
show = multi(a,b);
cout << "Result = "
<< show
<< endl;
break;
}
case 2:
{
cout << "Value 1 = "
<< endl;
cin >> a;
cout << "Value 2 = "
<< endl;
cin >> b;
show = addi(a,b);
cout << "Result = "
<< show
<< endl;
break;
}
case 3:
{
cout << "Value 1 = "
<< endl;
cin >> a;
cout << "Value 2 = "
<< endl;
cin >> b;
show = sub(a,b);
cout << "Result = "
<< show
<< endl;
break;
}
case 4:
{
cout << "Value 1 = "
<< endl;
cin >> a;
cout << "Value 2 = "
<< endl;
cin >> b;
show = divide(a,b);
cout << "Result = "
<< show
<< endl;
break;
}
default :
cout << "Sorry you press wrong."
<< endl;
}
system ("pause");
return 0;
}

Video :

Thanks for watching
Name : Phirum Tan
MIN : 49012082
Major : TMD

Program C++ Tutorial 8 : Function

Hello! For this video is said about function and how to use and some examples.


Thanks for watching
Name : Phirum Tan
MIN : 49012082
Major : TMD

Program C++ Tutorial 7 : Structure

Hello! this is a video show about how to use and example of Structure that have abbreviation struct.


Thanks for watching
Name : Phirum Tan
MIN : 49012082
Major : TMD

Program C++ Tutorial 6 : Array

For Array I have did on

I One Dimensional
   1. Charge and Displaying Array Elements
    2. Initialization Array
    3. Search of Characters
    4. Sorting Array
II Two Dimensional 
    1. Muli Array
    2. Initialize Array
And for Video below show all details of Array



Thanks for watching
Name : Phirum Tan
NIM   : 49012082
Major : TMD



Program C++ Tutorial 5 : Loop statement

This is a video said about Loop statement that have four parts :
 Part 1 : Said about While loop
 Part 2 : Do......... While loop
 Part 3 : For Loop
 Part 4 : Nest Loop

and for more information about this , let's you all see video below.


Thanks for watching
Name : Phirum Tan
NIM : 49012082
Major : TMD

Wednesday, November 21, 2012

Program C++ Tutorial 4 : CONDITIONAL

Hello! for this video i was explained about how to use Conditional in VS 2010 and Conditional have such as:
1. if statement
2. if -else statement
3. Nest if
4. Switch case


Thanks for watching
Name : Phirum Tan
NIM : 49012082
Major : TMD

Program C++ Tutorial 3 : Operators

Hello! This Video is show details how about use all operators such as :
1. Assignment
2. Unary
3. Increment
4. Decrements
5. Arithmetic
6. Logical
7. Bitwise
8. Ternary


Thanks for Watching
Name : Phirum Tan
NIM : 49012082
Major : TMD

Program C++ Tutorial 2 : Data Type , Constant , Variable.

Dear ! Everybody, in this video said about Data Type , Constant , Variable and how to use it by using VS 2010.



Thanks for watching

Name : Phirum Tan
NIM : 49012082
Major : TMD

Tutorial 1 : How to Install VS 2010 Pro and Basic to write C++

In this video clip i told details about how to install Visual Studio 2010 Professional , important of IDE ( Integrated Development Environment) , how to start to use VS 2010 such as :
- Make Project
- Important tool in VS 2010
- Run Console
- Compile
- debug error
- Basic to write C++ , etc...


How to install VS 2010 Pro



Basic how to write C++

Thanks for watching.
Name : Phirum Tan
NIM   : 49012082
MAJOR : TMD

Wednesday, November 7, 2012

Singly Linear Linked List

Hello! This time i'd like shared my video below and Link Click here..





Thanks for watching

Name : Phirum Tan
Major : Tiknik Media Digital

Monday, November 5, 2012

Modul_Vi : Equation of straight line

Dear!Teacher, In this time i had been upload a new video how to write 2 dimensional represent 100 point in linear function Y = 2X - 3 and this is my link http://youtu.be/o1NC2ds-DbU .
Source code :


#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int x,y;
char point[100][100]= {"",""};
printf ("This is equation staight line y = 2x -3\n");
for (x=0;x<100;++x)
{
y = 2 * x - 3;
printf ("point x = %d and point y = %d \n",x,y);
}
system ("pause");
return 0;
}


Thanks for watching
Name : Phirum Tan
Major : Tiknik Media Digital

Friday, November 2, 2012

Tugas_V_B4 : How to reverse value of index Array

Dear!Teacher, for this time i had made new program how to revert statement in Array A to B by saw your clues and this's my link in youtube  http://youtu.be/DjidCIRmaZo .
Source code :


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
char state[40];
char store[40];
int i=0,j=0,label;
printf ("Please input your statement for reverse : ");
gets (state);
strcpy(store,state);
label= strlen(state);
for (i=label;i>=0;i--)
{
if (i != label)
{
store[j]=state[i];
j++;
}
}
printf ("The statement was reverse like this : %s\n",store);
system ("pause");
return 0;
}



Thanks for watching.
Name : Phirum Tan
Major : Tiknik Media Digital



Thursday, November 1, 2012

Modul_IV : Exchange rate from Rupiah to Dollar

Dear!Teacher. Now i have finished my video and i have uploaded also in youtube that have link http://youtu.be/RqIIBv7bm20 . This is video say about how to make a program for exchange money from Rupiah to Dollar.


Thanks for watching.
Name : Phirum Tan
Major : Tiknik Media Degital

Tuesday, October 30, 2012

Modul_III : Number I (Calculate Volume Triangular Pyramids and Volume Sphere)

 Hello!Teacher, This is my Tugas IV that made video through your clues :
When we input one program will calculate Volume Triangular Pyramids and if we input number two , calculate volume Sphere but we don't input any number above , the program until waiting us to input number one or two.
First before we can Calculate Volume Triangular Pyramids we can do by see this formula :
Volume of Pyramid = (1/6)abh
where
        a = apothem length, s= side, h = height



Triangular Pyramid Image/Diagram




And second formula volume of Sphere : V = (4/3)Ï€r3



By whole formula , now we made a video like :




Link on Youtube : http://youtu.be/cLHcCiFMLfA
Thanks for watching.

Name : Phirum Tan
Major : Tiknik Media Digital

Thursday, October 25, 2012

Modul II : Tugas II (Operator)


Name : Phirum Tan
Major : Tiknik Media Digital
Hello!Teacher this is my video Tutorial Tugas II (Operator) link on youtube  that explain about how to use some arithmetic operations commonly used in C programming language and here is my 10 pieces of questions that will be show you. The following variable used in this program are : 
 int i = 8, j = 5, k;
 float x = 0.005, y = -0.01, z;
and this is my 10 questions:
         //z = (3 * i - 2 * j) % (2 * j - 4);
 //z = (i-3 * j) % ( 12 +2 *j ) / ( x - y );
    //z = -(i + j );
//z = (x > y) && (i > 0) && ( j < 5 );
//z = x >= 0;
        //z = j!= 6;
//z = i %= j;
//z = i += (j -2);
// k = ( j == 5) ? i : j;
//k = ( j > 5 ) ? i : j;

For my Source Code :

#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int i=8,j=5,k;
float x=0.005,y=-0.01, z;
z = (3 * i - 2 * j) % (2 * j - 4);
/*z = (i-3 * j) % ( 12 +2 *j ) / ( x - y );
z = -(i + j );
z = (x > y) && (i > 0) && ( j < 5 );
z = x >= 0;
z = j!= 6;
z = i %= j;
z = i += (j -2);
k = ( j == 5) ? i : j;
k = ( j > 5 ) ? i : j;*/

printf ("So that Z = %f \n",z);
//printf ("So that K = %d \n",k);
system ("pause");
return 0;
}



Video link on youtube : http://youtu.be/mZg2QIRvhcA


Tuesday, October 23, 2012

Tugas II Area of Trapezoid

Name : Phirum Tan
Major : Tiknik Media Digital

Hello!Teacher. I was upload video how to calculate area of  Trapezoid already so this is my link to watch on youtube  http://youtu.be/ezazZUlHuBU 



Thanks Teacher for watching.

Tugas II : Hello! World

Tugas II Print "Hello!World."

Name : Phirum Tan
Major : Tiknik Media Digital

Hello! Teacher this is my link on youtube and my source code :


#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf ("Hello!World.\n");
system ("pause");
return 0;
}




Thanks for Watching.

Tugas II

Name : Phirum Tan
Major : TMD
Hello! Teacher this is my link on youtube and my source code :


#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf ("Hello!World.\n");
system ("pause");
return 0;
}




Thanks for Watching.

Tugas II

Name : Phirum Tan
Major : TMD
Hello! Teacher this is my link on youtube and my source code :


#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf ("Hello!World.\n");
system ("pause");
return 0;
}




Thanks for Watching.