Wednesday, November 21, 2012

Module 5

Name: Om Chanlyta
Major: TMD



http://www.youtube.com/watch?v=lhFos4czQGY&feature=youtu.be

Module4(Arithmatic, Logical, Bitwise, and Ternary Operator)

Name: Chroeng Soklay
Major: D4 TMD ITB Batch6

Module4:
This video show about Operator(part2)
- Arithmatic operator
- Logical operator
- Bitwise Operator
- Ternary operator

                                        

Link to youtube: http://youtu.be/13HnhCP963w

Module3 (Operator Part1)

Name: Chroeng Soklay
Major: D4 TMD ITB Batch 6

Module3:
This video show about Operator(part1)
- Assignment Operator
- Unary Operator
-Increment Operator
-And Decrement Operator
                    

Link to Youtube: http://youtu.be/0gzMCTKedts

Module 5 Control Structure (if statemment, if-else statement, nest if statement, switch statement)


Dear Lecturer
Name: Sean Vandet
Major: D4 TMD Batch6

Module 5 Control Structure

  • if statement
  • if-else statement
  • if-else if statement or nest if statement
  • switch statement

link to youtube:

Module 5(If statement, If Else statement, If in If statement, Switch statement)

Name : luot sokchea
Major : D4 TMD Batch6

Module 5
   -If statement,
   -If Else statement,
   -If in If statement,
   -Switch statement

Link youtube : http://www.youtube.com/watch?v=b1A8eG7QL9o&feature=youtu.be


Module 4

Name: Om Chan Lyta
Major: TMD


http://www.youtube.com/watch?v=UxZuxd3MRhU&feature=youtu.be

Module 4(Arithmetic Operator, Logical Operator, Bitwise Operator, Ternary Operator)

Name : luot sokchea
Major : D4 TMD Batch6

Module 4
   -Arithmetic Operator,
   -Logical Operator,
   -Bitwise Operator,
   -Ternary Operator


Link youtube : http://www.youtube.com/watch?v=2J1aLs73GMc&feature=youtu.be


Module 4 Operator part 2(Arithmetic, Logic, Bitwise and Ternary)


Dear Lecturer
Name: Sean Vandet
Major: D4 TMD Batch6

Module 4 Operator (part 2)

  • Arithmetic
  • Logic
  • Bitwise
  • Ternary

link to youtube:

Module2(Data Type Constant and Variable)

Name: Chroeng Soklay
Major: D4 TMD ITB Batch 6

