CSE 123C February 25, 2008 Possible make up class on March 27-will let us know for sure Midterm on Friday-everything up to the for statement slide (last slide included on midterm is the data validation loop slide) Switch statement switch (expression)
CSE 123C February 15, 2008 Quiz today. *Midterm-February 29* o Chapters 1, 2, 3 chapter 3 will end right before the midterm o Self quizzes on HuskyCT-questions change each time so take them as many times as you want/need, they aren't graded as part o
CSE 123C February 11, 2008 Long long score=10999999; Long is the same as int Unsigned int is a data type o Unsigned int x=1000; o Unsigned int uses a different range than signed int One bit is used to tell you the sign of the number Computers use a s
CSE 123C February 4, 2008 Arithmetic operators o Addition + o Subtraction o Multiplication * o Division / o Modulus % Gives you only the remained of two integers Example 5 % 2 returns a value of 1 Helpful when trying to compute binary representati
CSE123C 28 January 2008 In addition to the slides on HuskyCT Announcements: Get engineering account before lab on Wednesday Homework 1 posted tomorrow and due before next lab No office hours tomorrow Notes: Everything is represented as 1 or 0 because
CSE 123C 3/7/08-4/7/08 Let me first say, I am sorry for taking so long to send these. I have been away for medical reasons so it has been taking me awhile to get caught up with all my work. Exam version 2 # 14 int x=0; If (-0.5 x 0.5) Evaluate from
CSE 123C February 18, 2008 In addition to the power point on HuskyCT Answers to quiz from Friday: 1. 2. 3. 4. 7.8005 x 101 and -4.06 x 10-4 y=sqrt(x); x=(x+1)*y x=x+(y-10)
Practice! Write the non abbreviated form 1. x+= y=z*=2; 2. !(a=3*b); 3. x=x/+
CSE 123C February 8, 2008 Cin o o o o Cout o o o o Istream object Streams input from standard input Uses the manipulator (input operator) Form Cin variable variable; Ostream object Streams output to standard output Uses the manipulator (output o
CSE123C February 1, 2008 Any computer language has a piece very similar to our language Editor does all the coloring of the code Int main () { ^beginning of a program^ Program Structure o Comments Help people understand programs, but are ignored by
CSE 123C 3 March 2008 Midterms (from 2-29-08) will be graded and grades posted on HuskyCT by Friday In addition to the slides on HuskyCT Int i=1 1 int sum = 0; while ( i<10) 2 { sum + = i; i + ; 3 } Can be converted directly to: For (int i=1; i<0; i+