Exam
Скласти консольну програму для переведення чисел з комою з однієї системи числення в іншу.
Вхідні данні:
- Система числення: 16
- Діапазон чисел: від 0 до 255
- Точність: 2 знаків після коми
- Організація вводу: файл, значення розділені «;»
Вихідні дані:
- Система числення: 8
- Організація виводу: файл, значення розділені «;»
Convert floating-point numbers from hexadecimal (base-16) to octal (base-8).
Reads a semicolon-separated list of hexadecimal values from an input file, converting them first to binary and then to octal, and write the results to an output file using the same semicolon separator. The conversion logic manually maps characters to their bit representations rather than using built-in parsing functions to handle the fractional parts explicitly.
Cooked this bad boy during the exam.