diff options
| -rw-r--r-- | src/Q1/README.md | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/Q1/README.md b/src/Q1/README.md new file mode 100644 index 0000000..a7065a5 --- /dev/null +++ b/src/Q1/README.md @@ -0,0 +1,47 @@ +Learning Profile for Assignment #1, And Question #1 + +Name: Mo Khan +Student ID: 3431709 + +1. Problem Statement: + +Create a class named AddressBook that has the following field names: + +* firstName +* middleName +* lastName +* homeAddress +* businessPhone +* homePhone +* cellphone +* skypeId +* facebookId +* personalWebSite + +Use appropriate data types to store the values for these fields in AddressBook objects. +Create appropriate get and set methods to retrieve and assign values to these names. +For example `getMiddleName(viveAddressBook)` should return the middle name of the person `Vive`. +Similarly, `vive.setPersonalWebsite(url)` should set the personal website of the person `Vive` to the specified URL object. +Using the get and set methods, create a comparison method `compareNames(name1, name2)` that compares the first, middle, and last names of strings name1 and name2. +Assume that name1 and name2 follow the following format: "FirstName M. LastName". + +Test your program for correct, partially correct (e.g., name string without the middleName), +and incorrect inputs (e.g., phone number containing special characters). + + +2. Description of the Code: + +[Briefly describe how you solved the problem in your code. You should include short description of classes, methods, and variables (if necessary) that you used in your code.] + +3. Errors and Warnings: + +[Please enlist your Errors and Warnings (maximum five) that you encountered in your code and how you solved them. An example of this is shown in Table 1.] +Table 1: List of Errors and Warnings Encountered in the Program + + +4. Sample Input and Output: +[Provide some test cases with sample input and output of your program.] + +5. Discussion: + +[In this section, you may include some discussion about the debugging strategy that you used, e.g., searched the Web for a solution, contacted tutor, solved by self, used a debugging tool, posted in forum, talked to a friend, etc.] |
