CS110/CS119 Introduction to Computing (Java) Bob Wilson S-3-176

Similar documents
Lecture 4: Introduction to Java and your Development Environment

CSc 2310 Principles of Programming (Java) Jyoti Islam

CSC116: Introduction to Computing - Java

Index. Course Outline. Grading Policy. Lab Time Distribution. Important Instructions

CSC116: Introduction to Computing - Java

CSC116: Introduction to Computing - Java

How to Install (then Test) the NetBeans Bundle

Getting Started with Java. Atul Prakash

Class 1: Homework. Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017

BOSTON UNIVERSITY Metropolitan College MET CS342 Data Structures with Java Dr. V.Shtern (Fall 2011) Course Syllabus

The Command Shell. Fundamentals of Computer Science

CHAPTER 1 Introduction to Computers and Java

CS 11 java track: lecture 1

CS307: Operating Systems

CS1110 Lab 1 (Jan 27-28, 2015)

Object-Oriented Programming in Java

IT151: Introduction to Programming (java)

Spring 2018 El Camino College E. Ambrosio. Course Syllabus

Chapter 1: Introduction to Computers and Java

8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java

Using Eclipse for Java. Using Eclipse for Java 1 / 1

Scientific Computing: Lecture 1

CS420: Operating Systems. OS Services & System Calls

CS 177 Recitation. Week 1 Intro to Java

Structured Programming

Lecture 2 Operating System Structures (chapter 2)

Lecture 1: Overview of Java

Department of Computer Science. Software Usage Guide. CSC132 Programming Principles 2. By Andreas Grondoudis

Welcome (back) to CS1007!

CHAPTER 2: SYSTEM STRUCTURES. By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

BCIS 3630 Dr. GUYNES SPRING 2018 TUESDAY SECTION [JAN version] GRADER COURSE WEBSITE

Java Software Solutions For Ap Computer Science A 2nd Edition

Programming in Java Prof. Debasis Samanta Department of Computer Science Engineering Indian Institute of Technology, Kharagpur

Introduction to Java. Lecture 1 COP 3252 Summer May 16, 2017

CPS109 Lab 1. i. To become familiar with the Ryerson Computer Science laboratory environment.

Object Oriented Concepts and Programming (CSC244) By Dr. Tabbasum Naz

3D Graphics Programming Mira Costa High School - Class Syllabus,

Chapter 2 Operating-System Structures

CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28) First Name: Last Name: NetID:

Introduction to Data Structures

CSS 161 Fundamentals of Compu3ng. Introduc3on to Computers & Java September 26, Instructor: Uma Murthy CSS SKL 161 A Instructor: Joe McCarthy

Chapter. Focus of the Course. Object-Oriented Software Development. program design, implementation, and testing

Programming Principles 1 (CSC131) & 2 (CSC132) Software usage guide

CompSci 125 Lecture 02

Compilers for Modern Architectures Course Syllabus, Spring 2015

Central Washington University Department of Computer Science Course Syllabus

Mathematics/Science Department Kirkwood Community College. Course Syllabus. Computer Science CSC142 1/10

Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy

CS 121 Intro to Programming:Java - Lecture 2. Professor Robert Moll (+ TAs) CS BLDG

Slide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto

Introduction to Computer Systems

CSCI 136 Data Structures & Advanced Programming. Fall 2018 Instructors Bill Lenhart & Bill Jannen

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)

Outline. CIS 110: Introduction to Computer Programming. What is Computer Science? What is computer programming? What is computer science?

CS 378 (Spring 2003) Linux Kernel Programming. Yongguang Zhang. Copyright 2003, Yongguang Zhang

CSCI455: Introduction to Programming System Design

Computational Applications in Nuclear Astrophysics using Java Java course Lecture 1

CS240: Programming in C

Lecture 1: Introduction to Java

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG

CS4023 Week04 Lab Exercise

Introduction to Computer Systems

CS 170 Java Tools. Step 1: Got Java?

Kickstart Intro to Java Part I

Chapter 2: Operating-System Structures

Certified Core Java Developer VS-1036

Introduction to Java Programming

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Chapter 2. Operating-System Structures

CS 190C: Introduction to Computational Thinking

Programming for Engineers in Python

CS 3030 Scripting Languages Syllabus

Chapter 2: Operating-System Structures

Operating-System Structures

CS 209 Section 52 Lab 1-A: Getting Started with NetBeans Instructor: J.G. Neal Objectives: Lab Instructions: Log in Create folder CS209

If you click the links in this document or on the class website and get a logon screen:

An Introduction to Software Engineering. David Greenstein Monta Vista High School

Introduction to Parallel Computing

Welcome. Orientation to online CPS102 Computer Science 2 (Java 2)

Orientation for Online Students

Integrated Software Environment. Part 2

CptS 360 (System Programming) Unit 1: Introduction to System Programming

CS 170 Java Tools. Step 1: Got Java?

SOFTWARE ARCHITECTURE

Today. Review. Unix as an OS case study Intro to Shell Scripting. What is an Operating System? What are its goals? How do we evaluate it?

Advanced Object-Oriented Programming Introduction to OOP and Java

Chapter 2: Operating-System Structures

Chapter 1: A First Program Using C#

Lab 1 Introduction to UNIX and C

CS 241 Data Organization. August 21, 2018

Operating Systems CS3502 Spring 2018

AP Computer Science A Summer Assignment 2017

Getting Started with Eclipse/Java

COMP 321: Introduction to Computer Systems

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

CSCI 201 Lab 1 Environment Setup

Chapter 2: Operating-System Structures. Chapter 2: Operating-System Structures. Objectives. Operating System Services

Code Ninjas: Introduction to Computer Science. Macomb Science Olympiad Presented by Swati Dharia

Transcription:

CS110/CS119 Introduction to Computing (Java) Bob Wilson bobw@cs.umb.edu S-3-176 1

CS110 vs CSIT114/CSIT115 Two tracks for starting CS curriculum at UMB CS110 is a traditional one semester introduction to computer science and Java programming CSIT114 and CSIT115 are a new two semester sequence covering the same material (similar to the first two CS courses at a community college) Decide which track is correct for you Some experience with programming CS110 Otherwise, consider CSIT114 and CSIT115 2

Welcome to CS110 Textbook is Lewis and Loftus, Java Software Solutions, Foundations of Program Design, 7 th Ed. (The 6 th Ed. is also acceptable) The course syllabus is on my CS110 website: http://www.cs.umb.edu/~bobw/cs110/index.html Go to the UNIX/PC lab (Science Bldg 3 rd floor) Apply for a UNIX/PC account You will need that account to upload your project files 3

Welcome to CS110 I recommend that you print copies of my lecture notes from the web and bring them to each lecture session One lab session each week In one of the Healey Library General Use Labs Hands-on work associated with the lectures Lab report must be turned in the following week We ll go through the syllabus now 4

Homework Assignments We assume that you are computer literate: Word Processing, Email, Web Browsing, Downloading Applications, etc. Reading for today: L&L, 1.1 1.3 & App B We won t cover this material in class, but you are responsible for knowing it in homework or on exams If you are totally unfamiliar with this material or have a hard time with it, please see me! Reading for next class: L&L, 1.4-1.6, Lab 1: Using Dr Java and Sun Java SDK 5

Types of Software (Programs) Computers are very powerful pieces of hardware that can t do much useful work until they are properly programmed There are three different types of software: Operating Systems Application Programs Software Development Tools (or Kits) As a computer programmer, you may need to use and/or write any or all three types of programs 6

Operating System Programs O/S programs control the hardware and allow application programs to be executed An O/S is usually built to run on a specific underlying hardware platform, e.g. PC, MAC, or server Generally these are the most complex types of programs to write and test Examples: M/S DOS, Windows, UNIX, Linux, Solaris, etc. 7

Application Programs Apps perform useful work for their users Apps are usually built to run on a specific operating system (and maybe a specific underlying hardware platform) Users typically need to provide a lot of information about their job tasks for a programmer to write a good application program for that purpose Examples: Word, Excel, PowerPoint, Chrome, etc. 8

Software Development Tools Software Development Tools or Kits (SDK s) are specialized application programs that allow programmers to write and test programs Experienced programmers generally prefer an Integrated Development Environment (IDE) Examples (that we ll be using in this course): Sun s Java SDK (sometimes called JDK) Dr Java IDE 9

Styles of User Interface There are two predominant styles of User Interface for any type of program: Command Line Interface (CLI) Graphical User Interface (GUI) As a computer programmer, you must be able to use and/or write programs for both styles of user interface 10

Styles of User Interface Command Line Interface (CLI) Computer types a Prompt requesting input User types a Command with Parameters Predominantly an old style of interaction that does not require a lot of computer power, but still in use today in some O/S and applications Considered to be NOT user friendly, but is very efficient when combined with scripting Example: DOS prompt, command & parameter C:\ >type file.txt (display the contents of the file) 11

Styles of User Interface Graphical User Interface (GUI) Computer displays a combination of text and graphical symbols offering options to the user User manipulates mouse and uses keyboard to select from the offered options ( hot keys ) or to enter text More common now (computer power is cheap) Considered by most to be user friendly Examples: M/S Windows/Office or MAC O/S 12

Software Development Tools Using Sun Java SDK alone Command Line Interface Programmer Editor Source File(s) (.java) Compiler (javac) Class File(s) (.class) Virtual Machine (java) Program executes Parts of Sun Java SDK 13

Using Sun Java SDK Alone Example DOS Commands and Parameters C:\ > edit HelloWorld.java (Create/edit source file in an external window) C:\ > javac HelloWorld.java (creates.class file) C:\ > java -classpath HelloWorld Hello World C:\ > exit 14

Software Development Tools We will use a combination of the Dr Java IDE and the Sun Java SDK Programmer Graphical User Interface Dr Java IDE Edit Build Run Source File(s) (.java) Compiler (javac) Class File(s) (.class) Virtual Machine (java) Program executes Parts of Sun Java SDK 15

On-line Demonstration: Dr Java 16

Program Development Steps Classical Waterfall Development Steps Edit and save source code Errors Build source code to create program Errors Run program and evaluate results 17

Errors A program can have three types of errors: The IDE editor and/or compiler will find syntax errors and other basic problems (compile-time errors) If compile-time errors exist, an executable version of the program is not created A problem can occur during program execution, such as trying to divide by zero, which causes a program to terminate abnormally (run-time errors) A program may run, but produce incorrect results, perhaps using an incorrect formula (logical errors) 18