Skip to content
Snippets Groups Projects
Commit d3483fc4 authored by Lou's avatar Lou
Browse files

finished class app

parent 18aecd77
Branches
Tags
No related merge requests found
Pipeline #16059 passed
No preview for this file type
public class App { public class App {
public static void main(String[] args){ public static void main(String[] args){
Student me = new Student("Lou", "Bergogne");
Student toto = new Student("Toto", "Totoro"); Student toto = new Student("Toto", "Totoro");
Grade toto_UEpro = new Grade(0.0);
Grade toto_Sport = new Grade(5.0); Grade meAdvancedProg = new Grade(18.0);
toto.addResult("UE_pro", toto_UEpro); Grade totoAdvencedProg = new Grade(5.0);
toto.addResult("toto_Sport", toto_Sport); Grade meGeCo = new Grade(16.5);
toto.printResults(); Grade totoGeCo = new Grade(11.75);
me.addResult("Programmation avancée", meAdvancedProg);
toto.addResult("Programmation avancée", totoAdvencedProg);
me.addResult("Génomique comparative et évolutive", meGeCo);
toto.addResult("Génomique comparative et évolutive", totoGeCo);
Cohort m2Dlad = new Cohort("M2 Bio-informatique (DLAD)");
m2Dlad.addStudent(me);
m2Dlad.addStudent(toto);
m2Dlad.printStudentsResults();
} }
} }
...@@ -43,7 +43,7 @@ public class Cohort { ...@@ -43,7 +43,7 @@ public class Cohort {
System.out.println(this.toString()); System.out.println(this.toString());
for (Student student : this.students) { for (Student student : this.students) {
student.printResults(); student.printResults();
System.out.println(); System.out.println(); // for one line break
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment