#45 Calcul8tor zmalone97

開啟中
zmalone 請求將 1 次程式碼提交從 zmalone/CR-Calcul8r:master 合併至 master
共有 6 個文件被更改,包括 33 次插入4 次删除
  1. 二進制
      Operations.class
  2. 13
    0
      Operations.ctxt
  3. 7
    0
      Operations.java
  4. 二進制
      OperationsTest.class
  5. 9
    0
      OperationsTest.ctxt
  6. 4
    4
      package.bluej

二進制
Operations.class 查看文件


+ 13
- 0
Operations.ctxt 查看文件

@@ -0,0 +1,13 @@
1
+#BlueJ class context
2
+comment0.target=Operations
3
+comment0.text=\n\ Calcul8tor\n\ Basic\ calculator\ functions\ (add,\ subtract,\ multiply)\n\ 10/21/18\n\ Open\ any\ of\ the\ 3\ functions\ (add,\ subtract,\ multiply)\ enter\ your\ integers\ and\ the\ system\ will\ return\ your\ answer\n\ Zavon\ Malone\n
4
+comment1.params=x\ y
5
+comment1.target=int\ add(int,\ int)
6
+comment1.text=\n\ The\ addition\ function.\n\ @param\ x\ The\ first\ operand\n\ @param\ y\ The\ second\ operand\n\ @return\ the\ sum\ of\ x\ and\ y\n
7
+comment2.params=x\ y
8
+comment2.target=int\ subtract(int,\ int)
9
+comment2.text=\n\ The\ subtraction\ function\n\ @param\ x\ The\ first\ operand\n\ @param\ y\ The\ second\ operand\n\ @return\ y\ taken\ from\ x\n
10
+comment3.params=x\ y
11
+comment3.target=int\ multiply(int,\ int)
12
+comment3.text=\n\ The\ multiplication\ function\n\ @param\ x\ The\ first\ operand\n\ @param\ y\ The\ second\ operand\n\ @return\ x\ times\ y\n
13
+numComments=4

+ 7
- 0
Operations.java 查看文件

@@ -1,3 +1,10 @@
1
+/*
2
+ * Calcul8tor
3
+ * Basic calculator functions (add, subtract, multiply)
4
+ * 10/21/18
5
+ * Open any of the 3 functions (add, subtract, multiply) enter your integers and the system will return your answer
6
+ * Zavon Malone
7
+ */
1 8
 public class Operations {
2 9
 
3 10
     /**

二進制
OperationsTest.class 查看文件


+ 9
- 0
OperationsTest.ctxt 查看文件

@@ -0,0 +1,9 @@
1
+#BlueJ class context
2
+comment0.target=OperationsTest
3
+comment1.params=
4
+comment1.target=void\ testAdd()
5
+comment2.params=
6
+comment2.target=void\ testSubtract()
7
+comment3.params=
8
+comment3.target=void\ testMultiply()
9
+numComments=4

+ 4
- 4
package.bluej 查看文件

@@ -4,16 +4,16 @@ dependency1.to=Operations
4 4
 dependency1.type=UsesDependency
5 5
 editor.fx.0.height=722
6 6
 editor.fx.0.width=800
7
-editor.fx.0.x=320
8
-editor.fx.0.y=75
7
+editor.fx.0.x=480
8
+editor.fx.0.y=24
9 9
 objectbench.height=164
10 10
 objectbench.width=776
11 11
 package.divider.horizontal=0.6
12 12
 package.divider.vertical=0.6845018450184502
13 13
 package.editor.height=364
14 14
 package.editor.width=674
15
-package.editor.x=-1455
16
-package.editor.y=82
15
+package.editor.x=372
16
+package.editor.y=99
17 17
 package.frame.height=600
18 18
 package.frame.width=800
19 19
 package.numDependencies=1