MCC - CIS162AD
CS3 Sales Calculator - 10 points
|
|
The purpose of this assignment is give students an opportunity to review the declaration and
uses of variables in calculations. To accomplish this students must
download and expand the archive that includes the form interface and skeleton methods. Students must then enter the additional source code presented below. Pay attention to declaration
and use of the class-level and local variables, as well as the data types of each of the variables.
The program uses a Try-Catch block even though the reading on this topic has not been assigned to this point.
Just enter the code as presented, and then review the Try-Catch section as listed on the Course Schedule.
Students may create their own interface from scratch if they desire.
- Set the Text of the form to the assignment number and your name (CS3 Your Name).
- The borders around the various groups were created using the GroupBox object, and are usually drawn first before adding the labels and text boxes.
- The results of the calculations are displayed in Labels with
AutoSize set to False and the BorderStyle set to Fixed3D.
- The labels on the left hand side do not have be given meaningful names, but the
rest of control objects addressed in program code must have a meaningful name.
- Double click on the buttons to create the skeleton methods and to link the
appropriate method to each click event. Don't just type in the method
header as presented below. See page 173 on setting the event handler
if the correct method is not executed when a button is clicked.
Interface Archive: Download and expand CS3 Interface Archive.
Interface Sample:
Source Code: (presented as a series of images)


Submit CS3Form.cs and CS3Form.Designer.cs
Revised: 08/11/2008 - www.mc.maricopa.edu/~marquez/cis162ad/cs3_sales_calculator.html