Learning about Programming Languages By Mike and Sean

Learning about Programming Languages By: Mike and Sean

Goals -Discuss the following languages -C, Java, Python, Scheme, Assembly -Identify the strengths and weaknesses of the languages. -Describe brief history for each language. -Give easy, medium, and advanced examples of a program for each language.

Plan • Learn the basic concepts of the languages • Learn what all the languages have in common • See what aspects of the languages differ – Ex • Arrays are different among the languages • Functions differ between languages (Java uses methods, Python and Scheme uses procedures)

Ex. “Hello World” • Java • Python class Hello. World. App{ print “Hello World!” public static void main(String[] args) { • Scheme System. out. println(“Hello (begin World!); (display “Hello, World!”) (newline)) • C #include<stdio. h> int main() { printf(“Hello World!”); return 0; }

Concepts • Aspects all programming languages share: – Booleans – Primitive data type have one of two values: True or False – Loops – Series of commands repeated until condition becomes false. – Condition – A Boolean expression used to control loops. – Comments – Notes in the program for programmers, not shown in program. – Nesting – Putting one thing inside something else, such as a nested loop.

References • Natural programming languages and environments Source Communications of the ACM archive Volume 47 , Issue 9 (September 2004) table of contents End-user development: tools that empower users to create their own software solutions • SPECIAL ISSUE: End-user development table of contents • • • Pages: 47 - 52 Year of Publication: 2004 ISSN: 0001 -0782 Authors Brad A. Myers John F. Pane Andy Ko Publisher ACM New York, NY, USA Bibliometrics Downloads (6 Weeks): 19, Downloads (12 Months): 167, Citation Count: 11
- Slides: 6