I just want to say first that this is a lab exercise and I am in no way asking for an answer, I just need a little bit of help getting started. I missed my lab last week because I was sick and I just don't have the slightest idea how to go about starting this exercise that being said here is a snippet of code and part of the exercise. If anyone could get me going I would highly appreciate it.
Your task in this lab exercise will be to complete the header, to implement a file Resistor.cpp to go with it, and finally to use the resultant Resistor class to perform some electrical calculations.
The Resistor class represents more than merely a resistor’s resistance. It also represents in watts the resistor’s power rating, which is the maximum power the resistor can dissipate without melting (and perhaps without posing certain additional risks, such as lighting nearby materials aflame under test conditions). It further carries a safety factor, which represents the fraction of rated power the engineer is willing to risk in operation: the safety factor defaults to 1.0 (full power allowed, no margin for safety) but can be set to a smaller, safer number if desired.
Here is some code from the header file I'm just not sure where he wants me to go with this.