Document (1)
Document (1)
ASSIGMENT NO. #1
PROGRAMMING IS EVERYWHERE :
Programming is, quite literally, all around us. From the take-out we
order, to the movies we stream, code enables everyday actions in our
lives. Tech companies are no longer recognizable as just software
companies — instead, they bring food to our door, help us get a taxi,
influence outcomes in presidential elections, or act as a personal
trainer.
Programming is, quite literally, all around us. From the take-out we
order, to the movies we stream, code enables everyday actions in our
lives. Tech companies are no longer recognizable as just software
companies — instead, they bring food to our door, help us get a taxi,
influence outcomes in presidential elections, or act as a personal
trainer.
WHAT IS PROGRAMMING?..
Put simply, programming is giving a set of instructions to a computer
to execute. If you’ve ever cooked using a recipe before, you can think
of yourself as the computer and the recipe’s author as a programmer.
The recipe author provides you with a set of instructions which you
read and then follow. The more complex the instructions, the more
complex the result!
1)MACHINE LANGUAGE:-
The operating system defines how the program should write so that it can be
converted to machine language and the system takes appropriate action.
The computer programs and scripts can also be written in other
programming languages like C, C++, and JAVA. However, these languages
cannot be directly understood by a computer system so there is a need for a
program that can convert these computer programs to machine language.
The compiler is used to convert the programs to machine language which
can be easily understood by computer systems. The compiler generates the
binary file and executable file.
2)ASSEMBLY LANGUAGE :
C programming language
C is a middle level computer programming language developed at Bell Lab at
1972 by Dennis Ritchie, C is considered as Middle Level Language because of its
features. C language contains features of Low Level Language as well as High
Level Language.
o Definition
o Subset
o Security
o Input/Output functions
In C, scanf and printf functions are used for input and output operations,
respectively, while in C++, cin and cout are used for input and output
operations, respectively.
programming power but because of its capability to access the system's low
Ken Thompson created the B language in 1969 from Martin Richard's BCPL
B to produce the initial versions of the UNIX operating system. BCPL and B
retaining most of B's syntax in 1972 and wrote the first compiler. This was
implemented on DEC's PDP 11 and it was first used as the system's language
for rewriting the UNIX operating system. Later on, UNIX, its tools and C
almost a decade. Beginning in 1983, the ANSI X3J11 committee was asked
to standardize the C language. The result was ANSI C, a standard which was
FEATURES OG C LANGUAGE:
variety of tasks like input from the user, displaying the information, etc.
· C is simple and easy to learn and use. The main components like built-
though have no safety checks for bad type casts, bad array indices, or
bad pointers.
USES OF C :
C's wide acceptance and efficiency is the reason why libraries of several
other applications are often implemented in C. Some of the applications
using C in its kernels are:
Uses of C are many in addition to Systems programming. Some of
which are as follows :
o Language compilers and interpreters
o Device drivers
o Telecom applications
o Network programming
o Digital Signal processing applications
o Database applications
o Text editors
FUTURE OF C
The current popularity of C++ may seem to have displaced C's position
in the programming world. But C is here to stay for a very long time.
One main factor is that C++ has inherited most of its syntax from C but
has incorporated several new concepts which form the basis of Object
Oriented programming. It is better to know C in order to learn C++
though there are many who advocate the theory that one has to unlearn
procedural programming habits in order to learn Object Oriented
programming. GUI based C++ programming environments are more
popular, and use lot of disk space and extended memory. They use
complex class libraries and are not well suited for developing small
programs that run on smaller systems. C is a better option when it
comes to programming device drivers, embedded applications and
utility programs.