Extension To Programming Solution To A Problem

pages Pages: 4word Words: 890

Question :


 
 
 
ASSESSMENT BRIEF
 
 
 
 
 
 
 
COURSE: Bachelor of IT
 
Unit:
 
Object Oriented Design and Programming
 
 
 
 
 
Unit Code:
 
OODP101
 
 
 
 
 
Type of Assessment:
 
Assessment Task 4 –Extension to Programming Solution to a Problem
 
 
 
 
 
Length/Duration:
 
N/A
 
 
 
 
 
 
 
Systems development and User experience
 
 
 
a) To act as an ethical practitioner while demonstrating skills in data
 
 
 
analysis, database design, system design, web design and software
 
Course Learning
 
development & testing.
 
 
Teamwork and self-management skills
 
Outcomes addressed:
 
 
 
b) To take responsibility for their own time management delivering
 
 
 
 
 
 
quality required material on time in dynamically changing technological
 
 
 
and communication contexts whether as an individual or member of a
 
 
 
small team.
 
 
 
Upon successful completion of this unit students should be able to:
 
 
 
a. Analyse and dissect simple design and programming problems
 
Unit Learning
 
b. Demonstrate basic knowledge of object oriented programming
 
 
concepts and syntax
 
Outcomes addressed:
 
 
 
c. Implement a well-designed modularised solution to small
 
 
 
 
 
 
programming problems
 
 
 
d. Develop and/or implement testing schedules
 
Assessment Task:
 
Extension to Programming Solution to a Problem

Students are advised that any submissions past the due date without an approved extension or

without approved extenuating circumstances incurs a 5% penalty per calendar day,

calculated from the total mark

E.g. a task marked out of 40 will incur a 2 mark penalty per calendar day.

More information, please refer to (Documents > Student Policies and Forms > POLICY –

Assessment Policy & Procedures – Login Required)

 
Kent Institute Australia Pty. Ltd.
Assessment Brief
ABN 49 003 577 302 CRICOS Code: 00161E RTO Code: 90458
Version 1: 2nd November, 2018
TEQSA Provider Number: PRV12051


ASSESSMENT DESCRIPTION:

ABC Institute is offering a unit of Java programming in summer, 2018. They have 5 student enrolled in that particular unit. Unit coordinator is concern about the marking of that unit. There are 4 assessment task to be performed by the students. Before the final exam, marks for the first 3 assessment tasks are as follows:

Assessment Marks

Student
Task 1
Task 2
Task 3
Task 4
 
(10)
(20)
(30)
(40)
1
9.5
18.0
25.5
 
2
9.0
19.0
20.0
 
3
5.0
12.5
18.0
 
4
8.5
16.0
22.0
 
5
7.0
11.0
25.0
 

1. You will be given the Student data for a Unit (Student ID, Task1: Class Test (10%), Task2: Assignment 1 Marks (20%) and Task3: Final Assignment Marks (30%)) in a text file.

2. You will have to create a Student Class with the data members and methods.

3. You will then need to store the data from the above using a file in an array of object of the student class.

4. You will need to add Task4: Final Exam Marks (40%) data as input.

5. Calculate total marks and assign a Grade for individual student.

6. Save all data to a different output text file.

OUTPUT FILE HEADER:

STUDENT-ID TASK1 TASK2 TASK3 TASK4 TOTAL GRADE 1 2 3

Your program must not crash. You have several options to prevent crashes:

a)use try/catch

b)use regex (regular expressions)

c)use both

Design & Test & User Documentation:

Submit a Word document (3 pages) containing the following:

1.Your program design, you can use flowchart, IPO, pseudocode (not code).

2.Your test data and expected results (this means do the maths on paper first) and a test report. You should have at least three test cases

3.A user guide, include any assumptions you make (e.g. max marks), any errors/bugs, any suggestions for future improvements

ASSESSMENT SUBMISSION:

1.Ensure assignment is submitted to the proper submission link.

2.Assignment must be submitted by the date specified in the moodle.

 
Kent Institute Australia Pty. Ltd.
Assessment Brief
ABN 49 003 577 302 CRICOS Code: 00161E RTO Code: 90458
Version 1: 2nd November, 2018
TEQSA Provider Number: PRV12051


3.Create a ZIP file using your ID and Name includes the following (eg. K1234567-Name.zip)

