cs211 data structures
Download
Skip this Video
Download Presentation
CS211 Data Structures

Loading in 2 Seconds...

play fullscreen
1 / 12

CS211 Data Structures - PowerPoint PPT Presentation


  • 57 Views
  • Uploaded on

CS211 Data Structures. Sami Rollins srollins@mtholyoke.edu Fall 2004. Introduction. Course Website Syllabus Academic Dishonesty Tentative Calendar. Administrative Information. Class web page http://www.mtholyoke.edu/courses/srollins/cs101/. Assignments. Reading – Chapter 1

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' CS211 Data Structures' - zeph-singleton


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
cs211 data structures

CS211Data Structures

Sami Rollins

srollins@mtholyoke.edu

Fall 2004

introduction
Introduction
  • Course Website
  • Syllabus
  • Academic Dishonesty
  • Tentative Calendar
administrative information
Administrative Information
  • Class web page

http://www.mtholyoke.edu/courses/srollins/cs101/

assignments
Assignments
  • Reading – Chapter 1
  • Homework 0 – due Monday
computer hardware
Computer Hardware
  • Main memory
  • Secondary memory
  • CPU
  • Input devices
  • Output devices
computer software
Computer Software
  • Operating system
    • Examples?
  • Applications
    • Examples?
  • How is a new application developed?
computer programs
Computer Programs
  • At the lowest level – machine instructions
    • 00000111000
  • One step up – assembly language
    • ADD A
  • More user friendly – high level languages
    • C = A + B;
    • Examples?
translation
Translation
  • High level language must be translated into a language the computer can understand

High-level

Code

Compiler

Machine

Instructions

writing programs
Writing Programs
  • Understand requirements
  • Write an algorithm
  • Implement your algorithm
  • Test your code
what is an algorithm
What is an algorithm?
  • A specific set of instructions
  • An algorithm to make a PBJ sandwich?
hello world
Hello World

/*

* Name: Sami Rollins

* Source file name: hello.c

* My first "hello, world" program in C.

*/

#include <stdio.h>

//the main function

int main (void)

{

//print the phrase

printf("Hello, world!");

return(0);

}

errors
Errors
  • You WILL have errors in your programs
  • Syntax Errors
    • Compiler doesn’t understand code
    • Ex. – printf(Hello, world!”);
    • Sometimes error messages don’t match problem
  • Logic
    • Program runs, but doesn’t do what you want
    • Ex. – printf(“Hell, world!”);
    • Can be hard to track down
ad