Pure Programmer
Blue Matrix


Cluster Map

Project: Temperature Class

Write a mutable class to represent thermodynamic temperature. The internal representation should be in Celcius but there should be setters and getters for all four temperature scales: Celcius, Fahrenheit, Kelvin and Rankine. A single default constructor should set the temperature to 0°K.

See [[Temperature]]

Output
$ swiftc TemperatureClass.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution