Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Programmation2
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
RANGHEARD Leo
Programmation2
Commits
02cc0e06
Commit
02cc0e06
authored
4 years ago
by
RANGHEARD Leo
Browse files
Options
Downloads
Patches
Plain Diff
Petites retouches, Fin de la classe Main. Sortie du programme correcte
parent
0bcbf939
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
tp1/Cohort.java
+1
-0
1 addition, 0 deletions
tp1/Cohort.java
tp1/Main.java
+10
-0
10 additions, 0 deletions
tp1/Main.java
tp1/Student.java
+1
-1
1 addition, 1 deletion
tp1/Student.java
with
12 additions
and
1 deletion
tp1/Cohort.java
+
1
−
0
View file @
02cc0e06
...
...
@@ -44,6 +44,7 @@ public class Cohort {
*/
public
void
printStudentsResults
()
{
printName
();
System
.
out
.
println
();
for
(
Student
student
:
students
){
student
.
printResults
();
}
...
...
This diff is collapsed.
Click to expand it.
tp1/Main.java
+
10
−
0
View file @
02cc0e06
public
class
Main
{
public
static
void
main
(
String
[]
args
){
Student
leoRangheard
=
new
Student
(
"Leo"
,
"Rangheard"
);
Student
ahmedSouissi
=
new
Student
(
"Ahmed"
,
"Souissi"
);
leoRangheard
.
addResult
(
"Programmation 2"
,
new
Grade
(
19
));
leoRangheard
.
addResult
(
"Structures Discrètes"
,
new
Grade
(
16
));
ahmedSouissi
.
addResult
(
"Programmation 2"
,
new
Grade
(
20
));
ahmedSouissi
.
addResult
(
"Structures Discrètes"
,
new
Grade
(
15
));
Cohort
l2info
=
new
Cohort
(
"L2 Informatique"
);
l2info
.
addStudent
(
leoRangheard
);
l2info
.
addStudent
(
ahmedSouissi
);
l2info
.
printStudentsResults
();
}
}
This diff is collapsed.
Click to expand it.
tp1/Student.java
+
1
−
1
View file @
02cc0e06
...
...
@@ -108,7 +108,7 @@ public class Student {
}
private
void
printAverageGrade
()
{
System
.
out
.
println
(
this
.
getAverageGrade
().
toString
());
System
.
out
.
println
(
"Note Moyenne = "
+
this
.
getAverageGrade
().
toString
());
}
...
...
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