瀏覽代碼

ommitted NaiveTicket

Navya Sanal 6 年之前
父節點
當前提交
471e024538
共有 3 個文件被更改,包括 8 次插入11 次删除
  1. 2
    5
      TicketMachine.java
  2. 3
    3
      bluej.pkg
  3. 3
    3
      package.bluej

+ 2
- 5
TicketMachine.java 查看文件

@@ -21,7 +21,6 @@ class  TicketMachine
21 21
     //private int status;
22 22
     private int score;
23 23
 
24
-
25 24
     /**
26 25
      * Create a machine that issues tickets of the given price.
27 26
      * Note that the price must be greater than zero, and there
@@ -96,14 +95,12 @@ class  TicketMachine
96 95
         balance = 0;
97 96
         return amountToRefund;
98 97
     }
98
+
99 99
     public int emptyMachine(){
100 100
         //int total = 0;
101 101
         return total;
102
-        
102
+
103 103
     }
104
-    public int printTicket(){
105
-        int amountLeftToPay = price - balance;
106
-    
107 104
 
108 105
     /**
109 106
      * Print a ticket.

+ 3
- 3
bluej.pkg 查看文件

@@ -1,5 +1,5 @@
1 1
 #BlueJ package file
2
-editor.fx.0.height=813
2
+editor.fx.0.height=812
3 3
 editor.fx.0.width=1440
4 4
 editor.fx.0.x=0
5 5
 editor.fx.0.y=23
@@ -9,8 +9,8 @@ package.divider.horizontal=0.5995575221238938
9 9
 package.divider.vertical=0.8007380073800738
10 10
 package.editor.height=427
11 11
 package.editor.width=346
12
-package.editor.x=962
13
-package.editor.y=97
12
+package.editor.x=843
13
+package.editor.y=96
14 14
 package.frame.height=600
15 15
 package.frame.width=472
16 16
 package.numDependencies=0

+ 3
- 3
package.bluej 查看文件

@@ -1,5 +1,5 @@
1 1
 #BlueJ package file
2
-editor.fx.0.height=813
2
+editor.fx.0.height=812
3 3
 editor.fx.0.width=1440
4 4
 editor.fx.0.x=0
5 5
 editor.fx.0.y=23
@@ -9,8 +9,8 @@ package.divider.horizontal=0.5995575221238938
9 9
 package.divider.vertical=0.8007380073800738
10 10
 package.editor.height=427
11 11
 package.editor.width=346
12
-package.editor.x=962
13
-package.editor.y=97
12
+package.editor.x=843
13
+package.editor.y=96
14 14
 package.frame.height=600
15 15
 package.frame.width=472
16 16
 package.numDependencies=0