Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
group2-9831045-APmanual-2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9831045
group2-9831045-APmanual-2
Commits
e183b48f
Commit
e183b48f
authored
Mar 06, 2020
by
9831045
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes
parent
c07c04d8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
11 deletions
+16
-11
workspace.xml
.idea/workspace.xml
+8
-9
Lab.class
out/production/Run/Lab.class
+0
-0
Run.class
out/production/Run/Run.class
+0
-0
Lab.java
src/Lab.java
+1
-0
Run.java
src/Run.java
+6
-2
Student.java
src/Student.java
+1
-0
No files found.
.idea/workspace.xml
View file @
e183b48f
...
...
@@ -5,7 +5,6 @@
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/out/production/Run/Lab.class"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/out/production/Run/Lab.class"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/out/production/Run/Run.class"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/out/production/Run/Run.class"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/out/production/Run/Student.class"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/out/production/Run/Student.class"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Lab.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Lab.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Run.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Run.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Student.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Student.java"
afterDir=
"false"
/>
...
...
@@ -72,22 +71,22 @@
<screen
x=
"0"
y=
"0"
width=
"1366"
height=
"728"
/>
</state>
<state
x=
"275"
y=
"21"
key=
"#Project_Structure/0.0.1366.728@0.0.1366.728"
timestamp=
"1583492226195"
/>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1583501
471086
"
>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1583501
691943
"
>
<screen
x=
"0"
y=
"0"
width=
"1366"
height=
"728"
/>
</state>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.bottom/0.0.1366.728@0.0.1366.728"
timestamp=
"1583501
471086
"
/>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.center"
timestamp=
"1583501
471086
"
>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.bottom/0.0.1366.728@0.0.1366.728"
timestamp=
"1583501
691943
"
/>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.center"
timestamp=
"1583501
691943
"
>
<screen
x=
"0"
y=
"0"
width=
"1366"
height=
"728"
/>
</state>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.center/0.0.1366.728@0.0.1366.728"
timestamp=
"1583501
471086
"
/>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.left"
timestamp=
"1583501
471086
"
>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.center/0.0.1366.728@0.0.1366.728"
timestamp=
"1583501
691943
"
/>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.left"
timestamp=
"1583501
691942
"
>
<screen
x=
"0"
y=
"0"
width=
"1366"
height=
"728"
/>
</state>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.left/0.0.1366.728@0.0.1366.728"
timestamp=
"1583501
471086
"
/>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.right"
timestamp=
"1583501
471086
"
>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.left/0.0.1366.728@0.0.1366.728"
timestamp=
"1583501
691942
"
/>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.right"
timestamp=
"1583501
691943
"
>
<screen
x=
"0"
y=
"0"
width=
"1366"
height=
"728"
/>
</state>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.right/0.0.1366.728@0.0.1366.728"
timestamp=
"1583501
471086
"
/>
<state
width=
"1366"
height=
"180"
key=
"GridCell.Tab.0.right/0.0.1366.728@0.0.1366.728"
timestamp=
"1583501
691943
"
/>
<state
x=
"184"
y=
"0"
key=
"SettingsEditor"
timestamp=
"1583493438190"
>
<screen
x=
"0"
y=
"0"
width=
"1366"
height=
"728"
/>
</state>
...
...
out/production/Run/Lab.class
View file @
e183b48f
No preview for this file type
out/production/Run/Run.class
View file @
e183b48f
No preview for this file type
src/Lab.java
View file @
e183b48f
public
class
Lab
{
private
Student
[]
students
;
private
int
avg
;
...
...
src/Run.java
View file @
e183b48f
import
java.util.ArrayList
;
/**
* @author Amir Foroughi 9831045
* @version 1.0
*/
public
class
Run
{
public
static
void
main
(
String
[]
args
)
{
...
...
@@ -76,7 +80,7 @@ public class Run {
//what if we want to get the student array itself
students
=
lab
.
getStudents
();
//printing the new average because we just added std4
//printing the new average because we just added std4
although it was printed in the print method
System
.
out
.
println
(
"The new lab average is = "
+
lab
.
getAvg
());
}
...
...
src/Student.java
View file @
e183b48f
public
class
Student
{
private
String
firstName
;
private
String
lastName
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment