The Software Construction Process. Computer System Components Central Processing Unit (Microprocessor) 01001101 10110101 11011001 10110100 00101011 01011001.

Slides:



Advertisements
Similar presentations
Etter/Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 1 Engineering Problem Solving.
Advertisements

Computer Hardware 4 Main Types.
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
16/13/2015 3:30 AM6/13/2015 3:30 AM6/13/2015 3:30 AMIntroduction to Software Development What is a computer? A computer system contains: Central Processing.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Data Communications and Computer Networks
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Using C Programming Language.  The programs that run on a computer are referred to as software.  You’ll learn key programming methodology that are enhancing.
Using C Programming Language.  The programs that run on a computer are referred to as software.  You’ll learn key programming methodology that are enhancing.
CS102 Introduction to Computer Programming
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CS 161 INTRO TO PROGRAMMING I Dr. Blaise W. Liffick Fall
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
How Computers Work. A computer is a machine f or the storage and processing of information. Computers consist of hardware (what you can touch) and software.
The Internal Components of a Personal Computer (PC)
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
CISC105 General Computer Science Class 1 – 6/5/2006.
Chapter 1 Introduction to Computers In this chapter we describe the major components of a computer system and explain how information is represented in.
UniMAP Sem1-08/09EKT120: Computer Programming1 Week 1 – Lecture 1.
Introduction to Computer Systems and the Java Programming Language.
Overview of Programming and Problem Solving Textbook Chapter 1 1.
CIS-165 C++ Programming I CIS-165 C++ Programming I Bergen Community College Prof. Faisal Aljamal.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
The Software Construction Process. Computer System Components Central Processing Unit (Microprocessor)
Computing Systems & Programming ECE Fundamental Concepts Chapter 1 Engineering Problem Solving.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Chapter 1 09/04/13. Change Your Password  The command is: passwd In the lab first do : ssh -Y onyx  You will have to see me to change it, if you forget.
Chapter 1 Getting Acquainted With Computers, Programs, and C++
UniMAP Sem2-10/11 DKT121: Fundamental of Computer Programming1 Introduction to C – Part 1.
Chapter 1 Introduction to Computers, the Internet and the Web.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Principles of Programming CSEB134 : BS/ CHAPTER Fundamentals of the C Programming Language.
 Kim  Allen  Kenneth. Chapter 1 Computer Fundamentals.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
By Kundang K Juman Hardware & Software. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing.
Introduction to Programming By: Prof. Muhammad Abu Baker Siddique 2 nd Lecture 1.
WHAT IS COMPUTER ? . A computer is a complex system consisting of both hardware and software components.
Identify internal hardware devices (e. g
Chapter 1 Introduction 2nd Semester H
BASIC PROGRAMMING C SCP1103 (02)
Engineering Problem Solving With C An Object Based Approach
CSC201: Computer Programming
BASIC PROGRAMMING C SCP1103 (02)
Chapter 1: An Overview of Computers and Programming Languages
The Software Construction Process
C++ Programming: From Problem Analysis to Program Design
Chapter 1: Introduction to Computers and Programming
Computer Science I CSC 135.
Computer Electronic device Accepts data - input
Introduction CSC 111.
Hardware & Software Programming. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing unit.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Computer Electronic device Accepts data - input
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Presentation transcript:

The Software Construction Process

Computer System Components Central Processing Unit (Microprocessor) Secondary Storage (Hard Drive, CD-ROM Drive) Primary Storage (RAM) Input Devices (Mouse, Keyboard) Output Devices (Monitor, Printer) Communications Bus Network Interface Devices (Modem, Network Card) Interne t

A Software Requirement Develop a program that finds and prints all numbers between 1 and 10,000 that are divisible by both 7 and 3. For each number found, display the number and the product of the two quotients.

The Requirement and the Design Develop a program that finds and prints all numbers between 1 and 10,000 that are divisible by both 7 and 3. For each number found, display the number and the product of the two quotients. Set number to 1 Number less than or equal to 10,000 Number divisible by 7 Number divisible by 3 Print number information Increment number by 1 S F Yes No

Boards, Tubes, and Patch Cables Application Program

Setting Switches Application Program

I/O Devices and Operating System Application Program Operating System

Assembly Language, Monitor, and Keyboard Application Program Operating System LOOP: LOAD A, R1 LOAD 7, R2 TEST R1, R2 BRZ LOOP Assembler

Compiler (Syntax and Semantics) Application Program Operating System Assembler Compiler #include int main (void) { int anAnswer; float aValue; anAnswer = aValue / 3; printf(“%d\n”,anAnswer); return 0; }

Algorithm in C Source Code aNumber = LOWNUMBER; while (aNumber <= HIGHNUMBER) { firstQuotient = aNumber / FIRSTDIVISOR; if ( (aNumber % FIRSTDIVISOR) == 0 ) { secondQuotient = aNumber / SECONDDIVISOR; if ( (aNumber % SECONDDIVISOR) == 0) { theProduct = firstQuotient * secondQuotient; printf("%d %7.2f %7.2f %8.2f\n",aNumber, firstQuotient, secondQuotient, theProduct); } // End if } // End if aNumber++; // Increment aNumber by one Note: This is only a portion of the complete C program

From Requirements to Running Program Software Design program.c (Source Code) program.o (Object Code) program.exe (Executable Code) Software Requirements Text Editor Compiler (and Preprocessor) Linker Operating System Design Method Design Fundamentals Coding Standards C Header Files Function Libraries Input/Output Facilities

Software Construction Process EDIT and SAVE COMPILE LINK RUN TEST and SQA BASELINE DESIGN Requirements A B C D E Note: See next slide for meanings of A - E

Categories of Errors A: Compiler errors – doesn’t follow preprocessor or C syntax B: Linker errors – functions declared but not defined; no main function; function library not found C: Run-time errors – segmentation fault; out-of- range errors; wrong data types D: Logic errors – wrong use of control statements; errors in function arguments; algorithm coded incorrectly E: Design errors – doesn’t follow design or satisfy requirements; design has flaws