COMP 220 iLab 4 Composition Lab Report and Source Code .pdf
Original filename: COMP 220 iLab 4 Composition Lab Report and Source Code.pdf
This PDF 1.5 document has been generated by Microsoft® Office Word 2007, and has been sent on pdf-archive.com on 16/03/2016 at 06:18, from IP address 182.64.x.x.
The current document download page has been viewed 237 times.
File size: 174 KB (1 page).
Privacy: public file
Download original PDF file
To purchase this material click on below link
COMP 220 iLab 4 Composition Lab Report and Source Code
This lab requires you to use C++ class composition to implement a single pole-filter design
program. The program will allow the user to specify resistor and capacitor values and filter
Once all the user parameters are specified, the program will return the cutoff frequency
values for the filter. Composition may be thought of as a has-a relationship for objects, as
compared to inheritance, which may be described as an is-a relationship for objects.
You are required to use two component classes: one for a resistor object and one for a
capacitor object. You are then to define and implement a filter class that will contain one
object of each the resistor and the capacitor classes in order to create the filter and its
The Resistor class created in the Week 2 iLab may be used both as the class definition for the
resistor object and as a template or a guide for the capacitor-class definition. The lab also
requires you to implement your program in a multiple-file project and create both cpp and h
files for each class defined. In addition, the program will have the capacity to save all filter
parameters to a text file and read previously designed filter parameters from a text file.
For more details