Compare and Contrast Programming Languages

docx

School

Grand Canyon University *

*We aren’t endorsed by this school

Course

111

Subject

Computer Science

Date

Apr 3, 2024

Type

docx

Pages

4

Uploaded by DeaconCloverManatee36

Report
1 Compare and Contrast Programming Languages Compare and Contrast Programming Languages Oliver Escobar College of Science, Engineering & Technology, Grand Canyon University ESG-111-TR1230A: Introduction to Engineering Programming and Lab Luke Mayer, Instructor January 15, 2022
2 Compare and Contrast Programming Languages Different Level of Programming Languages There are serval levels of programming languages. There are programming languages that humans can easily read but tend to take longer to run, which are high level languages. And there are programming languages that humans can’t read that well but tend to run faster, these tend to be low level languages. Each one has it’s use and are used for different situations. Low Level Languages Low level languages are hard to ready for humans, and there is a reason for that. Low level languages programs are machine oriented. This means that this type of programming is meant for certain computer to use and read. A good example of this would be Assembly. When Assembly is used to tell a computer what to do, it is more of a one-to-one relationship to what the computer is told to do and what the computer does. When used, the writer must be precise in detail on what it is telling the computer to do. But the best example for low level language would be binary code. It is simply a series of 1’s and 0’s that are used to tell the computer what to do. If you look at it with no context and no experience of it, you could not tell what the code is telling the computer to do until you start it and see what it does. Assembly still had some form of telling the person what is going on and making it easier to code. Binary code however does not give that, and you have to be perfect to write it, one misplaced 1 or 0 can mess up the code and would be difficult to fix. It is difficult for humans to read and understand low level programming languages, however, there are some pros to it. One would use low level programming languages because they are fast and memory efficient. Since these languages tend to be close to machine code, there is no need for an interpreter to translate anything to the computer, meaning less memory needed and faster running. Programmers also have more control over the code.
3 Compare and Contrast Programming Languages High Level languages High level programming languages have one good advantage, they are easily understood by humans. They tend to be more human oriented and are more human friendly. A good example of a high-level programming language is Python. It is simple and easy to learn, especially if you know English already. It is already widely used by the whole world. It is used to create websites and generate visualizations. It is easy for the user to read and debug any errors they may have made. However, since it is closer to human language than machine language, it will run slower since it will take time to translate the language to machine language. And because it needs and interpreter to translate the program, it will take a lot of memory. Another good example would be C++, a mixture of high- and low-level languages. C++ is also human oriented, so humans can easily understand read the code. However, C++ also allows low-level manipulation of the code, which makes it closely related to machine language. But the issue still stands when it comes to memory, however, the user must manage that instead of a garbage collector, which can take some time, and which means that the code will take longer to run. MATLAB is also one that is high level programming language but would be called scripted language. Is it like Python, in which it is more user friendly and easy for humans to understand. Another advantage of it is that you can convert it to C++, Java, and Python. But just like those other programs, MATLAB can become extremely slow since it needs to be translated. Similarities of Programming Languages The obvious similarities between these programming languages are that they are all programming languages used to tell the computer what to do and how to do it. Almost all programming languages are similar to each other, with obvious differences. Some programs are more similar than others, like C++ and Python being closely similar with some key differences.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
4 Compare and Contrast Programming Languages Or Assembly and Machine language being almost identical with each other. I have had experience with MATLAB and Arduino. MATLAB is easier to read and understand what it does, however, it does run pretty slow and take a while to load, especially if there is a lot of information. Arduino is odd since you can do digital and analog coding. But that allows me to use binary like code, making it easier for the computer to understand what I want done. But that can also mean that I can use analog and use different values other than on and off. Which one would I use? Personally, it all depends on what I need to do. If I need to write a quick code and do something quick, then I would use MATLAB and other high level programming languages. But if I have time and I need to be precise, I will use binary code or even Assembly. But before that, I would need to learn how to use those coding programs.