l02 - : CSci 1113 C/C++ for Scientists and Engineers...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: : CSci 1113 C/C++ for Scientists and Engineers Section 010 - evening class C++ Basics: Variables, Assignment, Data Types, I/O, Arithmetic Operations Prof. Eric Van Wyk and Ted Kaminski Spring 2010 c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 1 / 44 : Announcements I TA office hours are now online. I Teds office hours are Thurdsays from 2:00 - 3:00pm in EE/CS 6-198. I Erics office hours are on Tuesdays from 5:15pm to 6:15pm in EE/CS 6-203. c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 2 / 44 : Announcements (2) The student chapter of ACM is holding UNIX classes beginning this week: Weds 01/28 14:30 - 15:30 Thurs 01/29 13:00 - 14:00 Fri 01/30 11:00 - 12:00 Mon 02/01 10:30 - 11:30 Tues 02/02 14:00 - 15:00 All sessions will be held in EE/CS 2170. c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 3 / 44 : Announcements (3) The first regional celebration of Women in Computing in the upper midwest will take place in the EE/CS building on February 12-13, 2010. Look at http://minnewic.cs.umn.edu for details on the program. c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 4 / 44 Imperative programming : Once a person has understood the way variables are used in programming, he or she has understood the quintessence of programming. E. W. Dijkstra c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 5 / 44 Imperative programming : Imperative Programming I C++ is essentially an imperative programming language. I An imperative is command. Some action to take. I Go to the store and get me milk. vs Bring me milk. We specify how the result is computed more than just saying what the solution should be. I Imperative programs are sequences of commands that have some effect on memory, the file system, the screen, etc. I Imperative programs make these changes, computing intermediate values, on the way to the final answer. c Van Wyk and Kaminski CSci 1113: C/C++ for Scientists and Engineers, evening class Spring 2010 Page 6 / 44 Imperative programming : Memory I Initially, we are concerned with changes to memory. I We will think of memory as a set of labelled locations or places to store values. I For the right-triangle program we have labeled locations for a , b , hypotenuse , and area . I We will diagram this as seen on the white-board. I Our program makes changes to memory. We can step through the code to see how the values change. I Consider adding variables for intermediate or temporary values and step through the code again....
View Full Document

This note was uploaded on 10/28/2010 for the course CSCI 1113 taught by Professor Staff during the Spring '08 term at Minnesota.

Page1 / 50

l02 - : CSci 1113 C/C++ for Scientists and Engineers...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online