Introduction to Computer Science I by James Tam | Return to the course web page |
1) The person's age |
2) The last two digits of the person's home number. |
3) The person's favourite primary color |
1) Age
This value must be a positive integer between 1 and 113 (inclusive). The age modifier will be the remainder of dividing the person's age by 100.
2) Phone number
The person must enter the last two digits of their home number. The phone number modifier will be simply these two digits
3) Favourite primary color
The person will be able to pick their favourite of the following three colors: red, blue or green
Color
Color modifier
Red 2 Blue 3 Green 4
The program will then display the numerical fundex value as well as providing a text description of what the numbers mean:
Fundex value | Description | |
000 - 300 | What a bore! | |
301 - 500 | A genuinely fun person. | |
501 - 700 | A real wit. | |
Over 700 | Always the life of the party! |
These assignments implement all of the required functionality listed above. Assignment submissions must follow also follow good coding style and be fully documented.
These assignments fulfill all of the requirements for a 'C' level submission and performs some rudimentary error checking. If an invalid value is entered the program will generate an appropriate error message and a default value will be used by the program.
These assignments fulfill all of the requirements for 'B' level submission but it automatically re-runs itself. Each time that a calculation has been performed the program will prompt the user if he or she wishes to run the program again or if they want to exit the program.
2. Include a README file in your submission: For this assignment your README file must indicate what grade level has been completed (A, B or C). This will allow your marker to quickly determine what he or she must look for and speed up the marking process.
3. Assignments (source code and the README file) must be electronically submitted via submit. In addition a paper print out of the source code must be handed into the assignment drop box for the lab that you are registered in (located on the second floor of the Math Sciences building). Electronically submitting the assignment allows your marker to run the code in order to quickly determine what features were implemented. Providing a paper printout makes it easier for your marker to read and flip through your source code.
1 Note: The fundex is to be used for entertainment purposes only and neither I nor the University of Calgary provides any express or implicit guarantees that the numbers generated will actually predict your success at social interactions.