COMS 1040: Brief Introduction to Computer Programming for Non-Majors
Credits: 2. Contact Hours: Lecture 1.5, Discussion 0.5.
Offered first 8 weeks and last 8 weeks. Introduction to problem-solving; Python shell, print statement, arithmetic, and types; variables and assignment statements; using functions; reading input, and string concatenation; conditional statements; nested; conditionals and the elif statement; writing our own functions; value-returning functions; boolean operators; testing and incremental development; debugging; binary arithmetic and data encoding; strings, brackets, and lists; string operations; for-loops and number ranges; examples using for-loops; while-loops; reading text file; writing text file; file paths and command shells and other essential topics. Emphasis on applying Python to analyze real-world problems and develop functional solutions.No prior computer experience necessary. (Typically Offered: Fall, Spring)