CSCI 115 Computer Programming Overview. Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Chapter 1: An Overview of Computers and Programming Languages
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Introduction to Java Kiyeol Ryu Java Programming Language.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
Aalborg Media Lab 18-Jun-15 Introduction Introduction to System Design I Fall 2004.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Chapter 3 Software Two major types of software
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
COP 2800 Lake Sumter State College Mark Wilson, Instructor.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
Computer Software.
Program development & programming languages Chapter 13.
Intro to Java Programming  A computer follows the instruction precisely and exactly.  Anything has to be declared and defined before it can be used.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Programming Languages
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Programming 1 1. Introduction to object oriented programming and problem-solving.
CSCI 171 Presentation 1. Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software.
CSCI 130 Chapter 1. History of C Bell Telephone Laboratories (1972) Dennis Ritchie (also created UNIX) A - B - C.
Programming Languages 1.07a.  A computer program is a series of instructions that direct a computer to perform a certain task.  A programming language.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Chapter 1: Introduction to Programs, and Java 1. Objectives To review programs (§ ). To understand the relationship between Java and the World Wide.
POS 406 Java Technology And Beginning Java Code
Clement Allen, PhD Florida A&M University SUMMER 2006.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
Chapt. 10. What’s a Program? A set of instructions -- that lead to the accomplishment of an objective.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
3/5/2009Computer software1 Introduction Computer System Hardware Software HW Kernel/OS API Application Programs SW.
CIS 120 Problem Solving Programming Java. Problem Solving Problem-Solving: the process of defining a problem, searching for relevant information and resources.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
 Programming Language  Object Oriented Programming  JAVA – An Introduction  JAVA Milestones  JAVA Features.
Mixing integer and floating point numbers in an arithmetic operation.
Software Development Programming & Languages. Programming: A Five-Step Procedure Define the problem Design a solution Code the program Test the program.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 3.
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
Programming Languages
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
Introduction to array: why use arrays ?. Motivational example Problem: Write a program that reads in and stores away 5 double numbers After reading in.
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. CSC 110 – INTRO TO COMPUTING - PROGRAMMING Overview of Programming.
CSCI 115 Computer Programming Overview. Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
Introduction to Programming 1 1 2Introduction to Java.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
What Do Computers Do? A computer system is
CSCI-235 Micro-Computer Applications
Chapter 1 Introduction to Computers, Programs, and Java
Chapter No. : 1 Introduction to Java.
Chapter 3.
C++ Programming: From Problem Analysis to Program Design
Chapter 4 Computer Software.
Computer Software CS 107 Lecture 2 September 1, :53 PM.
Building a program (Java libraries) - an example
Introducing Java.
from Lutz Dietrich and Hans Kluge
Presentation transcript:

CSCI 115 Computer Programming Overview

Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software

Language Compilers Programming Generations –5 Generations 1GL - Machine Language 2GL - Assembly Language 3GL - Compiled Languages –Procedural »COBOL »C –OOP »Java »C++ 4GL – SQL 5GL

Programming Languages C –Powerful and flexible FORTRAN –Mathematics and engineering COBOL –Business JAVA –Flexible –Web based 100s of others

History of Java –First started in 1990 as Sun’s Green project Digitally controlled consumer devices identified as trend –Oak –Trend did not grow as expected –1994 – WWW popularity –Netscape packaged Java within browser MS Explorer followed suit –Success ultimately depended on e-commerce

Development Tools 1995 – First JDK released by Sun (1.0) –Very limited JDK 1.1 released –Limited GUI creation 1.2 released –Major change – Swing components –Java 2 SDK release 1.2 –Better known as Java 2

Development Tools Many environments within which to create apps –Any text editor –Eclipse –TextPad

Problem Solving Technique Define Problem Devise plan to fix problem Implement the plan Test

Steps in Java programming cycle Use editor to create source code Compile files Link files Execute program

Number Bases Electronic devices –2-state system: On = 1, Off = 0 –Base 2 Converting from non-decimal to decimal base –Expanded form Converting from decimal to non-decimal base –Repeated division of non-decimal base Calculator

Java Program - Base Conversions import java.util.*; public class Bases { public static void main(String args[]) { Scanner s = new Scanner(System.in); int valToConvert = 0, base = 0; System.out.print("Enter the number to convert: "); valToConvert = s.nextInt(); System.out.println(); System.out.print("Enter the base to convert to: "); base = s.nextInt(); System.out.println(); System.out.print(valToConvert + " in base " + base); System.out.println(" is: " + Integer.toString(valToConvert, base)); System.out.println(); }