# data[].attributes.body
# include <iostream.h>

float isipadu();

int main()

{

float volume = isipadu();

}

float isipadu()

{

float vcone = 3.142*(8*8)*(15/3);

float vsphere = (4/3)*3.142*(8*8*8);

total = vcone + vsphere;

return total;

}

# data[].attributes.body
#include <iostream.h> using namespace std; const double pi=22/7; float kiravolume(); int main() { float radius=8; float height=15; float volume= kiravolume(radius,height); return 0; } float volume(float,float) { float total volspere,volcone volcone=pi*(float radius*float radius)*height/3; volspere=4/3*pi**(float radius*float radius*float radius); total=volspere+volcone return total }

# data[].attributes.body
#include <iostream> #include <iomanip> using namespace std; float IsipaduKon(); float IsipaduHemisfera(); void main() { double isipadukon; double isipaduhemisfera; double Jumlah; isipadukon = IsipaduKon(); isipaduhemis = IsipaduHemisfera(); Jumlah = isipadukon + isipaduhemisfera; cout<<"\t"<<"Isipadu Kon :"<<isipadukon<<"\n\n"; cout<<"\t"<<"Isipadu Hemisfera :"<<isipaduhemisfera<<"\n\n"; cout<<"\t"<<"JumlahL :"<<Jumlah<<endl; } float IsipaduKon() { int jejari=6, tinggi=10; float pai=22/7, isipadukon; cout<<"\n\n"; cout<<"\t"<<"Ukuran untuk kon "<<endl; cout<<"\t"<<"Tinggi: "<<tinggi<<endl; cout<<"\t"<<"Jejari:"<<jejari<<endl; cout<<"\n\n"; isipadukon=(pai*(jejari*jejari)*((tinggi)/3)); return isipadukon; } float IsipaduHemisfera() { int jejari= 6; float pai =22/7; float isipaduhemisfera; cout<<"\t"<<"Ukuran untuk hemisfera "<<endl; cout<<"\t"<<"jejari: "<<jejari<<endl; cout<<"\n\n"; isipaduhemisfera = (pai * (jejari*jejari*jejari) * (0.666666666)); return isipaduhemisfera; }

# data[].attributes.body
# include <iostream.h>

float isipadu();

int main()

{

float volume = isipadu();

}

float isipadu()

{

float vcone = 3.142*(8*8)*(15/3);

float vsphere = (4/3)*3.142*(8*8*8);

total = vcone + vsphere;

return total;

}

# data[].attributes.body
# include <iostream.h>

float isipadu();

int main()

{

float volume = isipadu();

}

float isipadu()

{

float vcone = 3.142*(8*8)*(15/3);

float vsphere = (4/3)*3.142*(8*8*8);

total = vcone + vsphere;

return total;

}

# data[].attributes.body
#include <iostream> using namespace std;

int main()

{

cout<<"volume of sphere:" cin>>sphere; cout<<"volume of cone:" cin>>cone;

cout<<"the volume of solid:" cin>> sphere+cone;

float Sphere= (4/3*22/7*8x8x8); float cone= (22/7*8x8*15)/3

return 0; }

# data[].attributes.body
kalau perasan gambar rajah hemisphere, tapi kita semua kira guna formula sphere. suppose to be bahagi dua.

# data[].attributes.body
#include <iostream> using namespace std; float kiraIsipadu(char, int, int); int radius = 8; int height = 15; float vSphere, vCone, totalVolume; const PI = 3.142; int main() { totalVolume = kiraIsipadu; cout<<totalVolume; return 0; } float kiraIsipadu(int radius, int height ); { vSphere = (4/3)*PI*8*8*8; vCone = (PI*8*8*15)/3; totalVolume = vSphere + vCone; return vSphere + vCone; }

# data[].attributes.body
#include <iostream.h> using namespace std; volume of solid; { int main():

float jejari=8; float tinggicone=15; double Pi=22/7; float vsphere= (4/3*22/7*8x8x8); float vcone= (22/7*8x8*15)/3 cout<<"volume of sphere:" cin>> vsphere; cout<<"volume of cone:" cin>> vcone; cout<<"the volume of solid:" cin>> vsphere+vcone; return 0; }

# data[].attributes.body
#include <iostream> #include <iomanip> using namespace std; float kiraisipadu(); float radius=8; float height=15; float sphere; float cone; float totalisipadu; const int Pi=3.147; int main (); { totalisipadu=kiraisipadu(); cout<<totalisipadu; return 0; } float kiraisipadu; { sphere=(4/3)*Pi*(r*r*r); cone=Pi8(r*r*r)*(/3); totalisipadu=sphere+cone; return 0; }

# data[].attributes.body
#include<iomanip> using namespace std; float kiraisipadu(); int r, h; float sphere,cone,total; static int PI=22/7; int main() { total = kiraisipadu(); cout << "total isipadu : " << total; return total; } int kiraisipadu

