-
NOTE: Your variables and functions from this lab on are to be
saved in a particular format. If they are not, you will not get
credit for your assignment. Variables should be named with the
first initial of your first name, first initial of your last name,
following an underscore and the end of your variable name.
Ex: txtCity_nc
-
Your program will ask the user for: Full Name, Age, Birthplace,
Current Hometown and Annual Income.
-
Save all the information you receive in variables you create. The
Age and Income variables should allow mathematical operations.
-
All numeric data should use a "Try-Catch" exception handler to verify
the user has input a number.
-
You should create an output area where you can create 3 outputs based
on the inputs provided. The outputs are as follows:
-
The first output should be based on the persons age. Divide the
possible results into at least 3 parts and come up with an output
for each age range
(ex: Your a Minor, Your in Your Prime, Your a Senior)
-
In the second output, create 3 rankings for the income that you collected.
Create a different output for each of 3 levels of income
(ex: Success,
Working On It, Below The Bar) Note: you can set the criteria for
success to whatever you would like, but if you cannot think of anything use:
over $200,000 -- Success, over $50,000 -- Working On It and anything below
$50,000 -- Below The Bar
-
In the last output, compare birthplace to current hometown and if they
are the same you will output something like: "Never Left Home I See",
otherwise you will output something like: "I See You Prefer To
Live Somewhere Other Than Where You Were Born".
-
Save your program to a file and take a screenshot of the output after you have run
your program. You will have 2 files that you will send as attachments to your email
(your proof screenshot and a zipped solutions project folder.
(DO NOT COPY AND PASTE YOUR CODE, PROGRAM(S) OR SCREENSHOTS INTO THE BODY OF THE EMAIL.
THIS WILL RESULT IN A GRADE OF ZERO !) Make sure to include your name
and the assignment number you are emailing.
|