COMP 1002 Abraham Lincoln University Principles of Programming Assignment Assignment Tasks 1) Explain the concept and significance of user defined methods

COMP 1002 Abraham Lincoln University Principles of Programming Assignment Assignment Tasks

1) Explain the concept and significance of user defined methods in detail with help of your own program starting from method creation to calling of methods. The explanation should also cover the concept of parameter passing and return types.

Don't use plagiarized sources. Get Your Custom Essay on
COMP 1002 Abraham Lincoln University Principles of Programming Assignment Assignment Tasks 1) Explain the concept and significance of user defined methods
For $10/Page 0nly
Order Essay

(30 Marks)

2) Write a program in Java to define a class having methods for doing following operations.

? Read your name (should have at least 12 characters) from keyboard.

? Convert your name into an array of character type(All character of your name should be

stored in that array)

? Convert the character array created into an integer array containing ASCII values of those

characters.

? Find and display the sum of all even integers which are multiples of 6 from that array which

are present in odd position.

Create class that hosts the main method and create one object of the above mentioned class. The created object should be used to call all methods and display appropriate messages.

(20 Marks)

3) Write a program in Java to define a class with 3 instance variables representing module name, marks scored in that module, credit point of that module and two methods ,one for assigning values to the instance variables and another method for calculating and displaying CGPA based on the following formula,

CGPA= ((mark1*credit1) + (mark2*credit2) + …. (markN*creditN)) / (Total of all credits)

Note: The method for assigning values should read N set of values for all the three instance variables and give error message for following two conditions,

? Marks greater than 100 and less than zero.

? Credit points greater than 15 and less than 10.

Create class that hosts the main method and create two object of the above mentioned class.

(15 Marks)

4) Write a brief reflection Task2 and Task3 which may include description on data type used to solve the given tasks, variables used, objects created along with two sets of input and output for the given tasks within 400 words. Reflection should also include justification on logic used to solve the given tasks along with proper references.

(20 Marks)

