Showing posts with label INtroduction of programming languages. Show all posts
Showing posts with label INtroduction of programming languages. Show all posts

Thursday, April 4, 2024

introduction of programming

 


INTRODUCTION TO PROGRAMMING LANGUAGES:

Introduction:

A programming language is a bunch of guidelines and linguistic structure used to make programming programs. A portion of the vital elements of programming dialects include:


Grammar: The particular standards and design used to compose code in a programming language.

Information Types: The kind of values that can be put away in a program, like numbers, strings, and booleans.

Factors: Named memory areas that can store values.

Administrators: Images used to perform procedure on values, like expansion, deduction, and correlation.

Control Designs: Explanations used to control the progression of a program, for example, if-else proclamations, circles, and capability calls.

click to see more details: control structure

Libraries and Structures: Assortments of pre-composed code that can be utilized to perform normal assignments and accelerate advancement.

Ideal models: The programming style or reasoning utilized in the language, for example, procedural, object-arranged, or practical.

Instances of well known programming dialects incorporate Python, Java, C++(https://introductionofprogramming.blogspot.com/2024/04/introduction-of-c-language-c-si-pls-pls.html, )JavaScript, and Ruby. Every language has its own assets and shortcomings and is appropriate for various sorts of tasks.

A programming language is a conventional language that determines a bunch of guidelines for a PC to perform explicit errands. It's utilized to compose programming projects and applications, and to control and control PC frameworks. There are various programming dialects, each with its own punctuation, construction, and set of orders. The absolute most ordinarily utilized programming dialects incorporate Java, Python, C++, JavaScript, and C#. The decision of programming language relies upon the particular necessities of an undertaking, including the stage being utilized, the target group, and the ideal result. Programming dialects proceed to advance and change after some time, with new dialects being created and more seasoned ones being refreshed to address evolving issues.

Could it be said that you are expecting to turn into a programmer one day?

Do you likewise need to foster a versatile application that individuals all around the world couldn't want anything more than to utilize? Might it be said that you are adequately enthusiastic to find the enormous way to enter the universe of programming? Then you are perfectly located in light of the fact that through this article you will get a short prologue to programming. Presently before we comprehend what writing computer programs is, you should realize what is a PC. A PC is a gadget that can acknowledge human guidance, processes it, and answers it or a PC is a computational gadget that is utilized to handle the information heavily influenced by a PC program. Program is a grouping of guidance alongside information.

The essential parts of a PC are:

Input unit:

1.Focal Handling Unit(CPU)

2.Yield unit

3.The computer processor is additionally separated into three sections

4.Memory unit

5.Control unit

6.Math Rationale unit

The greater part of us have heard that central processor is known as the cerebrum of our PC since it acknowledges information, gives transitory memory space to it until it is stored(saved) on the hard circle, performs sensible procedure on it and thus processes(here additionally implies changes over) information into data. We as a whole realize that a PC comprises of equipment and programming. Programming is a bunch of projects that plays out various errands together. A working framework is likewise programming (framework programming) that assists people with collaborating with the PC framework.

A program is a bunch of guidelines given to a PC to play out a particular activity. or on the other hand PC is a computational gadget that is utilized to deal with the information heavily influenced by a PC program. While executing the program, crude information is handled into the ideal result design. These PC programs are written in a programming language which are undeniable level dialects. Significant level dialects are almost human dialects that are more complicated than the PC justifiable language which are called machine language, or low level language. So in the wake of knowing the nuts and bolts, we are prepared to make an exceptionally straightforward and essential program. Like we have various dialects to speak with one another, similarly, we have various dialects like C, C++, C#, Java, python, and so forth to speak with the PCs. The PC just grasps parallel language (the language of 0's and 1's) likewise called machine-reasonable language or low-level language however the projects we will compose are in a significant level language which is practically like human language.

The piece of code given underneath plays out a fundamental undertaking of printing "hi world! I'm picking up programming" on the control center screen. We should know that console, scanner, mouse, mouthpiece, and so forth are different instances of information gadgets, and monitor(console screen), printer, speaker, and so on are instances of result gadgets.


principal()

 {

 clrscr();

 printf("hello world! I'm figuring out how to program");

 getch();

 }

At this stage, you probably won't have the option to comprehend inside and out how this code prints something on the screen. The fundamental() is a standard capability that you will constantly remember for any program that you will make from now onwards. Note that the execution of the program begins from the principal() capability. The clrscr() capability is utilized to see just the ongoing result on the screen while the printf() capability assists us with printing the ideal result on the screen. Likewise, getch() is a capability that acknowledges any person input from the console. In straightforward words, we really want to press any key to continue(some individuals might say that getch() helps in holding the screen to see the result).

Between undeniable level language and machine language, there are low level computing constructs likewise called emblematic machine code. Low level computing constructs are especially PC engineering explicit. Utility program (Constructing agent) is utilized to change over gathering code into executable machine code. Significant Level Programming Language is versatile however requires Understanding or gathering to change over it into a machine language that is PC perceived.

Progressive system of Scripting language -

There have been many programming dialects some of them are recorded beneath:


1.C                           2.Python                    3.C++

4.C#                         5.R                           6.Ruby

6.COBOL                 8. ADA                      9. Java

10.Fortran                11. BASIC           12. Altair Fundamental

13.Genuine BASIC       14.Visual Fundamental

15.GW Fundamental

Some most imp programming languages:

C

Python

C++

Java

SCALA

C#

R

Ruby

Go

Quick

JavaScript

Qualities of a programming Language -

A programming language should be basic, simple to learn and utilize, have great coherence, and be human unmistakable.

Deliberation is a priority Qualities for a programming language where the capacity to characterize the perplexing construction and afterward its level of convenience comes.

A versatile programming language is constantly liked.

Writing computer programs language's proficiency should be high with the goal that it very well may be effortlessly changed over into a machine code and its execution consumes little space in memory.

A programming language ought to be very much organized and recorded with the goal that it is reasonable for application improvement.

Vital instruments for the turn of events, troubleshooting, testing, support of a program should be given by a programming language.

A programming language ought to give a solitary climate known as Coordinated Improvement Environment(IDE).

A programming language should be predictable regarding linguistic structure and semantics.

Essential Phrasings in Programming Dialects:

Calculation: A bit by bit strategy for tackling an issue or playing out an errand.

Variable: A named stockpiling area in memory that holds a worth or information.

Information Type: A grouping that determines what sort of information a variable can hold, like number, string, or boolean.

Cailitypab: An independent block of code that plays out a particular undertaking and can be called from different pieces of the program.

Control Stream: The request where explanations are executed in a program, including circles and restrictive proclamations.

Punctuation: The arrangement of decides that oversee the design and organization of a programming language.

Remark: A piece of text in a program that is disregarded by the compiler or mediator, used to add notes or clarifications to the code.

Troubleshooting: The most common way of finding and fixing mistakes or bugs in a program.

IDE: Incorporated Improvement Climate, a product application that gives a thorough advancement climate to coding, troubleshooting, and testing.

Administrator: An image or watchword that addresses an activity or activity to be performed on at least one qualities or factors, for example, + (expansion), - (deduction), * (duplication), and/(division).

Proclamation: A solitary line or guidance in a program that plays out a particular activity or activity.

Essential Illustration Of Most Famous Programming Dialects:

Here the essential code for expansion of two numbers are given in a few famous dialects (like C, C++,Java, Python, C#, JavaScript and so on.).


// C++ program for amount of 2 numbers

#incorporate <iostream>

utilizing namespace sexually transmitted disease;


int primary()

{

    int a, b, total;

    a = 10;

    b = 15;

    total = a + b;

    cout << "Amount of " << a << " and " << b

         << " will be: " << total;//perform expansion activity

    bring 0 back;

}

// This code is contributed by Susobhan Akhuli

Yield

Amount of 10 and 15 is: 25

 Benefits of programming dialects:

Expanded Efficiency: Programming dialects give a bunch of deliberations that permit engineers to compose code all the more rapidly and effectively.

Convenientce: Projects written in a significant level programming language can run on various working frameworks and stages.

Lucidness: Very much planned programming dialects can make code more clear and more obvious for both the first creator and different designers.

Huge People group: Many programming dialects have enormous networks of clients and engineers, which can offer help, libraries, and instruments.


c++ programming



INTRODUCTION OF C++ LANGUAGE:

 C++  is a high-level, general-purpose programming language created by Danish computer scientist Bjarne Stroustrup. First released in 1985 as an extension of the C programming language, it has since expanded significantly over time; as of 1997, C++ has object-oriented, generic, and functional features, in addition to facilities for low-level memory manipulation for making things like microcomputers or to make operating systems like Linux or Windows. It is almost always implemented as a compiled language, and many vendors provide C++ compilers, including the Free Software Foundation, LLVM, Microsoft, Intel, Embarcadero, Oracle, and IBM. If you see more detail on programming click here:    introduction of programming

C++ was designed with systems programming and embedded, resource-constrained software and large systems in mind, with performance, efficiency, and flexibility of use as its design highlights. C++ has also been found useful in many other contexts, with key strengths being software infrastructure and resource-constrained applications, including desktop applications, video games, servers (e.g., e-commerce, web search, or databases), and performance-critical applications (e.g., telephone switches or space probes).

C++ is standardized by the International Organization for Standardization (ISO), with the latest standard version ratified and published by ISO in December 2020 as ISO/IEC 14882:2020 (informally known as C++20). The C++ programming language was initially standardized in 1998 as ISO/IEC 14882:1998, which was then amended by the C++03, C++11, C++14, and C++17 standards. The current C++20 standard supersedes these with new features and an enlarged standard library. Before the initial standardization in 1998, C++ was developed by Stroustrup at Bell Labs since 1979 as an extension of the C language; he wanted an efficient and flexible language similar to C that also provided high-level features for program organization.[18] Since 2012, C++ has been on a three-year release schedule with C++23 as the next planned standard.[20]C++ (/ˈsiː plʌs plʌs/, pronounced "C plus plus" and sometimes abbreviated as CPP) is a high-level, general-purpose programming language created by Danish computer scientist Bjarne Stroustrup. First released in 1985 as an extension of the C programming language, it has since expanded significantly over time; as of 1997, C++ has object-oriented, generic, and functional features, in addition to facilities for low-level memory manipulation for making things like microcomputers or to make operating systems like Linux or Windows. It is almost always implemented as a compiled language, and many vendors provide C++ compilers, including the Free Software Foundation, LLVM, Microsoft, Intel, Embarcadero, Oracle, and IBM.

C++ was designed with systems programming and embedded, resource-constrained software and large systems in mind, with performance, efficiency, and flexibility of use as its design highlights. C++ has also been found useful in many other contexts, with key strengths being software infrastructure and resource-constrained applications, including desktop applications, video games, servers (e.g., e-commerce, web search, or databases), and performance-critical applications (e.g., telephone switches or space probes).

C++ is standardized by the International Organization for Standardization (ISO), with the latest standard version ratified and published by ISO in December 2020 as ISO/IEC 14882:2020 (informally known as C++20).The C++ programming language was initially standardized in 1998 as ISO/IEC 14882:1998, which was then amended by the C++03, C++11, C++14, and C++17 standards. The current C++20 standard supersedes these with new features and an enlarged standard library. Before the initial standardization in 1998, C++ was developed by Stroustrup at Bell Labs since 1979 as an extension of the C language; he wanted an efficient and flexible language similar to C that also provided high-level features for program organization.[18] Since 2012, C++ has been on a three-year release schedule with C++23 as the next planned standard.[20]C++ (/ˈsiː plʌs plʌs/, pronounced "C plus plus" and sometimes abbreviated as CPP) is a high-level, general-purpose programming language created by Danish computer scientist Bjarne Stroustrup. First released in 1985 as an extension of the C programming language, it has since expanded significantly over time; as of 1997, C++ has object-oriented, generic, and functional features, in addition to facilities for low-level memory manipulation for making things like microcomputers or to make operating systems like Linux or Windows. It is almost always implemented as a compiled language, and many vendors provide C++ compilers, including the Free Software Foundation, LLVM, Microsoft, Intel, Embarcadero, Oracle, and IBM.

C++ was designed with systems programming and embedded, resource-constrained software and large systems in mind, with performance, efficiency, and flexibility of use as its design highlights. C++ has also been found useful in many other contexts, with key strengths being software infrastructure and resource-constrained applications, including desktop applications, video games, servers (e.g., e-commerce, web search, or databases), and performance-critical applications (e.g., telephone switches or space probes).

C++ is standardized by the International Organization for Standardization (ISO), with the latest standard version ratified and published by ISO in December 2020 as ISO/IEC 14882:2020 (informally known as C++20). The C++ programming language was initially standardized in 1998 as ISO/IEC 14882:1998, which was then amended by the C++03, C++11, C++14, and C++17 standards. The current C++20 standard supersedes these with new features and an enlarged standard library. Before the initial standardization in 1998, C++ was developed by Stroustrup at Bell Labs since 1979 as an extension of the C language; he wanted an efficient and flexible language similar to C that also provided high-level features for program organization. Since 2012, C++ has been on a three-year release schedule[19] with C++23 as the next planned standard.

HISTORY:

In 1979, Bjarne Stroustrup, a Danish PC researcher, started work on "C with Classes", the ancestor to C++. The inspiration for making another dialect began from Stroustrup's involvement with programming for his PhD proposition. Stroustrup found that Simula had highlights that were extremely useful for enormous programming advancement, yet the language was excessively delayed for functional use, while BCPL was quick however excessively low-level to be appropriate for huge programming improvement. At the point when Stroustrup began working in AT&T Chime Labs, he had the issue of breaking down the UNIX portion as for conveyed registering. Recalling his PhD experience, Stroustrup set off to improve the C language with Simula-like features.C was picked in light of the fact that it was broadly useful, quick, versatile, and generally utilized. Notwithstanding C and Simula's persuasions, different dialects affected this new dialect, including ALGOL 68, Ada, CLU, and ML.[citation needed]

At first, Stroustrup's "C with Classes" added elements to the C compiler, Cpre, including classes, determined, serious areas of strength for classes, inlining, and default arguments.

A test on C++11 highlights being given in Paris in 2015

In 1982, Stroustrup began to foster a replacement to C with Classes, which he named "C++" (++ being the addition administrator in C) subsequent to going through a few different names. New highlights were added, including virtual capabilities, capability name and administrator over-burdening, references, constants, type-safe free-store memory distribution (new/erase), further developed type checking, and BCPL-style single-line remarks with two forward cuts (//). Moreover, Stroustrup fostered a new, independent compiler for C++, 

In 1984, Stroustrup executed the principal stream input/yield library. Giving a result administrator instead of a named yield capability was proposed by Doug McIlroy (who had recently recommended Unix pipes).

In 1985, the main version of The C++ Programming Language was delivered, which turned into the authoritative reference for the language, as there was not yet an authority standard. The primary business execution of C++ was delivered in October of the equivalent year.

In 1989, C++ 2.0 was delivered, trailed by the refreshed second version of The C++ Programming Language in 1991. New highlights in 2.0 incorporated various legacy, unique classes, static part works, const part works, and safeguarded individuals. In 1990, The Explained C++ Instructional booklet was distributed. This work turned into the reason for the future norm. Later component increases included formats, exemptions, namespaces, new projects, and a Boolean sort.

In 1998, C++98 was delivered, normalizing the language, and a minor update (C++03) was delivered in 2003.

After C++98, C++ advanced somewhat leisurely until, in 2011, the C++11 standard was delivered, adding various new elements, augmenting the standard library further, and giving more offices to C++ developers. After a minor C++14 update delivered in December 2014, different new augmentations were presented in C++17. In the wake of becoming concluded in February 2020, a draft of the C++20 standard was supported on 4 September 2020, and formally distributed on 15 December 2020.

On January 3, 2018, Stroustrup was reported as the 2018 champ of the Charles Distinct Draper Prize for Designing, "for conceptualizing and fostering the C++ programming language".

As of December 2022, C++ positioned third on the TIOBE record, outperforming Java without precedent for the historical backdrop of the list. It positions third, after Python and C.

ETYMOLOGY:

As per Stroustrup, "the name connotes the transformative idea of the progressions from C." This name is credited to Rick Mascitti (mid-1983) and was first utilized in December 1983. At the point when Mascitti was examined casually in 1992 regarding the naming, he showed that it was given in an offhanded soul. The name comes from C's ++ administrator (which increases the worth of a variable) and a typical naming show of utilizing "+" to demonstrate an upgraded PC program.

During C++'s improvement period, the language had been alluded to as "new C" and "C with Classes" prior to procuring its last name.

Philosophy:

Throughout C++'s life, its development and evolution has been guided by a set of principles:

  • It must be driven by actual problems and its features should be immediately useful in real world programs.
  • Every feature should be implementable (with a reasonably obvious way to do so).
  • Programmers should be free to pick their own programming style, and that style should be fully supported by C++.
  • Allowing a useful feature is more important than preventing every possible misuse of C++.
  • It should provide facilities for organising programs into separate, well-defined parts, and provide facilities for combining separately developed parts.
  • No implicit violations of the type system (but allow explicit violations; that is, those explicitly requested by the programmer).
  • User-created types need to have the same support and performance as built-in types.
  • Unused features should not negatively impact created executables (e.g. in lower performance).

You must learn c++ from these resources:

last post

C language Vs C++ language in 2024

Popular Posts