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

float kiraIsipadu2(float radius, float height); float PI = 22/7;

float height;

float radius;

float volume;

int main()

{

cout<< " please enter the radius:";

cin>> radius;

cout<< " please enter the height:";

cin>> height;

cout<< "the volume is :"<<kiraIsipadu2(radius,height);

}

float kiraIsipadu2(float radius, float height) {

float volume,hemisphere,cone;

cone = ((PI*(radius*radius)*height); hemisphere=((4/3*PI(radius*radius*radius))/2;

volume= cone+hemisphere;

return volume;

}

# data[].attributes.body
#include <iostream> using namespace.std; float kiraisipadu2(float radius,float height); int r,h; float sphere,cone,totalisipadu,hemisphere; cons int Pi=3.147 int main () { cout<<"Masukkan Radius"<<endl; cin>>r; cout<<"Masukkan tinggi"<<endl; cin>>h; cout<<"Isipadu adalah"<<kiraisipadu2(r,h); } float kiraisipadu2(float radius, float height) float volume,hemisphere,cone; cone = ((PI*(raduys*radius*radius)/2; volume-cone+hemisphere; return volume }

# data[].attributes.body
#include <iostream> #include <iomanip> using namespace std; float IsipaduKon(); void main() { double isipadukon; IsipaduKon(); } float IsipaduKon(){ int jejari; int tinggi; float pai =22/7; float isipadukon; cout<<"\tSila masukkan tinggi kon : "; cin>>tinggi; cout<<"\tSila masukkan jejari kon : "; cin>>jejari; isipadukon = (pai * (jejari*jejari) * ((tinggi)/3)); cout<< fixed<<setprecision(2)<<endl; cout<<"\tTingi :"<<tinggi<<endl; cout<<"\tJejari :"<<jejari<<endl; cout<<"\tVolume :"<<isipadukon<<endl; return isipadukon; }

# data[].attributes.body
#include <iostream> #include <iomanip> using namespace std; float IsipaduKon(); void main() { double isipadukon; IsipaduKon(); } float IsipaduKon(){ int jejari; int tinggi; float pai =22/7; float isipadukon; cout<<"\tSila masukkan tinggi kon : "; cin>>tinggi; cout<<"\tSila masukkan jejari kon : "; cin>>jejari; isipadukon = (pai * (jejari*jejari) * ((tinggi)/3)); cout<< fixed<<setprecision(2)<<endl; cout<<"\tTingi :"<<tinggi<<endl; cout<<"\tJejari :"<<jejari<<endl; cout<<"\tVolume :"<<isipadukon<<endl; return isipadukon; }

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

float kiraIsipadu2(float radius, float height);

float PI = 22/7;

float height;

float radius;

float volume;

int main()

{

cout<< " please enter the radius:";

cin>> radius;

cout<< " please enter the height:";

cin>> height;

cout<< "the volume is :"<<kiraIsipadu2(radius,height);

}

float kiraIsipadu2(float radius, float height)

{

float volume,hemisphere,cone;

cone = ((PI*(radius*radius)*height);

hemisphere=((4/3*PI(radius*radius*radius))/2;

volume= cone+hemisphere;

return volume;

}

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

float kiraIsipadu2(float radius, float height); float PI = 22/7;

float height;

float radius;

float volume;

int main()

{

cout<< " please enter the radius:";

cin>> radius;

cout<< " please enter the height:";

cin>> height;

cout<< "the volume is :"<<kiraIsipadu2(radius,height);

}

float kiraIsipadu2(float radius, float height) {

float volume,hemisphere,cone;

cone = ((PI*(radius*radius)*height); hemisphere=((4/3*PI(radius*radius*radius))/2;

volume= cone+hemisphere;

return volume;

}

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

using namespace std;

float kiraIsipadu2 (float height,float radius);

float PI = 22/7;

float height;

float radius;

int main ()

{

cout << "please enter the height:";

cin >> height;

cout <<"please enter the radius:";

cin >> radius;

}

# data[].attributes.body
#include <iostream> #include <iomanip> using namespace std; float IsipaduKon(); void main() { double isipadukon; IsipaduKon(); } float IsipaduKon(){ int jejari; int tinggi; float pai =22/7; float isipadukon; cout<<"\tSila masukkan tinggi kon : "; cin>>tinggi; cout<<"\tSila masukkan jejari kon : "; cin>>jejari; isipadukon = (pai * (jejari*jejari) * ((tinggi)/3)); cout<< fixed<<setprecision(2)<<endl; cout<<"\tTingi :"<<tinggi<<endl; cout<<"\tJejari :"<<jejari<<endl; cout<<"\tVolume :"<<isipadukon<<endl; return isipadukon; }

# data[].attributes.body
#include<iostream.h> float kiraIsipadu2(float p,float q);

int main()

{

float r;

float h ;

cout<<"Masukkan nilai jejari:"; cin>>r;

cout<<"Masukkan nilai tinggi:";

cin>>h;

cout<<"Isipadu:"<<kiraIsipadu2(r,h)<<endl;

}

float kiraIsipadu2(float r,float h)

{

float jumlah,hemisphere,cone,PI=22/7;

hemisphere=((4/3)*PI*r*r*r); cone=(PI*r*r*h)/3;

jumlah=hemisphere+cone;

return jumlah;

}

# data[].attributes.body
#include<iostream> using namespace std; float VolumeSphere(float,float); float VolumeCone(float ,float, float); float kiraIsiPadu(float,float); int main() { float r,h,VolCone,VolSphere,TotalVolume; float r1=8; float pi=3.14159; VolSphere=VolumeSphere(pi,r1); cout<<"Total volume is: "<<VolSphere<<endl; cout<<"Input cone's radius: "; cin>>r; cout<<"Input cone's height: "; cin>>h; VolCone=VolumeCone(pi,r,h); cout<<"The volume of cone is: "<<VolCone<<endl; TotalVolume=kiraIsiPadu(VolCone,VolSphere); cout<<"Total volume of sphere and cone is: "<<TotalVolume<<endl; return 0; } float VolumeSphere(float pi,float r1) { float VolSphere; VolSphere=(4.0/3.0)*pi*(r1*r1*r1); return VolSphere; } float VolumeCone(float pi,float r, float h) { float VolCone; VolCone=(1.0/3.0)*pi*(r*r)*h; return VolCone; } float kiraIsiPadu(float VolSphere,float VolCone) { float TotalVolume; TotalVolume=VolSphere+VolCone; return TotalVolume; }

# data[].attributes.body
#include <iostream> using namespace std ; float kiraIsipadu2(float radius, float height); float PI = 22/7; float height; float radius; float volume; int main() { cout<< " please enter the radius:"; cin>> radius; cout<< " please enter the height:"; cin>> height; cout<< "the volume is :"<<kiraIsipadu2(radius,height); } float kiraIsipadu2(float radius, float height) { float volume,hemisphere,cone; cone = ((PI*(radius*radius)*height); hemisphere = ((4/3*PI(radius*radius*radius))/2; volume= cone+hemisphere; return volume; }

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

using namespace std;

void kiraIsipadu(double);
void kiraIsipadu2(double);
int r,h;
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;
}
float kiraIsipadu2(doublePI, double radius, double height)
{
cout<<"enter the value of radius: ";
cin>>r;
cout<<"enter the value of height: ";
cin>>h;
vsphere=4/3*PI*radius*radius*radius;
vcone=PI*radius*radius*height/3;

return vsphere + vcone;
}

# data[].attributes.body
#include <iostream> using namespace std; float kiraIsipadu2(float, float); int r; int h; float vSphere, vCone, totalVolume; const PI = 3.142; int main() { cout<<"Enter the value of radius : "<<endl; cin>>r; cout<<"Enter the value of height : "<<endl; cin>>h; totalVolume = kiraIsipadu2; cout<<totalVolume; return 0; } float kiraIsipadu2(int radius, int height ); { float vSphere, vCone, totalVolume; vSphere = ((4/3)*PI*r*r*r)2; vCone = (PI*r*r*h)/3; totalVolume = vSphere + vCone; return vSphere + vCone; }

# data[].attributes.body
#include <iostream.h> using namespace std; float volume2 (float, float); int PI = 22/7; int main(){ float radius, height; cout>> "Please enter the radius :" ; cin << radius; cout>> "Please enter the height :" ; cin>> height; float totalvolume = volume2 ; cout>> "The total volume is " << fixed << set presicion(2) << volume2; return 0; } float volume2 (float r, float h){ VHemisphere = VSphere/2; VSphere = 4/3 * PI * r * r * r; VCone = PI * r * r * h/3; return VHemisphere+VCone ; }

# data[].attributes.body
#include<iostream> using namespace std; float kiraIsipadu2(); int r,h; float sphere,cone,totalIsipadu,hemisphere; const int Pi=3.147;

int main() { cout<<"Please Enter The Radius"<<endl; cin>>r; cout<<"Please Enter The Height"<<endl; cin>>h; totalIsipadu=kiraIsipadu2(); cout<<"The Total Volume Of The Solid Is "<<totalIsipadu; return 0; } float kiraIsipadu2() { sphere=(4/3)*Pi*(r*r*r); hemisphere=sphere/2; cone=Pi*(r*r)*(h/3);

totalIsipadu=hemisphere+cone; return hemisphere+cone; }