"For LogicPro Only"I am looking for the cpp code ResistorSort.zipSTEP 1: Create a Multifile Project Create a new multifile project using the Resistor class developed in Week 1, and include a new main() test function.STEP 2: Modify the Resistor-Class Definition 1. Add a static data member of the class Resistor to keep track of the number of Resistor objects that are dynamically created. This will also be used to limit the number of objects that are dynamically created to the maximum array size of the pointer array in the test function main(). 2. In the Resistor constructor, use a random-number generator to randomly assign a nominal resistance value to the object between 1,000 and 10,000 ohms. The resistance values are not required to be standard resistance values. STEP 3: Create the Test Function Main() and the Support Function 1. Create an array of pointers of type Resistor.2. Use elements of the pointer array to allow the user to dynamically allocate memory and to instantiate objects of the Resistor class.3. Use the indirect member-selection operator (pointer) in the test routine to access function members of the Resistor class. 4. Write a new, nonclass function called in function main() to sort the pointers to the Resistor objects in order from lowest nominal resistance value to highest, passing a pointer to the Resistor-object pointer as the only passed data argument. 5. Display the sorted Resistor objects according to the nominal resistance value, from lowest to highest. 6. Within the sorting function, use pointer arithmetic to access the individual Resistor objects. 7. Function main() should also ensure that there are no memory leaks when the program ends.
Welcome to JustAnswer
Let me know when you are there
Hi LogicPro !!! Great to see you. I'm looking for resistorsort.zip
Create a new multifile project using the Resistor class developed in Week 1, and include a new main() test function.
STEP 2: Modify the Resistor-Class Definition
STEP 3: Create the Test Function Main() and the Support Function
let me know the deadline
Please check back in exactly 2 hours
Ok No problem Thanks a million!
Let this window open
and bookmark it
There are 4 files needed:
ResistorMain.cpp Resistor.h Resistor.cpp output.txt
Let me know when you are there?
I am here
just a minute.
Download this zip file ResistorSort.zip
Unzip to get complete Visual Studio 2010 project.
You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers.It will ensure that question is for me. If you’re a subscriber, you can ask other questions from me at no additional cost beyond your monthly payment.Please bookmark my profile page:http://www.justanswer.com/computer/expert-logicpro/so you can come back and ask me a question anytime. please leave a positive feedback/bonus after clicking ACCEPT or ask me if you need more information.
there is no output file
You can run the program as required and paste the output in output.txt file.
Nice thinking ! Thanks!