Assignment Two (Welcome to CS 110a)

In this assignment you will write a program that exercises the skills learned in this chapter.
  • 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, the letter v, an underscore and the name of your variable. Ex: ncv_variable name
    Functions should be named in the same way. Ex: ncf_function name
  • 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.
  • You will also create additional variables for: Number of Seconds in Age, Number of Days in Age, Number of Weeks in Age, Birthplace, and Current Hometown.
  • Your program will calculate age in seconds, days and weeks.
  • Print all of your variables. You should print your variables one variable per line and each variable should be preceded with a label that tells the user what it is. (Ex: Name: Nicole)
  • 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.
    (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.
Return to Assignments Index