You are on page 1of 6

c c

c

 c  c
c

c c

 

  a
   
  
 

cc ccc
  c

   !" #$

  %&  '& !" ##$

a 

 c     c  c 
 c  c
 ccc

cccc cc!"c#$c%&'(c)c c'c$'$'ccc


' cc* +c,c



 c

 cc

%c'c'c-c.'c$ c%%'%c/ cc. c+c.c/&c%  c'c%c


-c010c c212c.'c'3ccc4$c/'c

 cc cc  *c

import java.io.*;

class eccentricrivet

public static void main(String args[]) throws Exception

System.out.println("****************************WELCOME TO
DESIGN PROJECT**************************");

System.out.println("TOPIC : ECCENTRIC LOADING OF RIVETS ON


SQUARE PLATES");

BufferedReader br = new BufferedReader(new


InputStreamReader(System.in));

System.out.println("WH ICH ARRANGEMENT OF RIVETS WOULD YOU


LIKE?\nPress 1 or 2 for choice\n1.2 X 2\n2.3 X 3");

int ch=Integer.parseInt(br.readLine());

if(ch==2)

System.out.println("Enter the side of the sqaure plate between


centers of extreme rivets in millimeters:");

double d = Double.parseDouble(br.readLine());

double hor= d/2;

double dia = Math.sqrt(2*hor*hor);

System.out.println("Enter the eccentricity from the centerline


in millimeters:");
Double s = Double.parseDouble(br.readLine());

System.out.println("Enter the value of the force applied in


Newtons:");

double forc= Double.parseDouble(br.readLine());

double pd= forc/9;

double pdd = forc*s*hor/(4*dia*dia + 4*hor*hor);

System.out.println("Enter the value of permissible shear


stress:");

double ss = Double.parseDouble(br.rea dLine());

System.out.println("****************************RESULT********
******************");

double ans = Math.sqrt(pdd*pdd + ((pd+pdd)*(pd+pdd)));

System.out.println("The diameter of the rivets required


is:"+Math.sqrt(4*ans/(3.14*ss))+"mm");

else if(ch==1)

System.out.println("Enter the side of the sqaure plate between


centers of extreme rivets in millimeters:");

double d = Double.parseDouble(br.readLine());

double hor= d/2;

double dia = Math.sqrt(2*hor*hor);

System.out.println("Enter the eccentricity from the centerline


in millimeters:");

Double s = Double.parseDouble(br.readLine());

System.out.println("Enter the value of the force applied in


Newtons:");

double forc= Double.parseDouble(br.readLine());

double pd= forc/4;

double pdd = forc*s*hor/(4*dia* dia);


System.out.println("Enter the value of permissible shear
stress:");

double ss = Double.parseDouble(br.readLine());

System.out.println("****************************RESULT********
******************");

double ans = Math.sqrt(pdd*pdd + ((pd+pdd)*(pd+pdd) ));

System.out.println("The diameter of the rivets required


is:"+Math.sqrt(4*ans/(3.14*ss))+"mm");

}}

*ccc ccc

5c '//c6 7c-'+c.//c-c-c%'cc&$c


c-c+++$%&'%c
0c
c'c'c.'c./c
2c
/c c$c'cc-c'c%'c %'&cc% c'c
&'3cc6.%c%%'%.'6.c
ccccccccccccccc 6.c%%'%.'cc

c  c-//+c'c'$%'cc'c%88888c

 ccc

c-%c/ c+c9:7c+'c2::cc%%'%'&c-cc212c'3c.' c4$c/'c

c/'c c c-c0::c3c0::cc'+c'c%'c-c.'c

/cc'c;c<:c=0c

cccc'7c2:cc#59 c3)c

c+cc059>cc

c$'$'cc+ +c+cc' c
c
c
c
c
c
c
c
c
c
c  c c# c 
cc )c
c
c

c
c