CS FileOrganizer
CS FileOrganizer
Problem: Create a Windows-based Java program for a simple file organizer that will write into
and read text from a file.
1. Design a GUI by following its design below.
2. Create a file-MyFile.txt on your project folder.
3. You are tasked to write statements for the functionality of each button – Open, Write,
Read, Clear.
a. For the Open Button, the following dialogs must be displayed according to the user
action.
Page 1 of 5
CS-4. OBJECT-ORIENTED PROGRAMMING, FOURTH QUARTER, SY2024-2025
ALTERNATIVE ASSESSMENT # 1: (Exception Handling, File I/O)
b. for the WRITE Button, the following dialogs must be displayed according to the user
action.
Use the BufferedWriter class to write onto the file. Open the file on
Append mode and set the buffer size to 8192.
Page 2 of 5
CS-4. OBJECT-ORIENTED PROGRAMMING, FOURTH QUARTER, SY2024-2025
ALTERNATIVE ASSESSMENT # 1: (Exception Handling, File I/O)
c. for the READ Button, the following dialogs must be displayed according to the user
action.
Use the BufferedReader class to read from the file. You may use the
.readLine() method to read the contents of the file line by line.
Page 3 of 5
CS-4. OBJECT-ORIENTED PROGRAMMING, FOURTH QUARTER, SY2024-2025
ALTERNATIVE ASSESSMENT # 1: (Exception Handling, File I/O)
4. Document your program using line, inline and block comments. Also put the
following header comment on the topmost part of your Java program.
Page 4 of 5
CS-4. OBJECT-ORIENTED PROGRAMMING, FOURTH QUARTER, SY2024-2025
ALTERNATIVE ASSESSMENT # 1: (Exception Handling, File I/O)
A. Rubrics for Java Program Evaluation:
Criteria Exceptional Acceptable Acceptable Amateur Unsatisfactory
5 4 3 2 1
Naming 91-100% of variables and 71-90% of variables 51-70% of variables 31-50% of variables 1-30% of variables and
Convention (5) class names are and class names and class names are and class names class names are
descriptive according to are descriptive descriptive according are descriptive descriptive according
its purpose. according to its to its purpose. according to its to its purpose.
purpose. purpose.
Code 91-100% of the codes is 71-90% of the 51-70% of the codes 31-50% of the 1-30% of the codes is
Structure organized using proper codes is organized is organized using codes is organized organized using proper
indentation and spacing. using proper proper indentation using proper indentation and
(5)
indentation and and spacing. indentation and spacing.
spacing. spacing.
Timeliness (5) 0 day late 1 day late 2 days late 3 days late 4 days late
Code 91-100% of the codes is 71-90% of the 51-70% of the codes 31-50% of the Less than 49% of the
Explanation correctly explained. codes is correctly is correctly codes is correctly code is explained
explained. explained. explained. correctly.
(5)
Design of GUI 91-100% of the 71-90% of the 51-70% of the 31-50% of the Less than 49% of the
(5) JComponents is correctly JComponents is JComponents is JComponents is JComponents is
designed. correctly designed. correctly designed. correctly designed. correctly designed.
Criteria Exceptional Acceptable Amateur Unsatisfactory
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Functionality 100% 94- 87- 74- 68- 61- 54- 48- 41- 34- 28- 21- 14-20% 8- 1-
(15) 99% 93% 80% 73% 67% 60% 53% 47% 40% 33% 27% 13% 7%
of the program works properly.
Page 5 of 5