Posts

factorilal

 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int num=sc.nextInt(); int orginal=num; int fact=1; while(num>0){     fact=fact*num;     num--; } System.out.print(+fact); } }

palindrome or not

 /******************************************************************************                             Online Java Compiler.                 Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int num=sc.nextInt(); int orginal=num; int digit; int reverse=0; while(num>0){     digit=num%10;     reverse=reverse*10+digit;     num=num/10; } if(orginal==reverse) {     System.out.print("is a palindrom"); } else{     System.out.print("is a not palindrom"); } } }

Correct Fibonacci program using a while loop:

 import java.util.Scanner; class Main {     public static void main(String[] args) { Scanner sc=new Scanner(System.in); int num=sc.nextInt(); int a=0; int b=1; int count=0; while(count<num){         System.out.print(a+" ");    int c=a+b;     a=b;     b=c;     count++;     }     }}

Armstrong or not

 import java.util.Scanner; class Main {     public static void main(String[] args) { Scanner sc=new Scanner(System.in); int num=sc.nextInt(); int ornum=num; int sum=0; while(num>0){     int digit=num%10;     //int sum=0;     sum= sum + (digit * digit * digit);     num=num/10; }if(ornum==sum){ System.out.println("Is a armstrong");     }     else{         System.out.println("Is a not armstrong");     } } }

COCO FARMING MACHINE

Image
GENERALLY FARMERS ARE SUFFERING TO TAKE SEEDS IN COCO FRUIT WE CAN GIVE SOME SOLUTION IS "COCO MACHINE PROTO TYPE" 1.FIRST ALL FRUITS ARE GRATHER AND PUT IN TO HOOKER 2.NEXT STEP CUT THE FRUIT  WITH PICES MIXED PULP AND SEEDS  3.NEXT SEPARATE THE PULP AND SEEDS BY ARTIFICIAL INTELLIGENCE   THESE CAN COMBINED BY HARDWARE AND SOFTWARE  Benefits to Farmers Reduces  manual labor Saves  time and cost Prevents  seed damage Improves  seed recovery efficiency Suitable for  small and medium-scale farmers

if, if else, if elif else

if whether='sunny' if whether=='sunny': print("I WILL GO OUT SIDE") if else whether=str(input("enter your whether. ")) if whether=='sunny': print("I WILL GO OUT SIDE") else: print("iwill not go out side") if elif else whether=input("enter your whether ") if whether=='sunny': print("I WILL GO OUT SIDE") elif whether=='hot': print("iwill not go out side") elif whether=='cold': print("i will play in side") else: print("sleep")

cloud computing

what is cloud computing? It is a store data through internet it means Cloud computing is the on-demand delivery of computing services, like servers, storage, databases, networking, software, and analytics, over the internet, allowing users to access resources and applications without needing to manage the underlying infrastructure.

Internet of things

If your human read this Education is not important in agriculture.but smartness in farming can through education like 1.aurdino uno https://www.google.com/imgres?q=smart%20irrigation%20system%20using%20iot&imgurl=https%3A%2F%2Fcircuitdigest.com%2Fsites%2Fdefault%2Ffiles%2Fcircuitdiagram_mic%2FCircuit-Diagram-for-IoT-based-Smart-Irrigation-System-using-Soil-Moisture-Sensor-and-ESP8266-NodeMCU.png&imgrefurl=https%3A%2F%2Fcircuitdigest.com%2Fmicrocontroller-projects%2Fiot-based-smart-irrigation-system-using-esp8266-and-soil-moisture-sensor&docid=qERVGzVwDsbH6M&tbnid=sGZvkxG5rFdjGM&vet=12ahUKEwjG8tPoqKWMAxVbzTgGHVtTCEMQM3oECEYQAA..i&w=1062&h=908&hcb=2&ved=2ahUKEwjG8tPoqKWMAxVbzTgGHVtTCEMQM3oECEYQAA

smart irrigation through wifi module

#include "DHT.h" #include #include SoftwareSerial wifi(2, 3); const int rs = 13, en = 12, d4 = 11, d5 = 10, d6 = 9, d7 = 8; LiquidCrystal lcd(rs, en, d4, d5, d6, d7); #define DHTPIN 7 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); int buz = A2; #define RELAY_PIN 6 #define SOIL_SENSOR A0 bool autoMode = false; // Flag for auto mode void setup() { wifi.begin(115200); Serial.begin(9600); pinMode(buz, OUTPUT); digitalWrite(buz, LOW); pinMode(RELAY_PIN, OUTPUT); digitalWrite(RELAY_PIN, HIGH); dht.begin(); lcd.begin(16, 2); lcd.setCursor(0, 0); lcd.print(" SMART IRRIGATION"); lcd.setCursor(0, 1); lcd.print(" SYSTEM READY"); delay(2000); wifi_init(); delay(3000); } void loop() { int h = dht.readHumidity(); int t = dht.readTemperature(); int s = analogRead(SOIL_SENSOR); int mos = map(s, 1023, 0, 0, 100); lcd.clear(); lcd.setCursor(0, 0); lcd.print("Temp:" + String(t) + "C"); lcd.s...

python small

 marks=eval(input("Enter Your marks:")) if marks<=10:   print("fail") else:   print("pass")