Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

Marking Guide

CPSC 441 – Assignment 1

Total Points = 100

We have to be able to compile and run your code using Java command line tools (i.e., javac and java) with default options (as installed on CPSC Linux machines). Otherwise, you will receive a mark of 0 regardless of the actual implementation and the amount of code submitted.

General features:

1.    Sending and receiving operations are deadlock free with interleaved reads and writes.

2.    Read and write operations are implemented using a buffer.

3.    Streams and socket are closed properly.

4.    Server name and port number are not hard coded.

5.     Both text and binary files are compressed correctly.

General Requirements

DGzcL!b!!on

bGn时I!入

Program includes concepts or libraries that are not allowed

-50

Method signatures do not conform to the specification

-50

Submission instructions have not been followed

-20

Design document not submitted or unacceptable.

-20

Program does not have proper code structure and comments

- 10

Design Requirements

DGzcL!b!!on

bGn时I!入

Serial Read and Write operations (as opposed to parallel IO)

-50

Byte-by-Byte Read and Write operations (as opposed to block IO)

-20

Comments:

Functio Marks

Description

Grade

Typical Case:

Run the server remotely on a CPSC server. Run the client locally. Compress a medium size binary file of afew 100 KBytes.

 

 

50

1.   Expected outcome:

a.    The client runs and transfer is completed

b.    The file is compressed correctly.

c.    There is no stalling or exceptions.

 

quickly.

 

10

2.   Correct console output format

 

Special Cases:

Change the value of the parameters mentioned below. For others, use the default values.

 

20

3.   Effect of file size and type

a.    A small text file of a few Bytes (10)

b.   A large binary file of several MBytes (10)

 

 

20

4.   Error handling

a.    Wrong server name or port (10)

b.   Non-existent input file (10)