Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)

Slides:



Advertisements
Similar presentations
Lecture Computer Science I - Martin Hardwick The Programming Process rUse an editor to create a program file (source file). l contains the text of.
Advertisements

Chapter 1: Computer Systems
Programming Languages
Programming with Java. Problem Solving The purpose of writing a program is to solve a problem The general steps in problem solving are: –Understand the.
IntroductionIntroduction  Computer program: an ordered sequence of statements whose objective is to accomplish a task.  Programming: process of planning.
1 Kursusform  13 uger med: Undervisning i klassen 1,5-2 timer Opgave ”regning” i databar (løsninger på hjemmeside) En midtvejsopgave der afleveres og.
The Java Programming Language
C Programming Basics Lecture 5 Engineering H192 Winter 2005 Lecture 05
Outline Java program structure Basic program elements
Chapter 1 Introduction. © 2004 Pearson Addison-Wesley. All rights reserved1-2 Outline Computer Processing Hardware Components Networks The Java Programming.
COMP 14: Intro. to Intro. to Programming May 23, 2000 Nick Vallidis.
Chapter 1 Introduction.
Copyright 2013 by Pearson Education Building Java Programs Chapter 1 Lecture 1-1: Introduction; Basic Java Programs reading:
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Java Software Solutions Foundations of Program Design Sixth Edition by Lewis.
Java Software Solutions Lewis and Loftus Chapter 2 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Software Concepts -- Introduction.
Java: Chapter 1 Computer Systems Computer Programming II Aug
JAVA PROGRAMMING PART II.
Prepared by Uzma Hashmi Instructor Information Uzma Hashmi Office: B# 7/ R# address: Group Addresses Post message:
COMPUTER PROGRAMMING. Data Types “Hello world” program Does it do a useful work? Writing several lines of code. Compiling the program. Executing the program.
1 Identifiers  Identifiers are the words a programmer uses in a program  An identifier can be made up of letters, digits, the underscore character (
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley John Lewis, Peter DePasquale, and Joseph Chase Chapter 1: Introduction.
© 2006 Pearson Education Computer Systems Presentation slides for Java Software Solutions for AP* Computer Science A 2nd Edition.
Java: Chapter 1 Computer Systems Computer Programming II.
Java Language and SW Dev’t
1 Computer Systems -- Introduction  Chapter 1 focuses on:  the structure of a Java application  basic program elements  preparing and executing a program.
Introduction to Programming David Goldschmidt, Ph.D. Computer Science The College of Saint Rose Java Fundamentals (Comments, Variables, etc.)
The Java Programming Language
Introduction. Objectives An overview of object-oriented concepts. Programming and programming languages An introduction to Java 1-2.
C Derived Languages C is the base upon which many build C++ conventions also influence others *SmallTalk is where most OOP comes Java and Javascript have.
Hello.java Program Output 1 public class Hello { 2 public static void main( String [] args ) 3 { 4 System.out.println( “Hello!" ); 5 } // end method main.
Chapter 2: Java Fundamentals
Page: 1 การโปรแกรมเชิงวัตถุด้วยภาษา JAVA บุรินทร์ รุจจนพันธุ์.. ปรับปรุง 15 มิถุนายน 2552 Keyword & Data Type มหาวิทยาลัยเนชั่น.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Java The Java programming language was created by Sun Microsystems, Inc. It was introduced in 1995 and it's popularity has grown quickly since A programming.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 5P. 1Winter Quarter C Programming Basics.
Variables and Data Types.  Variable: Portion of memory for storing a determined value.  Could be numerical, could be character or sequence of characters.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 5P. 1Winter Quarter C Programming Basics Lecture 5.
1 Problem Solving b The purpose of writing a program is to solve a problem b The general steps in problem solving are: Understand the problemUnderstand.
Java Language Basics By Keywords Keywords of Java are given below – abstract continue for new switch assert *** default goto * package.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Quick Review of OOP Constructs Classes:  Data types for structured data and behavior  fields and methods Objects:  Variables whose data type is a class.
© 2011 Pearson Education, publishing as Addison-Wesley Chapter 1: Computer Systems Presentation slides for Java Software Solutions for AP* Computer Science.
Introduction to Java Programming by Laurie Murphy Revised 09/08/2016.
Copyright 2010 by Pearson Education APCS Building Java Programs Chapter 1 Lecture 1-1: Introduction; Basic Java Programs reading:
1 Problem Solving  The purpose of writing a program is to solve a problem  The general steps in problem solving are: Understand the problem Dissect the.
C++ Lesson 1.
Asst.Prof.Dr. Tayfun ÖZGÜR
Working with Java.
Lecture 2: Data Types, Variables, Operators, and Expressions
University of Central Florida COP 3330 Object Oriented Programming
Reserved Words.
null, true, and false are also reserved.
Introduction to Java Programming
CS-0401 INTERMEDIATE PROGRAMMING USING JAVA
An overview of Java, Data types and variables
Instructor: Alexander Stoytchev
Chapter 1: Computer Systems
CprE 185: Intro to Problem Solving (using C)
Govt. Polytechnic,Dhangar
Units with – James tedder
Units with – James tedder
JavaScript Reserved Words
Instructor: Alexander Stoytchev
Focus of the Course Object-Oriented Software Development
Module 2 - Part 1 Variables, Assignment, and Data Types
2. Second Step for Learning C++ Programming • Data Type • Char • Float
Programming Language C Language.
CSE 142, Spring 2012 Building Java Programs Chapter 1
Instructor: Alexander Stoytchev
Agenda Types and identifiers Practice Assignment Keywords in Java
Presentation transcript:

Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)

Introduction and First Program CprE 185: Intro to Problem Solving Iowa State University, Ames, IA Copyright © Alexander Stoytchev

Outline Class Overview Syllabus First Program

A silly question How many of you know how to read and write?

Well, this was not always the case

A silly question How many of you know how to read and write? program

Today programming is becoming a required skill for many jobs

Language Acquisition

[

[

The C Programming Language A programming language specifies the words and symbols that we can use to write a program A programming language employs a set of rules that dictate how the words and symbols can be put together to form valid program statements The Java programming language was developed in the 1970’s at Bell Labs It is one of the most popular and powerful programming languages used today.

Reserved Words in C auto break case chart const continue default do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while

Reserved Words in Java abstract boolean break byte case catch char class const continue default do double else enum extends false final finally float for goto if implements import instanceof int interface long native new null package private protected public return short static strictfp super switch synchronized this throw throws transient true try void volatile while

Focus of the Course This is an intro to problem solving and programming class (that uses the C programming language) The focus is on  problem solving  the logic of programming  program design, implementation, and testing  The fundamentals of programming

What this class will NOT cover We will not go into details of programming GUIs We will not cover many of the advanced programming concepts in C We will not cover many of the stantard functions and libraries that come with C We will not cover object oriented programming (C++)

This is not…

Warning Learning how to program takes a lot of time! It also requires a lot of patience. You cannot learn how to program by just reading the textbook. You have to spend long hours in front of the computer. If you want to learn how to program well you will have to take at least 2-3 other programming classes as well. This class alone is not enough!

Syllabus Posted on the Class Web Page: 

REQUIRED TEXTBOOK 5th edition

6 th edition REQUIRED TEXTBOOK

Labs Section K: Tuesdays, 10: :50am (Coover, room 2018) Section E: Tuesdays, 12:10 - 2:00pm (Coover, room 2018) Section G: Tuesdays, 2:10 - 4:00pm (Coover, room 2018) Section F: Wednesdays, 10:00 -11:50pm (Coover, room 2018) Section J: Wednesdays, 12:10 - 2:00pm (Coover, room 2018)

Midterm Exams Wed. Sep 22 Wed. Oct. 28

WebCT Submission of Homeworks Discussion threads Anonymous Course Feedback

First Program

C Program Structure int main(int argc, char* argv[]) {}{} #include // comments about the program printf(“Hello World! \n”); return 0;

C Program Structure int main(int argc, char* argv[]) {}{} #include All programs must have a main function

C Program Structure int main(int argc, char* argv[]) {}{} #include main function body Comments can be placed almost anywhere

C Program Structure int main(int argc, char* argv[]) {}{} #include // comments about the program printf(“Hello World! \n”); return 0;

Java Program Structure public class MyProgram {}{} // comments about the class public static void main (String[] args) {}{} // comments about the method System.out.println(“Hello World!”);

Questions/Comments?

THE END