CS 1
description
Transcript of CS 1
![Page 1: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/1.jpg)
CS 1
This is Computer Science 1.
Who is Professor Adams?
![Page 2: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/2.jpg)
What is CS1
How to get thoughts into the computer. Problem solving Critical thinking Logical thinking Learning JAVA as a first programming
language
![Page 3: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/3.jpg)
Course Resources
An Introduction to Object-Oriented Programming with Java by Wu
Harley Hahn's Student Guide to Unix by Hahn
Course web page: http:\\www.cs.rit.edu\~cs1
Course News group: news:\\news.cs.rit.edu\rit.cs.courses.0603.231
![Page 4: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/4.jpg)
Course Resources
Lecture Notes http:\\www.cs.rit.edu\~jaa\Cs1-Fall00\home.html
Unix Beginners Guide Lecture and Lab Instructors Extra help sessions Teaching Assistants Lab Assistants
![Page 5: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/5.jpg)
Structure
Lecture - MTW 4:00PM to 4:50PM 12-1205
Lab Office Hours
Wednesdays 1 - 3PM Thursdays 3:30 - 5:30PM 10-1184
![Page 6: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/6.jpg)
Schedule
Weekly reading assignments that correspond to lecture and lab assignments.
Weekly lab assignments. Bi-weekly quizzes. Final Exam.
![Page 7: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/7.jpg)
Grade determination
Final Exam 35% Labs 30% Quizzes 35%
![Page 8: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/8.jpg)
Lab Assignments Pre-lab activities and reading. Post-lab exercise. Grading
Each lab is worth 30 points In-lab activities are 20 points Post-lab activities are 10 points
Final lab grade is the average of your highest 9 individual lab grades. A 0 given for cheating will not be dropped.
Grades will be returned via e-mail.
![Page 9: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/9.jpg)
Lab Assignements
Due Dates: Lab assignments are due at the end of the
day two days prior to your next scheduled lab.
No make-ups for missed labs. No late submissions are accepted. Submission for most of you labs will be
electronic.
![Page 10: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/10.jpg)
Quizzes
There are 4 quizzes total. 30 minutes each, lecture will continue. Must be on time for quizzes.
Quizzes WILL NOT be given out to those who are late to class.
No make-ups are given for quizzes. Quizzes are not given early.
![Page 11: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/11.jpg)
Quizzes Grading:
Each question will have a point total associated with it. This total will be determined when the quiz is
created. The point total will be 100.
If you miss a quiz or arrive late for a quiz, you receive a 0.
You final quiz grade is the average of your 3 best quiz scores. A 0 given for cheating will not be dropped.
![Page 12: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/12.jpg)
Final Exam
Date will be announced. A common exam will be given to all
sections at the same time. No make-ups nor early examination.
Comprehensive Coverage: All reading material, all lecture material, and
all lab material.
![Page 13: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/13.jpg)
Academic Honesty
Class Syllabus Department Policy Campus Wide Policy
![Page 14: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/14.jpg)
Why Java?
A disadvantage of using Java is that it is a new language and is changing quickly.
![Page 15: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/15.jpg)
Computers
Difference Engine Charles Babbage - 1823 Computing and printing mathematical
tables.
![Page 16: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/16.jpg)
Computers
Analytical Engine Babbage Compute any calculation by inputting
instructions on punch cards.
![Page 17: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/17.jpg)
Computers
MARK I Howard Aiken from Harvard - 1930s Electromechanical computer based on
relays.
![Page 18: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/18.jpg)
Computers
ENIAC John Mauchly and J. Presper Eckert at the
University of Pennsylvania. First Completely electronic computer.
![Page 19: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/19.jpg)
Computers EDIVAC
John von Neumann at the University of Pennsylvania - 1945
First "Stored" program and data.
![Page 20: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/20.jpg)
Computer Generations
First Generation: Vacuum tubes
Second Generation: Transistors Late 1950's
Third Generation: Integrated Circuits that incorporated
hundreds of transitors. Early 1960s
![Page 21: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/21.jpg)
Networks
Local Area Networks (LAN) Wide Area Networks (WAN) Internet
![Page 22: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/22.jpg)
Architecture
Output DevicesMonitor and printerOutput DevicesMonitor and printer
Input DevicesMouse, keyboard, digital cameras, etc.
Communication DevicesModem, and network interface card
Output DevicesMonitor and printer
Central Processing Unit(CPU)
Executes programs
Contains ALU andregisters
Output DevicesMonitor and printerRandom AccessMemory (RAM)Temporarily storesprogram instructionsand data.Series of cells each4 bytes = 8 bitsVolatile memory
Output DevicesMonitor and printerStorage DevicesFloppy discs, tape,hard drive, and CD-ROMsGigsNon-volatile memory
![Page 23: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/23.jpg)
Programming Languages
Machine languages 01101110 11110101 Only langauge the CPU understands Different computer brands have a different
machine language. Binary code (0 or 1) and very low level.
![Page 24: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/24.jpg)
Programming Languages
Assmebly Languages MV 6, SUM Symbolic operation codes are used to write
programs. Higher level but still arcaric. Also, can be proprietary. Requires an assembler to translate the
program into machine code.
![Page 25: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/25.jpg)
Programming Languages
High-level Langugages "English-like" languages
x = 6;
BASIC, PASCAL, FORTRAN, COBOL, C, C++, JAVA
Requires a compiler and an assembler to translate the program. The compiler translates to assembly language. The assembler translates to machine language.
![Page 26: CS 1](https://reader036.fdocuments.in/reader036/viewer/2022062518/56813fff550346895dab320b/html5/thumbnails/26.jpg)
Java
Java is newer Object-Oriented language. Based on C and C++. Permits the development of Applets or web
based programs as well as traditional applications.
Theoretically, Java is machine independent. The Java bytecode is supposed to be
independent of any particular computer machine hardware.