Skip to content

CodeX-SIT/Java-Task2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Java Task 2: Strings, Conditionals, and Control Flow

Overview

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

Learning Resources

Before attempting these questions, please review the following topics:

  1. Introduction to Strings
  2. String Methods in Java
  3. If-else statements in Java
  4. Relational and Logical Operators in Java
  5. Switch-Case in Java

Assignment Structure

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)

Questions Overview

  1. Question 1: String Password Validator - Fill in the blanks to complete password validation logic
  2. Question 2: Grade Calculator with Switch-Case - Write complete code for grade calculation
  3. Question 3: String Manipulator - Fill in the blanks to perform various string operations
  4. Question 4: Login System with Multiple Conditions - Write complete code for a login authentication system

Instructions

  1. Navigate to each question folder
  2. Read the README.md file carefully to understand the problem
  3. Complete the Java file (either fill in the blanks or write the entire code)
  4. Test your code with the provided test cases
  5. Ensure your output matches the expected output

Compilation and Execution

To compile and run your Java programs:

javac q1.java
java q1

Replace q1 with the appropriate question number.

Submission Guidelines

  • Complete all 4 questions
  • Ensure your code compiles without errors
  • Test with all provided test cases
  • Make sure your output matches the expected format

Evaluation Criteria

  • Correctness of implementation
  • Proper use of string methods
  • Correct implementation of conditional statements
  • Code readability and comments
  • Handling of edge cases

Good luck! πŸš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages