Question: Question 1 [ 2 0 marks ] 1 . 1 You are developing a text processing module for a word game application. One of the

Question 1
[20 marks]
1.1 You are developing a text processing module for a word game application. One of the features involves validating user input to ensure that only letters and digits are accepted as valid characters for player names and scores. Demonstrate the application of Character class methods for determining whether a given character belongs to the category of letters or digits. If it does not belong to either, display "The character entered is neither a letter nor a digit". Use the Scanner class to input characters.
(10 marks)
\table[[Criteria,Task/Activity,Allocated marks],[Input,\table[[The import statement is],[present, and the scanner was],[utilised. The program prompts],[the user for input.]],3 marks],[Processing,\table[[The program validates],[whether a character type is a],[letter or a digit]],5 marks],[Output,\table[[The program displays results],[in the console.]],2 marks]]
1.2 Write a Java program that simulates a basic password authentication system. Prompt the user to enter a password and compare if with a predefined stored password. If the entered password matches the stored password, display a welcome message, indicating that the password is correct. If not, access is denied. Implement the program using string comparison techniques in Java.
(10 marks)
\table[[Criteria,Task/Activity,Allocated marks],[Input,\table[[The program contains a],[predefined password and],[prompts the user for input.]],5 marks],[Processing,\table[[The program validates],[whether the password entered],[matches the password stored.]],3 marks],[Output,\table[[The program displays results],[based on the validation],[process.]],2 marks]]
2
HSYD100-1-Jul-Dec2024-FA3-RR-V.2-16052024
Question 1 [ 2 0 marks ] 1 . 1 You are developing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!