Dibawah ini merupakan Coding untuk Menghitung Kecepatan dengan Code Bloks
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
system ("color a");
cout << "\t\t======= MENGHITUNG KECEPATAN =======\n\n\n"
<< "\n";
double s,t;
cout << "==================== MASUKAN JARAK TEMPUH : ";
cin >> s;
cout << "==================== MASUKAN WAKTU TEMPUH : ";
cin >> t;
cout << "\n\n";
cout << "++++++++++++++++++++ JARAK TEMPUH : " << s <<" KM ++++++++++++++++++++"<< "\n";
cout << "++++++++++++++++++++ WAKTU TEMPUH : " << t <<" JAM ++++++++++++++++++++"<< "\n";
cout << "========== KECEPATAN = JARAK / WAKTU ( V= S/T ) ==========" << "\n\n";
cout << "\t\t>>>>> MAKA KECEPATANNYA ( V ): " << s/t
<< " KM/JAM <<<<<\n\n"
<< "\n";
return 0;
}
#include <windows.h>
using namespace std;
int main()
{
system ("color a");
cout << "\t\t======= MENGHITUNG KECEPATAN =======\n\n\n"
<< "\n";
double s,t;
cout << "==================== MASUKAN JARAK TEMPUH : ";
cin >> s;
cout << "==================== MASUKAN WAKTU TEMPUH : ";
cin >> t;
cout << "\n\n";
cout << "++++++++++++++++++++ JARAK TEMPUH : " << s <<" KM ++++++++++++++++++++"<< "\n";
cout << "++++++++++++++++++++ WAKTU TEMPUH : " << t <<" JAM ++++++++++++++++++++"<< "\n";
cout << "========== KECEPATAN = JARAK / WAKTU ( V= S/T ) ==========" << "\n\n";
cout << "\t\t>>>>> MAKA KECEPATANNYA ( V ): " << s/t
<< " KM/JAM <<<<<\n\n"
<< "\n";
return 0;
}
Cara Menghitung Luas Jajar Genjang
Dibawah ini merupakan Coding untuk Menghitung Luas Jajar Genjang dengan Code Bloks
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
system ("color a");
cout << "\t\t======= MENGHITUNG LUAS JAJAR GENJANG =======\n\n\n"
<< "\n";
double a,t;
cout << "==================== MASUKAN PANJANG ALAS : ";
cin >> a;
cout << "==================== MASUKAN TINGGI JAJAR GENJANG : ";
cin >> t;
cout << "\n\n";
cout << "++++++++++++++++++++ PANJANG ALAS : " << a <<" CM ++++++++++++++++++++"<< "\n";
cout << "+++++++++++ TINGGI JAJAR GENJANG : " << t <<" CM +++++++++++"<< "\n";
cout << "========= LUAS JAJAR GENJANG = ALAS * TINGGI ( L.jg= A*T ) =========" << "\n\n";
cout << "\t\t>>>>> MAKA LUAS JAJAR GENJANG : " << a*t
<< " CM2 <<<<<\n\n"
<< "\n"; return 0;
}
#include <windows.h>
using namespace std;
int main()
{
system ("color a");
cout << "\t\t======= MENGHITUNG LUAS JAJAR GENJANG =======\n\n\n"
<< "\n";
double a,t;
cout << "==================== MASUKAN PANJANG ALAS : ";
cin >> a;
cout << "==================== MASUKAN TINGGI JAJAR GENJANG : ";
cin >> t;
cout << "\n\n";
cout << "++++++++++++++++++++ PANJANG ALAS : " << a <<" CM ++++++++++++++++++++"<< "\n";
cout << "+++++++++++ TINGGI JAJAR GENJANG : " << t <<" CM +++++++++++"<< "\n";
cout << "========= LUAS JAJAR GENJANG = ALAS * TINGGI ( L.jg= A*T ) =========" << "\n\n";
cout << "\t\t>>>>> MAKA LUAS JAJAR GENJANG : " << a*t
<< " CM2 <<<<<\n\n"
<< "\n"; return 0;
}
Cara Menghitung Luas Lingkaran
Dibawah ini merupakan Coding untuk Menghitung Luas Lingkaran dengan Code Bloks
#include <iostream>
#include <windows.h>
#define PHI 3.14
using namespace std;
int main()
{
system ("color a");
cout << "\t\t======= MENGHITUNG LUAS LINGKARAN =======\n\n\n"
<< "\n";
double r;
cout << "=================== MASUKAN JARI-JARI LINGKARAN : " ;
cin >> r;
cout << "\n\n";
cout << "++++++++++++++++++++ JARI-JARI LINGKARAN : " << r <<" CM ++++++++++++++++++++"<< "\n";
cout << ">> LUAS LINGKARAN = PHI * JARI-JARI LINGKARAN2 ( L.ling= PHI*R*R ) <<" << "\n\n";
cout << "\t\t>>>>> MAKA LUAS LINGKARAN ( L ): " << PHI*r*r
<< " CM2 <<<<<\n\n"
<< "\n"; return 0;
}
#include <windows.h>
#define PHI 3.14
using namespace std;
int main()
{
system ("color a");
cout << "\t\t======= MENGHITUNG LUAS LINGKARAN =======\n\n\n"
<< "\n";
double r;
cout << "=================== MASUKAN JARI-JARI LINGKARAN : " ;
cin >> r;
cout << "\n\n";
cout << "++++++++++++++++++++ JARI-JARI LINGKARAN : " << r <<" CM ++++++++++++++++++++"<< "\n";
cout << ">> LUAS LINGKARAN = PHI * JARI-JARI LINGKARAN2 ( L.ling= PHI*R*R ) <<" << "\n\n";
cout << "\t\t>>>>> MAKA LUAS LINGKARAN ( L ): " << PHI*r*r
<< " CM2 <<<<<\n\n"
<< "\n"; return 0;
}
Cara Menghitung Volume Tabung
Dibawah ini merupakan Coding untuk Menghitung Volume Tabung dengan Code Bloks
#include <iostream>
#include <windows.h>
#define PHI 3.14
using namespace std;
int main()
{
system ("color a");
cout << "\t\t======== MENGHITUNG VOLUME TABUNG ========\n\n\n"
<< "\n";
double r,t;
cout << "=================== MASUKAN JARI-JARI LINGKARAN : " ;
cin >> r;
cout << "=================== MASUKAN TINGGI TABUNG : " ;
cin >> t;
cout << "\n\n";
cout << "+++++++++++++++++++ JARI-JARI LINGKARAN : " << r <<" CM +++++++++++++++++++"<< "\n";
cout << "++++++++++++++++++ TINGGI TABUNG : " << t <<" CM ++++++++++++++++++"<< "\n";
cout << "=== VOLUME TABUNG = PHI * JARI-JARI LINGKARAN2 * TINGGI ( V.tab= PHI*R*R*T ) ===" << "\n\n";
cout << "\t\t>>>>> MAKA VOLUME TABUNG : " << PHI*r*r*t
<< " CM2 <<<<<\n\n"; return 0;
}
#include <windows.h>
#define PHI 3.14
using namespace std;
int main()
{
system ("color a");
cout << "\t\t======== MENGHITUNG VOLUME TABUNG ========\n\n\n"
<< "\n";
double r,t;
cout << "=================== MASUKAN JARI-JARI LINGKARAN : " ;
cin >> r;
cout << "=================== MASUKAN TINGGI TABUNG : " ;
cin >> t;
cout << "\n\n";
cout << "+++++++++++++++++++ JARI-JARI LINGKARAN : " << r <<" CM +++++++++++++++++++"<< "\n";
cout << "++++++++++++++++++ TINGGI TABUNG : " << t <<" CM ++++++++++++++++++"<< "\n";
cout << "=== VOLUME TABUNG = PHI * JARI-JARI LINGKARAN2 * TINGGI ( V.tab= PHI*R*R*T ) ===" << "\n\n";
cout << "\t\t>>>>> MAKA VOLUME TABUNG : " << PHI*r*r*t
<< " CM2 <<<<<\n\n"; return 0;
}
Download File Tugasnya DISINI
0 komentar:
Posting Komentar