5) Write a brief reflection on the Arrays along with your own codes in java after completing MOOC Course (link is given below) within 300 words. @Udemy: Introduction to programming with Java https://www.udemy.com/share/101sVG/. (15 marks) Principles of Programming (COMP 1002) – Spring – 20 – CW (Assignment) – A – QP
`
IN SEMESTER (INDIVIDUAL) ASSIGNMENT-2
Module Code: COMP 1002
Module Name: Principles of Programming
Level: 4
Max. Marks: 100
Instructions to Student
?
Answer all questions.
?
Deadline of submission: 04/07/2020 23:59
?
The marks received on the assignment will be scaled down to the actual weightage
of the assignment which is 50 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 final evaluation will be provided by 19/07/2020
Module Learning Outcomes
The following LOs are achieved by the student by completing the assignment successfully
1) Define arrays and function and understand their implementation
2) Develop modular programs.
Assignment Objective
The aim of this assignment is to the test student’s ability to use arrays and modular programming
concepts to solve specific problems using a proper program development methodology.
Assignment Tasks
1) Explain the concept and significance of user defined methods in detail with help of your own program
starting from method creation to calling of methods. The explanation should also cover the concept of
parameter passing and return types.
(30 Marks)
MEC_AMO_TEM_034_01
Page 1 of 7
Principles of Programming (COMP 1002) – Spring – 20 – CW (Assignment) – A – QP
2) Write a program in Java to define a class having methods for doing following operations.
?
Read your name (should have at least 12 characters) from keyboard.
?
Convert your name into an array of character type(All character of your name should be
stored in that array)
?
Convert the character array created into an integer array containing ASCII values of those
characters.
?
Find and display the sum of all even integers which are multiples of 6 from that array which
are present in odd position.
Create class that hosts the main method and create one object of the above mentioned class. The created
object should be used to call all methods and display appropriate messages.
(20 Marks)
3) Write a program in Java to define a class with 3 instance variables representing module name, marks
scored in that module, credit point of that module and two methods ,one for assigning values to the
instance variables and another method for calculating and displaying CGPA based on the following
formula,
CGPA= ((mark1*credit1) + (mark2*credit2) + …. (markN*creditN)) / (Total of all credits)
Note: The method for assigning values should read N set of values for all the three instance variables and
give error message for following two conditions,
?
?
Marks greater than 100 and less than zero.
Credit points greater than 15 and less than 10.
Create class that hosts the main method and create two object of the above mentioned class.
(15 Marks)
4) Write a brief reflection Task2 and Task3 which may include description on data type used to solve the
given tasks, variables used, objects created along with two sets of input and output for the given tasks
within 400 words. Reflection should also include justification on logic used to solve the given tasks along
with proper references.
(20 Marks)
5) Write a brief reflection on the Arrays along with your own codes in java after completing MOOC
Course (link is given below) within 300 words. @Udemy: Introduction to programming with Java
https://www.udemy.com/share/101sVG/.
(15 marks)
MEC_AMO_TEM_034_01
Page 2 of 7
Principles of Programming (COMP 1002) – Spring – 20 – CW (Assignment) – A – QP
Rules & Regulations:
?
?
?
?
?
All resources should be cited using CU Harvard style.
The final assignment must have a Title page, Table of Contents, References/ bibliography using
CU Harvard Style and page numbers.
Title Page must have Assignment Name, Module name, Session, your name, ID, and the name of
the faculty.
Softcopy in word format is to be submitted through Turnitin link on Moodle.
Viva may be conducted after the assignment submission as per the dates informed earlier.
Guidelines:
?
Assignment must be computer typed.
?
Font – Times New Roman
?
Font – Style – Regular
?
Font – Size – 12
?
Heading should be with Font Size 14, Bold, Capital and Underline.
?
?
?
Flowchart must be drawn using suitable software or by pencil.
Screen shot of result should be provided at the end of each task.
You can refer books in eLibrary or use internet resource. But you should not cut and paste material
from internet nor provide photocopied material from books. The assignment answers should be
in your own words after understanding the matter from the above resources.
Important Policies to be followed
1. Student Academic Integrity Policy*:
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.
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
5.
Other cases
MEC_AMO_TEM_034_01
Page 3 of 7
Principles of Programming (COMP 1002) – Spring – 20 – CW (Assignment) – A – QP
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 offenders of
plagiarism.
1. Plagiarism
A. First offence of plagiarism
I.
If a student is caught first time in an act of plagiarism during his/her course of study in
any assignment other than project work, the 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.
II.
Period of re-submission: The student will have to re-submit the work one week from the
date he or she is advised to re-submit.
III.
If the re-submitted work is also found to be plagiarized, then that assessment will be
awarded a zero mark. Re-submission of the work beyond the maximum period of one
week will not be accepted and the assessment will be awarded a zero mark.
B. Second offence of plagiarism
If any student is caught second time in an act of plagiarism during his/her course of study (in a
subsequent 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 resubmit the work. A warning of
suspension shall be issued, and student has to sign an undertaking and undergo counselling
session in such cases.
2. Malpractice/Ghostwriting/Collusion
A. First offence of Malpractice/Ghostwriting/Collusion
If a student is caught in an act of Malpractice/Ghostwriting/Collusion for an assessment
component irrespective of coursework or end semester, the student shall fail the module
and shall be required to re-register the module
B. Second Offence of Malpractice/Ghostwriting/Collusion
If a student is caught a second time in an act of Malpractice/Ghostwriting/Collusion for
an assessment component irrespective of coursework or end semester, the student
shall fail the module. A warning of suspension shall be issued, and student has to sign
an undertaking and undergo counselling session in such cases.
3. Third Offence of Academic Integrity Violation
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 (in a subsequent semester), the student
shall fail the module and also shall be suspended for one semester from the College, as
recommended by institutional level academic committee, Chaired by the Associate Dean, Academic
Affairs.
MEC_AMO_TEM_034_01
Page 4 of 7
Principles of Programming (COMP 1002) – Spring – 20 – CW (Assignment) – A – QP
4. Fourth Offence of Academic Integrity Violation:
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 (in a subsequent semester), the student shall
fail the module and also shall be expelled from the College, as recommended by institutional level
academic committee, Chaired by the Associate Dean, Academic Affairs.
5. 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 level academic committee, Chaired by the Associate Dean, Academic Affairs. The
committee shall investigate the case by means of a viva and/or a disciplinary hearing and shall take
appropriate decision. The 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.
6. Types/Variations of Cases:
I.
II.
III.
IV.
If plagiarism is detected in any component of one assessment, the deduction in marks will be
applicable for the whole assessment, even if only the component or part submission alone needs
to be resubmitted.
If plagiarism is detected in a group assessment, all students of the group will be considered as
having committed an act of plagiarism and the policy will then be applied to all students
If plagiarism is detected in any component of a group assessment, the deduction in marks will be
applicable for the whole assessment 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 and the
policy will then be applied to all the students of the group.
If 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, The policy will then be
applied to all students of the group. Group assessment component will be resubmitted
as per the policy.
b.
If plagiarism is detected in the individual assessment component, the individual
assessment component will be resubmitted and the policy will then be applied to that
student alone.
c.
For both (a) and/or (b), the deduction in marks will be applicable for the whole
assessment.
* for further details Refer to MEC Student Academic Integrity Policy in Student Handbook.
MEC_AMO_TEM_034_01
Page 5 of 7
Principles of Programming (COMP 1002) – Spring – 20 – CW (Assignment) – A – QP
2. Late Submission Regulations:
It is the students’ responsibility to check all relevant timelines related to assessments.
As per the Assessment Policy at MEC, late submissions are allowed for one week (5 working days)
for all UG modules with a penalty. In such cases, a deduction of 5% of the marks obtained for the
submitted work shall be imposed for each working day following the last date of submission
till the date of actual submission. Assessment documents submitted beyond a period of one
week (5 working days) after the last date of submission will not be accepted and will be awarded
a zero for that assessment. In cases where the submission has been delayed due to extenuating
circumstances, the student may be permitted to submit the work without imposing the late
submission policy stated above. The extended period of submission will be one week from the
original last date of submission. In such cases, the student is expected to submit the supporting
certificates on or before the original last date of submission of the assessment and the decision
of extension rests with faculty responsible for the assessment .The late submission policy shall be
applied if the student fails to submit the work within one week of the original last date of
submission.
Students may contact their teachers for clarification on specific details of the submission time if
required.
3. Research Ethics and Biosafety Policy
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.
Assessment Evaluation Criteria
MEC_AMO_TEM_034_01
Page 6 of 7
Principles of Programming (COMP 1002) – Spring – 20 – CW (Assignment) – A – QP
Assessment Sheet –Assignment Analysis (POP COMP 1002- Semester: Spring 2020)
Student Name:
0
Deliverables
Task 1
Student ID:
Incomplete
programs
and
explanation
01-14
14-18
Partially correct
programs and
explanation.
Satisfactory programs
and explanation
0
Deliverables
Incomplete
program
01-07
Partially correct
program
Task 2
Deliverables
0
Task 3
Incomplete
program
Deliverables
0
Task 4
Incomplete
reflection
Deliverables
0
Task 5
Incomplete
reflection
01-06
Partially correct
program
01-07
08-12
Satisfactory programs
without taking input
from keyboard and
minor logical errors.
07-09
Satisfactory programs
without taking input
from keyboard and
minor logical errors.
08-12
19-26
Demonstration of use of
relevant data types and
keywords for implementing
programs and proper and
logical explanation.
13-17
Demonstration of use of
relevant data types and
good logic for implementing
programs.
10-12
Demonstration of use of
relevant data types and
good logic for implementing
programs.
13-17
Partially written Satisfactorily written
well written reflection with
reflection on all reflection covering
literature underpinning
tasks
explanation on all tasks
01-06
07-09
Partially written Satisfactorily written
reflection on
reflection covering
Arrays
Array.
27-30
Marks
Complet
e and
accurate
in all
aspects
18-20
Marks
Complet
e and
accurate
in all
aspects
13-15
Marks
Complet
e and
accurate
in all
aspects
18-20 Marks
Complete
and
accurate
in all
aspects
10-12
13-15
Well written reflection with
covering Array along with
your own codes in java with
proper references.
Complete
and
accurate
in all
aspects
Marks
Total Marks
Signature of evaluator
Penalty
Final Marks
Remarks:
MEC_AMO_TEM_034_01
Page 7 of 7

Purchase answer to see full
attachment

Calculator

Calculate the price of your paper

Total price:$26

Need a better grade?
We've got you covered.

Order your paper