15 programming languages

JakeWillson
CIS524ProgrammingAssignmentPreliminaries.docx

CIS524 Programming Assignment Chapter 1 Preliminaries

Due on Monday 02/01/2020 11:59 pm

According to https://www.tiobe.com/tiobe-index/, Jan 2021, the most popular programming languages include C, Java, Python, C++, C#, JavaScript, PHP, R, Groovy, Swift, Go, and Ruby.

For each programming language

a) Write a program that prompts the users to input his/her name, and output “Welcome [name]”. Submit both the program and the snapshot of the running result.

b) Does the programming language provide a compiler which compiles source program to executable machine code (such as myprog.exe)? If yes, show the steps to generate an executable machine code from your source program.

c) Does the programming language provide an interpreter which acts as a software simulation of a machine whose fetch-execute cycle deals with high-level language program statements rather than machine instructions? If yes, explain how to run this interpreter. (For example, run python interpreter just by running $python myprog.py).

d) Does the programming language provide a hybrid implementation – instead of translating intermediate language code to machine code, it simply interprets the intermediate code? If yes, explain how a source be compiled to an intermediate code and then being interpreted. (For example, for Java, you run $javac myprog.java and a byte code myprog.class is generated. Then, you can run $java myprog on any machine).

References for the programming assignment

· C programming language https://www.w3schools.in/c-tutorial/input-output/

· Java programming language https://www.w3schools.com/java/java_user_input.asp

· Python programming language https://docs.python.org/3/library/functions.html#input

· C++ programming language https://www.w3schools.com/cpp/cpp_user_input.asp

· C# programming language https://www.w3schools.com/cs/cs_user_input.asp

· JavaScript language https://www.w3schools.com/js/tryit.asp?filename=tryjs_form_submit

· PHP language https://www.w3schools.com/php/php_forms.asp

· R language https://www.journaldev.com/40628/user-input-in-r

· R language https://www.rdocumentation.org/packages/base/versions/3.3/topics/readline

· Groovy language https://groovy-lang.org/

· Groovy language https://code-maven.com/groovy-read-from-stdin

· Swift language https://press.rebus.community/programmingfundamentals/chapter/swift-examples-2/

· Go language https://www.geeksforgeeks.org/how-to-take-input-from-the-user-in-golang/

· Go language https://tour.golang.org/welcome/1

· Ruby language https://www.ruby-lang.org/en/

· Search “Online compilers” via search engines such as google.com or duckduckgo.com