Академический Документы
Профессиональный Документы
Культура Документы
Background:
The purpose of this assignment is to apply all that new knowledge you learned during our previous
classes. To recap we learned how to create a basic form, add controls, and adjust the form layout,
change properties, code click events and work with arrays and collections.
The owner of BDJ Real Estate of Springfield has hired you to design a sales analyzer program for real
estate sales. You can enter the property sales by supplying a valid sales dollar amount and pressing the
Add button. You dont know up front of how many entries you will have. What makes more sense to
use an array or collection?
Once the data entry is complete you can press on the Calculate button to find out the different analytics
for the sales: Min, Max, Average, Median, Total and Commission.
Grading Elements
All Form properties set as instructed
All Label properties set as instructed
All TextBox properties set as instructed
All Button properties set as instructed
Tab Order properties set as instructed and not stopping at output only
List Collection is populated correctly
Data validation on the TextBox
The Calculations are done properly
All Controls and Variables coded with a prefix (Hungarian Notation)
Code has comments
Possible Points
(100 total)
5
5
5
5
5
25
5
35
5
5
Detailed Instructions:
1. Create a new C# Windows Forms Application called RealEstateCollections.
2. On the form do the following:
Using the Solutions Explorer Window change the File Name from Form1.cs to
frmRealEstateCollections.cs
Using the Properties Window change the Text property to [Your Name] Real Estate
Have the form startup in the center of the screen
3. Add 3 Label controls to the form and do the following:
The first labels Name property should be lblPropertyValue with the text Property
Value.
The second labels Name property should be lblEnteredValues with the text of
Entered Property Values.
The third labels Name property should be lblAnalysis with the text of Property Value
Analysis.
4. Add 1 TextBox controls to the form and do the following:
The first Name property should be txtPropertyValue, aligned center with a max size of
8
5. Add 2 ListBox controls to the form and do the following:
The first Name property should be lstEnteredValues.
The second Name property should be lstAnalysis.
6. Add 4 Button controls:
The first buttons Name property should btnCalculate, Text property should be
Calculate with an alternate key on the C
The second buttons Name property should btnAdd Text property should be Add with
an alternate key on the A
The third buttons Name property should btnClear Text property should be Clear with
an alternate key on the l
The fourth buttons Name property should btnExit, Text property should be Exit with
an alternate key on the x
Use Visual Studio tools to make sure the Buttons are the same size, aligned to the
bottom and have equal horizontal spacing
Link the btnCalculate to the forms AcceptButton property
Link the btnExit to the forms CancelButton property
7. Set the tab order to move from the top of the screen to the bottom from left to right. You
shouldnt stop at the output only ListBox controls.
3