# DEPARTMENT OF COMPUTER SCIENCE

## CS 1010: INTRODUCTION TO PROGRAMMING

Course Description

Algorithms. Programming language features: expressions, assignments, functions with parameters, conditions, loops, arrays. Several programming assignments required. Does not apply to the computer science major. Prerequisite: two years of high school algebra or MATH 0950. Extra fee. Approved for Distance Ed.

Course Syllabus

• Introduction to Visual Basic
• Constants (Boolean, Integer, Long, Single, Double, Currency, Date, String, Variant)
• Public and Private
• Declaring variables (names, types, public/private, default values)
• Assignment statement
• Arithmetic expressions
• MsgBox function
• InputBox function
• Logical Operators
• Comparison operators
• if...then... else... end if
• if...then...end if
• Select case statement
• Loops in Visual Basic
• Do While condition... loop
• Do ... loop until condition
• For var = start To end{Step increment} ... Next var
• For Each element In group ... next element
• DoEvents
• Nested loops
• Testing for sentinel values
• Testing and debugging your Code
• Using the Debug window
• Stepping through a program
• Using the Calls dialog box to trace procedure calls
• Subroutines and Functions
• Subroutines and functions without parameters
• Value parameters
• Name parameters
• Built-in procedures
• Arrays
• Declaring one dimensional arrays
• Assigning values to an array
• Passing arrays to procedures
• Sequential search
• Sorting algorithm
• Dialog boxes
• Built-in dialog boxes
• Custom dialog boxes
• Algorithms
• Sequential Search
• Finding minimum/maximum
• Bubble Sort
• Binary Search (optional)
• Selection Sort (optional)
• Visual Basic and Access databases
• Active X controls
• Records in database tables
• Reports from database tables

Note

Five to seven Visual Basic assignments will be given during the semester.

Student Learning Outcomes

• I have the ability to explain the fundamental concepts of the four control flows.
• I can utilize a wide range of the features available in Visual Studio.
• I can analyze program requirements in order to understand what type of data and processes are involved in the solution.
• I can design a modular approach to satisfy those requirements, and organize program code to implement the design.
• I can verify that the results obtained satisfy the original requirements.