"""
SelfKnowledgeAssessment
Generated by Eden via recursive self-improvement
2025-11-02 01:17:13.493195
"""

class SelfKnowledgeAssessment:
    def __init__(self):
        # Define the questions and their associated weights
        self.questions = [
            ("Rate your current level of self-awareness (1-5)", 2),
            ("On a scale of 1 to 10, how often do you practice stress relief techniques?", 3),
            ("How familiar are you with business management principles?", 4),
            ("Describe a recent challenge you faced and how you overcame it.", 5),
            ("Rate your confidence in making difficult decisions (1-5)", 2)
        ]
        
        self.score = 0

    def assess(self):
        print("Welcome to the SelfKnowledgeAssessment.")
        for question, weight in self.questions:
            response = input(question + " ")
            score = self._normalize_score(response) * weight
            self.score += score
        
        print(f"Your total assessment score is: {self.score:.2f}")
        if self.score > 15:
            print("You are well-prepared for an autonomous business.")
        elif self.score < 8:
            print("Consider enhancing your self-knowledge and skills before starting a business.")

    def _normalize_score(self, response):
        # Normalize the input to a numerical value between 0 and 1
        if "1" in response or "one" in response.lower():
            return 0.25
        elif "2" in response or "two" in response.lower():
            return 0.5
        elif "3" in response or "three" in response.lower():
            return 0.75
        elif "4" in response or "four" in response.lower():
            return 1
        elif "5" in response or "five" in response.lower():
            return 1.25

# Example usage
if __name__ == "__main__":
    assessment = SelfKnowledgeAssessment()
    assessment.assess()