Java Programming
Java Programming
Given the necessary tools, materials, instruments, and equipment, perform the following task in 4
hours:
Screen Design
Menu Frame
Sign In Frame
Main Frame
➢ If the user clicks on the Sign In button, it will open the Sign In Frame and the Menu
Frame will close.
➢ If the User clicks on the Sign Up button, it will open the Sign Up Frame and the Menu
Frame will close.
➢ If the User clicks on the Exit button, the Menu frame will close.
Sign Up Frame (refer to the Sign Up Frame Screen Display for layout)
• First Name <TextBox>
• Middle Name <TextBox>
• Last Name <TextBox>
• Gender <TextBox>
• Birthdate <TextBox>
• Email <TextBox>
• Password <TextBox>
• Exit <Button>
• Sign Up <Button>
➢ If the user clicks on the Sign Up button, it will register the inputted information into
the database. If the insertion of data to database is successful, a window will alert
saying “Registration Successful!”. Else if the insertion of data to database is no
successful, a window will alert saying “Registration Failed!”.
➢ If the user clicks on the Exit button, the Menu Frame will open and the Sign Up Frame
will close.
Sign In Frame (refer to the Sign In Frame Screen Display for layout)
• Email <TextBox>
• Password <TextBox>
• Sign In <Button>
• Exit <Button>
➢ If the user clicks on the Sign In button, it will validate if the inputted Email and
Password is Registered in the database. If the inputted Email and Password is
registered in the database, a window will alert saying “Welcome!” and will open the
Main Frame and the Sign In Frame will close. If the inputted Email and Password is
Not Registered in the database, a window will alert saying “Wrong Email/Password!”
and will stay on the Sign In Frame.
➢ If the user clicks on the Exit button, it will open the Menu Frame and closes the Sign
In Frame.
Database Specifications
Database Name: “dbYourLastname”
Table Name: “tblUsers”
tblUsers
Data
No. Field Name Description Size Format Range
Type
1 First_Name User’s Firstname varchar 32 A-Z
Middle_Name User’s varchar 32 A-Z
2
Middlename
3 Last_Name User’s Lastname varchar 32 A-Z
4 Gender User’s Gender varchar 32 A-Z
5 Birthdate User’s Birthdate date YYYY-MM-DD
6 Email User’s Email varchar 32 A-Z
7 Password User’s Password varchar 32 A-Z
Final Output
➢ The Final output should be saved in a Java Project with the file name format
“Java_YourLastname” which should contain the 4 Frames.
Marking Scheme:
No. Criteria Max Score
Score
1 Menu Frame layout is followed 5
2 Menu Frame (Sign In, Sign Up, and Exit button are working) 8
3 Sign In Frame layout is followed 5
4 Sign In Frame (Email, and Password Textbox is working) 8
5 Sign In Frame (Sign In button is working) 16
6 Sign Up Frame layout is followed 5
7 Sign Up Frame (Textbox fields are working) 8
8 Sign Up Frame (Sign Up button is working) saves record to the 16
database
9 Main Frame (layout is followed 5
10 Main Frame (Add, and Close button are working) 8
11 Main Frame displays registered users from the database. 16
TOTAL 100
Assessment Result: Competent Not Yet Competent
24. Also called the ternary operator, these are used to evaluate which value should be returned to a variable.
a. Arithmetic
b. Conditional
c. Assignment
d. Logical
25. The following are the branching statement in java except:
a. return
b. continue
c. break
d. finalize
26. The __________ statement causes the program flow to exit from the body of the switch construct.
a. default
b. goto
c. break
d. continue
27. These are programming blocks that are used to redirect the flow of your program.
a. Decision Structure
b. Control Structures
c. Expressions
d. Conditions
28. The _____________ loop is commonly used whenever we traversed.
a. while
b. for
c. do-while
d. repeat
29. ____________ is a property of array objects that you can use to get the size of the array.
a. Length
b. Size
c. Array Size
d. Width
30. The if statement enables a program to selectively execute other statements, based on some criteria. These criteria
must be _____________.
a. String data type
b. Integer data type
c. Java identifiers
d. Boolean expression
Student’s Name:
Name of School:
Date of Institutional
Assessment:
MULTIPLE CHOICE
ENCIRCLE the letter of your choice.
1. A B C D 16. A B C D
2. A B C D 17. A B C D
3. A B C D 18. A B C D
4. A B C D 19. A B C D
5. A B C D 20. A B C D
6. A B C D 21. A B C D
7. A B C D 22. A B C D
8. A B C D 23. A B C D
9. A B C D 24. A B C D
10. A B C D 25. A B C D
11. A B C D 26. A B C D
12. A B C D 27. A B C D
13. A B C D 28. A B C D
14. A B C D 29. A B C D
15. A B C D 30. A B C D