Minor Project Second
Minor Project Second
import java.util.Scanner;
public class second2 {
double S=input.nextInt();
if(S>=15&&S<=10) {
S=3.5;
}
else if(S>=20&&S<=25) {
S=4;
}
else if(S>=30&&S<=35&&S<=40&&S<=45&&S<=50&&S<=55&&S<=60) {
S=5;
}
else if(S>=65&&S<=70&&S<=75&&S<=80) {
S=6;
}
System.out.println(S);
double fckS=(grade+1.65*S);
System.out.println(fckS);
if(fckS>fck) {
System.out.println("the target strength of 28 days is="+fckS
+"N/mm^2");
}
else {
System.out.println("the target strength of 28 days
is="+fck+"N/mm^2");
}
System.out.println("Enter the size of the aggregate");
double A=input.nextDouble();
double AG=0;
if(A==10) {
A=1.5;
}
else if(A==20){
A=1.0;
AG=A;
}
else if(A==40||A==12.5){
A=0.8;
AG=A;
}
else if(A==80){
A=0.3;
AG=A;
}
else if(A==150){
A=0.2;
AG=A;
}
System.out.println(AG);
System.out.println("the approximate amount of entrapped air to be
expected in normal (non-air-entrained) concrete is "+AG +" percent for "+ A+" mm
nominal maximum size of aggregate.");
System.out.print("Which concrete you are using If plain concrete,press
1 or reinforced,press 2");
double E=input.nextDouble();
if(E==1) {
System.out.println("Plain concrete");
System.out.println("If exposure condition is mild,press 1 or
morderate,press 2");
int o=input.nextInt();
double m=0.6,m1=0.6,s=0.5,v=0.45,e=0.4;
if(o==1) {
System.out.println(m);
}
else if(o==2) {
System.out.println(m1);
}
else if(o==3) {
System.out.println(s);
}
else if(o==4) {
System.out.println(v);
}
else if(o==5) {
System.out.println(e);
}
}
if(E==2) {
System.out.println("Reinforced concrete");
System.out.println("If exposure condition is mild,press 1 or
morderate,press 2");
int o1=input.nextInt();
double m11=0.55,m111=0.5,s1=0.45,v1=0.45,e1=0.4;
if(o1==1) {
System.out.println(m111);
}
else if(o1==2) {
System.out.println(m111);
}
else if(o1==3) {
System.out.println(s1);
}
else if(o1==4) {
System.out.println(v1);
}
else if(o1==5) {
System.out.println(e1);
}
}
System.out.println("Enter the water cement ratio :");
double w=input.nextDouble();
double
m11=0.55,m111=0.5,s1=0.45,v1=0.45,e1=0.4,m=0.6,m1=0.6,s=0.5,v=0.45,e=0.4;
if(w<m) {
System.out.println("Hence ok");
}
else if(w<m1) {
System.out.println("Hence ok");
}
else if(w<m) {
System.out.println("Hence ok");
}
else if(w<s) {
System.out.println("Hence ok");
}
else if(w<v) {
System.out.println("Hence ok");
}
else if(w<e) {
System.out.println("Hence ok");
}
else if(w<m11) {
System.out.println("Hence ok");
}
else if(w<m111) {
System.out.println("Hence ok");
}
else if(w<s1) {
System.out.println("Hence ok");
}
else if(w<v1) {
System.out.println("Hence ok");
}
else if(w<e1) {
System.out.println("Hence ok");
}
System.out.println("Size of an aggregate :");
int ag=input.nextInt();
if(ag==10) {
int n1=208;
System.out.println(n1);
}
if(ag==20) {
int n2=186;
System.out.println(n2);
}
if(ag==40) {
int n3=208;
System.out.println(n3);
}
System.out.println("Slump value");
System.out.println("Water content");
int nn1=input.nextInt();
int slu=input.nextInt();
if(slu==25) {
int ss1=nn1-(3/100*nn1);
System.out.println(ss1);
}
}
}