You are on page 1of 4

TUGAS MENGHITUNG LUAS BANGUNAN

%3CmxGraphModel%3E%3Croot%3E%3CmxCell%20id%3D%220%22%2F
%3E%3CmxCell%20id%3D%221%22%20parent%3D%220%22%2F%3E
%3CmxCell%20id%3D%222%22%20value%3D%22%22%20style%3D
%22edgeStyle%3DorthogonalEdgeStyle%3Brounded
%3D0%3BorthogonalLoop%3D1%3BjettySize%3Dauto%3Bhtml
%3D1%3BfontSize%3D14%3B%22%20edge%3D%221%22%20parent%3D
%221%22%3E%3CmxGeometry%20relative%3D%221%22%20as%3D
%22geometry%22%3E%3CmxPoint%20x%3D%22330%22%20y%3D
%22120%22%20as%3D%22sourcePoint%22%2F%3E%3CmxPoint%20x%3D
%22330%22%20y%3D%22170%22%20as%3D%22targetPoint%22%2F%3E
%3C%2FmxGeometry%3E%3C%2FmxCell%3E%3CmxCell%20id%3D
%223%22%20value%3D%22%22%20style%3D%22edgeStyle
%3DorthogonalEdgeStyle%3Brounded%3D0%3BorthogonalLoop
%3D1%3BjettySize%3Dauto%3Bhtml%3D1%3BfontSize%3D14%3B
%22%20edge%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry
%20relative%3D%221%22%20as%3D%22geometry%22%3E%3CmxPoint
%20x%3D%22330%22%20y%3D%22230%22%20as%3D%22sourcePoint
%22%2F%3E%3CmxPoint%20x%3D%22330%22%20y%3D%22260%22%20as
%3D%22targetPoint%22%2F%3E%3C%2FmxGeometry%3E%3C%2FmxCell
%3E%3CmxCell%20id%3D%224%22%20value%3D%22MULAI%22%20style
%3D%22ellipse%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3BfontSize
%3D14%3B%22%20vertex%3D%221%22%20parent%3D%221%22%3E
%3CmxGeometry%20x%3D%22270%22%20y%3D%2250%22%20width%3D
%22120%22%20height%3D%2280%22%20as%3D%22geometry%22%2F%3E
%3C%2FmxCell%3E%3CmxCell%20id%3D%225%22%20value%3D%22int
%3BL%2Cp%2Cr%2Cl%2Cphi%26lt%3Bbr%26gt%3Bphi
%3D3.14%22%20style%3D%22shape%3Dparallelogram%3Bperimeter
%3DparallelogramPerimeter%3BwhiteSpace%3Dwrap%3Bhtml
%3D1%3BfixedSize%3D1%3BfontSize%3D14%3B%22%20vertex%3D
%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D
%22270%22%20y%3D%22170%22%20width%3D%22120%22%20height%3D
%2260%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E
%3CmxCell%20id%3D%226%22%20value%3D%22%22%20style%3D
%22edgeStyle%3DorthogonalEdgeStyle%3Brounded
%3D0%3BorthogonalLoop%3D1%3BjettySize%3Dauto%3Bhtml
%3D1%3BfontSize%3D14%3B%22%20edge%3D%221%22%20source%3D
%227%22%20target%3D%229%22%20parent%3D%221%22%3E
%3CmxGeometry%20relative%3D%221%22%20as%3D%22geometry
%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D%227%22%20value
%3D%22Baca%20Nama%26amp%3Bnbsp%3B%26lt%3Bbr%26gt%3Bdan
%26amp%3Bnbsp%3B%26lt%3Bbr%26gt%3BNIM%22%20style%3D
%22shape%3Dparallelogram%3Bperimeter
%3DparallelogramPerimeter%3BwhiteSpace%3Dwrap%3Bhtml
%3D1%3BfixedSize%3D1%3BfontSize%3D14%3B%22%20vertex%3D
%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D
%22270%22%20y%3D%22260%22%20width%3D%22120%22%20height%3D
%2260%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E
%3CmxCell%20id%3D%228%22%20value%3D%22%22%20style%3D
%22edgeStyle%3DorthogonalEdgeStyle%3Brounded
%3D0%3BorthogonalLoop%3D1%3BjettySize%3Dauto%3Bhtml
%3D1%3BfontSize%3D14%3B%22%20edge%3D%221%22%20source%3D
%229%22%20target%3D%2211%22%20parent%3D%221%22%3E
%3CmxGeometry%20relative%3D%221%22%20as%3D%22geometry
%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D%229%22%20value
%3D%22Input%20nilai%20p%2Cr%2Cl%22%20style%3D%22shape
%3Dparallelogram%3Bperimeter%3DparallelogramPerimeter
%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3BfixedSize
%3D1%3BfontSize%3D14%3B%22%20vertex%3D%221%22%20parent%3D
%221%22%3E%3CmxGeometry%20x%3D%22270%22%20y%3D
%22360%22%20width%3D%22140%22%20height%3D%2270%22%20as%3D
%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D
%2210%22%20value%3D%22%22%20style%3D%22edgeStyle
%3DorthogonalEdgeStyle%3Brounded%3D0%3BorthogonalLoop
%3D1%3BjettySize%3Dauto%3Bhtml%3D1%3BfontSize%3D14%3B
%22%20edge%3D%221%22%20source%3D%2211%22%20target%3D
%2213%22%20parent%3D%221%22%3E%3CmxGeometry%20relative%3D
%221%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E
%3CmxCell%20id%3D%2211%22%20value%3D%22Hitung%20luas%26lt
%3Bbr%26gt%3Bp*l%2Bphi*r*r%2F2%22%20style%3D%22rounded
%3D0%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3BfontSize%3D14%3B
%22%20vertex%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry
%20x%3D%22260%22%20y%3D%22470%22%20width%3D
%22170%22%20height%3D%2260%22%20as%3D%22geometry%22%2F%3E
%3C%2FmxCell%3E%3CmxCell%20id%3D%2212%22%20value%3D
%22%22%20style%3D%22edgeStyle%3DorthogonalEdgeStyle
%3Brounded%3D0%3BorthogonalLoop%3D1%3BjettySize%3Dauto
%3Bhtml%3D1%3BfontSize%3D14%3B%22%20edge%3D
%221%22%20source%3D%2213%22%20target%3D%2214%22%20parent
%3D%221%22%3E%3CmxGeometry%20relative%3D%221%22%20as%3D
%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCell%20id%3D
%2213%22%20value%3D%22Tampilkan%20Luas%20bangunan
%22%20style%3D%22shape%3Dparallelogram%3Bperimeter
%3DparallelogramPerimeter%3BwhiteSpace%3Dwrap%3Bhtml
%3D1%3BfixedSize%3D1%3BfontSize%3D14%3B%22%20vertex%3D
%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D
%22285%22%20y%3D%22560%22%20width%3D%22145%22%20height%3D
%2260%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E
%3CmxCell%20id%3D%2214%22%20value%3D%22SELESAI%22%20style
%3D%22ellipse%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3BfontSize
%3D14%3B%22%20vertex%3D%221%22%20parent%3D%221%22%3E
%3CmxGeometry%20x%3D%22294%22%20y%3D%22650%22%20width%3D
%22120%22%20height%3D%2280%22%20as%3D%22geometry%22%2F%3E
%3C%2FmxCell%3E%3C%2Froot%3E%3C%2FmxGraphModel%3E