# data[].attributes.body
#include <iostream> #include <iomanip> using namespace std; void kiraisipadu(); static int pi=22/7; float radius=8,tinggi=15; float sfera,kon; int totalvolume; int main(); { totalvolume=kiraisipadu() cout<<totalvolume; return 0; } float kiraisipadu; { sfera=4/3*pi*r*r*r; kon=pi*r*r*h/3; return= sfera+kon }

# data[].attributes.body
#include <iostream> using namespace std; float kiraIsipadu(float, float); int main (){ float radius = 8, height = 15; static int PI = 22/7; float Ysphere, Ycone

# data[].attributes.body
#include <iostream> using namespace std; float kiraIsipadu(float, float); int main (){ float radius = 8, height = 15; static int PI = 22/7; float Ysphere, Ycone

# data[].attributes.body
#include<iostream>
using namespace std;

int main()

float kiraisipadu();

int radius = 8,height = 15; int Pl=3.142;

{ sphere=(4/3)*3.142*(8*8*8); cone=3.142*(8*8*8)*(15/3);

totalisipadu=sphere+cone;

return sphere+cone;
}

# data[].attributes.body
#include <iostream.h>

using namespace.std;

float kiraIsipadu();

float kon, sfera, jumlahIsipadu;

int r =8, h=15;

double Pi=22/7;

int main()

{

totalIsipadu=kiraIsipadu()

cout<<jumlahIsipadu;

return 0;

}

float kiraIsipadu()

{

sfera=(4/3)*Pi*(r*r*r);

kon=Pi*(r*r*r)*(/3);

jumlahIsipadu=sfere+kon

return sfera+kon

}

# data[].attributes.body
#include <iostream.h>

using namespace std;

int main()

float kiraIsipadu;

float radius=8;

float height=15;

float pi=3.142;

float vConeSphere;

vCone = pi (8*8)*15/3;

vSphere = 4/3*pi*(8*8*8);

= vCone+vSphere;

cout<< "cone dan sphere:";

cin>> vConeSphere;

return 0

# data[].attributes.body
#include <iostream> #include<iomanip> using namespace std; float kiraIsipadu(float,float) int main() { int radius=8,height=5; static int PI = 22/7; float Vsphere, Vcone; float Vsphere = (4/3*PI*r*r*r) float Vcone = PI*(r*r*h)/3; totalVolume = Vsphere+Vcone; cout>>totalVolume; return 0; }

# data[].attributes.body
#include<iomanip> using namespace std; float kiraisipadu(); int r, h; float sphere,cone,total; static int PI=22/7; int main() { total = kiraisipadu(); cout << "total isipadu : " << total; return total; } int kiraisipadu(int r, int h) { int r=8, int h=15; totalisipadu = ((4/3)*PI*r*r*r) + (PI*r*r*h)/3 return totalisipadu; }

# data[].attributes.body
#include <iostream>

using namespace std;

const int π=22/7;

double kiraIsipadu (r,h):

int main()

{

int r=8, h=15;

double sphere ,cone, total;

total=kiraIsipadu(r,h)

cout>>total;

return 0;

}

double kiraIsipadu (i,j)

{

sphere=(4/3)π(ri*i*i)

cone=π(i*i)j/3

total=sphere+cone;

return total:

}

# data[].attributes.body
#include<iostream.h>

Using namespace std

void kiraisipadu()

{

float Sphere=(4/3)*22/7*8*8*8;

float Cone=22/7*8*8*15/3;
float total = Sphere+ Cone;
cout<<"Volume"<< total;

}

void kiraisipadu2(){

float r, h, Pi = 22/7;

cout<< "height";

cin<<h;

cout<< "radius";

cin<<r;

float Sphere=(4/3)*Pi*r*r*r;

float Cone=22/7*r*r*h/3;
float total = Sphere+ Cone;
cout<<"Volume"<< total;

}

Int main()

{

kiraisipadu();

kiraisipadu2();
}

# data[].attributes.body
# include <iostream>
# include <cmath>

using namespace std;

void kiraIsipadu(double);
int main ()
{

cout<<"Volume of Sphere and sphere :"<<kiraisipadu(22/7, 8, 15);

}

float kiraIsipadu(doublePI, double radius, double height)
{
vsphere=4/3*PI*radius*radius*radius;
vcone=PI*radius*radius*height/3;

return vsphere + vcone;
}

# data[].attributes.body
#include <iostream.h> void main() { float radius=8; float height=16; float pi=3.142; float isipaduCone; float isipaduSphere; float both; isipaduCone=pi*radius*radius*height/3 isipaduSphere=4/3*pi*radius*radius*radius both=isipaduCone+isipadusSphere cout<<"masukkan isipaducone:";<<isipadusCone; cout<<"masukkan isipadusphere;";<<isipaduSphere cout<<*isipadu pepejal ialah:" <<both; }

