Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

To find integral of sin(logx) .

Answered: 1 week ago

Question

=+What is the most that you should pay to complete development?

Answered: 1 week ago

Question

=+development and make the product, should you go ahead and do so?

Answered: 1 week ago