#include <iostream>
using namespace std;
int main(){
  float L, r,p,l;
  const float phi = 3.14;
  cout << "=================================\n";
  cout <<"Ahmad Ferdiansyah\n";
  cout <<"312110491\n";
  cout << "Program Menghitung Luas bangunan\n";
  cout << "=================================\n";
  cout << "panjang persegi =20 lebar persegi adalah = 1(dari nim
312110491\n";
  cout << "Masukkan panjang jari-jari lingkaran: ";
  cin >> r;
  cout << "masukan panjang persegi\n";
  cin >> p;
  cout <<"masukan Lebar persegi\n";
  cin >> l;

  L = p*l + phi*r*r/2;
  cout << "Luas bangunan  adalah "<< L << endl;
  return 0;
}
PS C:\Users\User\Downloads\New folder> cd "c:\Users\User\Downloads\New folder\" ; if ($?) { g++
TUGAS_MENGHITUNG_LUAS.CPP -o TUGAS_MENGHITUNG_LUAS } ; if ($?) {
.\TUGAS_MENGHITUNG_LUAS }
=================================
Program Menghitung Luas bangunan
=================================
panjang persegi =20 lebar persegi adalah = 1(dari nim 312110491
Masukkan panjang jari-jari lingkaran: 0.5
masukan panjang persegi
20
masukan Lebar persegi
1
Luas bangunan adalah 20.3925
PS C:\Users\User\Downloads\New folder>

You might also like