# data[].attributes.body
#include<iostream.h> using namespace std; float kiraisipadu; Vsphere = ((4/3)*3.142*8*8*8); Vcone = 3.142* 8*8 * 15/3; int main() { jumlahisipadu=kiraisipadu(); cout<<jumlahisipadu; return 0; } float kiraisipadu() { Vsphere = ((4/3)*3.142*8*8*8); Vcone = 3.142* 8*8 * 15/3; jumlahisipadu= (((4/3)*3.142*8*8*8) + (3.142* 8*8 * 15/3)); return vshpere+vcone;

}

# data[].attributes.body
#include <iostream.h>

void main()
{
float radius =8;
float height= 15;
float isipaduCone;
float isipaduSphere;
float pi=3.142;
float isipaduConeSphere;

isipaduCone = pi*(radius*radius)*height/3;
isipaduSphere = 4/3*pi*(radius*radius*radius);

isipaduConeSphere= isipaduCone+isipaduSphere;

cout<< "Cone dan Sphere : ";
<< isipaduConeSphere;
}

# data[].attributes.body
#include<iostream.h> using namespace std;

float sphere float cone; int PI = 22/7;

int main () { float jejari = 8, tinggi = 15;

float jumlahisipadu = isipadu( jejari, tinggi);

cout >> jumlahisipadu;

return jumlah;

vsphere = (4/3 * 22/7 * 8 * 8 * 8); vcone =(22/7 * 8 * 8 * 15/3); jumlah isipadu = vsphere + vcone;

return vsphere + vcone; }

# data[].attributes.body
#include <iostream.h> using namespace std; float volume (float, float); int PI = 22/7; int main(){ int radius = 8; int height = 15; float totalvolume = volume(radius, height); cout>> totalvolume; return 0; }

float volume (float r, float h){

VSphere = 4/3 * PI * r * r * r; VCone = PI * r * r * h/3;

return VSphere+VCone ; }

# data[].attributes.body
# include <iostream.h> float isipadu(); int main() { float volume = isipadu(); } float isipadu() { float vcone = 3.142*(8*8)*(15/3); float vsphere = (4/3)*3.142*(8*8*8); total = vcone + vsphere;

return total; }

# data[].attributes.body
#include <iostream.h> using namespace std ; int main () { int r,h,v; float sphere,cone, volume; constant int PI = 22/7 int main () { total = volume; cout << "volume": } float volume () { sphere = (4/3 )*PI *r*r*r; cone =(PI *r*r*h)/3 total = sphere + cone; return sphere + cone ;

cout << " sphere+cone = " ;<< volume; }

# data[].attributes.body
#include <iostream> using namespace std; float kiraIsipadu(float, float); int main (){ float radius = 8, height = 15; static int PI = 22/7; float Ysphere, Ycone

# data[].attributes.body
#include<iostream.h>

using namespace std;

float kiraisipadu();
const int Pi=3.147;
int main()
{
totalisipadu=kiraisipadu();

cout<<"totalisipadu:"<<totalisipadu:

return 0;

}

float kiraisipadu()

Vsphere = ((4/3)*3.142*8*8*8);

Vcone = 3.142* 8*8 * 15/3;

return Vsphere +Vcone

}

# data[].attributes.body
#include<iostream>
using namespace std;

volume of solid;
int main()
{
float r=8.h=15.pi=22/7;
float Vsphere=(4/3*pi*r*r*r)/2;

float Vcone=(pi*r*r*h)/3;

cout<<"volume of sphere:"<<Vsphere;

cout<<"volume of cone:"<<Vcone;

cout<<"the volume of solid:"<<Vsphere+Vcone;

return 0

}

# data[].attributes.body
#include<iostream> using namespace std; float kiraIsipadu(); int r = 8,h = 15; float sphere,cone,totalIsipadu; const int Pi=3.147; int main() { totalIsipadu=kiraIsipadu(); cout<<totalIsipadu; return 0; } float kiraIsipadu()

{ sphere=(4/3)*Pi*(r*r*r); cone=Pi*(r*r*r)*(/3); totalIsipadu=sphere+cone; return sphere+cone;

}

# data[].attributes.body
void kiraisipadu(char, float, float);

static int PI = 22/7;

int main(){

float radius = 8, height = 15;

float Vsphere = kiraisipadu('s'; radius, height); float Vcone = kiraisipadu('c'; radius, height);

cout<< "The volume of Sphere : "<< Vsphere;

cout<< "The volume of Cone : "<< Vcone;

cout<< "The volume : "<< Vsphere+ Vcone;

return 0;
}

float kiraisipadu(char shape, float r, float h){

if (shape == 's')

return 4/3*PI*r*r*r;

else

return PI * r*r * h/3;
}