.  202 s 17  . 
  ☆ Coming Attractions! ☆
⇒ * DNA or FOOD due Fri, 05/05 10pm, d2l
⇒ Final Exam: 11am class: W, 05/10 @ 10 - can not switch without notice!
⇒ Final Exam: 12pm class: M, 05/08 @ 12 - can not switch without notice!
⇒ Quizzes may be announced OR unannounced
Projects    
0.LAB       1.CODE       2.ARITHMETIC       3. DRAW       4. TUTOR       5a. DNA   /   5b. FOOD

readable code       c# windows code       c# console code       c# reference       msdn programmming guide steps to create a program
lab info   ·   ** TUTOR SIGNUP! **
42 class calendar
week 1 2 3 4 5 6 7 8 9 10 11 12 13 14
23 25 27 | 30 01 03 | 06 08 10 | 13 15 17 | 20 22 24 | 27 01 03 | 06 08 10 | * | 20 22 24 | 27 29 31 | 03 05 07 | 10 12 14 | 17 19 21 | 24 26 28 | 01 03 05
class 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
syllabus (pdf) / addendum (pdf) / student rights (pdf)   -   2gb: see me
 


Part I Notes
A.   Introduction to Computing & Programming
about 202 (syllabus, grades, code)
syllabus(pdf)/addendum(pdf), faq grades, honesty, readable code, submit assignments, CAP, visual studio, labs on campus, macs
1: INTRODUCTION TO COMPUTING AND PROGRAMMING 1.1 Introduction 1.2 Hardware and Software 1.3 How Computers Store Data 1.4 How a Program Works 1.5 Graphical User Interfaces 1.6 Objects 1.7 The Program Development Process 1.8 Getting Started with the Visual Studio Environment
- a concrete explanation of how computers work, how data is stored and manipulated, and why we write programs in high-level languages. - what an object is and several examples of the objects that make up a program’s graphical user interface (GUI). - steps in the programming development cycle. - the Visual Studio Express environment.
- Analyze and solve problems -- Significant effort! - READ the BOOK! - I welcome questions & discussion, but individual conversations distract and annoy! - If you miss class, it's YOUR responsibility to get notes. - I will take attendance - seating chart next class. We'll be doing code like this: Invoice Total: C# Code  
B.   Introduction to Visual C#
2: INTRODUCTION TO VISUAL C# 2.1 Getting Started with Forms and Controls 2.2 Creating the GUI for Your First Visual C# Application 2.3 Introduction to C# Code 2.4 Writing Code for the Hello World Application 2.5 Label Control 2.6 Making Sense of IntelliSense 2.7 PictureBox Controls 2.8 Comments, Blank Lines, and Indentation 2.9 Writing the Code to Close an Application's Form 2.10 Dealing with Syntax Error
GUI: Form, Button, Label, PictureBox
- create forms with labels, buttons, and picture boxes and learn to modify control properties. - examine C# code and learn the organizational structure of namespaces, classes, and methods. - write simple event-driven applications that respond to button clicks or clickable images. - importance of commenting code!
* Do "LAB" assignment in class in Becker computer lab build GUI set properties write code Submit to D2L
C.   Processing Data into Information
3: PROCESSING DATA 3.1 Reading Input with TextBox Controls 3.2 A First Look at Variables 3.3 Numeric Data Type and Variables 3.4 Performing Calculations 3.5 Inputting and Outputting Numeric Values 3.6 Formatting Numbers with the ToString Method 3.7 Simple Exception Handling 3.8 Using Named Constants 3.9 Declaring Variables as Fields 3.10 Using the Math Class 3.11 More GUI Details
GUI: TextBox
- create Windows applications (apps, software, programs) that have both a GUI (graphical user interface) and code - cntroduce variables and data types. Differentiate local variables from variables declared at the class level - introduce constants - read input from a TextBox - perform math using numeric variables and literals - produce formatted output - handle exceptions that occur when a user enters invalid data into a TextBox
* 1.CODE GUI: buttons and textboxes write code that joins strings * 2.ARITHMETIC GUI: buttons, textboxes, labels and pictureboxes write code to do math Comment your code.
D.   Random Numbers, Tab Controls and Timers
5.8 Random Numbers Appendix B: Additional User Interface Controls About: TabControls and Timers MSDN: TabControls MSDN: Timers
GUI: TabControl create a random object from the Random class generate random numbers within a range
  ∴   Test1 - Mid Term Exam: M & W
