You are to create a Visual Basic(VB) project for a census bureau
to obtain and analyze household income survey data within the
Pittsburgh area (including Morgantown Ky).
Home identification code (4 alphanumeric characters) –
Program should generate it using a random number generator. You
won’t use this anywhere it just need to be generated. Generate the
first number in the Form Load event and then each subsequent number
in the button click. See attached code as example.
Date of the survey – required (try using the datetime picker
control), must be a valid date. You do not need to use the date
anywhere just have it available on your form to select.
County and State (1 input only) they reside in – required
The household yearly income – required, must be numeric, must be
greater than 0.
There should be 4 buttons on the screen:
1.Submit: This event will validate
all data and save the data to the necessary arrays for
2.Exit: This event will exit the
3.Total Households Surveyed: This
event will process the arrays and display the total households
surveyed by state and then by county in a Message box (see below
4.Average Household Income: This
event will process the arrays and display the average household
income by state and then by county in a Message box (see below for
1)Create a well designed modular
program based on design techniques taught.
2)Use good naming conventions on all
objects, variables, procedures, functions, etc.
3)Option Strict and Option Explicit
must be on
4)All survey information must be
saved to an array(s).
5)When the user clicks the button
“Total Households Surveyed”, do the necessary calculations and
display in a Message box the Total Households Surveyed by county
for all that were surveyed (see below for example).
6)When the user clicks the button
“Average Household Income”, do the necessary calculations and
display in a Message box the Average Household Income by county for
all that were surveyed (see below for example).
Average Household Income (Output as example only)
Number of Households Surveyed (Output as example only)