Question
Problem Statement You are to create a Visual Basic(VB) project for a census bureau to obtain and analyze household income survey data within the Pittsburgh
Problem Statement
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).
Data Collected:
Home identification code (4 alphanumeric characters) required
Program should generate it using a random number generator. You wont 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
Hamilton, Pa
Butler, Pa
Clermont, Pa
Warren, Pa
Campbell, Ky
Boone, Ky
Kenton, Ky
The household yearly income required, must be numeric, must be greater than 0.
Events:
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 processing.
2.Exit: This event will exit the application
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 for example).
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 example).
Instructions:
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)
Pensylvania: $30,000
Hamilton: $40,000
Butler: $20,000
Clermont: $30,000
Warren: $0
Kentucky: $35,000
Boone: $0
Campbell: $35,000
Kenton: $35,000
Number of Households Surveyed (Output as example only)
Pensylvania: 4
Hamilton: 2
Butler: 1
Clermont: 1
Warren: 0
Kentucky: 3
Boone: 0
Campbell: 2
Kenton: 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started