diff options
Diffstat (limited to 'src/Q3')
| -rw-r--r-- | src/Q3/README.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Q3/README.md b/src/Q3/README.md new file mode 100644 index 0000000..8c880cb --- /dev/null +++ b/src/Q3/README.md @@ -0,0 +1,31 @@ +Learning Profile for Assignment #1, And Question #3 + +Name: Mo Khan +Student ID: 3431709 + +1. Problem Statement: + +Write a program that prompts the user to enter two points `(x1, y1)` and `(x2, y2)`. +Calculate and display the distance between the two points using the formula below. +Round the answer up to 2 decimal points. +You can use `Math.pow(a,0.5)` to compute the square root of an expression. +`Math.pow()` returns a double. + +For example, the distance between the points (−2, −3) and (−4, 4) is approximately 7.28, as shown below. + +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.] |
