This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Tampilkan postingan dengan label TUGAS INDIVIDU. Tampilkan semua postingan
Tampilkan postingan dengan label TUGAS INDIVIDU. Tampilkan semua postingan

Senin, 14 Maret 2016

titik tengah (c++)

Assalamualaikum wr.wb
hy guys, what's you guys. how are you today. i hope you always be better than yesterday.
maaf nih guys lagi sibuk2nya nih memuat laporan atau biasa disebut tugas jadi nih blog jadinya kudet yah hehehe ( kurang upddate) tapi tenang karena saya selalu aktif kok heheeh.
ok i dont wanna waste your time, you"ve to see my program let's check this out :

#include <iostream>
using namespace std;
main(){
    float x1,x2,y1,y2,xt,yt;
    cout<<"Titik x1 : "; cin>>x1;
    cout<<"Titik x2 : "; cin>>x2;
    cout<<"Titik y1 : "; cin>>y1;
    cout<<"Titik y2 : "; cin>>y2;
    xt=(x2-x1)/2;    yt=(y2-y1)/2;
    cout<<"Titik tengah garis pada titik ("<<x1<<";"<<y1<<")\ndan ("<<x2<<";"<<y2<<") adalah ("<<x1+xt<<";"<<y1+yt<<")";
}

yang diatas adalah hasil kodingan c++ nya guys hehehe maaf kalo kurang rapi soalny dikejar deadline nih hehehe.. tapi tanpa berlama-lama baik kita lihat di c++ dan raptor. ok everybody put your hands up . and let's check this out :
eits dont go any where dulu lihat juga nih hasil algoritma nya menggunakan raptor :




sekian dulu guys yang bisa saya bagikan tetap belajar dan tetap memintalah ilmunya kepada allah swt yah.
Assalamualaikum wr.wb 

pemisah (ratusan,puluhan,satuan)

Assalamualaikum wr.wb
hy guys, what's you guys. how are you today. i hope you always be better than yesterday.
maaf nih guys lagi sibuk2nya nih memuat laporan atau biasa disebut tugas jadi nih blog jadinya kudet yah hehehe ( kurang upddate) tapi tenang karena saya selalu aktif kok heheeh.
ok i dont wanna waste your time, you"ve to see my program let's check this out :

#include <iostream>
using namespace std;
main(){
    int angka,a,b,c,x;
    cout<<"masukkan angka yang kurang dari 1000 dan lebih dari 0 :";
    cout<<"\nMasukan : ";
    cin>>angka; if (angka>=1000 or angka<=0) cout<<"Masukan anda salah !";
    else{
        a=angka/100; x=angka-a*100;
        b=x/10;
        c=x-b*10;
        cout<<a<<" ratusan + "<<b<<" puluhan + "<<c<<" satuan";
    }
}

btw mungkin diantara kalian sudah banyak yang mengerti atau sudah paham tentang upload-an ini, atau sudah terbiasa membuat ataupun yang belom pernah membuat monggo disedot hehehe.
tapi sebelum kalian mengambilny lihat dulu outputanny :
hehehe terimakasih banyak jika kalian suka dengan blog saya yah.. tapi saya akan memasukkan algoritma nya juga nih lewat raptor dont go anywhere yah , let's check this out :
 
sekian dulu guys yang bisa saya bagikan tetap belajar dan tetap memintalah ilmunya kepada allah swt yah.
Assalamualaikum wr.wb

Matrix dan determinan c++


Assalamualaikum wr.wb
hy guys, what's you guys. how are you today. i hope you always be better than yesterday.
maaf nih guys lagi sibuk2nya nih memuat laporan atau biasa disebut tugas jadi nih blog jadinya kudet yah hehehe ( kurang upddate).
Langsung aja pertemuan kai ini saya akan memposting tentang   matrix dan determinan ny menggunakan bahasa c++, by the way akan kah lebih baiknya kita langsung menyimak hasil kodingan berikut check this out :

#include <iostream>
using namespace std;
main(){
    int m[2][2],i,j;
    for(i=0;i<2;i++){
        for(j=0;j<2;j++){
        cout<<"M("<<i<<","<<j<<") = "; cin>>m[i][j];
    }
    }
    int det=m[0][0]*m[1][1] - m[0][1]*m[1][0];
    cout<<"nilai determinan pada matriks diatas adalah "<<det;
}

kurang lebih ini lah hasil koding c++ nya guys hehehe, akan kah lebih baik jika kalian copy dan paste di c++ kalian tanpa harus mengkoding lagi kan heheh. sedangkan hasil c++ nya seperti ini:
sekian lah hasil postingan saya semoga bermanfaat ok... see U next time guys
Assalamualaikum wr.wb

KASUS 2.6

hasil kodingan c++:
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
    int m,n,r;
    float q;
    cout<<"masukkan nilai M =";cin>>m;
    cout<<"masukkan nilai N =";cin>>n;
    q=m/n;
    r=m%n;
    cout<<"hasil q ="<<q<<endl;
    cout<<"hasil r ="<<n;
    return 0;
}

output c++:

hasil output raptor:



KASUS 2.3

HASIL KODING C++:
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
    int m,cm;
    float inchi;
    cout<<"konversi meter ke cm atau inchi"<<endl;
    cout<<"masukkan Meter    =";cin>>m;
    cm=m*100;
    cout<<"nilai CM    ="<<cm;
    inchi=m*100/2.54;
    cout<<"nilai inchi    ="<<inchi;
    return 0;

output c++:

output raptor:




KASUS 2.2

HASIL KODING C++:
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
    int a,b,hasil;
    cout<<"masukkan bilangan1    =";cin>>a;
    cout<<"masukkan bilangan2    =";cin>>b;
    hasil=a*b;
    cout<<"hasil    ="<<hasil;
    return 0;
}

OUTPUT:
  

hasil output raptor: 


KASUS2.1 ALPRO

MY GROUP IS : -MUHAMAD FADLI
                             -MARCHO.DV
                             -DIMAS RIZKI

KASUS 2.1 
ini adalah koding saya menggunakan c++:
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
    int a,b,c, hasil;
    cout<<"mencari nilai penjumlahan "<<endl;
    cout<<"masukkan bilangan =";cin>>a;
    cout<<"masukkan bilangan2=";cin>>b;
    cout<<"masukkan bilangan3=";cin>>c;
    hasil=a+b+c;
    cout<<"hasil ="<<hasil;
    return 0;
}

output raptor:




output c++: