Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Below is my code I get the errors listed below. I think it has something to do w

ID: 440379 • Letter: B

Question

Below is my code I get the errors listed below. I think it has something to do with my functions getR and getRTolerance Thanks for any advice #include "Filter.h" #include#include Filter::Filter(void){}//added Filter::Filter( double initialNominalR, double initialToleranceR, double initialNominalC, double initialToleranceC) { FiltRes.setNom(initialNominalR); FiltRes.setTol(initialToleranceR); FiltCap.setCapacitance(initialNominalC); FiltCap.setC(initialToleranceC); } Filter::Filter(Resistor initialR, Capacitor initialC) // :FiltRes(initialR),FiltCap(initialC) { FiltRes.setNom(initialR.getNom( ) ); FiltRes.setTol(initialR.getTol( ) ); FiltCap.setC(initialC.getCapacitance( ) ); FiltCap.setC(initialC.getCapTolerance( ) ); } double Filter::getCutOffFrequency(void) { if(FiltRes.getNom()==0 &&FiltCap.getCapacitance()==0) return 0; else{ return (1 / (2 * PI * FiltRes.getNom( ) * FiltCap.getCapacitance( )/1000000 )); } Filter::getR(); { FiltRes.getNom(); return (0); } Filter::getRTolerance(); { FiltRes.getTol(); } } Filter.obj : error LNK2019: unresolved external symbol "public: double __thiscall Filter::getRTolerance(void)" (?getRTolerance@Filter@@QAENXZ) referenced in function "public: double __thiscall Filter::getCutOffFrequency(void)" (?getCutOffFrequency@Filter@@QAENXZ) 1>Main.obj : error LNK2001: unresolved external symbol "public: double __thiscall Filter::getRTolerance(void)" (?getRTolerance@Filter@@QAENXZ) 1>Filter.obj : error LNK2019: unresolved external symbol "public: double __thiscall Filter::getR(void)" (?getR@Filter@@QAENXZ) referenced in function "public: double __thiscall Filter::getCutOffFrequency(void)" (?getCutOffFrequency@Filter@@QAENXZ) 1>Main.obj : error LNK2001: unresolved external symbol "public: double __thiscall Filter::getR(void)" (?getR@Filter@@QAENXZ) 1>Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Filter::setC(double,double)" (?setC@Filter@@QAEXNN@Z) referenced in function _main 1>Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Filter::setR(double,double)" (?setR@Filter@@QAEXNN@Z) referenced in function _main 1>Main.obj : error LNK2019: unresolved external symbol "public: double __thiscall Filter::getC(void)" (?getC@Filter@@QAENXZ) referenced in function _main 1>Main.obj : error LNK2019: unresolved external symbol "public: double __thiscall Filter::getCTolerance(void)" (?getCTolerance@Filter@@QAENXZ) referenced in function _main 1>C:worklabsweek3week 4Debugweek 4.exe : fatal error LNK1120: 6 unresolved externals

Explanation / Answer

your code looks such a mess, please post your code with proper indentations :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote