Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
student_template_BERGOGNE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BERGOGNE Lou
student_template_BERGOGNE
Commits
d3483fc4
Commit
d3483fc4
authored
1 year ago
by
Lou
Browse files
Options
Downloads
Patches
Plain Diff
finished class app
parent
18aecd77
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#16059
passed
1 year ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/main/App.class
+0
-0
0 additions, 0 deletions
bin/main/App.class
src/main/java/App.java
+19
-5
19 additions, 5 deletions
src/main/java/App.java
src/main/java/Cohort.java
+1
-1
1 addition, 1 deletion
src/main/java/Cohort.java
with
20 additions
and
6 deletions
bin/main/App.class
+
0
−
0
View file @
d3483fc4
No preview for this file type
This diff is collapsed.
Click to expand it.
src/main/java/App.java
+
19
−
5
View file @
d3483fc4
public
class
App
{
public
static
void
main
(
String
[]
args
){
Student
me
=
new
Student
(
"Lou"
,
"Bergogne"
);
Student
toto
=
new
Student
(
"Toto"
,
"Totoro"
);
Grade
toto_UEpro
=
new
Grade
(
0.0
);
Grade
toto_Sport
=
new
Grade
(
5.0
);
toto
.
addResult
(
"UE_pro"
,
toto_UEpro
);
toto
.
addResult
(
"toto_Sport"
,
toto_Sport
);
toto
.
printResults
();
Grade
meAdvancedProg
=
new
Grade
(
18.0
);
Grade
totoAdvencedProg
=
new
Grade
(
5.0
);
Grade
meGeCo
=
new
Grade
(
16.5
);
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
();
}
}
This diff is collapsed.
Click to expand it.
src/main/java/Cohort.java
+
1
−
1
View file @
d3483fc4
...
...
@@ -43,7 +43,7 @@ public class Cohort {
System
.
out
.
println
(
this
.
toString
());
for
(
Student
student
:
this
.
students
)
{
student
.
printResults
();
System
.
out
.
println
();
System
.
out
.
println
();
// for one line break
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment