Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
5 Program Language

5 Program Language

Ratings: (0)|Views: 11|Likes:
Published by Havend Ali

More info:

Published by: Havend Ali on May 29, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/05/2013

pdf

text

original

 
Programming Languages
Computer Science Dept./ Scientific Debate
 
1
 
1. Programming Language
To build programs, people use languages that are similar to human language.The results are translated into machine code, which computers understand.Programming languages fall into three broad categories:
 
Machine languages
 
Assembly languages
 
Higher-level languages
 
Machine languages
(first-generation languages) are the most basic type of computer languages, consisting of strings of numbers the computer's hardwarecan use.
 
Assembly languages
(second-generation languages) are only somewhat easierto work with than machine languages. The code is then translated into objectcode, using a translator called an assembler.
 
Higher-level languages
are more powerful than assembly language and allowthe programmer to work in a more English-like environment.
 
Programming Languages
Computer Science Dept./ Scientific Debate
 
2
 
2. HTML Language
Stands for "Hyper-Text Markup Language", this is the language that most Webpages are written in. Also known as hypertext documents, Web pages must conformto the rules of HTML in order to be displayed correctly in a Web browser. TheHTML syntax is based on a list of tags that describe the page's format and what issupposed to be displayed on the Web page.
 HTML samplePreview of the HTML
title 
 
html body
 
Programming Languages
Computer Science Dept./ Scientific Debate
 
3
 
3.
C++ Language
C++
is a type of computerprogramming language. Created in
1983
by
BjarneStroustrup, C++
was designed to serve as an enhanced version of the Cprogramming language.
C++
is object oriented and is considered a high levellanguage. However, it features low level facilities.
C++
is one of the most commonlyused programminglanguages.The development of 
C++
actually began four years before its release, in
1979
.It did not start out with the name
C++
; its first name was C with Classes. In the latepart of 
1983,
 
C with Classes was first used for AT&T’s internal programming needs.
Its name was changed to
C++
later in the same year
. C++
was not releasedcommercially until the late part of 
1985
.
 Example 1: Enter two numbers then find the summation of them
#include<iostream.h>
 
voidmain()
 
{
 
int a,b,c;
 
cout<<"Enter the first number:";
 
cin>>a;
 
cout<<"Enter the second number:";
 
cin>>b;
 
c=a+b;
 
cout<<a<<"+"<<b<<"="<<c;
 
}
 Example 2: Enter a student mark then print if it is Pass or not 
#include<iostream.h>
 
void main()
 
{
 
int mark;
 
cout<<"Enter your mark:";cin>>mark; No Yes
 
if(mark>=50)
 
cout<<"you succeed";
 
else
 
cout<<"you failed";
 
}
 
Enter mark Start
 
Mark>=5SucceedFailedEnd

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->