COMP 1005 Middle East College Use of Arrays with A Programming Language HW I have uploaded file named “Questions” related to Introduction to Programming co

COMP 1005 Middle East College Use of Arrays with A Programming Language HW I have uploaded file named “Questions” related to Introduction to Programming consist of 4 tasks. Solve them all.*** Attachment has been uploaded named “Questions”. Introduction to Programming (COMP 10005) – Spring – 20 – CW 2 (Assignment-2) – All – QP
(INDIVIDUAL) ASSIGNMENT 2
Module Code: COMP 10005
Module Name: Introduction to Programming
Level: 1
Instructions to Student

Answer all questions.
Module Learning Outcomes
The following LOs are achieved by the student by completing the assignment successfully
1. Demonstrate the use of arrays with a programming language
2. Define and work with classes and objects in a programming language
Assignment Objective
The aim of this assignment is to the test student’s ability to use Control Structure, arrays and work
with classes and objects to solve specific problems using a programming language.
Assignment Tasks
1) Submit a work proposal for this assignment which must include:



Timeline for completion of the given tasks.
General overview of proposed plan – initial understanding of all tasks
Identification of Literature Resources
The work proposal must be submitted in a word file through the link available in Moodle.
MEC_AMO_TEM_034_01
Page 1 of 10
Introduction to Programming (COMP 10005) – Spring – 20 – CW 2 (Assignment-2) – All – QP
2)
Red Sands University (RSU) is a popular brand of education in Bidiya. RSU offers business degree
for undergraduate programs. It wants to have an information system to calculate the GPA of the
students appearing for the examination. Write a java program as per following scenario:
I.
As a first step, you have been asked to develop a mini system in Java to read data of
(n) students.
II.
The program must read the student id, name and marks scored in 5 modules –
module1, module2, module3, module4, and module5. Each module is of 10 credits.
III.
The program must determine the grade based on the marks scored using table 1.1
given below:
Table 1.1: Determining grades
IV.
A
A-
B+
B
B-
C+
C
C-
D+
D
D-
F
91-
87-
84-
80-
77-
74-
70-
66-
60-
58-
50-
0-
100
90
86
83
79
76
73
69
65
64
57
49
Based on the grade, the program must map the equivalent numerical value of grade
for each module using table 1.2 given below:
Table 1.2: Mapping grades to numerical values
Grade
Numerical value
A
4.0
A-
3.67
B+
3.33
B
3.0
B-
2.67
C+
2.33
C
2.0
C-
1.67
D+
1.33
D
1.0
D-
0.7
F
0
MEC_AMO_TEM_034_01
Page 2 of 10
Introduction to Programming (COMP 10005) – Spring – 20 – CW 2 (Assignment-2) – All – QP
V.
The program needs to calculate and display the Grade Point Average (GPA). You
may use the following as an example to understand this whole business process.
Example:
module1
module2
module3
module4
module5
89
82
85
92
77
A10
3.67 X 10
= 36.7
B
10
3.0 X 10
= 30.0
B+
10
3.33 X 10
= 33.0
A
10
4.0 X 10
= 40.0
B10
2.67 X 10
= 26.7
————-50
50
166.7
————-Sem. GPA = 166.7 / 50 = 3.334
Rounded = 3.34
The program must use array of objects to read the student id, name, and marks in 5 modules for
n students. Format the output, especially the numeric values to two decimal places.
Create a test case for sample inputs, work out manually the possible output for these inputs.
Verify that the program actually produces the same output.
Sample Input / Output:
MEC_AMO_TEM_034_01
Page 3 of 10
Introduction to Programming (COMP 10005) – Spring – 20 – CW 2 (Assignment-2) – All – QP
3) Write a java program to calculate the bonus of employee using class and object as per following
scenario:
Write java code to read employee name, Salary and year of services and two methods. Calculate and
display the bonus of the employee as per following conditions:




If years of service is in between 15 and 10 years then bonus is 100% of the salary.
Else the years of service is in between 9 to 6 years, then bonus is 75% of the salary
Else the years of service is between 5 to 1 years, then bonus is only 50% of the salary.
otherwise ,no bonus
Create class that hosts the main method and create one object. The created object should be used to call
all methods and display appropriate messages.
Sample Input/Output:
MEC_AMO_TEM_034_01
Page 4 of 10
Introduction to Programming (COMP 10005) – Spring – 20 – CW 2 (Assignment-2) – All – QP
4) Write a brief reflection of Task 2 and 3 which may include description on data type used to solve
the given task, variable used, and objects created. Reflection should also include justification on
logic used to solve the given task along with proper references
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.

Explain with suitable diagrams wherever required. Diagrams must be drawn using suitable
software or by pencil.
Each student has to do the assignment individually / Students have to do the assignment
collaboratively and each student should write a brief reflection on their contribution and learnings
from group work.

MEC_AMO_TEM_034_01
Page 5 of 10
Introduction to Programming (COMP 10005) – Spring – 20 – CW 2 (Assignment-2) – All – QP

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.
MEC_AMO_TEM_034_01
Page 6 of 10

Purchase answer to see full
attachment

Don't use plagiarized sources. Get Your Custom Essay on
COMP 1005 Middle East College Use of Arrays with A Programming Language HW I have uploaded file named “Questions” related to Introduction to Programming co
For $10/Page 0nly
Order Essay
Calculator

Calculate the price of your paper

Total price:$26

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

Order your paper