advertisement

Introduction to Computer Programming in C www.ccsa126.wikispaces.com Lecture 1: Outline • Introduction • Course Syllabus • • • • Learning Objectives Textbooks Labs Grading • Installing / using Visual Studio 2010 Introduction to programming What is programming and programming languages? • Computers are really very dumb machines indeed because they do only what they are told to do. • computer systems perform their operations on a very primitive level For example, know how to add one to a number or how to test whether a number is equal to zero. • The basic operations of a computer system form what is known as the computer’s instruction set Cont • To solve a problem using a computer, you must express the solution to the problem in terms of the instructions of the particular computer. • A computer program is just a collection of the instructions necessary to solve a specific problem. • The approach or method that is used to solve the problem is known as an algorithm. Example • to develop a program that tests if a number is odd or even, the set of statements that solves the problem becomes the program. • The method that is used to test if the number is even or odd is the algorithm. • to develop a program to solve a particular problem, • first express the solution to the problem in terms of an algorithm and then • develop a program that implements that algorithm. cont • the algorithm for solving the even/odd problem might be expressed as follows: • First, divide the number by two. If the remainder of the division is zero, the number is even; otherwise, the number is odd. • you can then proceed to write the instructions necessary to implement the algorithm on a particular computer system. These instructions would be expressed in • the statements of a particular computer language, such as Visual Basic, Java, C++, or C. Programming in c Learning Objectives •First course in Computer Programming • No previous knowledge is assumed ! •By the end of the course, students will: • Understand fundamental concepts of computer programming/imperative structured programming languages • Design algorithms to solve (simple) problems • Use the C programming language Textbook • Stephen Kochan, Programming in C, 3rd Edition, Sams Publishing, 2005 • Main (first) textbook for this course • Teaches you how to program (in C) • Follows an approach suited for a first programming language Policies and Grading • Lectures: can be interactive, with questions and interactive problem solving • Labs: mandatory attendance • Each lab session has a practical programming assignment to be done individually in class • Read lecture slides and corresponding textbook chapters before attending the lab session ! • Final grade: • • • • 10 Programming Assignments Midterm Exam 25% Final Exam 45% Total 100% 30% Course chapters [Kochan] • Some Fundamentals • Compiling and Running your First C Program • Variables, Data Types, and Arithmetic Expressions • Input and output • Program Looping • Making Decisions • Working with Arrays • Working with Functions • Putting it all together IDE Microsoft visual studio 2010 / any edition Installing VS 2010 • After downloading the installation exe file we should extract it Installing VS 2010 Installing VS 2010 • Installation options Installing VS 2010 • Installation in progress Installing VS 2010 • We should exit all Microsoft running Apps Installing VS 2010 • We must check all the supported packages we need Installing VS 2010 • We must check all features we want to install Installing VS 2010 Installing VS 2010