CMPSC 201- Spring 2017 Lecture 1 January 9, 2017.

Similar presentations


Presentation on theme: "CMPSC 201- Spring 2017 Lecture 1 January 9, 2017."— Presentation transcript:

1 CMPSC 201- Spring 2017 Lecture 1 January 9, 2017

2 Welcome to CMPSC 201

3 Instructor Dr. Susan L. Quick Office: 111 J IST building
Phone: or CANVAS (do not use any other !) Office hours: M 3:45 – 5:30pm and W 11:00am – 1:30pm or by appointment (request should be made by noon of the preceding day). Appointments are generally reserved for those students who have classes during my office hours.

4 TAs Yanjun Gao Yu-Tsung Lee Srikumar Sridhar

5 Course Expectations No previous programming experience is expected.
However, do expect you to be familiar with windows, know how to save files, know how to use folders and subfolders. I will also expect you to read the book, answer the problems in the book (see syllabus), and attend lecture. Take notes. Spend at 6 – 9 (or more) hours per week, reading book, practicing examples, doing problems from book, etc.

6 Copies of Lecture Notes
Copies of the lectures will usually be posted on CANVAS prior to class. You should be prepared to take additional notes. You should still read the sections in the textbook that pertaining to a lecture before you come to class (refer to the Tentative Schedule posted on CANVAS).

7 Computer Use C++ is part Microsoft Visual Studio and is available in this lab or any of the ITS labs across campus. It is recommended that you buy a USB drive (jump drive, flash drive, etc.) to store your programs.

8 Places to Get Visual Studio
Two places where you may be able to get a copy of Visual Studio are Please note that these versions may not operate exactly the same as the full version. (You will be graded on how your programs run with the full version). I will not provide any support on installing or using these versions.

9 Grades Labs – short C++ programs that you complete during designated class times. In-class participation – use of iclickers, during M-W lectures. Algorithms – You will create MSword documents defining a problem in your own words. Homework Projects – longer C++ programs that you write to complete a task. Exams – test how well you can read/understand code, know definitions, write code See syllabus for grade breakdown

10 In-Class Labs Classes Fridays will be used for completing assignments called labs. Labs submitted after the deadline announced in class will be given a zero. Keep up with the concepts that have been discussed by reading textbook, completing checkpoint exercises and review questions in book. In general these must be completed in the classroom. Do NOT wait until last 10 minutes to ask for help!

11 Grade Maintenance You should submit your work to assignments on CANVAS. Take the time to confirm your submission. No consideration will be given to submissions of incorrect files.

12 Academic Honesty You may talk with each other for the in-class labs, but each of you should turn in a completed lab assignment that is unique for you. You may be allowed to work with one other person from your section on some assignments and projects as noted on the writeup. Otherwise your projects should be your own work. Searching the internet for solutions to labs or projects is considered a violation of academic integrity If you receive help from anyone other myself, you should document this help in your program. You are expected to complete the exams on your own.

13 "Perhaps the most valuable result of all education is the ability to make yourself do the thing you have to do, when it ought to be done, whether you like it or not. " -Thomas Huxley “Thinking is the hardest work there is, which is the probable reason so few engage in it.” -Henry Ford “Intelligence is learning from one’s own mistakes, wisdom is learning from mistakes of others.”

14 Questions About the Class
There may not be things as “stupid” questions, but there are “unthinking” questions. Questions for which you can find the answer from the syllabus, tentative schedule, problem writeup, etc are stupid questions. For example, When are your office hours? When is the assignment due? What chapter are we on? Questions about C++ programming are rarely “stupid” or “unthinking” questions as long as you are trying and using the resources you have been given.

15 Show Initiative Your programs will build upon and incorporate concepts presented earlier in class, in other assignments, in the book, in demo programs posted on CANVAS. If you forget how to employ concepts that have been covered earlier, try reviewing previous assignments, demo programs, lecture notes, etc. Keep a record of error messages and what you did to correct them so when you encounter them again you have a reference.

16 Class Attendance Is mandatory on Mondays and Wednesdays
During lecture time, you should be listening, taking notes, asking appropriate questions, participating, etc. You are responsible for any and all announcements made during class time, even if they are never posted on CANVAS. After the first lab, labs will be posted by noon the previous day and you will not have to attend class on Friday if you can complete the assignment on your own. (This policy is subject to change.)

17 Extra Credit 10 points of easy extra credit.
Come to see me in my office during office hours or by appointment before 3/1/17.

18 Questions ???

19 What is an engineer ?

20 What is a Computer? A programmable electronic device that canc store, retrieve and process data. Tool that makes a job easier Advantages Reliable Fast Does not tire Follows instructions (programs) precisely Disadvantages Not “smart”– cannot analyze problems

21 What can a computer do? Simple arithmetic Comparisons/decision making
Communication-input, output, transfer of data.

22 Components of a Computer
CPU Main Memory Output Devices Input Secondary display screen, printer keyboard, mouse harddisks, USB-drives, CD-ROMs, DVDs, etc CPU - Central Processing Unit fetches and follows a set of simple instructions (also called processor). Main Memory stores the executing program and its data in RAM (random access memory). Volatile Secondary Memory stores permanent records (files). Non-volatile

23 Central Processing Unit
ALU Control Unit Instruction (Input) Result (Output) ALU – Arithmetic and Logic Unit performs mathematical operations Control Unit coordinates all of the computer’s operations, performs the fetch/decode/execute cycle Fetch: Control Unit fetches next instruction Decode: Control Unit decodes instruction Execute: instruction is executed by appropriate component

24 Main Memory Main Memory consists of a long list of numbered memory locations (RAM). Main memory is volatile! Memory Locations contain zeros and ones, on and off switches, called binary digits or bits Each memory location or byte is identified by an address Memory Locations bits = 1 byte byte1 byte2 byte3 byte4 byte5 byte6 byte7 1 byte location, address 1 1 byte location, address 2 1 byte location, address 3 3 byte location, address 4 3 bytes needed to store a large number

25 Secondary Memory Uses same idea of bits and bytes
Programs/data stored in units called files. Stores files when they are not in use Non-volatile Examples: Hard drives CDs & DVDs USB drives (jump, flash, thumb, stick, etc.)

26 Software Operating Systems – allocates computer’s resources and allows communication between user and computer. UNIX, DOS, Linux, Windows, VMS, etc. Programs – set of instructions to perform specific tasks. Program Data Computer Output - Information

27 Algorithm vs. Program Algorithm - set of well-defined steps for performing a task or solving a problem Program – A set of instructions a computer follows to perform a task. An algorithm that has been translated into a programming language so the computer can “understand” and perform the steps. Programming Language – special language used to write programs.

28 Questions Read Chapter 1 in the book
Work through the Checkpoint problems, throughout the chapters, the Review Questions and Exercises at the end of the chapter. (Please note answers to Checkpoint and some Review Questions are given on-line.) Read material posted on CANVAS (Course Description, Tentative Schedule, etc.)


Download ppt "CMPSC 201- Spring 2017 Lecture 1 January 9, 2017."

Similar presentations


Ads by Google