Você está na página 1de 8

AP-COMP 20014–SPRING–18-CW2 (ASSMNT)-QP

In Semester Examination

Assignment + Viva
Module: Advanced Programming (COMP 20014)
Level: 2 Max. Marks: 100(Scaled Down to 40 marks)

Work Proposal Submission: Week 8


Assignment Submission Date: Week 13

Instructions to Student:
1. This is an individual assignment.
2. Perform all tasks describe below
3. Students need to submit the implemented program in the form of a report with
sufficient comments to demonstrate their understanding of each component of the
program
4. A copy of the implemented program has to be submitted also
5. Assignment should be accompanied by a demonstration of implemented program.
6. Assignment will not be accepted without demonstration of implemented programs
7. ZERO marks will be awarded if student is absent for demonstration
Context of the Assignment:

The main goal of this assignment is to enable students to develop advanced applications in java
using pre-built libraries. In this assignment, students will create multithreading, networking,
client-server and database programme using java’s rich set of in-built packages.

Indented Learning Outcomes:

1. Develop applications using multithreading, client-server and networking concepts.


2. Demonstrate an understanding of database programming using JDBC
3. Create application using utility classes

Task 1: Submit a work proposal for this assignment in Moodle by end of week 8 which must
include the understanding of the program developments that you need to
Work
undertake and the associated timeline required for each part. You may want to
Proposal include all the steps that will be followed while undertaking the assignment.
Identified references may also be included. The work proposal carries 10 marks.

COMP 20014 Page 1 of 6


AP-COMP 20014–SPRING–18-CW2 (ASSMNT)-QP
Scenario Auto Dealers in Oman offer different purchasing options to their customers when
purchasing new cars. An auto dealer named Zubair Automotive Group wants its
sales people to be able to provide the basic information to customers such as Car
details, the price, interest rate, interest, total repayment and monthly repayment.

You have been asked to develop an interactive system (Non Graphical User Interface)
for car dealer called “Zubair Automotive Group” to prepare the monthly repayment for
the customers. On the client side, the Customer ID, numbers of years for repayment
and car ID will be accepted and then the numbers of years and Car ID will be forwarded
to the server.

Once the server receives the numbers of years for repayment and car ID, it would
use the car ID to search the database for the price and interest rate of the car. The
price and the interest will be used to calculate the total repayment and monthly
repayment.

After completing the calculations, the server would send back to the client such as
the car price, the total repayment and monthly repayment

Develop applications using multithreading, client-server, networking, database and


utility class concepts with the following concepts
Assignment Questions Mark
s
Task 2 Create a database in Access or in any other RDBMS: 10
Create a small database with a table having five fields: Car ID, Car Price,
Car Name, Car Model, Interest Rate and Years of Repayment. Use
appropriate data type and field properties. Insert at least five records.
Task 3 Client side program: Develop a server side program which will do the 15
following:
The client side would accept the customer name, Car ID and number of
years and forward the Car ID and the number of years to the server
(include field validation wherever possible)
a. Request connection to the server
b. Accept and forward the necessary data to the server
c. Receive and display the results from the server
d. Close the connection after use
Task 4 Server side program: Develop a server side program which will do the 25
following:
a. Accept the connection request
b. Receive the data and connect to the database
c. Use Car ID to search in the database for appropriate record
d. Use the price and interest rate retrieved together with the
numbers of years to calculate the interest, total repayment and
monthly repayment.
e. Send the result back: Car Name, Car Model, Price, interest rate,
interest, total repayment and monthly repayment.
f. Close the connection

COMP 20014 Page 2 of 6


AP-COMP 20014–SPRING–18-CW2 (ASSMNT)-QP
Task 5 Modify the Client/Server program to incorporate the concept of 15
multithreading
 Do the necessary modification to support multithreading
 Use at least two threads to show the transmission between the
sending and receiving thread.
Task 6 Using the same scenario develop an application using HashMap to 15
perform the different operations as described below;
a. Create an object of HashMap based on the scenario
b. Create a method that will allow adding key-value pair to
HashMap
c. Create a method that will allow deleting key-value pair to HashMap
d. Create a method that will allow the search of any record stored
in the HashMap using the key/value pair.
Task 7 Prepare a report to present the work done from task 2 to task 5. 10
The report should consist of the following
 A cover page to identify your work (Student ID,
Student Name, Module Code, Module Name)
 Table of content for your report
 Clear label and introduction of each task followed by
