Compare And Contrast Four Programming Languages In Programming Paradigms

Great Essays
Introduction:
This Research problem is aiming to compare and contrast four programming languages according to programming paradigms and the features with the purpose of determining the suitability and applicability of the languages for each criterion, distinguish them with their pros and cons, evaluate and explore the related features on those languages.
For this I have selected one language from each programming paradigm (imperative, object-oriented, functional, logic) and compared it with the Iterative statements feature. The comparing and contrasting is based on the following design characteristics:
• Syntax
• Semantics
• Readability, writeability, reliability
• Implementation (i.e., how the feature is compiled and executed)
• Evolution
…show more content…
It is very easy to understand most especially in the beginners of programming. It has incredibly compact language syntax for iterative statements, and in that functions tend to take very little vertical space. The indented statements makes it more readable. And it is an easy writing language too. It has an ability for the function to return more than one parameter. It also has a very clear flow from top to bottom that allows easy writing of the code. It is also a highly reliable language as it is highly able to debug an error creep into the …show more content…
The loop predicate is defined as loop from N, the Statements loop is executed until the condition get false. Increment(N) is used to increment or decrement the loop count. And loop(n) is again called to attain the loop concept recursively. And when the value N becomes ‘0’ the loop stops.
• In Prolog, only few statements can be combined in complex ways. Therefore, it is simple and it is not as readable as written logic. When comes to writablity, it is easy to write for basic programs, for advance programming it lacks simplicity and data types. For loops compared to other programming languages which provides looping facility, Prolog is hard to implement the logic. And also the lack of imperative design limits its scope. Prolog is not reliable too. It is easy to write endless loops due to its “left-to-right depth-first order of evaluation”. Also, Prolog does not recognize the information outside of its limited amount of internal information. If there is insufficient information in the database, Prolog will assume goals to be false even if they are really

