Tuesday, May 3, 2016

Youth Center : Online Platform for FREE STUDY MATERIAL


Hello Everybody,

This is an online platform to share #notes, #ebooks,  #projects, #assignments and various other #study material which is absolutely #FREE. You can share your #thoughts and #ideas on this blog. So join it and share it your #creativity #imagination.





Do visit my webpage on: www.niikhiil.wordpress.com

You can directly contact me on: niikhiil@gmail.com

Follow on my twitter account: www.twitter.com/nikhilranjan

Like the facebook page: www.facebook.com/niikhiil.niks

Keep Reading & Keep Learning!

39 comments:

  1. Hey,

    Most of the student thought that this blog is a language specific. I just want to clarify them this blog is open for all the technologies and trends including any computer science core subject related problem as well.

    You can post your queries arises during project preparation or if you need any help to build any presentation or in a research work too.

    In this blog we have a team of professional from academics and industry which will help you to provide technical support.

    ReplyDelete
  2. Hey,

    This is a very good initiative by Nikhil sir.

    All the best.

    Common student join us here.

    ReplyDelete
  3. Hi...Anmol Agarwal this side from BCA 1st Year

    E-mail- anmol@softitworld.com

    ReplyDelete
  4. Hello guys, I am providing you some notes on C Programming, if you have any problem to access it, please let me know.


    C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC PDP-11 computer in 1972.
    In 1978, Brian Kernighan and Dennis Ritchie produced the first publicly available description of C, now known as the K&R standard.
    The UNIX operating system, the C compiler, and essentially all UNIX application programs have been written in C. C has now become a widely used professional language for various reasons −
    • Easy to learn
    • Structured language
    • It produces efficient programs
    • It can handle low-level activities
    • It can be compiled on a variety of computer platforms
    Facts about C
    • C was invented to write an operating system called UNIX.
    • C is a successor of B language which was introduced around the early 1970s.
    • The language was formalized in 1988 by the American National Standard Institute (ANSI).
    • The UNIX OS was totally written in C.
    • Today C is the most widely used and popular System Programming Language.
    • Most of the state-of-the-art software have been implemented using C.
    • Today's most popular Linux OS and RDBMS MySQL have been written in C.
    Why use C?
    C was initially used for system development work, particularly the programs that make-up the operating system. C was adopted as a system development language because it produces code that runs nearly as fast as the code written in assembly language. Some examples of the use of C might be −
    • Operating Systems
    • Language Compilers
    • Assemblers
    • Text Editors
    • Print Spoolers
    • Network Drivers
    • Modern Programs
    • Databases
    • Language Interpreters
    • Utilities
    C Programs
    A C program can vary from 3 lines to millions of lines and it should be written into one or more text files with extension ".c"; for example, hello.c. You can use "vi", "vim" or any other text editor to write your C program into a file.
    This tutorial assumes that you know how to edit a text file and how to write source code inside a program file.

    We have set up the C Programming environment on-line, so that you can compile and execute all the available examples on line. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to modify any example and execute it on-line.
    Try the following example using our on-line compiler available atCodingGround.
    #include

    int main() {

    /* my first program in C */
    printf("Hello, World! \n");

    return 0;
    }

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Hello everyone i m new student of BCA 1st year.
    EMAIL-ID=ashutoshkumar3121@gmail.com

    ReplyDelete
  7. Hi.. Frnds new i m a new joinee in MCA 1st year
    Email-Id- sahuabhishek908@gmail.com

    ReplyDelete
  8. Hello everyone i m shourya narayan BCA 1st year...
    Email-Id- narayanshourya@gmail.com

    ReplyDelete
  9. I am ankit saxena MCA 1st year student .
    My email id is ankitsaxena1231@gmail.com

    ReplyDelete
  10. I heartily welcome all of you guys on this platform of knowledge sharing.

    ReplyDelete
  11. Local Environment Setup

    If you want to set up your environment for C programming language, you need the following two software tools available on your computer, (a) Text Editor and (b) The C Compiler.

    Text Editor

    This will be used to type your program. Examples of few a editors include Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, and vim or vi.
    The name and version of text editors can vary on different operating systems. For example, Notepad will be used on Windows, and vim or vi can be used on windows as well as on Linux or UNIX.

    The files you create with your editor are called the source files and they contain the program source codes. The source files for C programs are typically named with the extension ".c".

    Before starting your programming, make sure you have one text editor in place and you have enough experience to write a computer program, save it in a file, compile it and finally execute it.

    The C Compiler

    The source code written in source file is the human readable source for your program. It needs to be "compiled", into machine language so that your CPU can actually execute the program as per the instructions given.
    The compiler compiles the source codes into final executable programs. The most frequently used and free available compiler is the GNU C/C++ compiler, otherwise you can have compilers either from HP or Solaris if you have the respective operating systems.
    The following section explains how to install GNU C/C++ compiler on various OS. We keep mentioning C/C++ together because GNU gcc compiler works for both C and C++ programming languages.


    Tokens in C
    A C program consists of various tokens and a token is either a keyword, an identifier, a constant, a string literal, or a symbol. For example, the following C statement consists of five tokens −
    printf("Hello, World! \n");
    The individual tokens are −
    printf
    (
    "Hello, World! \n"
    )
    ;

    Semicolons
    In a C program, the semicolon is a statement terminator. That is, each individual statement must be ended with a semicolon. It indicates the end of one logical entity.
    Given below are two different statements −
    printf("Hello, World! \n");
    return 0;

    Comments
    Comments are like helping text in your C program and they are ignored by the compiler. They start with /* and terminate with the characters */ as shown below −
    /* my first program in C */
    You cannot have comments within comments and they do not occur within a string or character literals.

    Identifiers
    A C identifier is a name used to identify a variable, function, or any other user-defined item. An identifier starts with a letter A to Z, a to z, or an underscore '_' followed by zero or more letters, underscores, and digits (0 to 9).

    C does not allow punctuation characters such as @, $, and % within identifiers. C is a case-sensitive programming language. Thus, Manpower and manpowerare two different identifiers in C. Here are some examples of acceptable identifiers −
    mohd zara abc move_name a_123
    myname50 _temp j a23b9 retVal

    Keywords
    The following list shows the reserved words in C. These reserved words may not be used as constants or variables or any other identifier names.
    auto else long switch
    break enum register typedef
    case extern return union
    char float short unsigned
    const for signed void
    continue goto sizeof volatile
    default if static while
    do int struct _Packed
    double

    ReplyDelete
  12. Hello Everybody,

    I am providing you the solution of today's program for finding the largest no among three nos.

    #include
    void main()
    {
    double n1, n2, n3;

    printf("Enter three numbers: ");
    scanf("%lf %lf %lf", &n1, &n2, &n3);

    if (n1>=n2)
    {
    if(n1>=n3)
    printf("%.2lf is the largest number.", n1);
    else
    printf("%.2lf is the largest number.", n3);
    }
    else
    {
    if(n2>=n3)
    printf("%.2lf is the largest number.", n2);
    else
    printf("%.2lf is the largest number.",n3);
    }

    }

    ReplyDelete
  13. You can also try it with using logical operators:

    #include
    void main()
    {
    double n1, n2, n3;

    printf("Enter three numbers: ");
    scanf("%lf %lf %lf", &n1, &n2, &n3);

    if( n1>=n2 && n1>=n3 )
    printf("%.2f is the largest number.", n1);

    if( n2>=n1 && n2>=n3 )
    printf("%.2f is the largest number.", n2);

    if( n3>=n1 && n3>=n2 )
    printf("%.2f is the largest number.", n3);

    }

    ReplyDelete
  14. Just run the above programs and in-case if anybody having any problem in this above mentioned code, do let me know.

    Keep coding...

    ReplyDelete
  15. Hello, This is Amardeep Kumar from BCA
    1st year.
    kumar.amardeep96@gmail.com

    ReplyDelete
  16. Hi this is suman bisht from bca 1st year
    Email:bishtsam818@gmail.com

    ReplyDelete
  17. Hello guys,

    This is the solution for nesting if-else program of checking vowel and consonants.

    #include
    #include
    main()
    {
    char ch;
    printf("Enter any character between a to z : ");
    scanf(" %c",&ch);
    if(ch=='a')
    {
    printf("%c is vowel”,ch);
    }
    else if(ch=='e')
    {
    printf("%c is vowel”,ch);
    }
    else if(ch=='i')
    {
    printf("%c is vowel”,ch);
    }
    else if(ch=='o')
    {
    printf("%c is vowel”,ch);
    }
    else if(ch=='u')
    {
    printf("%c is vowel”,ch);
    }
    else
    {
    printf("%c is consonant”,ch);
    }
    getch();
    }

    Just copy and run the code.

    Happy codding!

    ReplyDelete
    Replies
    1. In char ch ,why are we using ch?
      Kunal
      Bca 1st year
      Kunalkashyap932@gmail.com
      9709730881

      Delete
  18. hi this is kamal thapliyal from BCA 1st year.
    email-kamalthapliyal111@gmail.com

    ReplyDelete
  19. please provide me the answer of this question.
    . WAP to display a week. when input is 1 output should be monday, when input is 7 output should be sunday , else invalid input.

    ReplyDelete
    Replies
    1. Hello kamal,

      #include
      #include
      main()
      {
      int ch;
      printf("Enter any no between 1-7 : ");
      scanf(" %d",&ch);
      if(ch=='1')
      {
      printf("%d is Monday”,ch);
      }
      else if(ch=='2')
      {
      printf("%c is Tuesday”,ch);
      }
      else if(ch=='3')
      {
      printf("%c is Wednesday”,ch);
      }
      .
      .
      .
      .
      .
      .
      getch();
      }

      Kindly refer to solution of vowels / consonants.

      Delete
  20. This comment has been removed by the author.

    ReplyDelete
  21. For Diploma 5th sem students.

    ".NET" redirects here. For the top-level Internet domain, see .net. For other uses, see .NET (disambiguation).

    .NET Framework (pronounced dot net) is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large class library known as Framework Class Library (FCL) and provides language interoperability (each language can use code written in other languages) across several programming languages. Programs written for .NET Framework execute in a software environment (as contrasted to hardware environment) known as Common Language Runtime (CLR), an application virtual machine that provides services such as security, memory management, and exception handling. (As such, computer code written using .NET Framework is called "managed code".) FCL and CLR together constitute .NET Framework.

    FCL provides user interface, data access, database connectivity, cryptography, web application development, numeric algorithms, and network communications. Programmers produce software by combining their own source code with .NET Framework and other libraries. .NET Framework is intended to be used by most new applications created for the Windows platform. Microsoft also produces an integrated development environment largely for .NET software called Visual Studio.

    .NET Framework started out as a proprietary framework, although the company worked to standardize the software stack almost immediately, even before its first release. Despite the standardization efforts, developers—particularly those in the free and open-source software communities—expressed their uneasiness with the selected terms and the prospects of any free and open-source implementation, especially with regard to software patents. Since then, Microsoft has changed .NET development to more closely follow a contemporary model of a community-developed software project, including issuing an update to its patent promise to address the concerns.

    .NET Framework led to a family of .NET platforms targeting mobile computing, embedded devices, alternative operating systems and browser plugins. A reduced version of the framework, .NET Compact Framework, is available on Windows CE platforms, including Windows Mobile devices such as smartphones. .NET Micro Framework is targeted at severely resource-constrained embedded devices. Silverlight was available as a web browser plugin. Mono is available for many operating systems and is customized into popular smartphone operating systems (Android and iOS) and game engines. .NET Core targets cross-platform and cloud-based workloads in addition to the Universal Windows Platform (UWP).

    ReplyDelete
  22. For BCA-3rd Semester students:

    Notes on HTML- Basic Introduction

    HyperText Markup Language (HTML) is the standard markup language for creating web pages and web applications. With Cascading Style Sheets (CSS), and JavaScript, it forms a triad of cornerstone technologies for the World Wide Web.[1] Web browsers receive HTML documents from a webserver or from local storage and render them into multimedia web pages. HTML describes the structure of a web page semantically and originally included cues for the appearance of the document.

    HTML elements are the building blocks of HTML pages. With HTML constructs, images and other objects, such as interactive forms may be embedded into the rendered page. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. HTML elements are delineated by tags, written using angle brackets. Tags such as <> surround and provide information about document text and may include other tags as sub-elements. Browsers do not display the HTML tags, but use them to interpret the content of the page.

    HTML can embed programs written in a scripting language such as JavaScript which affect the behavior and content of web pages. Inclusion of CSS defines the look and layout of content. The World Wide Web Consortium (W3C), maintainer of both the HTML and the CSS standards, has encouraged the use of CSS over explicit presentational HTML since 1997

    ReplyDelete
  23. FOR BCA-I

    A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case.

    The following rules apply to a switch statement −

    The expression used in a switch statement must have an integral or enumerated type, or be of a class type in which the class has a single conversion function to an integral or enumerated type.

    You can have any number of case statements within a switch. Each case is followed by the value to be compared to and a colon.

    The constant-expression for a case must be the same data type as the variable in the switch, and it must be a constant or a literal.

    When the variable being switched on is equal to a case, the statements following that case will execute until a break statement is reached.

    When a break statement is reached, the switch terminates, and the flow of control jumps to the next line following the switch statement.

    Not every case needs to contain a break. If no break appears, the flow of control will fall through to subsequent cases until a break is reached.

    A switch statement can have an optional default case, which must appear at the end of the switch. The default case can be used for performing a task when none of the cases is true. No break is needed in the default case.

    ReplyDelete
  24. A simple example of switch statement is as follow:

    #include

    int main () {

    /* local variable definition */
    char grade = 'B';

    switch(grade) {
    case 'A' :
    printf("Excellent!\n" );
    break;
    case 'B' :
    case 'C' :
    printf("Well done\n" );
    break;
    case 'D' :
    printf("You passed\n" );
    break;
    case 'F' :
    printf("Better try again\n" );
    break;
    default :
    printf("Invalid grade\n" );
    }

    printf("Your grade is %c\n", grade );

    return 0;
    }

    ReplyDelete
  25. Nested if...else statement (if...elseif....else Statement)

    The if...else statement executes two different codes depending upon whether the test expression is true or false. Sometimes, a choice has to be made from more than 2 possibilities.

    The nested if...else statement allows you to check for multiple test expressions and execute different codes for more than two conditions.
    Syntax of nested if...else statement.

    if (testExpression1)
    {
    // statements to be executed if testExpression1 is true
    }
    else if(testExpression2)
    {
    // statements to be executed if testExpression1 is false and testExpression2 is true
    }
    else if (testExpression 3)
    {
    // statements to be executed if testExpression1 and testExpression2 is false and testExpression3 is true
    }
    .
    .
    else
    {
    // statements to be executed if all test expressions are false
    }

    Example #3: C nested if...else statement

    // Program to relate two integers using =, > or <

    #include
    int main()
    {
    int number1, number2;
    printf("Enter two integers: ");
    scanf("%d %d", &number1, &number2);

    //checks if two integers are equal.
    if(number1 == number2)
    {
    printf("Result: %d = %d",number1,number2);
    }

    //checks if number1 is greater than number2.
    else if (number1 > number2)
    {
    printf("Result: %d > %d", number1, number2);
    }

    // if both test expression is false
    else
    {
    printf("Result: %d < %d",number1, number2);
    }

    return 0;
    }

    Output

    Enter two integers: 12
    23
    Result: 12 < 23

    ReplyDelete
  26. hello,

    We all are here to provide help and support.

    ReplyDelete
  27. Thank you Hira Sir, its over privilege to have you here for your knowledgeable support.

    ReplyDelete
  28. Sir! Provide us the program to multiply. 3*3 matrix

    ReplyDelete