Thursday, September 23, 2010

Chapter 3: Variables and Calculations Continued..

As promised, tonight we will continue exploring the material in Chapter 3, beginning with section 3.4 - Mixing Different Data Types. I would like you to read the remainder of Chapter 3, starting from section 3.4 (Mixing Different Data Types) and continuing through 3.11 (3.11 is titled "More about Debugging: Locating Logic Errors").

Below I will briefly outline each of the sections we need to digest this week from Chapter 3 and recommend tutorials to review that should help increase your understanding of the material...


Section 3.4 (Mixing Different Data Types) discusses type conversion runtime errors which can take place when assigning values to variables using literals (see section 3.4 for a list of literal data types).

It is also possible to explicitly convert one type to another. This is explained in detail within section 3.4 under the heading "Explicit Type Conversions". Table 3-12 shows some of the commonly used type conversion functions, and the following pages discuss converting textbox input and invalid conversions.

Please review these pages and look at Tutorial 3-7: Examining a Simple Calculator application.


Section 3.5 (Formatting Numbers and Dates) outlines the toString method and its options for displaying numerical formats as plain numbers, fixed point and exponential scientific numbers, and also currency or percentage formats.

Please review these pages and look at Tutorial 3-8: Examining the Format Demo application.


Section 3.6 (Class Level Variables) details how class level variables may be used and discusses their scope in the program during runtime.

Section 3.7 (Exception Handling) demonstrates how programmers can build programs designed to handle exceptions and gracefully recover from anticipated errors.

Please review these pages and look at Tutorial 3-9: Exception Demonstration and Tutorial 3-10: Salary Calculator project with exception Handling.



Section 3.8 (Group Boxes) explains how a group box can be used to group related controls together.

Section 3.9 (Load Event) discusses how the event handler for the Load Event of an application can be used to execute other code. This would operate the same way as the event handlers that we have worked with for button clicks.

Section 3.10 (Focus on Program Design and Problem Solving) demonstrates a program design from start to finish using the Room Charge Calculator application

Please review these pages and look at Tutorial 3-11: Beginning the Room Charge Calculator application.  If you are interested exploring how to change colors with code, you can also check out Tutorial 3-12: Changing a label's colors..


Section 3.11 (more about Debugging: Locating Logic Errors) details how to pause programs and execute statements one at a time to examine variable contents and property values.

Please review these pages and look at Tutorial 3-13: Single-stepping through an application's at runtime.

You do not have to turn in any of the tutorials, but it is in your best interest to test them and try to become more familiar with these basic principles and practices before we move on to more complex programs and concepts in the upcoming weeks.

Please call or email with questions!   - Nicole

No comments:

Post a Comment