Discussion Unit 1 - Describe the differences between an imperative programming language and a non-imperative PDF

Title Discussion Unit 1 - Describe the differences between an imperative programming language and a non-imperative
Author Mahmudul Hoque
Course Comparative Programming Languages
Institution University of the People
Pages 3
File Size 91.7 KB
File Type PDF
Total Downloads 67
Total Views 148

Summary

Describe the differences between an imperative programming language and a non-imperative programming language. You must provide examples of each type of language as part of your response. Further, discuss an example of where you would use an imperative language and a situation where a non-imperat...


Description

Describe the differences between an imperative programming language and a non-imperative programming language. You must provide examples of each type of language as part of your response. Further, discuss an example of where you would use an imperative language and a situation where a non-imperative language would be better. Your discussion must explain why the selected language makes sense.

ALSO: What is your favorite type of music?

Hopefully I am not the only one to have some difficulty understanding imperative versus nonimperative languages, given that “most programming today is still done in imperative languages” (Ben-Ari, 2006, p. xii) those are the ones we generally encounter, have learned about, and with which we are most familiar. These include Fortran, Cobol, Pascal, C/C++, Ada, Java, and many, many more (Ben-Ari, 2006). For myself, I find it helpful to consider the dictionary definition of imperative which is “having the format that expresses a command rather than a state or a question” (Merriam-Webster, n.d.). Here is a little bit of Java that is expressly commanding the computer to perform a sequence of steps: public class Main { public static void main(String[] args) { String string = "Hello"; int max = 10; for (int i=1; i...


Similar Free PDFs