the coding of that task. Include comments wherever
possible to enhance the clarity of your coding
 Ensure proper formatting of your report
Total 100

NOTE: Marks for tasks 2 to 6 depend on viva which will be conducted upon submission of
assignment. The VIVA will be based on the tasks shown in assignment.
No marks will be awarded to student if he/she is absent in VIVA.

Guidelines

Follow the guidelines mentioned below for your assignment.

 Assignment should be typed.


 Code developed should be included (Soft copy and Hard Copy)
 Handwritten assignments will not be accepted
 Assignment should have a Title Page. Title Page should contain the following
information.
 Assignment Name
 Class
 Student name
 Student ID
COMP 20014 Page 3 of 6
AP-COMP 20014–SPRING–18-CW2 (ASSMNT)-QP
 It should have Table of Contents
 Use page numbers
 Assignment should be typed in your own words using Times New Roman font size 12.
 Heading should be with Font Size 14, Bold, Underline
 Copy paste from the Internet is strictly not acceptable.
 Reference should be included in the last page as follows
 Author name, Book Title, Publisher, Year in case of books
 In case of web site references type the full path of the web page with referenced
date
 In case of magazines/ periodicals type article name, magazine name, Issue number and
date
Rules & Regulations

 If any part of the assignment is found copied from the others then marks will be
deducted from both assignments.
 Assignments with 3 or more identical parts will be awarded 0 Marks.
 The purpose of assignment is to do some research work so you can consult
books in library or use internet or computer magazines or any other source.
Plagiarism Policy

As per MEC policy, any form of violation of academic integrity will invite severe penalty.
Plagiarized documents, in part or in whole, submitted by the students will be subject to this
policy.
A. First offence of plagiarism
a. A student will be allowed to re-submit the assignment once, within a maximum period of
one week. However, a penalty of deduction of 25% of the marks obtained for the
resubmitted work will be imposed.
b. Mark deduction: When the work is resubmitted, the marking will be undertaken according
to the marking criteria. In compliance with this policy, the 25% deduction is then made on
the marks obtained. For example, in an assessment that carries a maximum of 50 marks,
suppose a student were to obtain 30 marks for the resubmitted work, the final marks for
that assessment will be 22.5 (after deducting 25% of the marks actually obtained for the
resubmitted work).
c. Period of resubmission: The student will have to resubmit the work one week from the
date he or she is advised to resubmit. For example, if the formal advice to resubmit was
communicated to the student on a Sunday (latest by 5 pm), the student will have to
resubmit the work latest by next Sunday 5 pm.
COMP 20014 Page 4 of 6
AP-COMP 20014–SPRING–18-CW2 (ASSMNT)-QP
d. If the re-submitted work is also detected to be plagiarized, then the work will be awarded
a zero.
e. Resubmission of the work beyond the maximum period of one week will not be accepted
and the work will be awarded a zero.
B. Any further offence of plagiarism
a. If any student is again caught in an act of plagiarism during his/her course of study (either
in the same module, same semester or in any other semester), the student will directly be
awarded zero for the work in which plagiarism is detected. In such cases, the student will
not be allowed to re-submit the work.
C. Guidelines
a. Type 1: In case plagiarism is detected in any component or part submission (submitted at
different times) of one assessment (assignment), the deduction in marks will be applicable
for the whole assessment (assignment), even if only the component or part submission
alone needs to be resubmitted.
b. Type 2: In case plagiarism is detected in a group assessment, all students of the group will
be considered as having committed an act of plagiarism irrespective of whether plagiarism
is on account of the act of all or a few or only one member. The policy will then be applied
to all students.
c. Type 3: Combination of Type 1 and Type 2: In case plagiarism is detected in any
component or part submission (submitted at different times) of a group assessment
(assignment), the deduction in marks will be applicable for the whole assessment
(assignment), even if only the component or part submission alone needs to be
resubmitted. All students of the group would be considered as having committed an act of
plagiarism irrespective of whether plagiarism is on account of the act of all or a few or only
one member. The policy will then be applied to all the students of the group.
d. Type 4: Variation of Type 1 and Type 2: In cases where the assessment consists of
components or part submissions that could be a group assessment component (e.g. group
assignment) and an individual assessment component (e.g. individual reflection), the
following will be applicable:
1. If plagiarism is detected in the group assessment component, all students of the group
will be considered as having committed an act of plagiarism, irrespective of whether
plagiarism is on account of the act of all or a few or only one member. The policy will
then be applied to all students of the group. In such cases the group assessment
component will be resubmitted as per the policy.
2. If plagiarism is detected in the individual assessment component, the individual
assessment component will be resubmitted as per the policy. The policy will then be
applied to that student alone.
3. In both cases (a) and/or (b), the deduction in marks will be applicable for the whole
assessment (assignment).
D. Amount of similar material

