21. Update the FrequencyDistributionQuantitative class defined...
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
22. Create a class called Stem and Leaf, which should have a...
package Gtu; import java.io.*; import java.util.Formatter; /* this is stamp_leaf.csv file data that we have create manually.....(SV) 12,112,72,69,97,107,73,126,82,92,115,95,84,68,100,92,128,104,108,76,141,119,98,85,76,118,132,96,91,81,113,115,94,86,127,134,100,102,80,98,106,106,73,124,83,92,81,106,75,95,119 */ class StemAndLeaf { int data[]=null; StemAndLeaf() { data=new int[50]; } void loadFromCSV(FileInputStream fin) throws IOException { int ch,i,j=0,num=0; do { i = fin.read(); if(i != -1) { if(i == 44) { data[j]=num; j++; num=0; } else { num*=10; ch=i-48; num+=ch; } } } while(i != -1); data[j]=num; fin.close(); } void display() { Formatter f; boolean flag=true; int stm[]=new int[9]; // 9 means no of stamp value int lf[][]=new int[9][11]; // 11 means no leaf in per stamp int k=0,m=0; for(int i=0;istm[j]) { int temp=stm[i]; stm[i]=stm[j]; stm[j]=temp; } } } for(k=0;klf[k][j]) { int temp=lf[k][i]; lf[k][i]=lf[k][j]; lf[k][j]=temp; } } } } for(k=0;k
23. Create a class called Pie Canvas, which subclasses from...
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
24. Create a class called Statistical Data, which has capability...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class StatisticalData { int v1[],v2[]; String v1name,v2name; public StatisticalData() { v1name=new String("str1"); v2name=new String(); v1=new int[5]; v2=new int[5]; v2name="str2"; } public void get() { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int i; System.out.println("Enter First variable name and its values: "); try{ v1name = br.readLine(); for(i=0;i<5;i++) v2name =" br.readLine();" i="0;i<5;i++)" m1="0,m2=" tatb="0,sab,ta2=" tb2="0,sa,sb,cor_coef;" i="0;i<5;i++)" i="0;i<5;i++)" m1="m1+v1[i];" m2="m2+v2[i];" m1="m1/5;" m2="m2/5;" i="0;i<5;i++)" tatb="tatb+(v1[i]-m1)*(v2[i]-m2);" ta2="ta2+(v1[i]-m1)*(v1[i]-m1);" tb2="tb2+(v2[i]-m2)*(v2[i]-m2);" sab="tatb/4;" sa="ta2/5;" sb="tb2/5;" sa="Math.sqrt(sa);" sb="Math.sqrt(sb);" cor_coef="sab/sa*sb;" x="new">
25. Simple random sampling uses a sample of size n from...
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
26. Dasher is an information-efficient text-entry interface,...
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
27. Write a class in Java to plot a Histogram for the data...
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
28. Write a class in Java to plot a Scatter diagram for the...
Share this program... Send it to gtumca@gmail.com with your Name - College name.. and share what you want ... at same mail id... Thanx in advance... Be connected... D_i_Z
29. Define a class which implements the Table Model...
//Prof.Swati Patel(SSIT Gandhinagar) import java.awt.*; import java.awt.event.*; import javax.swing.*; class StatisticalData { int v1[],v2[]; String v1name,v2name; public StatisticalData() { v1=new int[5]; v2=new int[5]; v2name="str2"; } public void get() { int i; for(i=0;i<5;i++) i="0;i<5;i++)" i="0;i<5;i++)" m1="0,m2=" tatb="0,sab,ta2=" tb2="0,sa,sb,cor_coef;" i="0;i<5;i++)" m1="m1+v1[i];" m2="m2+v2[i];" m1="m1/5;" m2="m2/5;" i="0;i<5;i++)" tatb="tatb+(v1[i]-m1)*(v2[i]-m2);" ta2="ta2+(v1[i]-m1)*(v1[i]-m1);" tb2="tb2+(v2[i]-m2)*(v2[i]-m2);" sab="tatb/4;" sa="ta2/5;" sb="tb2/5;" sa="Math.sqrt(sa);" sb="Math.sqrt(sb);" cor_coef="sab/sa*sb;" i="0;i<5;i++)" x="new" jf =" new" c =" jf.getContentPane();" colnames =" {" data="new" i="0;i<5;i++)" temp="x.correl_coeff(i);" i="0;i<5;i++)" temp="x.correl_coeff2(i);" ans="x.correl_ans();" jt =" new" scrollabletable =" new">
30. Create an applet which has a Text Field to accept a...
No comments:
Post a Comment