В ходе данной лабораторной работы был создан конвертер температур и длин, в зависимости от выбора пользователя. Единицы измерения - цельсий, фарингейт, метры, километры, мили,дюймы, футы, ярды и др. Пример работы программы:
Welcome! Here you can translate numbers from different systems (temperature, length)
If you want to quit the program, enter Q
Please, select by what criterion the conversion will be carried out -
Temperature (1) or Length (2) or Exit(Q) -------> 1
Choose: 1.Celsius -> Fahrenheit 2.Celsius -> Kelvin ------> 222
Incorrect entry. Please try again.
Choose: 1.Celsius -> Fahrenheit 2.Celsius -> Kelvin ------> 2
How many degrees Celsius?: 0
0.0 degrees Celsius = 273.15 degrees Kelvin
Please, select by what criterion the conversion will be carried out -
Temperature (1) or Length (2) or Exit(Q) -------> Q
All the best! :)
Запустим скрипт в докер контейнере:
docker build .
docker run -it <image>