1.) Java:
Java is a programming language that creators and programmers use to produce applications on the computer. Java and JavaScript are not the same programming language. They are a little similar to each other, but they are also very different. Java is an Object Oriented Programming (OOP) language. Java was created by James Gosling of Sun Microsystems and released in 1995. Java can stand alone unlike JavaScript where it needs to be inside an HTML document to work. Java is commonly used to run web-applications like Google Documents and mobile games in phones or tablets. Not only is Java used in computers and mobile devices, Java is also used in many cars today.
2.) Python:
Python is an interpreted, versatile, interactive, and object-oriented programming language that is widely used and is one of the easier forms of programming languages that one can begin to learn. It was created by Guido van Rossum and was released in February 1991. Python was named after Monty Python. It is a portable programming language. It runs on the Mac and on PCs that are under MS-DOS, Windows, Windows NT, and OS/2. Python is oftenly used by thousands of people to create testing microchips at Intel, to powering websites social media sites like Instagram, YouTube, and Dropbox. Additionally, Python is also used to create video games.
3.) Ruby:
Ruby is a kind of programming language that focuses on object-oriented and general-purpose programming. It was created in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan. Ruby is used widely for many purposes, but it is commonly known for building Web-Applications. Ruby is also encouraged by many to one of the first programming languages to learn since it one of the easier languages to learn. Once programmers who are new to the language understand Ruby, they can begin creating websites and web applications using Ruby on Rails, a collections of pre-written code that uses and rely on the Ruby programming language.
4.) C++:
C++ is another programming language that is commonly used and known today. It was developed in 1979 by Bjarne Stroustrup at Bell Labs. C++ is an extension of C language and is also called a hybrid language for it is a combination of both procedural and object oriented programming language. C++ is very versatile and is oftenly used everywhere for almost everything. It mostly used to design large systems and write large-scale commercial applications. It is also used to develop game engines, desktop applications, art applications, and video games.
This is the Python code for my Equations Assignment:
a = 5 + 7
print "5 + 7"
print a
print "\n"
m = 6 * 9
print "6 * 9 ="
print m
print "\n"
s = 8 - 10
print "8 - 10 ="
print s
print "\n"
d = 396/9
print "396/9 ="
print d
This is the Python code for my Greetings Assignment:
print "Hello! Thanks for visiting this page! I hope you have a nice day! :)"
print "\n"
print "Welcome to my page for my Greetings Assignment!"
There are many differences between my JavaScript code and my Python code. For my Equations Assignment, I did not use any variables in my JavaScript code. I directly displayed my lines of code using strings and the document.write method. However, I needed variables in my Python code to make my code for the Equations Assignment to work properly. Also in my Python code, I used the print statement to display the equations and the answers on the web page. For my Greetings Assignment, I used a window.alert method and document.write method in JavaScript to display my messages on my web page. On the other hand, there was no code that would work similar to a window.alert method in Python. So instead, I had to use the print statement to display both messages. Variables in Python are different from variables in JavaScript. To make a variable in JavaScript, you have to type var and the name of your variable equals the value of your variable (Ex: var x = 5;). In Python, you do not have to add the var before the variable name; you just have to type in a word or letter and make it equal a value (Ex: e = 90 - 10). Displaying data is also different in JavaScript and Python. In JavaScript, you can use document.write(), window.alert(), console.log(), and document.getElementById(name of id). In Python, some statements you can use to display on a page is print or println. The last thing that I found different betweent the two codes is line break. To make a line break in JavaScript, I needed to type <br> tag. For Python, I had to type "\n" to make the line break.
To go back to my main site, press me!