public class TheseDays(){
int workTime=0;
Peole p=new People(Zhu Ck);
Project pro=new Project(ABC);
public static void main(String[] args) throws Exception{
if(workTime<10){
p.doJob();
p.moreTired();
p.getMoney();
if(pro.end==true){
p.endWork();
}
}
}
public void moreTired(People p) throws Exception{
p.tired++;
}
public int getMoney(int wage) throws Exception{
int m=0;
if(workTime==8){
m=wage;
}else if(workTime>8){
m=wage;
}else if(workTime<8){
m=wage-((8-workTime)/24)*wage;
}
return m;
}
public static void rest() throws Exception{
p.tired - -;
}
public int getPrise(int yearTime,int wage) throws Exception{
if(yearTime>1){
wage<=wage*3;
}else{
wage=0;
}
}
public int endWork(){
try{
p.getPrise();
}catch(Exception e){
e.printStrace();
}
return null;
}
}