Implement the convert_to_roman_with_fractions function as described in the provided implementation. This function should convert whole numbers and specified fractional components into their Roman numeral representation, handling integers from 0 to 5000 and fractions from 0 to 11.
Input/Output Requirements
Input:
integer_component (int): a whole number representing the integer part, which should be in the range 0 to 5000.
fractional_component (int, optional): a whole number representing the fractional part, which should be in the range 0 to 11. Default value is 0.
Output:
The function should return a string representing the Roman numeral equivalent of the given integer and fractional inputs.
If both inputs are 0, return "N".
If the inputs are out of the specified range, return "NaR".
Implementation
Create a file at the path /app/solution.py and implement the convert_to_roman_with_fractions function according to the provided signature and specifications. Ensure the code is well-commented to explain the logic behind each major step in the conversion process.
Example
python
convert_to_roman_with_fractions(1987, 4) # should return "MCMLXXXVII : :"
convert_to_roman_with_fractions(0, 0) # should return "N"
convert_to_roman_with_fractions(5001, 0) # should return "NaR"