{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture1.pdf - Computer Programming Using C COP 3275 –...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Computer Programming Using C COP 3275 – Spring 2018 Lecture 1: [email protected] {"C"}" /*"Programming"*/" By Ahmed E. Khaled “Computer Science” ? •  CS is a discipline that involves understanding and designing of computers and [email protected] processes that deal with soOware systems to solve problems. •  With a central focus of handling / [email protected] [email protected], many problems in healthcare, business, and other areas can be solved eff[email protected] with computers and existence of domain knowledge. “Computer” ? •  Simply a set of small electronic switches that are either on or off! •  With different [email protected] of these switches, you instruct the computer to do something (e.g. display something on the monitor). Computers use a simple language (Known as Machine Language) that consists of only 1s and 0s, where 1 means "on" and 0 means "off.” •  Trying to talk to a computer in Machine Language is hard !, thus a programming language acts as a translator between you and the computer that simply telling a computer what to do. User High level Language translator Machine Language Computer •  Specialized program known as a compiler takes the [email protected] wri^en in the programming language and converts them to machine language. “Programming Language” ? •  PL is a special language used by programmers to develop programs (sets of [email protected]) that involve a computer to perform some kind of [email protected] •  A program does nothing more than tell the computer to accept input, manipulate it, and output results in some form. •  As any language, PL is split into two components: ²  Syntax: defines the form and rules to write program. ²  Seman;cs: defines the meaning and logic behind. Examples on programs ! Program Inputs Word Editor Characters you type from keyboard Game Stock Market Predictor What the Program Does Program Outputs Formats the text and Displays / prints corrects spelling neatly organized text Keystrokes or Calculates how fast [email protected] and far to move the movements figure on-­‐screen Current and past prices for stocks Tries to recognize trends in a stock's price fl[email protected] Moves a cartoon figure on-­‐screen Predicts the future price of a stock Applica'on programs Word, games, database Systems So7ware [email protected] systems, device drivers, compilers Machine with all hardware components Logical Units of a Computer System: •  Input unit (e.g. Mouse, keyboard) •  Output unit (e.g. Printer, monitor, audio speakers) •  Arithme;c and logic unit (ALU): Performs [email protected] •  Memory unit: Stores the running program, retains input and processed info •  Central processing unit (CPU): execute instruc;ons and Supervises [email protected] of other devices •  Secondary storage unit (e.g. Hard-­‐drives): store data and programs that are not running at that ;me. Summary •  Computer switches •  Machine language ...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern