This assignment contains 4 programming questions designed to test your understanding of fundamental Java concepts including:
- String manipulation and methods
- Conditional statements (if-else, switch-case)
- Relational and logical operators
Before attempting these questions, please review the following topics:
- Introduction to Strings
- String Methods in Java
- If-else statements in Java
- Relational and Logical Operators in Java
- Switch-Case in Java
Java-Task2/
βββ Question1/
β βββ q1.java
β βββ README.md
βββ Question2/
β βββ q2.java
β βββ README.md
βββ Question3/
β βββ q3.java
β βββ README.md
βββ Question4/
β βββ q4.java
β βββ README.md
βββ README.md (this file)
- Question 1: String Password Validator - Fill in the blanks to complete password validation logic
- Question 2: Grade Calculator with Switch-Case - Write complete code for grade calculation
- Question 3: String Manipulator - Fill in the blanks to perform various string operations
- Question 4: Login System with Multiple Conditions - Write complete code for a login authentication system
- Navigate to each question folder
- Read the README.md file carefully to understand the problem
- Complete the Java file (either fill in the blanks or write the entire code)
- Test your code with the provided test cases
- Ensure your output matches the expected output
To compile and run your Java programs:
javac q1.java
java q1Replace q1 with the appropriate question number.
- Complete all 4 questions
- Ensure your code compiles without errors
- Test with all provided test cases
- Make sure your output matches the expected format
- Correctness of implementation
- Proper use of string methods
- Correct implementation of conditional statements
- Code readability and comments
- Handling of edge cases
Good luck! π