Learning about Programming Languages By Mike and Sean

Learning about Programming Languages By: Mike and Sean

Brief Histories – C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system. It is not an objected oriented language. – Java is a programming language originally developed by Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. Java is object oriented. – Python was made in the late 1980 s by Guido van Rossum in the Netherlands as a successor to the ABC programming language. Python is an object oriented language.

Concepts • Aspects all programming languages share: – Booleans – Primitive data type have one of two values: True or False if(x!=0) { printf(“True”); } else { printf(“False”): }

…Concepts Continued – Loops – Series of commands repeated until condition becomes false. – Condition – A Boolean expression used to control loops. i=0; while(i<5) { printf(“Hello World!n”); i++; }

More Concepts – Comments – Notes in the program for programmers, not shown in program. /* This will not be printed */ – Nesting – Putting one thing inside something else, such as a nested loop. i=0, j; while(i<5) { for(j=0; j<3; j++) { printf(“Hello World!n”); } i++; }

Project Progress • We have learned the second of three example we will use to illustrate the differences between the languages— String arrays. • We have started to learn about Object oriented vs. non object orientated languages and will explain briefly the differences and meanings of these during the next presentation.

Ex. Of String Arrays C • Python name = raw_input(“What is your name? “) Print name (Don’t have to worry about overloading the memory) char word[10]; int i = 0; scanf("%s", word ); printf("%sn", word); return 0; } (This is only one way to do it in C, but you have to worry about overloading the memory, using the other way, you have to remember ‘ ’ at the end of every string. )
![Ex. Of String Arrays cont • Java class String. Character { static String[] roseindia={"chanan", Ex. Of String Arrays cont • Java class String. Character { static String[] roseindia={"chanan",](http://slidetodoc.com/presentation_image_h2/a79e0e564414cdaf58e4cae138782f01/image-8.jpg)
Ex. Of String Arrays cont • Java class String. Character { static String[] roseindia={"chanan", "tapan", "Amar", "santosh", "deepak"}; public static void main(String args[]){ for(int i=0; i<5; i++){ System. out. println(roseindia[i]); } } }

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: 9