You need to implement a function that evaluates whether a person is eligible for a sabbatical based on several criteria. The function will analyze a string, a numerical value, and a happiness score to compute a total score. Based on the total score, it will determine the eligibility for a sabbatical.
s (str): A string that may contain any number of characters.
value (int): An integer representing a numerical score related to the person’s performance or work.
happiness (int): An integer score representing the person’s happiness level.
Returns:
The function should return a string:
If the total score (computed as the sum of value, happiness, and the count of letters from the word 'sabbatical' found in the string s) is greater than 22, return the string: 'Sabbatical! Boom!'.
Otherwise, return the string: 'Back to your desk, boy.'.
Implementation Notes:
Calculate the count of letters in s that are also present in the word 'sabbatical'.
Compute the total score by adding value, happiness, and the letter count.
Return the appropriate message based on the total score.
File Requirement:
Write your solution in a file named /app/solution.py.