Computer Programming for Engineers CMPSC 201C Fall 2000
Instructor Dr. Susan Quick Office: 125 Pond Lab Phone: Office Hrs: Mon., Wed., 9:30 – 11:30 a.m. Thurs. 1:30 – 3:00 p.m. Tues. and Fri. by appointment (24 hours notice)
Teaching Assistants Susteric Nidhi Agrawal Narasimhamuthy
Instructor Will be honest and direct with you and expect the same in return from you. Will try to be consistent and fair to all students.
Course Objectives Introductory course in computer programming. Assumes no computer science background. Solving problems of a general nature using C++. Understand algorithms and be able to write programs of moderate complexity
Textbooks Essential C++ for Engineers and Scientists, Jeri R. Hanly Introduction to Matlab, Delores M. Etter and David C. Kunicky
Computer Use Use the Visual C++ compiler on the IBM PCs in CAC Labs Access UserID and password At least 2 3.5” diskettes
Grades Two midterm examinations points each Exam 1Tuesday 9/26 at 6:30 P.M. Exam 2Monday 11/6 at 8:15 P.M. Final examination 250 points Time and date will be announced by University Homework Assignments 250 points Recitation 100 points Total 1000 points
Large Class ßLectures ßAttend! ßAsk questions ßMore responsibility on student ßBe courteous to neighbor ßRecitations ßAttend ßMore one to one
General Information Lectures will not follow texts exactly Expected to attend class Responsible for material covered in class, announcements, assignments Exam grades will not be individually curved!
General Information (Cont.) Copies of handouts will be on shelves outside my office Assignments should be done using C++ compiler on PCs in CAC labs Some exam questions may be based on these computers
General Information (Cont.) Assignments and files placed on Network I drive Class web page
Questions?
What is a computer Electronic device Tool Not a “magic” black box
Advantages Fast Reliable Does not get tired Does what you tell it
Disadvantages Does what you tell it Is only as good as the programs and data that are entered ===> GIGO Has no intuitive skill
What can a computer do? Simple arithmetic Comparisons/decision making Communication
Block diagram of a computer Input Units Output Units Arithmetic Logic Unit Control Unit Memory Primary Storage Central Processing Unit Secondary Storage
Primary Storage Unit Read Only Memory Random Access Memory Basic Input/Output System
Memory Organization Two circuit states correspond to 0 and 1. Bit (short for binary digit) refers to a single 0 or 1. Bit patterns represent both the computer instructions and computer data. 1 byte = 8 bits 1 KB = 1024 bytes 1 MB = 1024 x 1024 = 1,048,576 bytes Word = amount of memory that computer views as a single unit
Memory
Operating system Your Program data
Input Devices Keyboard Mouse Disk(s) Tape drives Touch screen etc.
Output Devices Monitor/Cathode Ray Tube Disks CDs Printers etc.
Secondary (Auxiliary) Storage Disk Drives Hard/fixed/internal Floppy CD Removable Media
Remember Memory (primary storage) is different from disk space (secondary storage)!
Hardware vs Software Hardware Physical Components Anything you can touch! Software Anything that is not hardware programs
Various types of software Operating Systems Application Software Games Utilities
Algorithm vs Program Algorithm: Step-by-step process for solving a problem in a finite time. Program: Algorithm translated into a language
Remember! ßAll programs are algorithms, but not all algorithms are programs!
Questions ????