summaryrefslogtreecommitdiff
path: root/src/Q4/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/Q4/README.md')
-rw-r--r--src/Q4/README.md52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/Q4/README.md b/src/Q4/README.md
new file mode 100644
index 0000000..f3e1359
--- /dev/null
+++ b/src/Q4/README.md
@@ -0,0 +1,52 @@
+Learning Profile for Assignment #1, And Question #4
+
+Name: Mo Khan
+Student ID: 3431709
+
+1. Problem Statement:
+
+A group of AU friends decide to run the Banff, Alberta, Marathon.
+Their names, times (marathon completion time in minutes), and number of years participated are given below:
+
+| id | Name | time (mins) | years |
+| --- | --- | --- | --- |
+| 1 | Elena Brandon | 341 | 1 |
+| 2 | Thomas Molson | 273 | 2 |
+| 3 | Hamilton Winn | 278 | 5 |
+| 4 | Suzie Sarandin | 329 | 7 |
+| 5 | Philip Winne | 445 | 9 |
+| 6 | Alex Trebok | 275 | 3 |
+| 7 | Emma Pivoto | 275 | 4 |
+| 8 | John Lenthen | 243 | 1 |
+| 9 | James Lean | 334 | 1 |
+| 10 | Jane Ostin | 412 | 1 |
+| 11 | Emily Car | 393 | 4 |
+| 12 | Daniel Hamshire | 299 | 4 |
+| 13 | Neda Bazdar | 343 | 3 |
+| 14 | Aaron Smith | 317 | 6 |
+| 15 | Kate Hen | 265 | 8|
+
+Extend the AddressBook class from Problem 1 to store the additional data.
+Now, write a method to find the fastest runner.
+Print the name, address, and his/her time (in minutes) on three separate lines.
+Find the second fastest runner.
+Print the name, address, his/her time (in minutes), and the difference in time with the fastest runner.
+Compute the average time of completion taken by these runners.
+Finally, print the name and number of years participated for each runner if the runner’s time of completion is equal to or better than the average time of completion.
+
+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.]