Related Documents

  • Decent Essays

    A routing loop is a situation that occurs between two or more routers in which a packet is continuously routed between the routers as a result of irregularities from the routing algorithms and/or the routing tables of the routers. (routing loops, 2015). An example is when three routers are connected in a triangular pattern i.e. router A is connected to router B, router B is connected to router C and router C is connected to router A, when the network is converged, all three routers will have sent their routing tables to their neighbors. If router C goes down and router B tries to send a packet to C at the same time the router went down before it receives an updated table from router A, it will look into its routing table and it sees that router A can get to C, so it will update its route to C through A and will send the packet through router A. the same thing happens when router A receives the packet from router B, since it received no update on a change from B, it also checks its table and sees that B can get to C, so it updates its route to C through B and sends the packet to B and the packet keeps getting sent this way until the maximum hop count is reached…

    • 677 Words
    • 3 Pages
    Decent Essays
  • Superior Essays

    Pt1420 Unit 5 Lab Report

    • 1875 Words
    • 8 Pages

    Some of its functions include storing data securely, supporting best practices, etc. It can handle workloads ranging from small applications to large applications with many concurrent users(Wikipedia October 18, 2015). Metasploit uses…

    • 1875 Words
    • 8 Pages
    Superior Essays
  • Improved Essays

    Nt1330 Unit 2 Assignment

    • 505 Words
    • 3 Pages

    The assignment during the third week was to find the information that would entail the usage of the two definable word with, which came as an abstraction and encapsulation in reference to the design methods of object oriented programming. The example that would come to mind is the design of one or more of the software application used during the past few weeks within the online lecture class and the usage of hiding information by design. The design of any program can be the structure of the application and it does only what its attribute’s and behavior entail it to do, forgetting what other purposes the application has in mind for operation. The information that would best describe the usage comes as the control flow of the design on the programming that have been implemented so far in the published manual areas during the past week. This is encompassed by the design of the statement in the functionality of the program setting of the statements, functions and the way the program is executed for operations.…

    • 505 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Pt1420 Unit 5 Lab 1

    • 382 Words
    • 2 Pages

    cs61002: Algorithms and Programing 1 rbattul1 Lab Assignment 5: Summary of chapters 2.1 to 2.6 of python scientific notes. Summary:…

    • 382 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    Nt1310 Unit 1 Study Guide

    • 809 Words
    • 4 Pages

    NAME: OLA AKINKUNMI OLADAPO STUDENT NUMBER: 500687685 COURSE TITLE: CN8810 SUBMISSION DATE: October 14, 2015 QUESTION What are Routing Loops?…

    • 809 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Task 2 (M1) Relook at this criteria – Show examples Discuss the importance of quality of code. There are many reasons why code quality is important to have when you’re creating a program one of these reasons are to make it easier to read and appeal to a wide audience this can be done not only by separating coding and indenting it, but also by adding comments to your coding with descriptive text about what the certain piece is doing, as well as this giving specific names to certain tools used in the program will also make it easier for people to understand which would give the people who might take over your project an overview as well as clear instructions about what was done in the program and what hadn’t been done in the program all these things will improve the readability of programs to a wide range of people.…

    • 856 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    3 Project Management 3.1 Methodology Since ultimately, this project is concerned with the development of an application for real users, it is important that we follow a user-centred approach. Not only should such an approach involve users at the early stages of the project when requirements are gathered, but it should involve users during the design, development and the evaluation process as well. User involvement is crucial as it gives them the opportunity to identify problems with the system as early as possible and for designers and developers to rectify them. This increases the likelihood of producing the best market-driven and user focussed solution your resources allow.…

    • 990 Words
    • 4 Pages
    Improved Essays
  • Great Essays

    Unlike many of those who enter into Computer Science programs in college I have only recently, in the last couple of years, started programming. During my senior year of high school a friend of mine and myself started playing around with C++ for fun during a vocational networking class accomplishing very little and not getting any desired results. At that time I had no clue that a couple short years later I would have a deeper understanding of proper programming methodologies and an understanding of a variety of languages to meet specific needs. It is often that you will see, or at least I have seen, when speaking to others programmers, that programmers believe that their language of choice is the language that will solve every problem that…

    • 1828 Words
    • 8 Pages
    Great Essays
  • Improved Essays

    Obliteration Written Response 2a. My program is an arkanoid type game. I wrote this game in C Sharp using Unity environment to write this code. The purpose of my program is to entertain the user with this challenging game and it also shows some basic physics concepts. The video illustrates how the user can play the game and whether they want to use AI to play a specific level.…

    • 434 Words
    • 2 Pages
    Improved Essays
  • Decent Essays

    There are 4 steps to successful coding and a little acronym to help you remember them… “READ” • Review the Record • Extract the Appropriate Procedure Service/Code • Assign a Diagnosis Code • Determine the Exceptions Also here are 3 Golden Rules that you should remember in coding… 1) If it’s not documented…it did NOT happen. 2) Stay up to date on code changes, if you use the wrong code…no one’s getting paid. 3) Never guess at a diagnosis code, if there is no diagnosis listed then only code the symptoms until a diagnosis is given.…

    • 96 Words
    • 1 Pages
    Decent Essays
  • Improved Essays

    Instructional Strategies

    • 839 Words
    • 4 Pages

    Describe your strategy for transitioning into the next part of lesson. My foldable looks just like yours and as we move through the PowerPoint if you do not know where we are on the foldable just ask or refer to mine, back here. When you are done filling in the blanks for that page put your pencil down. Instructional Procedures/ Learning Tasks:…

    • 839 Words
    • 4 Pages
    Improved Essays
  • Great Essays

    Syntax And Syntax Analysis

    • 1113 Words
    • 5 Pages

    Writing is all around us - within the writing are devices and syntax that warp the everyday words into someone 's story, essay, text message or email. Within the ever expanding dictionary of the human mind, we 're constantly improving our skills with these stylistic devices the more we write. Our uses of these devices however, are usually what distinguishes two completely different writers apart, and can also bring two different writers together. The variation of every human 's writing is a grand feat of its own, and can best be compared to the genetic variation throughout the evolution of man. Edgar Allan Poe, an author of dark romanticism had very heavy syntax brought with his stories of fear and emotion, which ultimately distinguished…

    • 1113 Words
    • 5 Pages
    Great Essays
  • Improved Essays

    Another reason could be that it requires less or no mouse input which enables me to work faster. When I use CLI I feel more intelligent than other users who uses graphical user interface which motivates me to carry on doing what I am…

    • 768 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Importance Of MIS

    • 969 Words
    • 4 Pages

    The five-component model can be used to do a business process automatically. This can be done when people do a particular task by following a procedure, and move it so that the computer hardware runs following the rules from the software. It can also be used to evaluate the scope of new systems by using a set of standards that has to be met, or can also be by determining its strengths, weaknesses, opportunities, threats. Every information system involves a person, and thus it is the most important component; however, the usefulness of the information gathered is limited by the quality of a person’s thinking – it depends on how the information will be…

    • 969 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Divide and Conquer Strategies: Divide and conquer is an algorithm which design paradigm based on multi-branched recursion. This designed paradigm consists of following phases: 1) Break the problem (divide): Breaking the problem into several sub-problems that are smaller in size. 2) Solve the sub problem(conquer) : Solve the sub-problem recursively .…

    • 718 Words
    • 3 Pages
    Improved Essays