Preview

• Programming Languages • History of C • Problem Solving – Flowcharts – Algorithms – Programs

Good Essays
Open Document
Open Document
1751 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
• Programming Languages • History of C • Problem Solving – Flowcharts – Algorithms – Programs
ISE105: Computer Fundamentals
Lecture 7

Samin Khaliq

Today’s Lecture
• Programming Languages • History of C • Problem Solving
– Flowcharts – Algorithms – Programs

• C Program • Comments

Types of Programming Languages
Low Level Languages
1. Machine language (1GL)
• • Strings of numbers giving machine specific instructions Example: Calculates nth Fibonacci number
8B542408 FA027706 B9010000 C84AEBF1 83FA0077 06B80000 0000C383 B8010000 00C353BB 01000000 008D0419 83FA0376 078BD98B 5BC3

2. Assembly language (2GL)
• • English-like abbreviations representing elementary computer operations (translated via assemblers) Example: fib: mov edx, [esp+8] cmp edx, 0 ja @f mov eax, 0 ret …

3

Types of Languages
3. High-level languages (3GL)
• Codes similar to everyday English • Use mathematical notations (translated via compilers) • Example: grossPay = basePay + overTimePay

• Languages:
– C, C++, Java, FORTRAN, COBOL, Pascal

4

Development of programming languages

Development of Programming Languages
• 2000  C# . . • 2001  Visual Basic .NET . . . . • 2009  Go by Google Inc. (Similar to C)

A brief history of C
• Developed Dennis M. Ritchie at AT&T Bell Labs between 1969–1973 for UNIX • Descendant of Ken Thompson’s language “B” • First published specification standard:
– Ritchie and Brian Kernighan “The C Programming Language” in 1978
– C-dialect now known as K&R-Style

• Ease of portability ⇒ language began to spread • However language standard (K&R) insufficiently precise • A slightly modified version of K&R was standardised by ANSI 1989
– C-dialect now known as ANSI-C

• The latest revision of the Standard is C99 (ISO) • ISO/IEC JTC1/SC22/WG14 is the international standardization working group for the programming language C.

Dennis Ritchie and Ken Thompson

C and C++
• C++ is descended from C
– Written by Bjarne Stroustrup during 1983-1985 – Originally called “C with Classes”

• ISO/IEC JTC1/SC22/WG21 has

