AD

js poblwm solve logo
leap Year

function leapYearFunction(){
		let Year = document.getElementById('number').value;
			console.log(Year);
	function leapYear(Year){
			if((Year % 400 == 0)&& (Year % 100 == 0)||(Year % 4 == 0)){
			document.getElementById('result').innerHTML = (Year + " is a leap Year"); 
	    } else{
			   document.getElementById('result').innerHTML = (Year + " is not a leap Year");
     }
}
		leapYear(Year);
}


Inch to Foot

function footFunction(){

    		let inch = document.getElementById('inch').value;
    
    	function convertInches(inch){
        let foot = inch / 12;
        	document.getElementById('result2').innerHTML=(foot + "F");
}
      		convertInches(inch);
}


Array Max value

Number = [52,20,63,14,60]


	
function arrayFunction(){
	let number = [52,20,63,14,60];
	
	 let max = number[0];
	 for( let i = 0 ; i< number.length; i++){
		 let element = number[i];
		 if(element > max){
			 max = element ; 
		 }
	 }
	 
	 document.getElementById('result3').innerHTML= "Max Value : " +max;
 }
 
 

Feet to Mile Convert

function mileFunction(){
		let feet =  document.getElementById("feet").value;
function feetToMile(feet){
	let mile =feet/5280; 
		if(Number(mile) ){
			document.getElementById("result4").innerHTML = mile+"M" ;
	}else{
			document.getElementById("result4").innerHTML =  " Please ! give a any number"; 
}


}
		feetToMile(feet);
}
		 
		 
		

Cheer,Table and Bed Total Wood cubic



Total cubic feet wood :



function woodfunction(){
		let cheer = document.getElementById("cheer").value;
		let table = document.getElementById("table").value;
		let bed = document.getElementById('bed').value;

	let cheerWood = (cheer * 7);
	let tableWood = (table * 14);
	let bedWood = (bed * 40);

		let totalCubicFeetWood = (cheerWood + tableWood + bedWood)*0.00578704;
		totalCubicFeetWood = Math.round(totalCubicFeetWood);
			if(Number(totalCubicFeetWood) ){
				document.getElementById("result5").innerHTML = totalCubicFeetWood +" cubic Feet";
		}else{
				document.getElementById("result5").innerHTML = " Please ! give a any number";
}
}
		

Billding Bricks Calculator

Total Brick need your bullding :




	function bricksfunction(){
		let number  =  document.getElementById("brick").value;
			let brick;
			if(number >= 1 && number <= 15){
				brick = (number * 15)* 1000 ;
			}else if(number >= 16 && number <= 30 ){
				brick = (number * 12)* 1000;
			}else if (number >= 31 && number <= 45){
					 brick = ( number * 10 ) * 1000;
			}else if ( number > 46 ){
				brick = " This bullding Bangladesh is not available";
			}else {
				brick = " Hava a any poblem Try to again";
			}
		document.getElementById("result6").innerHTML = brick;
	 }	
	

Previous Post Next Post