Assignment Five
This time we are not going to start with something in the book. You are going to create an application from the ground up. You will use the skills we have learned up until the end of the "If" statement discussion in Chapter 4.
Your application will ask for several items of user input; some will be text and some will need to be a number format so you can run calculations on them. Set your program up based on the criteria listed below:
  • 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:
    1. 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)
    2. 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
    3. 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.
If you are having trouble making your code work, you need to see me during lab hours so I can help you get through your code.
Return to Assignments Index