You May Also Find These Documents Helpful

  • Satisfactory Essays

    In 1970 C programing was created by Dennis Richie and ken Thompson was made to create portability in UNIX…

    • 388 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Structured Query Language (SQL) is a standard database computer language used for querying, modifying and managing data in Relational Database Management Systems (RDBMS). SQL was developed in the 1970's by IBM to initially manipulate and retrieve data in IBM System R. The SQL language was standardized in 1986 by the American National Standards Institute (ANSI); however, later releases were released as International Organization for Standardization (ISO) standards.…

    • 612 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    The Last Full Measure is a Civil War historical fiction novel, and it is the third in a trilogy of books about the Civil War. The Last Full Measure details the events following the Battle of Gettysburg, and dates all the way back to the end of the Civil War. It even details Robert E. Lee’s death, Ulysses S. Grant’s physical decline, and Joshua Lawrence Chamberlain’s revisit of the Battle at Little Round Top before the 50th anniversary of the Battle of Gettysburg. The Last Full Measure is divided into three parts, which has chapters about either Lee, Grant, or Chamberlain. Each chapter also dates the events that occurred.…

    • 1605 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    C++ programming: editing, compiling, user I/O, variables (ints, doubles, char, strings, booleans), loops, decisions, functions, pointers, arrays, tables, databases, sorting.…

    • 1748 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    Cs Programming Chapter 1

    • 2450 Words
    • 10 Pages

    ____ data items may involve organizing or sorting them, checking them for accuracy, or performing calculations with them.…

    • 2450 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    “This article describes programmability studies undertaken by Sun Microsystems in its HPCS participation.” FORTRAN has been the preferred language among the High Performance Computing (HPC) community, it is less likely that every programmer would have ended up preferring FORTRAN and more likely that the problems with the original source codes have more to do with reasons than the limitations of existing programming languages. The need for HPC benchmarks in the new languages could reduce source-code volume substantially, but rewriting these benchmarks even in FORTRAN could achieve similar source-code reductions and corresponding improvements in expressivity. This article mentions that the programmer rewrote many of HPC benchmarks and applications using modern FORTRAN taking into account the human costs of software development: programmability and associated characteristics such as readability, verifiability, and maintainability. “These are important considerations; although copy-and-paste is a fast way of writing lines of code, it degrades readability and increases maintenance costs.”…

    • 630 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Intro to programming

    • 534 Words
    • 3 Pages

    Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.…

    • 534 Words
    • 3 Pages
    Good Essays
  • Good Essays

    2. The original UNIX system was written in PDP-7 assembly language and the subsequent version was written in a language called B, which was developed by Thompson in 1970.…

    • 537 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    The following information will introduce general knowledge in basic programming concepts. It shall discuss basic types of computer programming languages as-well-as program development. There are three basic types of computer programming languages that will be discussed in a simple and easy to understand manner. We shall also describe the program development cycle and discuss why it is important to use a structured and organized process to create a computer programming language.…

    • 1318 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Intro to Computers

    • 340 Words
    • 2 Pages

    Most computer software falls into one of three categories: compilers and other translator programs, software applications, and system software. Describe and give examples of each. [RQ, no. 2]…

    • 340 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Chapter 1 study guide

    • 672 Words
    • 3 Pages

    A list of the characters that can be used in a given language or languages, mapped to corresponding unique binary codes and published as a convention or standard so that computers can use a consistent set of binary values to represent text values. (ex ASCII, ANSI, and Unicode)…

    • 672 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Isos

    • 288 Words
    • 2 Pages

    The standard has been in existence as an official ANSI since 1986, and has been revised up through the 2008 version. Industry standard would be conforming to the ANSI/ISO Standards, typically the "core" or "entry" level, where the syntax will work on any major DBMS.…

    • 288 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    5 Reading Facts

    • 239 Words
    • 1 Page

    This is my first class on Linux Systems and everything that I have learned so far in this class is basically new facts to me. Below are some the facts that stood out to me from the textbook.…

    • 239 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    The Art and Science of Java

    • 3909 Words
    • 16 Pages

    1. Babbage’s Analytical Engine introduced the concept of programming to computing. 2. Augusta Ada Byron is generally recognized as the first programmer. The U.S. Department of Defense named the Ada programming language in her honor. 3. The heart of von Neumann architecture is the stored-programming concept, in which both data and programming instructions are stored in the same memory system. 4. Hardware is tangible and comprises the physical parts of a computer; software is intangible and consists of the programs the computer executes. 5. The abstract concept that forms the core of computer science is problem-solving. 6. For a solution technique to be an algorithm, it must be • Clearly and unambiguously defined • Effective, in the sense that its steps are executable • Finite, in the sense that it terminates after a bounded number of steps 7. Algorithmic design refers to the process of designing a solution strategy to fit a particular problem; coding refers to the generally simpler task of representing that solution strategy in a programming language. 8. A higher-level language is a programming language that is designed to be independent of the particular characteristics that differentiate computers and to work instead with general algorithmic concepts that can be implemented on any computer system. The higher-level language used in this text is called Java. 9. Each type of computer has its own machine language, which is different from that used in other computers. The compiler acts as a translator from the higher-level language into the machine language used for a specific machine. 10. A source file contains the actual text of a program and is designed to be edited by people. An object file is created by the compiler and contains a machine-language representation of the program. Most programmers never work directly with object files. 11. A syntax error is a violation of the grammatical rules of the programming…

    • 3909 Words
    • 16 Pages
    Powerful Essays
  • Better Essays

    C Programming

    • 1333 Words
    • 6 Pages

    In particular, you will write a menu-driven program that provides the user with the following options:…

    • 1333 Words
    • 6 Pages
    Better Essays