Download presentation
Presentation is loading. Please wait.
Published byDylan Stevenson Modified over 9 years ago
1
Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/2009_Fall_185/ CprE 185: Intro to Problem Solving (using C)
2
Introduction and First Program CprE 185: Intro to Problem Solving Iowa State University, Ames, IA Copyright © Alexander Stoytchev
3
Outline Class Overview Syllabus First Program
4
A silly question How many of you know how to read and write?
5
Well, this was not always the case
6
A silly question How many of you know how to read and write? program
7
Today programming is becoming a required skill for many jobs
8
Language Acquisition
9
[http://www.wellroundedkids.com/store/Accessories/wooden%20alphabet%20puzzle.jpg]]
10
[http://www.usm67.org/alphabet/images/alphabet.jpg]
11
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.
12
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
13
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
14
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
15
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++)
16
This is not…
17
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!
18
Syllabus Posted on the Class Web Page: http://www.ece.iastate.edu/~alexs/classes/2009_Fall_185/ http://www.ece.iastate.edu/~alexs/classes/2009_Fall_185/
19
REQUIRED TEXTBOOK 5th edition
20
6 th edition REQUIRED TEXTBOOK
21
Labs Section K: Tuesdays, 10:00 - 11: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)
22
Midterm Exams Wed. Sep 22 Wed. Oct. 28
23
WebCT Submission of Homeworks Discussion threads Anonymous Course Feedback
24
First Program
25
C Program Structure int main(int argc, char* argv[]) {}{} #include // comments about the program printf(“Hello World! \n”); return 0;
26
C Program Structure int main(int argc, char* argv[]) {}{} #include All programs must have a main function
27
C Program Structure int main(int argc, char* argv[]) {}{} #include main function body Comments can be placed almost anywhere
28
C Program Structure int main(int argc, char* argv[]) {}{} #include // comments about the program printf(“Hello World! \n”); return 0;
29
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!”);
30
Questions/Comments?
31
THE END
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.