ch01 - Programming Logic and Design Chapter 1 Seventh...

This preview shows page 1 - 9 out of 37 pages.

Programming Logic and DesignSeventh EditionChapter 1An Overview of Computers andProgramming
ObjectivesIn this chapter, you will learn about:Computer systemsSimple program logicThe steps involved in the program development cyclePseudocode statements and flowchart symbolsUsing a sentinel value to end a programProgramming and user environmentsThe evolution of programming models2Programming Logic and Design, Seventh Edition
Understanding Computer SystemsComputer system Combination of all the components required to process and store data using a computerHardware Equipment associated with a computerSoftware Computer instructions Tells the hardware what to doProgramsInstructions written by programmers3Programming Logic and Design, Seventh Edition
Understanding Computer Systems (continued)Application software such as word processing, spreadsheets, payroll and inventory, even gamesSystem software such as operating systems like Windows, Linux, or UNIXComputer hardware and software accomplish three major operationsInputDataitemssuch as text, numbers, images, and soundProcessingCalculations and comparisons performed by the central processing unit (CPU)4Programming Logic and Design, Seventh Edition
Understanding Computer Systems (continued)OutputResulting information that is sent to a printer, a monitor, or storage devicesafter processingProgramming languageUsed to write computer instructionsExamplesVisual Basic, C#, C++, or JavaSyntaxRules governing word usage and punctuation5Programming Logic and Design, Seventh Edition
Understanding Computer Systems (continued)Computer memoryComputer’s temporary, internal storage – random access memory(RAM)Volatile memory – lost when the power is ofPermanent storage devicesNonvolatilememoryCompiler or interpreterTranslates source code into machine language (binary language) statements called object codeChecks for syntax errors6Programming Logic and Design, Seventh Edition
Understanding Simple Program LogicProgram executesor runsInput will be accepted, some processing will occur, and results will be outputPrograms with syntax errors cannot executeLogical errorsErrors in program logic produce incorrect outputLogicof the computer programSequence of specific instructions in specific orderVariable Named memory location whose value can vary7Programming Logic and Design, Seventh Edition
Understanding the ProgramDevelopment CycleProgram development cycleUnderstand the problemPlan the logic

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture