Browse Source

ommitted NaiveTicket

Navya Sanal 6 years ago
parent
commit
471e024538
3 changed files with 8 additions and 11 deletions
  1. 2
    5
      TicketMachine.java
  2. 3
    3
      bluej.pkg
  3. 3
    3
      package.bluej

+ 2
- 5
TicketMachine.java View File

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

+ 3
- 3
bluej.pkg View File

1
 #BlueJ package file
1
 #BlueJ package file
2
-editor.fx.0.height=813
2
+editor.fx.0.height=812
3
 editor.fx.0.width=1440
3
 editor.fx.0.width=1440
4
 editor.fx.0.x=0
4
 editor.fx.0.x=0
5
 editor.fx.0.y=23
5
 editor.fx.0.y=23
9
 package.divider.vertical=0.8007380073800738
9
 package.divider.vertical=0.8007380073800738
10
 package.editor.height=427
10
 package.editor.height=427
11
 package.editor.width=346
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
 package.frame.height=600
14
 package.frame.height=600
15
 package.frame.width=472
15
 package.frame.width=472
16
 package.numDependencies=0
16
 package.numDependencies=0

+ 3
- 3
package.bluej View File

1
 #BlueJ package file
1
 #BlueJ package file
2
-editor.fx.0.height=813
2
+editor.fx.0.height=812
3
 editor.fx.0.width=1440
3
 editor.fx.0.width=1440
4
 editor.fx.0.x=0
4
 editor.fx.0.x=0
5
 editor.fx.0.y=23
5
 editor.fx.0.y=23
9
 package.divider.vertical=0.8007380073800738
9
 package.divider.vertical=0.8007380073800738
10
 package.editor.height=427
10
 package.editor.height=427
11
 package.editor.width=346
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
 package.frame.height=600
14
 package.frame.height=600
15
 package.frame.width=472
15
 package.frame.width=472
16
 package.numDependencies=0
16
 package.numDependencies=0