COMP 20014 Page 5 of 6


AP-COMP 20014–SPRING–18-CW2 (ASSMNT)-QP
a. The total amount of similar material in any form of student work from all sources put
together should not exceed 30% (including direct quotations).
b. The total amount of quoted material (direct quotations) in any form of student work from
all sources put together should not exceed 10%.
c. The total amount of similar material in any form of student work from a single source
should not exceed 7 percent. However, cases having a similarity of less than 7 percent in
such cases may still be investigated by the faculty depending on the seriousness of the
case.
d. If faculty member find enough merit in the case of a student work with a similarity (with a
single source) of more than 7 percent as not a case of plagiarism, the faculty member
should provide detailed comments/remarks to justify the case.

Late Submission
Penalty for late submission - 5% of the maximum mark specified for the assessment will be
deducted for each working day.

Assessment documents submitted beyond a period of one week after the last date of
submission will not be accepted and will be marked as zero for that assessment.
Note: Must follow assignments instructions.

COMP 20014 Page 6 of 6


AP-COMP 20014–SPRING–18-CW2 (ASSMNT)-QP

Advanced Programming (COMP 20014)


Spring 2018
Student ID: _______________________ Student Name: ____________________________________
Assessment Sheet – Basic Assignment Analysis:
Deliverable Aspects [0] [1-5] [6-10] Marks

Task 1 Work proposal No submission Partial Completed work


Completion(Missing proposal
references and time
plan)

Deliverable Aspects [0] [1-7] [8-10] Marks

Task 2 Database/Table Database and Table Attempted All of the


Creation with the records are development - functionalities are
not implemented (Inappropriate data properly
type, some record implemented.
and DSN
configuration step
missing)
Deliverable Aspects [0-10] [11-13] [14-15] Marks

Task 3 Client side Attempted Attempted All of the


programming- development but development but functionalities are
have few errors properly
errors(Compilation (Compilation or implemented.
and/or runtime runtime or logic)
and/or logic) from from client side
client side program program

Deliverable Aspects [0-10] [11-19] [20-25] Marks

Task 4 Server side Attempted Attempted All of the


programming- development but development but functionalities are
have errors few errors properly
(Compilation and/or (Compilation or implemented.
runtime and/or logic) runtime or logic)
from server side from side program
program (JDBC driver & DSN
missing)
Deliverable Aspects [0-4] [5-10] [11-15] Marks
s
Task 5 Multithreaded Attempted Attempted All of the
programming development but development but functionalities are
have errors few errors properly
(Compilation and/or (Compilation or implemented.
runtime and/or logic) runtime or logic)

COMP 20014 Page 7 of 6


AP-COMP 20014–SPRING–18-CW2 (ASSMNT)-QP
Deliverable Aspects [0-4] [5-10] [11-15] Marks

Task 6 Create Attempted Attempted All of the


application development but development but functionalities are
using utility have errors few errors properly
classes (Compilation and/or (Compilation or implemented.
runtime and/or logic) runtime or logic)
from linked list from linked list
operations operations

Deliverable Aspects [0-4] [5-7] [8-10] Marks

Task 7 Report Report layout is not Report layout is Report layout is well
well formatted, well formatted with formatted with the
consist only of the the coding but coding, the table of
coding while the either the table of content and
table of content and content or comments included
comments are missing comments are
missing

Total Marks
Signature of Evaluator:
Penalty
Final Marks

COMP 20014 Page 8 of 6

Você também pode gostar