AP - Fall-23-ASSMNT-QP
AP - Fall-23-ASSMNT-QP
AP - Fall-23-ASSMNT-QP
Instructions to Student
• Answer all questions.
• Deadline of submission: 06/01/24, on or before 23:59 pm
• The marks received on the assignment will be scaled down to the actual weightage
of the assignment which is 40% marks.
• Formative feedback on the complete assignment draft will be provided if the draft is
submitted at least 10 days before the final submission date.
• Feedback after the final evaluation will be provided along with the results.
Assignment Objective
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 program using java’s rich set of in-built packages.
Assignment Tasks
Mwasalat is a prominent public transportation provider in Muscat, Oman, specializing in bus services.
Mwasalat offers various discounts to its passengers based on specific criteria. For monthly booking
passengers, 5% are applied. For half-yearly booking passengers (duration of 3 to 5 months), a 10%
discount is applied. For yearly booking passengers (duration of 6 to 12 months), a 20% discount is applied.
You have been asked to develop an interactive system (Non-Graphical User Interface) for the Mwasalat
to calculate the bus ticket price of its passengers.
On the client side, allow the user to enter the Civil Number and the option. The client will then forward
the Civil Number & option to the server.
MEC_AMO_TEM_035_04 Page 1 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
Upon receiving the option from the client, the server will retrieve the booking duration and the discount
from the database, calculate the final ticket price, and then send the booking duration, the discount used
and the final ticket price. Upon receiving the final price and the discount used, the client should display
them.
Develop applications using multithreading, client-server, networking, database, and utility class concepts
with the following concepts.
Select any two utility classes from the Java Collection Framework and do a comparative analysis of them.
Also, provide code snippets for the implementation of each.
Create a small database with a table having the fields: Option, Booking Duration & discount using
appropriate data type and field properties. Insert at least three records. Provide screenshot(s) of the
process of creating the database including the database server role together with explanations of the
steps taken to complete the task.
1 Monthly 0.05
3 Yearly 0.2
Implement the client-side requirements (non-graphical user interface) and then provide code snippets for
each function with clear explanations/comments of key statements used.
The client-side would accept the Civil Number and the option. The client will then forward the option to
the server. (Include input field validation wherever possible). The menu should be as per given below
table.
1. Monthly
2. Half yearly
3. Yearly
Select an option by entering;
MEC_AMO_TEM_035_04 Page 2 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
i. Create a thread using extending thread class or implementing a runnable interface and implement
a run method.
ii. Request connection to the server.
iii. Accept and forward the necessary data to the server.
iv. Receive and display the results from the server.
v. Close the connection after use.
Implement the server-side requirements and then provide code snippets for each function with clear
explanations/comments of key statements used.
i. Create a thread using extending thread class or implementing a runnable interface and implement
a run method.
ii. After receiving the option from the client side, the server should make a connection to the
database.
iii. Search the database using the option to retrieve the appropriate discount.
iv. The user assigns the number of days and the ticket price in the server then calculates the price
(CP=ticket price*days), discount (CP-Discount), and the final price (CP- Discount).
Days for monthly, half yearly and yearly you need to calculate.
The ticket price is to be assumed by the student.
v. Return to the client the calculated price, discount, and the final price.
vi. Close the connection with the database when done.
Provide a detailed reflection on the following MOOC course given in the link below. Your reflection should
address the area of Transactions and Meta Data. Your write-up should have an introduction to introduce
the topic, an elaboration of the use of that concept within a console application and concluding with your
own learning experience of that course. [Maximum words: 300 words] (Attach the progress report as an
appendix for evidence). (10 marks)
https://www.udemy.com/course/how-to-connect-java-jdbc-to-mysql/
Guidelines:
MEC_AMO_TEM_035_04 Page 3 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
• MEC upholds the spirit of academic integrity in all forms of academic work and any form of
violation of academic integrity shall invite severe penalty. Any benefit obtained by indulging
in the act of violation of academic integrity shall be cancelled.
• MEC also reserves the right to notify the appropriate law enforcement authorities of any
unlawful activity and to cooperate thereafter in any investigation of such activity.
• Faculty can conduct a viva to investigate and ascertain that the work submitted is student’s
own work as per the guidelines for the same. A student can be given a maximum of 2
chances to attend the viva in such cases. It is expected that the student attends the viva
during the first chance itself unless due to extenuating circumstances. If the student does
not attend the viva in spite of being given 2 chances and fails to submit valid reasons,
he/she will be awarded a fail in the module and this shall be counted as a case of academic
integrity violation.
All cases of violation of academic integrity on the part of the student shall fall under any of the below
mentioned categories:
1. Plagiarism
2. Malpractice
3. Ghost Writing
4. Collusion
MEC_AMO_TEM_035_04 Page 4 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
5. Other cases
If the student fails a module and has a proven case of academic integrity violation in this module,
the student is required to re-register the module. This is applicable to first and second offence of
academic integrity violation of plagiarism type
a. First Offence of Academic Integrity Violation:
i. Plagiarism
a. If a student is caught first time in an act of academic integrity violation during
his/her course of study in any assignment other than project work and if the type
of violation is plagiarism, then the student will be allowed to re-submit the
assignment once as per the period allowed for re submission However, a penalty
of deduction of 25% of the marks obtained for the resubmitted work will be
imposed.
b. Period of re-submission: The student will have to re-submit the work within one
week (5 working days) from the date he or she is advised to re-submit.
c. Re-submission of the work beyond the allowed period of resubmission will not be
accepted and the assessment will be awarded a zero mark.
d. If the re-submitted work (within the allowed period of resubmission) is also found
to be plagiarized, then that assessment component will be awarded a zero mark.
It shall also contribute to the total count of academic integrity violation for that
student.
e. If plagiarism is detected in UG Project work (Project 1, Project Planning and Project
Design and Implementation), the above clauses do not apply, and the work will be
summarily rejected. In these cases the student will be awarded a fail (F) grade and
is required to reregister the module.
ii. Malpractice / Ghostwriting / Collusion
If a student is caught first time in an act academic integrity violation during his/her course
of study for an assessment component irrespective of coursework or end semester and
if the type of violation is Malpractice/Ghostwriting/Collusion, then the student shall fail
the module.
MEC_AMO_TEM_035_04 Page 5 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
will not be allowed to resubmit the work, and s/he will directly be awarded zero
for the work in which plagiarism is detected.
b. The student shall also receive a warning of suspension in such cases.
ii. Malpractice/Ghostwriting/Collusion
a. If a student is caught a second time in an act academic integrity violation for an
assessment component irrespective of coursework or end semester and if the type
of violation is Malpractice/Ghostwriting/Collusion, then the student shall fail the
module.
b. The student shall also receive a warning of suspension in such cases.
c. Third Offence of Academic Integrity Violation:
a. If a student is caught a third time in an act of academic integrity violation for an
assessment component irrespective of coursework or end semester then the student
shall fail the module and also shall be suspended for one semester from the College,
once the academic integrity violation case is confirmed by Institutional Assessment
Review Committee.
b. The student shall be suspended for the immediate subsequent semester and can
register for modules only after having served the suspension period fully. This is also
applicable for semesters offered in block mode.
c. During the suspension period, the student shall have to mandatorily complete a course
on academic integrity/writing before s/he can register for any modules.
d. During the period of suspension, the student shall be allowed to attempt
supplementary examinations if s/he is eligible for the same. S/he shall also be allowed
access to all college facilities permitted for a regular student except for registering the
modules.
d. Fourth Offence of Academic Integrity Violation:
a. If a student is caught a fourth time in an act of academic integrity violation for an
assessment component irrespective of coursework or end semester, the student shall
fail the module and also shall be expelled from the College, once the case is confirmed
by Institutional Assessment Review Committee.
b. The student shall be expelled from the college and all access to the college facilities
and premises shall cease to exist. The documents shall be released only after getting
the NOC (No Objection Certificate) from Registration Office.
c. `On termination, the student shall not be refunded any fees paid for the academic
semester in which academic integrity violation was observed.
e. Other cases
If a student commits an act of academic integrity violation as per the definition of “other
cases” mentioned in the previous section or of a different nature, student’s case shall be
forwarded to an Institutional Assessment Review Committee, Chaired by the Associate
Dean, Academic Affairs. The committee shall investigate the case by means of a viva and/or
a hearing of the parties concerned if required and shall take appropriate decision. The
MEC_AMO_TEM_035_04 Page 6 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
penalty that can be granted to a proven case of academic integrity violation which falls in
this category of “other cases” can be a warning/component zero/ module
fail/suspension/expulsion depending on the nature and gravity of the offence.
f. Types/Variations of cases of Plagiarism and associated actions
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.
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.
If some students in the group are eligible to re-submit (first offence) and others are not
eligible, only eligible students will be allowed to re-submit within a period of one week and
the penalty will be applied as per the policy for each student according to his / her history of
violations.
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.
If some students in the group are eligible to re-submit (first offence) and others are not
eligible, only eligible students will be allowed to re-submit within a period of one week and
the penalty will be applied as per the policy for each student according to his / her history of
violation.
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:
a. 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.
If some students in the group are eligible to re-submit (first offence) and others are not
eligible, only eligible students will be allowed to re-submit within a period of one week and
the penalty will be applied for each student according to his / her history of violation.
MEC_AMO_TEM_035_04 Page 7 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
* For further details Refer to MEC Student Academic Integrity Policy in Student Handbook.
Or
https://meclearn.mec.edu.om/Academic%20Policies%20and%20General%20Information.pdf
MEC_AMO_TEM_035_04 Page 8 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
To protect and respect the rights, dignity, health, safety, and privacy of research subjects involved
including the welfare of animals and the integrity of environment, all student projects are
expected to be undertaken as per the MEC Research Ethics and Biosafety Policy. Accordingly the
following shall apply.
• Research and other enterprise activities shall be conducted by maintaining the high ethical
standards consistent with national and international standards and conventions.
• Any research at MEC that is categorized as high-risk research shall be subject to review and
approval by the Research Ethics and Biosafety Committee.
• Research activities involving collection of human or animal tissues and manipulation of microbial,
animal or plant cells shall be subject to review and approval by the Research Ethics and Biosafety
Committee.
• Participants involved in research must be informed about the purpose of research and intended
uses of research findings. Written consent must be obtained from people involved prior to the
commencement of research.
• Data obtained from participants must be treated with high confidence and should be used only
for the intended purpose of research.
4. Viva Regulations:
• Faculty can conduct a viva as per the institutional guidelines to investigate and ascertain that the
work submitted is student’s own work.
• It is expected that the student attends the viva during the first chance itself unless due to
extenuating circumstances.
• If the student is not able to attend the first call for viva as per the date and time notified by faculty,
s/he shall be given one more chance to attempt the viva within a week from the first call.
• If the student does not attend the viva in spite of being given two chances and fails to submit valid
reasons for the absence in viva within three working days from the last call for the viva, he/she
will be awarded a fail in the module. This shall also be counted as a case of academic integrity
violation.
• If the student fails a module and has a proven case of academic integrity violation in the module,
the student is required to re-register the module. This is also applicable in case the student fails
and has a first or second offence of academic integrity violation of plagiarism type. The fee for the
failed module for the semester in which academic integrity violation was observed shall not be
re-funded.
MEC_AMO_TEM_035_04 Page 9 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
Application of Theory /
Evidence of Reading
• Outstanding • Tasks completed with • Outstanding skills for • Outstanding ability to
knowledge and depth very high accuracy. critical analysis, use learning resources
of understanding of • Outstanding skills in evaluation and • Outstanding
principles and interpretation of synthesizing. presentation, logically
concepts. results / and • Outstanding reflective structured, using
• Outstanding ability to accomplishing practices, accurate grammar and
apply the theoretical practical tasks. demonstrating spelling.
concepts by • Demonstrates high outstanding personal • Mostly correct cross-
considering of degree of autonomy in learning and growth, referencing and links
information completing tasks insight into required to supporting evidence
systematically. professional values • Outstanding ability to
• Evidence of reading a and principles and communicate the
Outstanding wide range of professional information verbally
educational development planning. and in writing.
94 -100 literature/research • Original Findings • Outstanding ability to
and where applicable presented with work in groups and to
workplace strategies, conviction and justified manage teams.
policies and very well • Outstanding ability to
procedures. learn autonomously.
• Very accurate
referencing and
bibliography using
appropriate
referencing style
• Outstanding problem
solving skills and
outstanding decision-
making skills.
• Excellent knowledge • Tasks completed with • Excellent skills for • Excellent ability to use
and depth of high accuracy. critical analysis, learning resources
understanding of • Excellent skills in evaluation and
principles and interpretation of synthesizing. • Excellent presentation,
concepts. results / and • Excellent reflective logically structured,
• Excellent ability to accomplishing practices, using accurate
apply the theoretical practical tasks. demonstrating grammar and spelling.
concepts by excellent personal • Mostly correct cross-
Excellent considering of learning and growth, referencing and links
information insight into required to supporting evidence
84 – 93.99
systematically. professional values • Excellent ability to
• Evidence of beyond the and principles and communicate the
minimum expected professional information verbally
range of of educational development planning. and in writing.
literature/research • Findings presented • Excellent ability to
and where applicable with conviction and work in groups and to
First Class
MEC_AMO_TEM_035_04 Page 10 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
• Accurate referencing
and bibliography using
appropriate
referencing style
• Excellent problem
solving skills for
decision-making skills.
• Very good knowledge • Tasks completed with • Very good skills for • Very good ability to use
and depth of very good accuracy. critical analysis, learning resources
understanding of • Very good skills in evaluation and • Very good
principles and interpretation of synthesizing. presentation, logically
concepts. results / and • Very good reflective structured, using
• Very good ability to accomplishing practices, accurate grammar and
apply the theoretical practical tasks. demonstrating very spelling.
concepts by Good personal learning • Mostly correct cross-
considering of and growth, insight referencing and links
information into required to supporting evidence
systematically. professional values • Very good ability to
Very Good • Evidence of reading a and principles and communicate the
very good number of professional information verbally
77 – 83.99 educational development planning. and in writing.
literature/research • Findings presented • Very good ability to
and where applicable with conviction with work in groups and to
workplace strategies, very good justification manage teams.
Second Class, Upper Division
MEC_AMO_TEM_035_04 Page 11 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
• Good knowledge and • Tasks completed with • Good skills for critical • Good ability to use
depth of good accuracy. analysis, evaluation learning resources
understanding of • Good skills in and synthesizing. • Good presentation,
principles and interpretation of • Good reflective logically structured,
concepts. results / and practices, using accurate
• Good ability to apply accomplishing demonstrating good grammar and spelling.
the theoretical practical tasks. personal learning and • correct cross-
concepts by growth, insight into referencing and links
considering of required professional to supporting evidence
information values and principles • Good ability to
systematically. and professional communicate the
Good • Evidence of reading a development planning. information verbally
good number of • Findings presented and in writing.
70 – 76.99
educational with conviction and • Good ability to work in
literature/research good justification. groups and to manage
and where applicable teams.
Second Class, Lower Division
appropriate
referencing style
• Satisfactory problem
solving skills and
MEC_AMO_TEM_035_04 Page 12 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
exceptionally
competent for
decision-making.
• Basic knowledge and • Tasks completed with • Basic skills for critical • Acceptable
depth of minimum acceptable analysis, evaluation presentation, logically
understanding of accuracy. and synthesizing. structured, using
principles and • Acceptable skills in • Basic reflective accurate grammar and
concepts. interpretation of practices, spelling.
• Basic ability to apply results / and demonstrating some • Acceptable cross-
the theoretical accomplishing personal learning and referencing and links
concepts by practical tasks. growth, insight into to supporting evidence
considering of required professional • Basic ability to
information values and principles communicate the
Acceptable systematically. and professional information verbally
/ Pass • Evidence of reading a development planning. and in writing.
few number of • Findings presented • Basic ability to work in
50 – 59.9
educational with conviction and groups and to manage
literature/research acceptable teams.
and where applicable justification. • Basic ability to learn
workplace strategies, autonomously.
policies and • Basic referencing and
procedures. bibliography using
appropriate
referencing style
• Basic problem solving
skills and decision-
making skills.
• Inadequate knowledge • Tasks not completed • Poor skills for critical • Poor presentation,
and understanding of • Poor skills in analysis, evaluation logically structured,
principles and interpretation of and synthesizing. using accurate
concepts. results / and • Poor reflective grammar and spelling.
• Poor application of the accomplishing practices, • Inadequate cross-
theoretical concepts practical tasks. demonstrating some referencing and links
• No evidence of reading personal learning and to supporting evidence
educational growth, insight into • Poor ability to
Fail / Poor literature/research required professional communicate the
and where applicable values and principles information verbally
<50
workplace strategies, and professional and in writing.
policies and development planning. • Poor ability to work in
procedures. • Findings presented groups and to manage
unconvincingly with teams.
improper justification. • Poor ability to learn
autonomously.
• Inadequate
referencing and
bibliography using
appropriate
referencing style
MEC_AMO_TEM_035_04 Page 13 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
MEC_AMO_TEM_035_04 Page 14 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
Database Poor Only database and Database and Database and All the
implemen table structures Table with the Table created with functionalities are
tation or were created, and records are few records only properly
no records were not created but with good implemented with a
attempt inserted with a incorrect data explanation clear explanation
satisfactory type used with
explanation average
explanation
MEC_AMO_TEM_035_04 Page 15 of 16
Advanced Programming (COMP 20014.1) – FALL -23 – CW3 (ASSMGT) – All – QP
no the server side, the server side, from the server implemented with a
attempt thread creation thread creation side, thread clear explanation
run method, and run method, and creation run
database database method &
connectivity. connectivity. database
input/output Input/output connectivity.
stream missing stream Input/output
with a satisfactory implemented and stream
explanation transmission of implemented and
data with average transmission of
explanation data with good
explanation
Signature of Evaluator:
Total Marks
Penalty
Final Marks
MEC_AMO_TEM_035_04 Page 16 of 16