1 / 24

Introduction to CSIS

Introduction to CSIS. Our Faculty Some of our students!. Department of Computer Science & Information Systems Faculty. Introduction to Problem Solving Lecture. CSC 145 Dr. Brenda Wilson. Problem Solving. Algorithm - set of instructions for accomplishing a task

Download Presentation

Introduction to CSIS

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to CSIS • Our Faculty • Some of our students!

  2. Department of Computer Science & Information Systems Faculty

  3. Introduction to Problem SolvingLecture CSC 145 Dr. Brenda Wilson

  4. Problem Solving • Algorithm - set of instructions for accomplishing a task • unambiguous (“A little salt”) • effective (correct answer?) • finite (except for continuous processing) • Computer Program - algorithm suitable for execution on a computer

  5. ANSI says you are a device that can perform substantial ... . What am I? Definition A machine that can accept data, process the data, at high speeds , and give the results in an acceptable form with option of saving data & results.

  6. Does not compute!! Figure the deductions Then tell me... What we have here is a failure to communicate...

  7. What does a computer understand??? 110001001110 Machine Language

  8. Compiler/ Interpreter Assembler Needs Translation!! • High-Level Languages • Pascal, C++, Ada, Java • VisualBasic, Cobol, Fortran,etc. • Assembly Language • Machine Language

  9. Interpreter Vs. Compiler • Interpreter • translates & executes one line at a time • Compiler • translates entire program & then executes

  10. Executing a Compiled Program High Level Language Compile Object Module Build Load Module Execute (Run)

  11. Terms used to describe High Level Languages • Structured – vs. spaghetti code • Procedural – programmer/task driven • Event-Driven • Object-Oriented – class,attributes, etc.

  12. Beginning: Do You Understand? • How problem is presented: • Required Results • Given Info • Process • How Program is written: • Given Info • Perform Processing • Req.Results • Input-Process-Output

  13. Tools Used for Algorithm Development • I/O Chart -- to analyze input & output • I O Gross Pay Deductions Net Pay Names Hrly Rates Hours Wrkd

  14. Tools Used for Algorithm Development Structure Chart- to show major tasks & subtasks

  15. Module In Out Tools Used for Algorithm Development • Top Down Design: Use pseudocode or flowchart (to show how each module works) • Module Interface Table : to show how each module shares data with other modules in the program

  16. Sender (Programmer) good overall picture good generalizing terrible at details slow!!! Receiver (Computer) good at details fast!!! terrible at overall picture terrible at new situations & inference Programming Language : set of notations & rules for combining notations to communicate algorithms

  17. Programming Languages • Syntax - set of formal rules determining valid constructions • Semantics - rules determining precise meaning of valid constructions in the language • “Bug”

  18. Proper Grammar Whoops!! Should be a quotation not apostrophe! (Ada) Put (“Enter the radius..’); Get(radius) Uh Oh!! Left off the semicolon! SYNTAX...

  19. What is meant?? The chicken is ready to eat. SEMANTICS...

  20. Computer Operations • Perform arithmetic • Compare 2 pieces of information & take alternative actions • Receive & give out information • Repeat any group of these operations • Save any information for later use

  21. 5 Operations of the Computer…examples in different languages

  22. Repetition Branching Loops Fundamental Control Structures In Programming

  23. Homework / Quiz “heads up” • Read chapter 0 in text. Answer #6 in the exercises. • Suggestion: Use a google search on computer jargon to find a site to look up the words. • Be prepared for a quiz!!

More Related