0% found this document useful (0 votes)
18 views4 pages

Minor Project Second

1) The document contains code for a Java program that takes in user input to determine properties of concrete mixtures. 2) It takes in values for grade, strength, aggregate size, water-cement ratio, exposure conditions and more to determine acceptable ranges and output recommendations. 3) Based on the inputs, the program performs calculations and validates the results, outputting messages like "Hence ok" when conditions are met or the recommended target strength.

Uploaded by

kavinkumar5926
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

Minor Project Second

1) The document contains code for a Java program that takes in user input to determine properties of concrete mixtures. 2) It takes in values for grade, strength, aggregate size, water-cement ratio, exposure conditions and more to determine acceptable ranges and output recommendations. 3) Based on the inputs, the program performs calculations and validates the results, outputting messages like "Hence ok" when conditions are met or the recommended target strength.

Uploaded by

kavinkumar5926
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

package second;

import java.util.Scanner;
public class second2 {

public static void main(String args[]) {

System.out.println("Give us the required data");


double fcks=0;
Scanner input=new Scanner(System.in);
System.out.println("Give the grade in number=");
int grade=input.nextInt();
System.out.println("Give the grade in number again=");
double X=input.nextInt();
if(X>=15&&X<=10) {
X=5;
System.out.println(X);
}
else if(X>=20&&X<=25) {
X=5.5;
System.out.println(X);
}
else if(X>=30&&X<=35&&X<=40&&X<=45&&X<=50&&X<=55&&X<=60) {
X=6.5;
System.out.println(X);
}
else if(X>=65) {
X=8;
System.out.println(X);
}
double fck=(grade+X);
System.out.println(fck);
System.out.println("Give the grade in number again=");

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);
}
}
}

You might also like