Skip to main content

Posts

FEATURED POST

Why the World is Running Out of Computers

What’s Hiding On Pluto?

What’s Hiding On Pluto? The sun’s gravitational pull stretches out much further than Neptune, all the out to the Kuiper Belt and beyond. To these dark and mysterious satellites, the sun is just a pinprick in the sky. And one of the most mysterious of all is Pluto. Once classified as the ninth planet in the solar system, in 2006 Pluto was downgraded from “planet” to “dwarf planet”. To count as a planet, the International Astronomical Union decided, an object “must have cleared the neighborhood around its orbit”, which Pluto has failed to do due to its relatively small mass. Technically, Pluto is a “trans-Neptunian object” drifting through the Kuiper Belt. It was the discovery of another such object, Eris, that led to the definition of “planet” being changed. Pluto’s surface area is only 3.3% the size of Earth’s - making it about the same size as Russia. On top of being small, Pluto has incredibly low gravity, so little that you’d hardly even notice it – about 6.3% the strength of gravit...

Write a program to increase the even digit and decrease the odd digit of a number.

 Write a program to increase the even digit and decrease the odd digit of a number. #include<stdio.h> int main(){ int n, rem, sum=0, t=0,r=0; scanf("%d", &n); while(n!=0){ rem =n%10; if(rem%2 == 0) { rem++; } else{ rem--; } sum = sum*10 + rem; n=n/10; } t=sum; while(t!=0){ rem =t%10; r = r*10 + rem; t=t/10; } printf("%d", r);         return 0; }

Difference Between Instance and Static Variables in Java

Instance and Static Variables import java.util.*; import java.lang.*; import java.io.*; //Using Instance Variable class VarDemo{     int i=0;     VarDemo(){         i++;         System.out.println(i);     }          public static void main (String[] args) {         VarDemo v1 = new VarDemo();         VarDemo v2 = new VarDemo();         VarDemo v3 = new VarDemo();     } } // Using Static Variable class VarDemo {    static int i=0;     VarDemo(){         i++;         System.out.println(i);     }          public static void main (String[] args) {         VarDemo v1 = new VarDemo();         VarDemo v2 = new VarDemo();         VarDemo v3 = new VarDemo();     } }

Factorial using Recursion in Java

Factorial using Recursion in Java import java.util.*; import java.lang.*; import java.io.*; class RecursiveFactorial{     int n;     int factorial(int n){         if(n == 0)             return (1);         else             return(n*factorial(n-1));              }          public static void main(String args[])     {         RecursiveFactorial x = new RecursiveFactorial();         x.n = 5;         System.out.println("Factorial is:"+x.factorial(x.n));     } }

WHAT IS ECONOMICS

  ➖The word ‘Economics’ was derived from two Greek words oikou (a house) and nomos (to manage).  ➖ Adam Smit h is known as the father of Economics. 🔸WHAT IS ECONOMICS There are mainly three definitions of economics:- A. Classical or wealth definition (Adam Smith)-1776 A.D :-  Adam smith (1723 – 1790), in his book “An Inquiry into Nature and Causes of Wealth of Nations” (1776) defined economics as the science of wealth. He explained how a nation’s wealth is created. B. Neo-classical or welfare definition (Alfred Marshall )-1890 A.D :- Alfred Marshall (1842 – 1924) wrote a book “Principles of Economics” (1890) in which he defined “Political Economy” or Economics is a study of mankind in the ordinary business of life; ➖According to Marshall, economics is a study of mankind in the ordinary business of life, i.e., economic aspect of human life. ➖Economics studies both individual and social actions aimed at promoting economic welfare of people C. Modern or scarcity and choi...

Safe Online - सेफ ऑनलाइन

 Safe Internet - सेफ इन्टरनेट                                                    आइए नीचे दिए गए बिंदुओं का पालन करके संरक्षित रहने के लिए अपनी पूरी कोशिश करें:  1. भरोसेमंद डाउनलोड केवल: डाउनलोड फाइलें / सॉफ्टवेयर्स / एप्स जो दुनिया भर में ज्यादातर भरोसेमंद और स्वीकृत हैं।   2. कभी भी एक रैंडम लिंक पर क्लिक न करें: मुझे पता है कि हर दूसरे लिंक पर क्लिक करने और देखने के लिए आग्रह है लेकिन लिंक से या तो अपने फोन या लैपटॉप पर मैलवेयर इंस्टॉल कर सकते हैं या आपको एक दुर्भावनापूर्ण पृष्ठ पर ले जा सकते हैं।   3. कभी भी रैंडम ईमेल न खोलें: कृपया अनजान लोगों के ईमेल खोलने से परहेज करें।   4. मजबूत पासवर्ड का उपयोग करें: बड़े और मजबूत पासवर्ड का उपयोग करें। एक हल्के नोट पर अपने पासवर्ड को उतना ही जटिल होने दें जितना कि आपका जीवन अभी  है।                    ...

