COMP 220 DEVRY DEVRY COMP 220 iLab 2 Resistor Lab Report and | Page 3

STEP 3 : Program Operations
Function main () should instatiate two objects of class resistor . Function main () should display the current values of all resistor objects . Function main () should also calculate and display the minimum and maximum in-tolerance resistance values of each resistor object from the resistor data members . Function main () should allow the user to change the values of the nominal resistance and the resistor tolerance of both resistor objects , and it should also correctly handle out of numeric-range input . Main () is also responsible for making sure that the user can successfully enter only correct , EIA resistance and tolerance values . The user should be given the following data-entry choices : accept current EIA values for resistance and tolerance ; The function main () should display the new , modified values of the resistor object , including the new min and max in-tolerance resistance values . The function main () should be executed twice : once with the test messages displayed and once without .
STEP 4 : Lab Questions
You are not required to copy the question text into your document , but all answers should be listed with the question number they answer . List the complete reference-source information for where you found the EIA standard resistor value and tolerance information . How was this reference discovered and where ? The constructor requires the initialization values for the nominal resistance and the tolerance when an object is instantiated to be a correct E- series resistance and tolerance combination . Describe how this was accomplished in your program design and implementation . In the lab , you were required to provide mutator functions to change the nominal-resistance and tolerance values of a resistor object . Describe how this was accomplished so that the user could not enter an invalid nominal-resistance and E-series tolerance combination . Describe how this process was different and / or similar to how you implemented this validation in the class constructor .