Module2:
This video show about (Data type Constand and Variable

-Data type
                    

Link to youtube: http://youtu.be/EYDkWBDzHZ8

-Constant

                    
Link to youtube: http://youtu.be/SwF8GBmpV80

-Variable
                  

Link to youtube:http://youtu.be/H-Jrz1guiNs

Module 3(Assignment Operator, Unary Operator, Increment, Decrement)

Name : luot sokchea
Major : D4 TMD Batch6

Module 3
   -Assignment Operator,
   -Unary Operator,
   -Increment, Decrement

Link youtube : http://www.youtube.com/watch?v=jWp4vpkToOU&feature=youtu.be



Module 3 Operator part 1(Assignment, Unary, Increment and Decrement)


Dear Lecturer
Name: Sean Vandet
Major: D4 TMD Batch6

Module 3 Operator (part 1)

  • Assignment
  • Unary
  • Increment and Decrement

link to youtube:

Module 3

Name: Om Chan Lyta
Major: TMD


http://www.youtube.com/watch?v=H_ofHQQATX4&feature=youtu.be

Module 2(Data Type, Contstant, Variable)

Name : luot sokchea
Major : D4 TMD Batch6

Module 2
   -Data Type,
   -Contstant,
   -Variable

Link youtube : http://www.youtube.com/watch?v=pPVegaqFYX4&feature=youtu.be


Module 2

Name : Om Chan Lyta
Major: TMD



http://www.youtube.com/watch?v=EJCFBkV2uDM&feature=youtu.be

Module 2 (Data Type, Data Type Conversion, Constant and Variable)


Dear Lecturer
Name: Sean Vandet
Major: D4 TMD Batch6

Module 2

  • Data Type
  • Data Type Conversion
  • Constant 
  • Variable

link to youtube:

Started Programming Microsoft Visual C++

Name: Chroeng Soklay
Major: D4 TMD ITB Batch 6

Module1:
This video is show about how to use Microsoft Visual C++
                          

Youtube Link:  http://youtu.be/PqmPeMMKczM

Module 1 Beginning microsoft visual C++ 2010 (Beginning MS Visual C++ 2010, Making Program from templates win32 console application, input and output data, Fixing syntax error)

Dear Lecturer
Name: Sean Vandet
Major: D4 TMD Batch6

Module 1 Beginning microsoft visual C++ 2010

  • Beginning MS Visual C++ 2010
  • Making Program from Templates Win32 Console Application
  • Input and Output Data
  • Fixing Syntax Error

link to youtube:

Module 1(Created program Microsoft Visual Studio 2010, Creating program from win32 console application template, Input and Output Data, Syntax Error)

Name : luot sokchea
Major : D4 TMD Bacth6

Module 1
   -Created program Microsoft Visual Studio 2010,
   -Creating program from win32 console application template,
   -Input and Output Data,
   -Syntax Error

 Link youtube : http://www.youtube.com/watch?v=LiQah27RNVc&feature=youtu.be


Module 1

Name: Om Chan Lyta
Major: TMD



http://www.youtube.com/watch?v=FA6bMY-RxY4&feature=youtu.be


http://www.youtube.com/watch?v=WT1Fgu0w4rQ&feature=youtu.be


Pemrograman Bahasa C++ Modul 1 - Modul 5

Modul 1
Instalasi Visual Studio 2010 Express


Pengenalan Visual Studio dan Hello Word


Modul 2
Tipe Data
Konstanta, Konversi, Variable
Modul 3
OPERATOR (Bagian 1)
Assingment, Unary, Increment, Decrement

Modul 4
OPERATOR (Bagian 2)
Aritmatika & Logika


Bitwise & Ternary

Modul 5
Percabangan
If, If-Else, If Bersarang


Operator Aritmatika, Bitwise dan Logika


Listing program Operator Aritmatika : 

/*Nama: Izmatul Farihah
NIM: 49012057*/

/* Operator Aritmatika
+,-,*,/,% */

#include <iostream>

using namespace std;

int main (void){

cout<<"3+4="<<3+4<<endl;

cout<<"5-9="<<5-9<<endl;

cout<<"9*8="<<9*8<<endl;

cout<<"8/4="<<8/4<<endl;

cout<<"9%8="<<9%8<<endl;

system("pause");
return 0;
}

Listing Program Operator Bitwise : 

/*Nama: Izmatul Farihah
NIM: 49012057*/

/* Operator Bitwise
<<, >>, &, |, ~, ^ */

#include <iostream>

using namespace std;

int main (void){

int a=3, b; //0011
b=a<<1; //0110 = 6
cout<<"Nilai dari 3<<1= "<<b<<endl;

int x=4, y; //0100
y=x>>1; //0010
cout<<"Nilai dari 4>>1= "<<y<<endl;

int z=3, i=2, j, k, l; //0011 & 0010 = 0010
j=3&2;
cout<<"Nilai dari 3&2 = "<<j<<endl;
k=3|2; //0011 | 0010 = 0011;
cout<<"Nilai dari 3 | 2 = "<<k<<endl;
cout<<"Nilai dari ~3 = "<<~z<<endl; //1100 = -4

l=z^i; //0011 ^ 0010= 0001=1
cout<<"Nilai dari 3 ^2 = "<<l<<endl;

system("pause");
return 0;
}

Listing Program Operator Logika : 

/*Nama: Izmatul Farihah
NIM: 49012057*/

/* Operator Logika
&&, ||, ! */

#include <iostream>

using namespace std;

int main (void){

int a, b, c;
a=(3<4) && (6>8); // 1 && 0= 0
b=(3<4) || (6>8); // 1 || 0= 1
c=!(3<4); //1, !=0
cout<<"Hasil perbandingannya adalah : "<<a<<endl;
cout<<"Hasil Perbandingan or adalah : "<<b<<endl;
cout<<"Kebalikannya adalah : "<<c<<endl;


system("pause");
return 0;
}


Pengenalan C++ (Membuat Program Hello World)


Setelah sebelumnya kita mengenal bahasa C, maka kali ini saya akan menjelaskan tentang bahasa c++. Ya, namanya juga dalam tahap pengenalan, maka kali ini saya akan menjelaskan tentang bagaimana membuat suatu program dengan C++ untuk menampilkan tulisan Hello World.  


how to use if, if else, if elseif else and switch statement in c++ programming

Dear Lectuer
Name: Him Seanghon
Mayor: D4 TMD Batch6


This is my homework for MODULE5

This is my video for If Statement in youtube:

This is my link on youtube: http://youtu.be/8Gmwcs-DaSQ


This is my video for If Else statement in youtube:

This is my link on youtube: http://youtu.be/CzSueb7ZHis



This is my video for If ElseIf Else Statement in youtube:

This is my link on youtube: http://youtu.be/h7MMf9aj9mk



This is my video for Switch Case Statement in youtube:

This is my link on youtube: http://youtu.be/bavJAXO5a2Q



Thanks!














Module 5 Decision Making (Tep Senghak)



Nama: Tep Senghak
Nim: 49012084
Major: d4 TMD ITB Batch 6

Module 5

Decision Making

Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false.

1. If statement

An if statement consists of a boolean expression followed by one or more statements.
Syntax:
if(boolean_expression)
{
/* statement(s) will execute if the boolean expression is true */
}

2. If else statement

An if statement can be followed by an optional else statement, which executes when the boolean expression is false.
Syntax:
if(boolean_expression)
{
    /* statement(s) will execute if the boolean expression is true */
}
else
{
    /* statement(s) will execute if the boolean expression is false */
}

3. If-else-else-if statement

An if statement can be followed by an optional else if...else statement, which is very useful to test various conditions using single if...else if statement.

Syntax:
if(boolean_expression 1)
{
    /* Executes when the boolean expression 1 is true */
}
else if( boolean_expression 2)
{
    /* Executes when the boolean expression 2 is true */
}
else if( boolean_expression 3)
{
    /* Executes when the boolean expression 3 is true */
}
else
{
    /* executes when the none of the above condition is true */
}

4. Switch statement

Syntax:
switch(expression){
    case constant-expression :
        statement(s);
        break; /* optional */
    case constant-expression :
        statement(s);
        break; /* optional */
    /* you can have any number of case statements */
    default : /* Optional */
        statement(s);
    }



This video below show you examples about if, if-else, if-else-else-if, and switch statement in C++ programming language, which is developed with Microsoft Visual Studio 2010.



 You can also visit this video at www.youtube.com by click this link below.
http://www.youtube.com/watch?v=rZyafHd4Rws&feature=you http://www.youtube.com/watch?v=rZyafHd4Rws&feature=youtu.betu.be

Module 4 Operator (Part 2) (Tep Senghak)



Nama: Tep Senghak
Nim: 49012084
Major: d4 TMD ITB Batch 6

Module 4

Operator (Part 2)

In this module there are four types of operators.
- Arithmetic Operators
- Logical Operators
- Bitwise Operators
- Ternary Operator

1. Arithmetic Operators

Arithmetic Operators used to perform arithmetic operations of addition, subtraction, multiplication, division and so on. All arithmetic operator applies for integers (integer) and float (float).
- (+): adds two operands    
- (-): subtracts second operand from the first    
- (*): multiply both operands    
- (/): divide numerator by de-numerator
- (%): modulus Operator and remainder of after an integer division.

2. Logical Operators

Logical operators are used to generate the true value (true) and false (false). This value is known as reconciliation boolean. In C + +, it is usually true value represented by the value 1 and false is represented by 0.

3. Bitwise Operators

There are six types of bitwise operator:
- (&): binary AND Operator copies a bit to the result if it exists in both operands.    
- (|): binary OR Operator copies a bit if it exists in either operand.    
- (^): binary XOR Operator copies the bit if it is set in one operand but not both.
- (~): binary Ones Complement Operator is unary and has the effect of 'flipping' bits.    
- (<<): binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand.    
- (>>): binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand.

4. Ternary Operator   

Ternary Operator an operator that is used in operations involving three operand. The operator is used to declare an operator ?:.


This video below show you examples about arithmetic,logical, bitwise, and  ternary operators in C++ programming language, which is developed with Microsoft Visual Studio 2010.



 You can also visit this video at www.youtube.com by click this link below.

  http://www.youtube.com/watch?v=SmF513cKBGU&feature=youtu.be