Docsity

Introduction - Advanced Programming - Lecture Slides, Slides of Advanced Computer Programming

Partial preview of the text

Download Introduction - Advanced Programming - Lecture Slides and more Slides Advanced Computer Programming in PDF only on Docsity!

Chapter Objectives

  • Learn about the history of computers
  • Learn to differentiate between system and

application software

  • Learn the steps of software development
  • Explore different programming methodologies
  • Learn why C# is being used today for software

development

Chapter Objectives ( continued)

  • Distinguish between the different types of

applications

  • Explore a program written in C#
  • Examine the basic elements of a C# program
  • Compile, run, build, and debug an application
  • Create an application that displays output

History of Computers

  • Computing dates back 5,000 years
  • Currently in fourth or fifth generation of modern computing
  • Pre-modern computing
    • Abacus
    • Pascaline (1642)
    • Analytical Engine (1830 – Charles Babbage & Lady Lovelace)

History of Computers ( continued)

Figure 1-1 The abacus, the earliest computing device

History of Computers ( continued)

Figure 1-2 Intel chip

History of Computers ( continued)

  • Fourth generation – computer manufacturers brought computing to general consumers - Introduction of IBM personal computer (PC) and clones (1981)
  • Fifth generation – more difficult to define
    • Computers accept spoken word instructions
    • Computers imitate human reasoning through AI
    • Computers communicate globally
    • Mobile and wireless applications are growing

Processor (continued)

Figure 1-3 CPU’s instruction cycle

System and Application Software

  • Software consists of programs
    • Sets of instructions telling the computer exactly what to do
  • Two types of software
    • System
    • Application
  • Power of what the computer does lies with what types of software are available

Software (continued)

Figure 1-4 A machine language instruction

Application Software

  • Application software performs a specific task
    • Word processors, spreadsheets, payroll, inventory
  • Writes instructions using a high-level

programming language

  • C#, Java, Visual Basic
  • Compiler
  • Translates instructions into machine-readable form
  • First checks for rule violations
  • Syntax rules – how to write statements

Steps in the Program Development

Process

  1. Analyze the problem
  2. Design a solution
  3. Code the solution
  4. Implement the code
  5. Test and debug
  6. Use an iterative approach

Figure 1-9 Steps in the software development process

Steps in the Program

Development Process

(continued)

  • Software development

process is iterative

  • As errors are discovered, it

is often necessary to cycle back to a previous phase or step

Analyze the Problem (continued)

Figure 1-5 Program specification sheet for a car rental agency problem

Analyze the Problem (continued)

  • What kind of data will be available for input?
  • What types of values (i.e., whole numbers, alphabetic characters, and numbers with decimal points) will be in each of the identified data items?
  • What is the domain (range of the values) for each input item?
  • Will the user of the program be inputting values?
  • If the problem solution is to be used with multiple data sets, are there any data items that stay the same, or remain constant , with each set?