Skip to content

adithya-naik/CODSOFT

Repository files navigation

To-Do List Application - TASK 1

The To-Do List Application enables users to manage and organize their tasks effectively. Made in command-line interface (CLI) , Here's how this application works :

  1. Create Tasks:

    • Users can add new tasks to their to-do list.
    • For example, you might input: "Buy groceries," "Finish report," or "Call Mom."
  2. Update Tasks:

    • Mark tasks as completed or update their status.
    • You can set priorities, due dates, or additional notes for each task.
  3. Track Progress:

    • The application displays the list of tasks, making it easy to see what needs to be done.
    • Completed tasks can be checked off, and pending tasks remain visible.
  4. Stay Organized:

    • Use the To-Do List Application to stay on top of your responsibilities.
    • Never forget an important task again!

Simple Calculator - TASK 2

The Simple Calculator performs basic arithmetic operations. Users can input two numbers and choose an operation (addition, subtraction, multiplication, division, modulus, floor division or power). Here's how it works:

  1. User Input:

    • The user is prompted to input two numbers.
    • They also select an operation (e.g., + for addition, - for subtraction, * for multiplication, / for division,% for modulus,// for floor division, ** for power).
  2. Perform Calculation:

    • Based on the user's input, the application performs the chosen arithmetic operation.
    • For example:
      • If the user inputs 5, 3, and selects +, the result is 8.
      • If the user inputs 10, 4, and selects -, the result is 6.
      • If the user inputs 7, 2, and selects *, the result is 14.
      • If the user inputs 15, 5, and selects /, the result is 3.0.
      • If the user inputs 5, 5, and selects %, the result is 0.0.
      • If the user inputs 15, 5, and selects //, the result is 3.0.
      • If the user inputs 3, 2, and selects **, the result is 9.0.
  3. Display Result:

    • The calculated result is displayed on the screen.

Password Generator - TASK 3

The Password Generator creates strong and random passwords based on user specifications. Users can specify the desired password length and complexity. Here's how it works:

  1. User Input:

    • The user is prompted to specify the desired length of the password.
    • For example, the user might input a length of 12 characters.
  2. Generate Password:

    • The application generates a password by combining random characters.
    • The characters can include uppercase letters, lowercase letters, digits, and special symbols.
    • The complexity of the password depends on the user's preferences.
    • For example, a generated password might look like: R7#kT9p$JfXz
  3. Display the Password:

    • The generated password is displayed on the screen.
    • Users can then use this strong password for their accounts, ensuring better security.

Quiz Game -TASK 5

The Quiz Game that challenges users with multiple-choice questions on a specific topic. Here's how it works:

  1. Display Welcome Message and Rules:

    • When the game starts, greet the user and explain the rules.
    • For example: "Welcome to the Quiz Game! Answer as many questions as you can."
  2. Present Quiz Questions:

    • Display each question along with answer choices (multiple-choice).
    • Prompt the user to select an answer.
  3. Evaluate the User's Answer:

    • Compare the user's answer with the correct answer.
    • Keep track of the user's score (increment for correct answers).
  4. Provide Feedback:

    • Display whether the answer was correct or incorrect.
    • If incorrect, show the correct answer.
    • Keep the user engaged with informative feedback.
  5. Calculate the Final Score:

    • After all questions are answered, calculate the user's total score.
  6. Display Final Results:

    • Print the user's score and a performance message (e.g., "Great job!" or "Keep practicing!").
    • Ask if the user wants to play again.