Reference no: EM132552996
COMP 10005 Introduction to Programming - Middle East College
Learning Outcome 1: Demonstrate the use of arrays with a programming language
Learning Outcome 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 on or before 17/06/2020 (23:59) which must include:
• Timeline for completion of the given tasks.
• General overview of proposed plan - initial understanding of all tasks
• Identification of Literature Resources
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
A
|
A-
|
B+
|
B
|
B-
|
C+
|
C
|
C-
|
D+
|
D
|
D-
|
F
|
91-
100
|
87-
90
|
84-
86
|
80-
83
|
77-
79
|
74-
76
|
70-
73
|
66-
69
|
60-
65
|
55-
59
|
50-
54
|
0-
49
|
IV. 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
|
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.
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.
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.
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
Attachment:- Introduction to Programming.rar