TEST 1 Review first day - multiple choice second day - read code and answer questions, write code Create a CAP
Part II Notes
E.   Making Decisions
4: MAKING DECISIONS 4.1 Decision Structures and the if Statement 4.2 The if-else Statement 4.3 Nested Decision Structures 4.4 Logical Operators 4.5 bool Variables and Flags 4.6 Comparing Strings 4.7 Preventing Data Conversion Exceptions with TryParse 4.8 Input Validation 4.9 Radio Buttons and CheckBoxes 4.10 The switch Statement 4.11 Introduction to List Boxes
GUI: RadioButton, CheckBox, ListBox
- Use relational operators and Boolean expressions to control the flow of a program with decision structures. - The if , if-else , and if-else-if statements are covered. - Use nested decision structures, logical operators, and switch statements. - Use TryParse to validate input and prevent exceptions. - Use radio buttons, check boxes, and list boxes.
Invoice Total (if) if ( condition is true ) { ... do these things } if ( condition is true ) { ... do these things } else { ... do these things } if ( condition is true ) { ... do these things } else if ( condition is true ) { ... do these things } else { ... do these things }
// if either is true if (condition || condition) { ... do these things } // if both are true if (condition || condition) { ... do these things }
F.   Graphics: Brushes, Rectangles, Ellipses & Panels
Make gr graphics reference variable class-level ToolBox => Panel is a control you can draw upon. We only set its "Name" property. (ex: panDraw) Create rectangles Create ellipses Random Numbers and Graphics
GUI: Panel
We can create graphics objects. We can create brush objects. We can create rectangles and ellipses. We can combine random numbers with graphics creating objects of varying sizes and colors.
G.   Loops, Files
5: LOOPS, FILES and RANDOM NUMBERS 5.1 More About ListBoxes 5.2 The while Loop 5.3 The ++ and -- Operators 5.4 The for Loop 5.5 The do-while Loop 5.6 Files for Storage 5.7 OpenFile Dialog & SaveFile Dialog 5.9 Load Event
GUI: ListBox
- How to use loops to create repetition structures. - Use the while loop, for loop, and the do-while loop. - Counters, accumulators, and running totals are discussed. - Introduce sequential file input & output and using text files. - Learn various programming techniques for writing data to text files and reading the contents of test files. - Generate and use pseudorandom numbers. About Looping (while, do-while, for) while( condition is true ) { .. keep doing these things } Loop Code Examples Ending Balance (loop)   Quiz: write code to read in 2 numbers, add them & output the numbers & answer in a label Show loop "template" loop index variable while( condition is true ) { ... adjust loop index } Fit listbox into this scheme - IN the loop Compute Squares (for, listbox) Show that "for" is like a "while" write code: loop and write numbers in listbox if, if else to determine if numbers divisible by 7, 11 output formatted numbers, random numbers, square roots of random numbers Speed Conversion (for, listbox, TryParse)   Ending Balance (loop, listBox)   About ListBoxes and Arrays
H.   Methods
6: MODULARIZING CODE with METHODS 6.1 Introduction to Methods 6.2 void Methods 6.3 Passing Arguments to Methods 6.4 Passing Arguments by Reference 6.5 Value-Returning Methods
- Learn how to write and call void methods. - Shows the benefits of using methods to modularize programs and discusses the top-down design approach. - Learn to pass arguments to methods by value. - Learn to pass arguments to methods by reference, and output. - Learn to write value-returning methods.
About Methods Simple user-defined Method Files and Methods Sum3 adds 3 numbers passed in IsEven finds if number is even IsPerfect finds if number is a perfect square Methods with Parameters Sum with parameters and return Sum Range finds sum of numbers within range
  ∴   Test 2 - Final Exam
TEST 2 2 hour test first part - multiple choice when first part is completed, hand in and receive second part second part - read code and answer questions, write code Create a CAP CUP Registrar: see "Final Exam Schedule"
You must earn an "A" or "B" to enroll in CIS 244.   A strong "A" is advised.
Student is responsible for notes, readings and classroom discussions.   Notes may be changed, emphasized, re-ordered or skipped over.
Software

    - Visual Studio Express 2015 COMMUNITY edition
    - HELP installing Visual Studio
  1. Check your operating system and apply latest Windows Updates
  2. Run the installer as an Administrator (right click - run as administrator)
  3. Check for disk space - needs 4gb minimum (right click in file explorer - properties)
  - Using a MAC?
    - VS for MAC - free
    - Virtual Box - free
Text

"Starting Out With Visual C#, 4th ed." by Tony Gaddis   [REQUIRED]
    =>   amazon: buy/rent
    =>   bookstore

NOTE: Older editions not identical, but should be OK. The CD is NOT required. If you have a used book without the CD, that is OK.

If you are a CS or IS major or minor it may be a good idea to buy for future reference.