CSE 1340 Introduction to Computing Concepts Class 2.

Slides:



Advertisements
Similar presentations
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Advertisements

Lecture 1: Overview of Computers & Programming
Overview of Programming and Problem Solving ROBERT REAVES.
Chapter 1 - An Introduction to Computers and Problem Solving
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
This set of slides is provided by the author of the textbook1 Introductory Topics (Continued) l Computer Components l Basic Control Structures l Problem.
COSC 120 Computer Programming
1 Chapter 1 Introduction to Object-Oriented Programming.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
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.
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
Introduction to Computers and Programming
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Chapter 1 Introduction to Computers and C++ Programming.
CS102 Introduction to Computer Programming
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
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.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Lesson 3 — How a Computer Processes Data
INTRODUCTION TO COMPUTER PROGRAMMING itc-314 LECTURE 01.
An Overview of Using Computers
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
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.
Copyright © 2012 Pearson Education, Inc. Chapter 1 Introduction to Computing and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
1 Introduction to Computers Lect 1 Won’t tell you much you don’t know. (Misleading– the course gets more conceptual as we create webpages.) Will go into.
1 Overview of Programming and Problem Solving Chapter 1.
Overview of Programming and Problem Solving Textbook Chapter 1 1.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
STARTING OUT WITH STARTING OUT WITH Class 2 2 Review of course requirements: Homework due Thursday at beginning of class-- no lates accepted Programs.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Chapter 1: Introduction to Computers and Programming.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Copyright © 2015, 2012, 2009 Pearson Education, Inc., Publishing as Addison-Wesley All rights reserved. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming
BASIC PROGRAMMING C SCP1103 (02)
Introduction to Visual Basic 2008 Programming
BASIC PROGRAMMING C SCP1103 (02)
DDC 1023 – Programming Technique
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
An Introduction to Visual Basic .NET and Program Design
Chapter 1: Introduction to Computers and Programming
VISUAL BASIC – CHAPTER ONE NOTES An Introduction to Visual Basic
Chapter 1 Introduction(1.1)
ICS103 Programming in C 1: Overview of Computers And Programming
Programming Logic and Design Eighth Edition
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

CSE 1340 Introduction to Computing Concepts Class 2

Review of course requirements: Homework due Tuesday at beginning of class-- no lates accepted Programming assignments due during lab hour or at the latest, 5pm the next day Student’s responsibility to have work turned in on-time or early. Programs and their associated files must be uploaded to Blackboard by the due date/time

Review of course requirements: –Incentives for coming to class lecture on Tuesdays and Thursdays Unannounced quizzes Unannounced fun logical quizzes and bonus opportunities given for getting back points lost on turned in homework assignment for that week Interactive Class notes distributed

Review of course requirements: Must enroll in a lab Lab sessions are mandatory Pop Quizzes cannot be made up Homework cannot be made up Programs can be turned in late BUT only 1 day late; no late points assessed Make-up exams only given if documented excuse has been submitted BEFORE exam

Communication Office hours via –Please identify yourself Blackboard address – (use your 8 digit smu id for your userid and password)

Synchronization of passwords You can change your password in Blackboard by going to your homepage and clicking on “change password” in the upper right-hand corner of the window.

Class 02 objectives List the basic components of a computer system Understand what a Computer Program is List the Programming Life-Cycle Phases Describe the characteristics of Java Explain the uses of Java and identify types of Java programs.

Computer Systems: Hardware and Software Hardware --- the equipment Software --- programs that run the equipment

Computer Components-- Hardware Arithmetic Logic Unit Control Unit Secondary (Auxiliary) Storage Device Memory Unit ( RAM & Registers ) Central Processing Unit ( CPU ) Input Device Output Device Peripherals

Memory Unit is an ordered sequence of storage cells, each capable of holding a piece of information each cell has its own unique address the information held can be input data, computed values, or your program instructions.

Central Processing Unit has 2 components to execute program instructions – Arithmetic/Logic Unit performs arithmetic operations, and makes logical comparisons. – Control Unit controls the order in which your program instructions are executed.

Peripherals are input, output, or auxiliary storage devices attached to a computer – Input Devices include keyboard and mouse. – Output Devices include printers, video display, LCD screens. – Auxiliary/Secondary Storage Devices include disk drives, scanners, CD-ROM and DVD-ROM drives, modems, sound cards, speakers, and digital cameras.

WHAT IS A PROGRAM? A program is a step-by-step series of instructions for a computer Computer programming is the process of writing these instructions Programmers, or developers, design and write programs using a programming language or development tool Java is a programming language that provides the structure for efficient and economical programs

1. Display a message on the screen asking “How many hours did you work?” 2. Wait for the user to enter the hours. Once the user enter the hours, store it in memory 3. Display a message on the screen that asks “How much do you get paid per hour?” 4. Wait for the user to enter the rate of pay. Once the user enters the rate, store it in memory 5. Multiply hours by rate and store the result in memory as gross pay 6. Display the gross pay A SET OF INSTRUCTIONS Page 7

Inside the Program INPUT PROCESSING OUTPUT sum = sum + number; number =keyboard.nextInt(); System.out.print(sum);

The Programming Process Analyze the requirements –Precisely define what problem is to be solved Design the solution –flowchart –pseudocode Validate the design Implement the design –Code the program Test (debug) the solution (compile/run) –Syntax errors –Logical errors Document the program

Program Development Cycle

Phase 1 – Analyze the Requirements Verify that the requirements are clear and complete Evaluate the problem to determine that it is solvable using a program List the required input and output data Determine whether the input data is available for testing

Phase 1 – Analyze the Requirements Ensure that a solution, or algorithm, can be developed with the information provided in the requirements Verify the user interface specifications

Requirements Document p. 13

Phase 2 – Design the Solution Develop a logical model that illustrates the sequence of steps you will take to solve the problem Use design tools such as storyboards, class diagrams, flowcharts, and pseudocode to outline the logic of the program

Phase 2 – Design the Solution Storyboards are sketches of the user interface

Phase 2 – Design the Solution Flowcharts graphically represent the logic used to develop an algorithm Control structures allow the programmer to specify the code that will execute only if a condition is met Flowcharts use pseudocode, English, or mathematical notation inside symbols to represent the steps of a solution

Flowcharting symbols p. 17

Phase 2 – Design the Solution Pseudocode is an English representation of how the program code should be written

Phase 3 – Validate the Design The programmer steps through the solution with test data The user agrees that the program design solves the problem put forth in the requirements The user verifies that the initial requirements document contains all necessary requirements

Phase 4 – Implement the Design Write the code that translates the design into a program Create the user interface Create comments within the code that explains the purpose of the code Unit testing –Test the code as it is written Test related code

Phase 4 – Implement the Design

Phase 5 – Test the Solution Create a test plan with test cases of sample input data and expected output Perform integration testing to ensure that components interact correctly Test boundary values Document any problems –If results are unsatisfactory, a new iteration of the development cycle begins

Phase 6 – Document the Solution Requirements documents, program design documents, user interface documents, and documentation of the code Test cases and proof of successful completion of testing Program code should be archived electronically

Programming languages A special language used to write computer instructions consisting of –Key Words Words that have a special meaning Can only be used for their inteded purpose. –Programmer-Defined Symbols Words or names defined by the programmer

–Operators Operators perform operations on one or more operands(a piece of data) –Punctuation Punctuation characters that mark the beginning of a statement, or separate items in a list –Syntax Rules that must be followed when constructing a program

Conclusion of Class 2