parent
8cbf7bf641
commit
22bd279300
@ -0,0 +1,15 @@
|
||||
package count;
|
||||
|
||||
public class Count {
|
||||
double charging(int lengthtime)
|
||||
{
|
||||
if(lengthtime<30)
|
||||
return 0;
|
||||
else if(30<=lengthtime&&lengthtime<100)
|
||||
return 10;
|
||||
else
|
||||
return 10+(lengthtime-100)*0.1;
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue