Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
program probabilitas distribusi hypergeometrik pake c++

program probabilitas distribusi hypergeometrik pake c++

Ratings: (0)|Views: 154 |Likes:
Published by Aang Samsudy

More info:

Categories:Types, School Work
Published by: Aang Samsudy on Aug 25, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

10/03/2010

pdf

text

original

 
Materi :source code Probabilitas Distribusi HipergeometrikContoh Soal:Ronaldo mempunyai 6 kelereng, dari 6 kelereng tersebut 3 di antaranya adalah pemberian dari Messi. Jika diambil secara acak 4 kelereng dari 6 kelerengtersebut. Berapa probabilitas bahwa 2 kelereng yang diambil merupakan kelereng pemberian Messi ??Jawab:P(XN, Xt, N) = (N-Xt C n-x . XtCx) : NCnX = jumlah sukses dalam sampelN = jumlah kejadian dalam populasiXt = jumlah sukses dalam populasin = Jumlah sampelX = 2N = 6Xt = 3n = 4P(XN, Xt, N) = (6-3 C 4-2 . 3C2) : 6C4= 0,6Source code program#include<stdio.h>#include<conio.h>float faktorial(float x){if(x==0)return 1;elsereturn x*faktorial(x-1);}float kombinasi(float n,float r){float q,w,e,hasil;q=faktorial(n);e=faktorial(r);w=faktorial(n-r);hasil=q/(e*w);return hasil;}int main(){ float np,xp,ns,xs;float probabilitas;printf(" \3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\n");printf("\2 menghitung probabilitas \2\n");printf("\2 distribusi hipergeometrik \2\n");printf(" \3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\n\n");pilih:printf("masukkan nilai dari variabel-variabel berikut secara benar\n");printf("jumlah kejadian dalam populasi:");scanf("%f",&np);//Nprintf("jumlah sukses dalam populasi:");scanf("%f",&xp);//XTprintf("jumlah sampel:");scanf("%f",&ns);//n

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->