Microsoft Imagine All KU students currently enrolled in a CS class are eligible to receive Microsoft software, including Operating Systems development.

Slides:



Advertisements
Similar presentations
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
Advertisements

Computer Components.
COMPUTER SYSTEM CAN BE DIVIDED INTO : 1- General Computer 2- Special Computer.
COSC 120 Computer Programming
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Wednesday, 9/4/02, Slide #1 1 CS 106 Intro to CS 1 Wednesday, 9/4/02  Today: Introduction, course information, and basic ideas of computers and programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Computer Hardware.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
COMPUTER DEVICES Input Devices Output Devices Storage Devices
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Tools make jobs easier to do -A computer is a tool used by many professions A computer can do many different jobs because they are programmable - Machine.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Overview of Programming and Problem Solving Textbook Chapter 1 1.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
What is a computer? Computer is a device for processing information.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Computer Systems Mrs. Butera. Computer Systems Hardware Software.
Parts of the Computer System
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Computer Based Systems Stage 2 Information Technology Studies Computer & Communication Systems.
Senem KUMOVA METİN // Fall CS 115 Introduction to Programming Introduction to Computing.
Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing Algorithms Using Pseudocode Programming.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2015, 2012, 2009 Pearson Education, Inc., Publishing as Addison-Wesley All rights reserved. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming
Java Programming: From the Ground Up
BASIC PROGRAMMING C SCP1103 (02)
Introduction to Computers and C++ Programming
Chapter 1: An Overview of Computers and Programming Languages
Engineering Problem Solving With C An Object Based Approach
Chapter 1: An Overview of Computers and Programming Languages
BASIC PROGRAMMING C SCP1103 (02)
DDC 1023 – Programming Technique
Chapter 1. Introduction to Computers and Programming
Chapter 1: An Overview of Computers and Programming Languages
CSCI 161: Introduction to Programming
C++ Programming: From Problem Analysis to Program Design
Computer Parts There are many parts that work together to make a computer work.
08/28/06 parts of the computer.
Chapter 1: Introduction to Computers and Programming
Computer Electronic device Accepts data - input
Starting Out with C++: From Control Structures through Objects
National Diploma in Computer Studies
From Problems to Algorithms to Programs
Reminders Please turn off cell phones.
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Computer Electronic device Accepts data - input
ICS103 Programming in C 1: Overview of Computers And Programming
Chapter 1: Introduction to Computers and Programming
08/28/06 parts of the computer.
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Microsoft Imagine All KU students currently enrolled in a CS class are eligible to receive Microsoft software, including Operating Systems development tools some application software Does not include MS Office Find more information from http://www.kutztown.edu/academics/colleges-and-departments/liberal-arts-and-sciences/departments/computer-science-and-information-technology/student-resources.htm

GA office hours Graduate Assistants in GA Office (OM 255) Fall 2017 Hours Mon-Thur 9:00am – 6:00pm Fri 9:00am – 3:00pm Feel free to come and ask questions about 135 assignments

Putty You can download Putty (on Windows) from http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe Download it to desktop or any folder you like Standalone program, no need to install Double click to run To configure Putty (?) http://cs.kutztown.edu/resources/UnixWorkshop/index.html

Computer Hardware

Computer hardware CPU (Central Processing Unit) Main memory: fast access, temporary storage, smaller capacity RAM (Random Access Memory) Secondary memory: slow access, permanent storage, larger capacity Hard disc, flash drive, CD

Random Access Memory Know difference between Random access content of a memory location address of a memory location Random access Given the address of a memory location Can access the location in one clock cycle Regardless of the location accessed in previous cycle Random access vs. Sequential access DVD vs. Video tape

Input/Output (I/0) devices Input devices Keyboard, mouse, scanner, video cam, microphone Output devices Monitor, speaker, printer

Computer Programs A set of instructions (like a recipe) Two kinds of programming languages Low-level language or Machine language 1011010000000101 High-level language (more human readable) C++, Java, etc.

Compiler A computer program Example Process translates a program in high-level language into a program in machine language Example Process g++ hello.cpp a.out

Common elements of C++ language Keywords Reserved words (~two dozen) Programmer-Defined Identifiers Variable, function Operators Arithmetic operators, logical operators

Common elements of C++ language Syntax Grammar, rules that must be followed Learn to be detail-oriented Comments or Documentation Must follow the department’s standard http://cs.kutztown.edu/pdfs/Documentation_Standard.pdf

A sample program 1 // This program calculates the user's pay. 2 #include <iostream> 3 using namespace std; 4 5 int main() 6 { 7 double hours, rate, pay; 8 9 // Get the number of hours worked. 10 cout << "How many hours did you work? "; 11 cin >> hours; 12 13 // Get the hourly pay rate. 14 cout << "How much do you get paid per hour? "; 15 cin >> rate; 16 17 // Calculate the pay. 18 pay = hours * rate; 19 20 // Display the pay. 21 cout << "You have earned $" << pay << endl; 22 return 0; 23 }

Key Words 1 // This program calculates the user's pay. 2 #include <iostream> 3 using namespace std; 4 5 int main() 6 { 7 double hours, rate, pay; 8 9 // Get the number of hours worked. 10 cout << "How many hours did you work? "; 11 cin >> hours; 12 13 // Get the hourly pay rate. 14 cout << "How much do you get paid per hour? "; 15 cin >> rate; 16 17 // Calculate the pay. 18 pay = hours * rate; 19 20 // Display the pay. 21 cout << "You have earned $" << pay << endl; 22 return 0; 23 } Refer to Page 60

Programmer-Defined dentifiers 1 // This program calculates the user's pay. 2 #include <iostream> 3 using namespace std; 4 5 int main() 6 { 7 double hours, rate, pay; 8 9 // Get the number of hours worked. 10 cout << "How many hours did you work? "; 11 cin >> hours; 12 13 // Get the hourly pay rate. 14 cout << "How much do you get paid per hour? "; 15 cin >> rate; 16 17 // Calculate the pay. 18 pay = hours * rate; 19 20 // Display the pay. 21 cout << "You have earned $" << pay << endl; 22 return 0; 23 }

Operators 1 // This program calculates the user's pay. 2 #include <iostream> 3 using namespace std; 4 5 int main() 6 { 7 double hours, rate, pay; 8 9 // Get the number of hours worked. 10 cout << "How many hours did you work? "; 11 cin >> hours; 12 13 // Get the hourly pay rate. 14 cout << "How much do you get paid per hour? "; 15 cin >> rate; 16 17 // Calculate the pay. 18 pay = hours * rate; 19 20 // Display the pay. 21 cout << "You have earned $" << pay << endl; 22 return 0; 23 }

Punctuation 1 // This program calculates the user's pay. 2 #include <iostream> 3 using namespace std; 4 5 int main() 6 { 7 double hours, rate, pay; 8 9 // Get the number of hours worked. 10 cout << "How many hours did you work? "; 11 cin >> hours; 12 13 // Get the hourly pay rate. 14 cout << "How much do you get paid per hour? "; 15 cin >> rate; 16 17 // Calculate the pay. 18 pay = hours * rate; 19 20 // Display the pay. 21 cout << "You have earned $" << pay << endl; 22 return 0; 23 }

Summary Computer hardware Programming language CPU, RAM, Secondary memory, I/O Programming language Machine language, high-level language, compiler Basic components of a C++ program Keywords, programmer-defined ID, punctuation, operators, syntax, comments