-
Essay / Programming Chapter Overviews - 995
Chapter 8 of our text was all about string manipulation techniques. Lesson A started by introducing us to some simple string manipulation techniques, including the "length", "trim", "insert/delete" and "contains" properties. Other concepts introduced in Lesson A included "PadLeft/PadRight" methods and using the "Like" operator to search for strings. Lesson B continued by teaching us how to use the "MenuStrip" control and add it to a form, which is very useful when you need to give the user additional commands to use with your program. We also learned how to insert a separator bar in the menu and how to assign shortcut keys to menu items. Lesson C didn't necessarily teach us anything new, but it gave us an example of how to incorporate what we learned in the previous two lessons into our code. Chapter 9 introduced us to tables (groups of related variables). It is much easier to code a table than a set of independent variables, especially when they are all going to be used for the same purpose. Lesson A gave us a basic overview of what a one-dimensional array is and how it is used. We learned about subscripts and the fact that the subscript method of numbering starts at zero rather than one. We also reviewed the “GetUpperBound” method and the “For each…next” statement. Lesson B didn't really introduce anything new, but it did teach us about parallel networks. Lesson C introduced us to two-dimensional arrays, which are basically the same as a one-dimensional array with more than one row/column to fill in and use. This lesson also explained how to use the "GetUpperBound" method with two-dimensional arrays. Chapter 10 was devoted to structures and sequential access files. Lesson A started in the middle of the document......when multiple methods must have different parameters in order to perform what is basically the same task. Lesson C concluded the chapter by asking us to code a project with base classes and derived classes. A base class is the original class in a class file, while a derived class is a class that comes after the base class and "inherits" the attributes and behaviors of the base class (constructors do not are however never inherited and must always be created). in new classes). We also learned that instead of recoding constructors in derived classes, we can simply use the "MyBase" method to instruct the computer to process the code written in the constructor(s) of the class of base. We finished the lesson (and chapter) by coding an application that used a base class and a derived class to calculate the area of a square and the area of a cube based on the option chosen by the user. 'user..