0% found this document useful (0 votes)
3 views5 pages

CS FileOrganizer

The document outlines an alternative assessment for a Java programming course, focusing on creating a Windows-based file organizer application with exception handling and file I/O. It specifies the design of a GUI and the functionalities for buttons such as Open, Write, Read, and Clear, along with the expected user interactions and corresponding dialogs. Additionally, it includes evaluation rubrics for code quality, structure, timeliness, explanation, GUI design, and overall functionality.

Uploaded by

vincelaroza31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

CS FileOrganizer

The document outlines an alternative assessment for a Java programming course, focusing on creating a Windows-based file organizer application with exception handling and file I/O. It specifies the design of a GUI and the functionalities for buttons such as Open, Write, Read, and Clear, along with the expected user interactions and corresponding dialogs. Additionally, it includes evaluation rubrics for code quality, structure, timeliness, explanation, GUI design, and overall functionality.

Uploaded by

vincelaroza31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

CS-4.

OBJECT-ORIENTED PROGRAMMING, FOURTH QUARTER, SY2024-2025


ALTERNATIVE ASSESSMENT # 1: (Exception Handling, File I/O)

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.

User Action Dialog / Window Display

The user clicked the Open Button

When the user entered an existing file.

***Then, the buttons-Write, Read and Clear are


enabled

When the user entered a non-existing file.

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.

User Action Dialog / Window Display

The user clicked the Write Button without any


text/characters entered on the input area

When the user any character on the input area.

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.

User Action Dialog / Window Display

The user clicked the Read Button but


no text/string can be retrieved from
the text file.

The user clicked the Read Button


and there are text/string that can be
retrieved from the text file.

Page 3 of 5
CS-4. OBJECT-ORIENTED PROGRAMMING, FOURTH QUARTER, SY2024-2025
ALTERNATIVE ASSESSMENT # 1: (Exception Handling, File I/O)

d. For the CLEAR Button


If the clear button is clicked, it will clear the contents of all the text areas.

4. Document your program using line, inline and block comments. Also put the
following header comment on the topmost part of your Java program.

5. Submit your Java program as Q4CS_Section_LastNameFirstName1


LastNameFirstName2 LastNameFirstName3.java.

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.

B. Self-Peer Evaluation (through google forms)

Prepared by: Reviewed and Approved by:

DIANNE ROSE A. BANGLOY GARRY JUN M. MAYAWIN


Subject Teacher Chief, CID
Date Submitted: March 6, 2024 Date: ____________________

Prepared by: Reviewed and Approved by:

DIANNE ROSE A. BANGLOY GARRY JUN M. MAYAWIN


Subject Teacher Chief, CID
Date Submitted: April 4, 2025 Date: ____________________

Page 5 of 5

You might also like