life hacks - लाइफ़ हैक्स

  Life Hacks in Hindi-लाइफ हैक                          life hacks  1. एक गिलास में पानी डालें, बोतल नहीं।  हमारा दिमाग अधूरी चीजों को पसंद नहीं करता है, इसलिए एक गिलास में पानी डालकर आप इसे खत्म करने की अधिक संभावना रखते हैं और पूरे दिन अधिक पीते हैं। 2. खाने से पहले अपने बर्गर को पलटें।  यह सब कुछ बाहर गिरने की संभावना कम हो जाती है क्योंकि यह ढीली वस्तुओं पर नीचे दबाएगा। Safe Online - सेफ ऑनलाइन  3. अंत गाते हुए अपने सिर से एक गीत प्राप्त करें।  जैसा कि ऊपर उल्लेख किया गया है, उसी कारण से आप गीत की अंतिम पंक्ति गाकर आसानी से अनस्टक हो सकते हैं।  4. बेहतर ब्रेक लें।  अपनी कुर्सी पर वापस बैठो और इसे चारों ओर मोड़ो।  उठो मत, कुछ सचेत साँस लें और 45 सेकंड के लिए वहां बैठें।  यानी हर समय आपको रिचार्ज करवाने की जरूरत होती है।  5. "बस एक और ..."।  जब आप काम पर अपनी सीमा पर हों या जब व्यायाम करते हैं तो इस वाक्य को अपने सिर में दोहराएं "बस एक और सेट / प्रतिनि...

अपने दिमाग को तेज और होशियार बनाये

  1. अपने विपरीत हाथ का उपयोग करने का प्रयास करें;  जैसे कि यदि आपका बायाँ हाथ है, तो कभी अपने दाहिने हाथ का उपयोग करें;  और यदि आप दाएं हाथ से हैं, तो कभी-कभी अपने बाएं हाथ का उपयोग करें;  यानी, दांतों को ब्रश करना, कागज पर कुछ पंक्तियां लिखना। Safe Online - सेफ ऑनलाइन    2. हर रोज नई चीजों को पढ़ने की आदत बनाएं, अपने फोन पर क्वोरा स्थापित करने की कोशिश करें।  3. एक नई प्रोग्रामिंग भाषा सीखना आपके मस्तिष्क में ग्रे पदार्थ को बढ़ा सकता है, जिसके परिणामस्वरूप एक अधिक तेज और सक्रिय दिमाग हो सकता है;  यानी जावास्क्रिप्ट, जावा, Python आदि।  4. अपने शरीर के लिए लक्ष्य निर्धारित करना;  यानी सिक्स पैक ऐब्स होना, बॉडी शेप में आना, आपका स्टैमिना बढ़ाना।  एक स्वस्थ शरीर में एक स्वस्थ दिमाग होता है।  5. शीर्ष 88 टेड वार्ता को देखने / सुनने का प्रयास करें।  यह आपको सोचने की एक नई दिशा देगा।  6. अपने खाली समय में रूबिक के घन को हल करने का प्रयास करें।  यह आपके मस्तिष्क में न्यूरॉन्स को उत्तेजित करने में मदद करेगा।  7. ऐस...

How to view hidden files in computer?

It is very easy to see hidden files or folders in a Windows computer. In this answer, I will show you how to hidden files as well as how to hide a file or folder. So let's understand step-by-step How to hide a file or folder: Step 1 : Select any file (or folder) you want to hide by clicking once on the icon of that folder.                                                                     Safe Online - सेफ ऑनलाइन Step 2: Now right-click it on the folder and click on 'Properties' at the bottom of the menu which is open. To open the properties of a folder, you can also select the folder and use the shortcut Alt + Enter.                                                 ...

Write a program to create a moving string by applet.

 Write a program to create a moving string by applet. import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class MovingString extends Applet implements Runnable { String msg="Hey it's me Gargi....";       Thread t=null;       public void init()       {       setBackground(Color.cyan);                   setBackground(Color.red);                   t=new Thread(this);                   t.start();       }       public void run()       {             ...

Develop an applet that receives an integer in one text field,and computes its factorial value and return it in another text field, when the button named “Compute” is clicked.

 Develop an applet that receives an integer in one text field,and computes its factorial value and return it in another text field, when the button named “Compute” is clicked. import java.awt.*; import java.awt.event.*; import java.applet.*; public class Factorial extends Applet implements ActionListener {     Label l1,l2; TextField t1,t2;     Button com;     //int n,i,fact=0;     public void init()     {          l1=new Label("Enter a no.");         add(l1);         l2=new Label("Factorial");         add(l2);         t1=new TextField(10);         add(t1);         t2=new TextField(10);         add(...

Write a code to create a page which will be able to do the following task:  ADD  SUBTRACT  MULTIPLY  DIVIDE

  Write a code to create a page which will be able to do the following task: Ø ADD Ø SUBTRACT Ø MULTIPLY Ø DIVIDE                                                            import java.awt.*; import java.awt.event.*; import java.applet.*; public  class Calculator extends Applet implements ActionListener {                                                  Label l1,l2; TextField t1,t2,t3;     Button add1,sub,mul,div;     public void init()     {         l1=new Label("First No");  ...