1 CS1430: Programming in C++ Section 2 Instructor: Qi Yang 213 Ullrich

Slides:



Advertisements
Similar presentations
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
ENGR2216 FORTRAN PROGRAMMING FOR ENGINEERS. Chapter 1 The computer CPU MEMORY INPUT/OUTPUT DEVICES DATA REPRESENTATION BINARY SYSTEM OCTAL & HEXADECIMAL.
CS150 Introduction to Computer Science 1 Professor: Chadd Williams.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
The Analytical Engine Module 6 Program Translation.
CS 201 Overview of Computers & Programming Debzani Deb.
©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.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
If You Missed Last Week Go to Click on Syllabus, review lecture 01 notes, course schedule Contact your TA ( on website) Schedule.
8 November Forms and JavaScript. Types of Inputs Radio Buttons (select one of a list) Checkbox (select as many as wanted) Text inputs (user types text)
CS211 Data Structures Sami Rollins Fall 2004.
CS 110 Intro to Computer Science I Sami Rollins Fall 2006.
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Introduction to C++ Programming CS 117 Section 2 and KNET Sections Spring 2001 MWF 1:40-2:30.
Ceng 230 Programming with C
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.
Introduction to Computing Lecture 1. Instructor: Nadeem Ahmad Khan TA: Haroon Waseem Haroon Waseem.
CS1430: Programming in C++ Section 2 Instructor: Qi Yang 213 Ullrich
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510, Section 2.
CS 2340: Programming in VB Instructor: Dr. Qi Yang Office: 213 Ullrich Phone: YangQ 1.
Introduction COMP104: Fundamentals and Methodology.
1 Please switch off your mobile phones. 2 Prolog: The Initiation ET: Hey Alice! What is this on your desk? Alice: That’s a digital computer. ET: Digital.
CS 2340 Programming in VB.NET Instructor: Dr. Qi Yang Office: 213 Ullrich Phone: YangQ 1.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
CS 1 •This is Computer Science 1. •Who is Professor Adams?
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Topics Introduction Hardware and Software How Computers Store Data
Elements of a C++ program 1. Review Algorithms describe how to solve a problem Structured English (pseudo-code) Programs form that can be translated into.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
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 Agenda Administration Background Our first C program Working environment Exercise Memory and Variables.
Introduction to Computer Systems and the Java Programming Language.
1 Please switch off your mobile phones. 2 WELCOME To ESC101N: Fundamentals of Computing Instructor: Mainak Chaudhuri
1 8/29/05CS150 Introduction to Computer Science 1 Professor: Shereen Khoja
What is programming? Steps to solve a problem. Repeatable by executing or “doing” the steps again. UWP - Landgraf Some slides are from Dr. Qi Yang's notes.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Introduction to computers and programming Instructor: Alex Iskold.
Introduction to Programming Instructor: Yong Tang Brookhaven National Laboratory Working on accelerator control (BNL Phone #)
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
1 CS 1430: Programming in C++ Turn in your Quiz1-1.
The Computer System CS 103: Computers and Application Software.
Structured Programming (4 Credits) HNDIT Week 2 – Learning Outcomes Design an algorithmic solution for simple problem such as computation of a factorial,
Computer Science I CSCI Summer 2009 David E. Goldschmidt, Ph.D.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
WELCOME To ESC101N: Fundamentals of Computing Instructor: Ajai Jain
Introduction Computer Organization Spring 1436/37H (2015/16G) Dr. Mohammed Sinky Computer Architecture
Chapter 1 An Overview of Computers and Programming Languages.
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.
Chapter 1 Introduction to Computer Science
Computer System and Programming
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Programming COMP104: Fundamentals and Methodology Introduction.
CS 2340: Programming in VB Instructor: Dr. Qi Yang Office: 213 Ullrich
Overview of Computers & Programming Languages
Computer Science I CSC 135.
CS 1430: Programming in C++ Turn in your Quiz1-2 No time to cover HiC.
Computers & Programming Languages
COMPUTER 2430 Object Oriented Programming and Data Structures I
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

1 CS1430: Programming in C++ Section 2 Instructor: Qi Yang 213 Ullrich

2 Class Materials CS1430 Course Files K:\Courses\CSSE\CourseFiles\CS1430 My Home Page: Notes, Quizzes, Tests

3 CS1430: Course Outcomes Upon completion of this course, students should be able to: Develop algorithms to solve "computer-solvable" problems. Test algorithms. Translate algorithms to C++ programs. Debug, run and test C++ "procedural" programs. Understand the software development process by using requirements to design, implement and test C++ programs.

4 No Prerequisite Any one can take CS1430 Not any one can pass CS1430 D/F rate: 25-40% Recommendation: –Previous programming experience such as CS 1130 –(Math) –(English)

5 Course Work 11 Labs (drop lowest) 50 6 Programs 120 Quizzes/Assignments 50 3 Tests 180 Final 100 Total 500

6 Grading Grade Total PointsPercentageGrade Points A % 4.0 A % 3.7 B % 3.3 B % 3.0 B % 2.7 C % 2.3 C % 2.0 C % 1.7 D % 1.3 D % 1.0 F Below No Curve!

7 Programs Each Program is REQUIRED. Pass each program or FAIL CS1430! Start Early!

8 Tentative Test Schedule Test 1: Friday of Week 5 Test 2: Friday of Week 9 Test 3: Friday of Week 14

9 Notes Check UWP every day Go to my Web site to get notes and some quizzes To get Programs & Labs, go to K:\Courses\CSSE\CourseFiles\CS1430

10 Good Luck! Come to classes Surprise quizzes? Do the work by yourself Start programs early Get Help

11 Coming to My Office for Help Copy your files before coming for questions K:\Courses\CSSE\yangq\CS1430\Dropbox Name your file as UserName_Labx or UserName_ProgX Examples YangQ_Lab0.cpp YangQ_Prog5.cpp

12 What is a computer? Input Output Storage Network CPU MEMORY

13 Hardware CPU Memory Keyboard Monitor Disk …

14 How to Store Data in Computer Bit Byte Electronic Device On / Off Value: 1 / 0 8 bits Possible combinations

15 How to Store Data in Computer Decimal Number: Binary Number

16 How to Store Data in Computer Binary Number 65 Character ASCII ‘A’ (EBCDIC)

17 ASCII Code Table ‘C’: 67 ‘0’: ABCDE 7FGHIJKLMNO 8PQRSTUVWXY 9Zabc 10def

18 How to Store Data in Computer Word2 bytes (16 bits) Integers Binary Numbers Characters ASCII Unicode Float Numbers? Negative numbers? Double Word4 bytes (32 bits)

19 How to Store Data in Computer KB 1024 Bytes 2 10 MB 1024 * 1024 Bytes 2 20 TB… GB 1024 * 1024 * 1024 Bytes 2 30

20 Software: Programs What is a Computer Program? A sequence of statements in a programming language. High Level Programming Language Low Level Programming Language

21 High Level Programming Languages C++ Java Basic Cobol … English Like Easy to Read and Write (Compared with low level) C++ Code Example Total = Total + Score;

22 Low Level Programming Languages Total = Total + Score; Machine Code Assembly Code Add AX, Score

23 Problem Solving Solve the problem before writing any program Pseudo Code If score is positive Add score to Total Else Display a message

Lab0 No credits Very critical Due time: 5 PM, September 3 Grace time: 5 PM, September 8 K:\Courses\CSSE\CourseFiles\CS

25 Programming Steps Create source code file: Lab0.cpp Compile to machine code: Lab0.obj Link to executable program: Lab0.exe Run Lab0.exe (Other files may be involved)

26 Visual Studio C++ compiler Development Environment Does a lot of work for us We normally don’t see *.obj or *.exe files Available in Labs in Ullrich –Lab 009 –Lab 110 –Lab 206

27 Install Visual Studio on your own PC K:\Academic\ CSSE\Software\VisualStudio2012Templates Install_VS2012.txt Instructions.txt

Lab Help Session Thursday, 10 AM 009 Ullrich Instructors or Pals will be there to help you Regular Labs –0 differences –5 points by Thursday at 5 pm –3 points by the following Tuesday at 5 pm –0 points otherwise 28

29 Quiz1-1 1 point Due Beginning of Class on Friday Print Your Name!