| CSC238 | Object Oriented Programming | Mei2012 ... - sitinur151

oatmealbrothersSoftware and s/w Development

Nov 18, 2013 (3 years and 6 months ago)

344 views

| CSC238

|
Object Oriented Programming

|

Mei201
2
-
Sep201
2

|





|
Assignment 1 | JAVA Programming Basic |



Page
1



Assignment 1
:
JAVA Programming Basic

(2.5%)

Submissions
:
June 2
1
, 201
2
, 5:00PM



Question 1:

Write a program that reads a set of integers, and then finds and prints:



the sum of the even and odd integers



the average of the even and odd integers



the
highest of the even and odd integers



the number of the even and odd integers


Question 2:

In a gymnastic or diving competition, each contestant’s score is calculated by dropping the lowest and
the highest scores and then adding the remaining scores. Write
a program that allows the user to
enter eight judges’ scores and then outputs the points received by the contestant. Format your output
with two decimal places. A judge awards point between 1 and 10, with 1 being the lowest and 10
being the highest. For ex
ample, if the scores are 9.2, 9.3, 9.0, 9.9, 9.5, 9.5, 9.6 and 9.8, the contestant
receives a total of 56.90 points.


Instruction to the students (Please read carefully and thoroughly):

1.

Answer 1 question only. You can choose to answer either Question 1 or Question 2.

2.

Submit t
he hardcopy of the program


hand written.

3.

Submit t
he sample input and output form the running program


print screen.

4.

The Scoring Rubric for marking scheme must be

attached together during submission of your
program; otherwise NO marks will be given for your assignment.

5.

Deadline is on June 21, 2012
, 5:00PM. Late submission will be penalized and marks will be
deducted.


.












| CSC238

|
Object Oriented Programming

|

Mei201
2
-
Sep201
2

|





|
Assignment 1 | JAVA Programming Basic |



Page
2


Name



:
_______________________________________________

Student Number

: _______________________________________________

Group/Class


: _______________________________________________


ASSIGNMENT
1

GRADING RUBRIC:

Marking Scheme

Category

Remarks

Weak

Moderate

Good

Excellent

Outstanding

Clarity of program’s
presentation


1

2

3

4

5


The program is clearly written as well as easy to understand.

Each of the process is documented.

No plagiarism within the program.


Algorithm of a program


1

2

3

4

5


The algorithm of the program is capable of solving the problem
completely. Apply a good indention of programming structure.

There is no syntax error, logic error and run
-
time error.


Object Oriented

Programming concepts

1

2

3

4

5


Apply a clearly
Object
-
Oriented Programming concepts within the
algorithm of the program.

Important required
variables for input,
process and output

1

2

3

4

5

All input, process and output variables are clearly defined and outlined.

Result

1

2

3

4

5


The program
produced expected output with correct and
presentable format.







25