Thursday, 13 September 2018

Sorry! We have moved! The new URL is: https://www.w3schools.com

You will be redirected to the new address in five seconds.

If you see this message for more than 5 seconds, please click on the link above!

Friday, 24 August 2018

Project Idea new Topics

500


What is JavaScript? 

JavaScript is a very powerful client-side scripting language
JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage more lively and interactive, with the help of JavaScript. JavaScript is also being used widely in game development and Mobile application development. 

  • JavaScript can react to events. 
  • JavaScript can read and write HTML elements. 
  • JavaScript can be used to validate input data. 
  •  JavaScript can be used to detect the visitor's browser. 
  • JavaScript can be used to create cookies. 

JavaScript Types 
1. Client Side JavaScript  
2. Server Side JavaScript 

  Client Side Scripting generally refers to the class of computer programs on the web that are executed at client side by the user’s web browser, instead of server-side (on the web server). This type of computer programming is an important part of the Dynamic HTML concept, enabling web pages to be scripted, that is to have different and changing content depending on user input, environmental conditions such as the time of the day, or other variables. 

Advantages of ClientSide Scripting 
  • The Web browser uses it’s own resources, and erase the burden on the server. 
  • it has fewer feature than server side language.  

DisAdvantages of ClientSide Scripting 
  • Code is usually visible  
  • Code is Probably modifiable  
  • Local files and database can’t be accessed 


  Server Side JavaScript Normally when a browser requests an HTML file, the server returns the file , but if the file contains a server side script, the script inside the HTML file is executed by the server before the file is returned to the browser as a plain HTML. 

 What can server scripts do?  
  • Respond to user queries of data submitted from HTML forms  
  • Access any data or databases and return the result for individual users. 
  • Provide security since your server code cannot be viewed from the browser. 




   In next content we learn about how to write code and which type of syntax are required for write javaScript

Wednesday, 28 February 2018

Program of mid-point circle drawing in c


Program

  #include<stdio.h>
  #include<conio.h>
  #include<graphics.h>
  #include<dos.h>

  void main()
  {
    int xk=0;
    int yk,pk,radius;
    int xc=200;
    int yc=200;
    int gm, gd=DETECT;
    initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");

    printf("enter the radius;");
    scanf("%d",&radius);

    pk=1-radius;
    yk=radius;
      while(xk<yk)
     {
        if(pk<=0)
        {
           pk=pk+2*xk+3;
           xk=xk+1;
           yk=yk;
        }
     else
        {
           pk=pk+2*(xk-yk)+5;
           xk=xk+1;
           yk=yk-1;
        }
      putpixel(xc+xk,yc+yk,GREEN);
      putpixel(xc+xk,yc-yk,GREEN);
      putpixel(xc-xk,yc+yk,GREEN);
      putpixel(xc-xk,yc-yk,GREEN);
      putpixel(xc+yk,yc+xk,GREEN);
      putpixel(xc+yk,yc-xk,GREEN);
      putpixel(xc-yk,yc+xk,GREEN);
      putpixel(xc-yk,yc-xk,GREEN);
    }
   getch();
   closegraph();
  }






Output

Tuesday, 27 February 2018

program of Bubble Sort


Program

 #include<stdio.h>
 #include<conio.h>
 #define max 5

 void main()
 {
   int arry[max];
   int i,j,temp;
   printf("enter elements :");
   for(int p=0;p<=max-1;p++)
   {
     scanf("%d",&arry[p]);
   }


   for(i=1;i<=max-1;i++)
   {
     for(j=0;j<=max-1-i;j++)
      {
       if(arry[j] > arry[j+1])
         {
    temp=arry[j];
    arry[j]=arry[j+1];
    arry[j+1]=temp;
         }
       }
    }
        printf("after sorting: \n");
        for(int k=0;k<=max-1;k++)
        {
          printf("%d \n",arry[k]);
        }
    getch();
 }






Output

enter elements : 50
                          10
                          33
                          05
                          15

  after sorting:  05
                         10
                         15
                         33
                         50

Sunday, 25 February 2018

Find the maximum Number Among Three Numbers in programming c


Program


  #include <stdio.h>

  int main()
  {
    int num1, num2, num3;
    printf("Enter three numbers: ");
    scanf("%d %d %d", &num1, &num2, &num3);

    if(num1>=num2 && num1>=num3)
    {
        printf("%d is the maximum number", num1);
    }
    else if(num2>=num1 && num2>=num3)
    {
        printf("%d is the maximum number", num2);
    }
    else
    {
        printf("%d is the maximum number", num3);
    }
    return 0;
 }





output

  Enter three numbers: 10  50  30
  50 is the maximum number