Assignment Six
This time around, let's take something you have already worked on and change it. You are going to start with Assignment 5 and alter it. You will use the skills we have learned up until the end of Chapter 4.
We are not really going to change the input section of Assignment 5, but we are going to change how we process the information and our outputs.
  • 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: txtFirstName_nc

  • Your program will ask the user for: Full Name, Age, Birthplace, Current Hometown and Annual Income. (Same as Assignment 5)
  • Save all the information you receive in variables you create. The Age and Income variables should allow mathematical operations. (same as Assignment 5)
  • All numeric data should use some form of User Input Validation to verify the user has input a number. (Use one of the tools for verifying user input from the end of Chapter 4 in place of the Try-Catch Exception Handler).
  • 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 10 parts and come up with a hobby for each age range
      (ex: 0-10 Sandbox; 30-40 Skydiving; 60-70 Golf etc.) Use a Case Statement to do this division.
    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 This is the same as Assignment 5 but if you want extra credit, divide it into more parts and use a Case Statement to control the options. If you do this, tell me in the email to check for extra credit.
    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