Java Code(.java) file for the Main program (eg. K111111.java)

Student Class(.java) file for the class program.

Both Java Class(.class) File (eg. Main and Class)

Input File (.txt)

Output File (.txt)

Word Document file (.docx



Show More

Answer :

Q1. Program Design by Flowchart.

Ans. Student Class

  1. Parameterized Constructor with all fields
  2. Parameterized Constructor with String line passed.
  3. Get Grade Method.
  4. Get Total Method 
  5. toString method 

2. Your Test Data and expected Results

Test Data Case 1

STUDENT-ID   TASK1   TASK2   TASK3   TASK4   TOTAL   GRADE

1            9.50    18.00   25.50   23.00   76.00   B       

2            9.00    19.00   20.00   1.00    49.00   E       

3            5.00    12.50   18.00   32.00   67.50   C       

4            8.50    16.00   22.00   2.00    48.50   E       

5            7.00    11.00   25.00   1.00    44.00   E       


Test Data Case 2

STUDENT-ID   TASK1   TASK2   TASK3   TASK4   TOTAL   GRADE

1            9.50    18.00   25.50   23.00   76.00   B       

2            9.00    19.00   20.00   23.00   71.00   C       

3            5.00    12.50   18.00   40.00   75.50   B       

4            8.50    16.00   22.00   0.00    46.50   E       

5            7.00    11.00   25.00   23.00   66.00   C   



Test Data Case 3

 

STUDENT-ID   TASK1   TASK2   TASK3   TASK4   TOTAL   GRADE

1            9.50    18.00   25.50   35.00   88.00   B       

2            9.00    19.00   20.00   36.00   84.00   B       

3            5.00    12.50   18.00   37.00   72.50   C       

4            8.50    16.00   22.00   38.00   84.50   B       

5            7.00    11.00   25.00   39.00   82.00   B  


All test cases passed successfully.


3. A user guide, include any assumptions you make (e.g. max marks), any errors/bugs, any suggestions for future improvements


Ans. 

Assumptions

  1. Task 4 can have marks between 0 and 40 only. Marks less than 0 and more than 40 are not allowed.
  2. There must be a file with name input.txt in the directory where code file exists.
  3. Grade has specific criteria:

90 – 100 : A

75 – 90   : B

60 – 75   : C

50 – 60   : D

40 – 50   : E

>40         : F


Future Improvements:

  1. We can further improve this design to have any number of students in the input file.




Main Class

  1. Main method 
  2. InitStudentsArray Method 
  3. readTask4 Method 
  4. saveData method 





Test Cases and results

Test Case 1:

STUDENT-ID   TASK1   TASK2   TASK3   TASK4   TOTAL   GRADE

1            9.50    18.00   25.50   23.00   76.00   B       

2            9.00    19.00   20.00   1.00    49.00   E       

3            5.00    12.50   18.00   32.00   67.50   C       

4            8.50    16.00   22.00   2.00    48.50   E       

5            7.00    11.00   25.00   1.00    44.00   E  



Test Case 2:

STUDENT-ID   TASK1   TASK2   TASK3   TASK4   TOTAL   GRADE

1            9.50    18.00   25.50   23.00   76.00   B       

2            9.00    19.00   20.00   23.00   71.00   C       

3            5.00    12.50   18.00   40.00   75.50   B       

4            8.50    16.00   22.00   0.00    46.50   E       

5            7.00    11.00   25.00   23.00   66.00   C 



Test Case 3:

STUDENT-ID   TASK1   TASK2   TASK3   TASK4   TOTAL   GRADE

1            9.50    18.00   25.50   35.00   88.00   B       

2            9.00    19.00   20.00   36.00   84.00   B       

3            5.00    12.50   18.00   37.00   72.50   C       

4            8.50    16.00   22.00   38.00   84.50   B       

5            7.00    11.00   25.00   39.00   82.00   B


All test cases passed successfully.


3. A user guide, include any assumptions you make (e.g. max marks), any errors/bugs, any suggestions for future improvements.


Ans.

Assumptions:

  1. There must be a file input.txt in the same directory where the code exists.
  2. Task 4 can have marks between 0 and 40 only.
  3. The input file is in a particular format.


Future Improvements:

  1. We can improve the design to work with any number of students.
  2. We can add a GUI to the current program.
Tags:oodp101