SlideShare a Scribd company logo
1 of 3
HELPIDO.COM
CLICK HERE TO GET THE SOLUTION !!!!!!!!!



COMP/220 iLab 4 of 7 - C++ Course

iLAB OVERVIEW

Scenario and Summary



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 type. 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 characteristics.

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.

Deliverables

1.         Submit a single Notepad file containing the source code for all the files of the lab to the
Dropbox for Week 4. Your source code should use proper indentation and be error free. Be sure that
your last name and the lab number are part of the file name: for example, YourLastName_Lab4.txt.



Each program should include a comment section that includes, at a minimum, your name, the lab
and exercise number, and a description of what the program accomplishes.

2.       Submit a lab report (a Word document) containing the following information to the
Dropbox for Week 4.

o         Include your name and the lab or lab-exercise number.

o          Specification: Include a brief description of what the program accomplishes, including its
input, key processes, and output.
o          Test Plan: Include a brief description of the method you used to confirm that your
program worked properly. If necessary, include a clearly labeled table with test cases, predicted
results, and actual results.

o         Summary and Conclusions: Write a statement summarizing your predicted and actual
output, and identify and explain any differences. For conclusions, write at least one nontrivial
paragraph that explains, in detail, either a significant problem you had and how you solved it or, if
you had no significant problems, something you learned by doing the exercise.

o         A UML diagram: This should show all classes, class members, access specifiers, data
types, and function arguments, along with the composition relationship of the classes.

o          Answers to Lab Questions: The answers to any and all lab questions are included in the
lab steps.

Each lab exercise should have a separate section in the lab-report document.

Your lab grade will be based upon

1.         the formatting of your source code;

2.         the use of meaningful identifiers;

3.         the extent of internal documentation;

4.         the degree to which an exercises’ specifications are met; and

5.         the completeness of your lab report.



iLAB STEPS

STEP 1: Create a Multifile Project for the Composition Lab



1. Add three classes to the project: a Filter class, a Capacitor class, and a Resistor class.

2. You may use the Resistor class files from the Week 2 lab for this lab.

3. The Capacitor class should be modeled after the Resistor class for class members and operation.

STEP 2: Filter-Class Definition

The Filter class should have, at a minimum, the following capabilities.

1.         a resistor-object data member

2.         a capacitor-object data member

3.         a cutoff frequency (in Hertz) of the RC filter

4.        maximum and minimum cutoff frequencies, based on the maximum and minimum in-
tolerance values of the capacitor and the resistor object

5.         a filter type, either low pass or high pass
6.         allow the user to enter new values for the filter, including

6.1. resistor tolerance and nominal resistance;

6.2. capacitor tolerance and nominal capacitance; and

6.3. filter type

7.          provides the ability to write all capacitor, resistor, and filter data members to a formatted
text file and allows the user to name the file

8.        provides the ability to read all capacitor, resistor, and filter data members from a
formatted text file and allows the user to enter the file name and correctly handles a file-not-found
error

STEP 3: Test-Program Operation

1.        All data-input and data-display operations (cin and cout) should be done in the function
main() test program.

2.         The test program should instantiate at least one object of the class Filter.

a.        The user should enter values for all the data members of the Filter, Resistor, and
Capacitor classes.

b.         The Filter class should then calculate and display the correct maximum and minimum
cutoff frequencies.

3.         The test program should then display all Filter, Resistor, and Capacitor data members.


CLICK HERE TO GET THE SOLUTION !!!!!!!!!

More Related Content

Viewers also liked

Struktur Pemrograman Java
Struktur Pemrograman JavaStruktur Pemrograman Java
Struktur Pemrograman Javaroji muhidin
 
Rampant.tech.press.using.the.oracle.oradebug.utility.debugging.oracle.applica...
Rampant.tech.press.using.the.oracle.oradebug.utility.debugging.oracle.applica...Rampant.tech.press.using.the.oracle.oradebug.utility.debugging.oracle.applica...
Rampant.tech.press.using.the.oracle.oradebug.utility.debugging.oracle.applica...raviranchi02
 
Travel shop | Магазин Отдыха
Travel shop | Магазин ОтдыхаTravel shop | Магазин Отдыха
Travel shop | Магазин ОтдыхаYakov Volkonski
 
026. Superhik
026. Superhik026. Superhik
026. SuperhikTompa *
 
Tarea colaborativa1 fol.La relación colectiva en el trabajo
Tarea colaborativa1 fol.La relación colectiva en el trabajoTarea colaborativa1 fol.La relación colectiva en el trabajo
Tarea colaborativa1 fol.La relación colectiva en el trabajoMariajoExtre
 
Can we really explain worker flows in transition?
Can we really explain worker flows in transition?Can we really explain worker flows in transition?
Can we really explain worker flows in transition?GRAPE
 
Steps to Shrink Datafiles
Steps to Shrink DatafilesSteps to Shrink Datafiles
Steps to Shrink DatafilesRam Kumar
 
Raceway Ecosystems
Raceway EcosystemsRaceway Ecosystems
Raceway Ecosystemsaci394
 
Process management using Supervisord
Process management using SupervisordProcess management using Supervisord
Process management using SupervisordAgeeleshwar K
 
Tallerceramica ejercicio (1)
Tallerceramica ejercicio (1)Tallerceramica ejercicio (1)
Tallerceramica ejercicio (1)Javi Santa Cruz
 
Research equipment
Research equipmentResearch equipment
Research equipmentrageee
 

Viewers also liked (15)

Struktur Pemrograman Java
Struktur Pemrograman JavaStruktur Pemrograman Java
Struktur Pemrograman Java
 
Rampant.tech.press.using.the.oracle.oradebug.utility.debugging.oracle.applica...
Rampant.tech.press.using.the.oracle.oradebug.utility.debugging.oracle.applica...Rampant.tech.press.using.the.oracle.oradebug.utility.debugging.oracle.applica...
Rampant.tech.press.using.the.oracle.oradebug.utility.debugging.oracle.applica...
 
Diákolimpia - foci
Diákolimpia - fociDiákolimpia - foci
Diákolimpia - foci
 
Travel shop | Магазин Отдыха
Travel shop | Магазин ОтдыхаTravel shop | Магазин Отдыха
Travel shop | Магазин Отдыха
 
026. Superhik
026. Superhik026. Superhik
026. Superhik
 
Tarea colaborativa1 fol.La relación colectiva en el trabajo
Tarea colaborativa1 fol.La relación colectiva en el trabajoTarea colaborativa1 fol.La relación colectiva en el trabajo
Tarea colaborativa1 fol.La relación colectiva en el trabajo
 
Can we really explain worker flows in transition?
Can we really explain worker flows in transition?Can we really explain worker flows in transition?
Can we really explain worker flows in transition?
 
Pitch for music video !
Pitch for music video !Pitch for music video !
Pitch for music video !
 
Steps to Shrink Datafiles
Steps to Shrink DatafilesSteps to Shrink Datafiles
Steps to Shrink Datafiles
 
Raceway Ecosystems
Raceway EcosystemsRaceway Ecosystems
Raceway Ecosystems
 
Process management using Supervisord
Process management using SupervisordProcess management using Supervisord
Process management using Supervisord
 
Tallerceramica ejercicio (1)
Tallerceramica ejercicio (1)Tallerceramica ejercicio (1)
Tallerceramica ejercicio (1)
 
Research equipment
Research equipmentResearch equipment
Research equipment
 
Estado y gestion del agua
Estado y gestion del aguaEstado y gestion del agua
Estado y gestion del agua
 
Test
TestTest
Test
 

More from helpido6

Prg 421 week 4
Prg 421 week 4Prg 421 week 4
Prg 421 week 4helpido6
 
Prg 421 week 2
Prg 421 week 2Prg 421 week 2
Prg 421 week 2helpido6
 
Prg 421 week 1
Prg 421 week 1Prg 421 week 1
Prg 421 week 1helpido6
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7helpido6
 
CIS/355 ilab 4 of 6
CIS/355 ilab 4 of 6CIS/355 ilab 4 of 6
CIS/355 ilab 4 of 6helpido6
 
Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6helpido6
 
Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6helpido6
 
CIS/355 ilab 6 of 6
CIS/355 ilab 6 of 6CIS/355 ilab 6 of 6
CIS/355 ilab 6 of 6helpido6
 

More from helpido6 (8)

Prg 421 week 4
Prg 421 week 4Prg 421 week 4
Prg 421 week 4
 
Prg 421 week 2
Prg 421 week 2Prg 421 week 2
Prg 421 week 2
 
Prg 421 week 1
Prg 421 week 1Prg 421 week 1
Prg 421 week 1
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7
 
CIS/355 ilab 4 of 6
CIS/355 ilab 4 of 6CIS/355 ilab 4 of 6
CIS/355 ilab 4 of 6
 
Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6
 
Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6
 
CIS/355 ilab 6 of 6
CIS/355 ilab 6 of 6CIS/355 ilab 6 of 6
CIS/355 ilab 6 of 6
 

Recently uploaded

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 

Recently uploaded (20)

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 

Comp 220 ilab 4 of 7

  • 1. HELPIDO.COM CLICK HERE TO GET THE SOLUTION !!!!!!!!! COMP/220 iLab 4 of 7 - C++ Course iLAB OVERVIEW Scenario and Summary 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 type. 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 characteristics. 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. Deliverables 1. Submit a single Notepad file containing the source code for all the files of the lab to the Dropbox for Week 4. Your source code should use proper indentation and be error free. Be sure that your last name and the lab number are part of the file name: for example, YourLastName_Lab4.txt. Each program should include a comment section that includes, at a minimum, your name, the lab and exercise number, and a description of what the program accomplishes. 2. Submit a lab report (a Word document) containing the following information to the Dropbox for Week 4. o Include your name and the lab or lab-exercise number. o Specification: Include a brief description of what the program accomplishes, including its input, key processes, and output.
  • 2. o Test Plan: Include a brief description of the method you used to confirm that your program worked properly. If necessary, include a clearly labeled table with test cases, predicted results, and actual results. o Summary and Conclusions: Write a statement summarizing your predicted and actual output, and identify and explain any differences. For conclusions, write at least one nontrivial paragraph that explains, in detail, either a significant problem you had and how you solved it or, if you had no significant problems, something you learned by doing the exercise. o A UML diagram: This should show all classes, class members, access specifiers, data types, and function arguments, along with the composition relationship of the classes. o Answers to Lab Questions: The answers to any and all lab questions are included in the lab steps. Each lab exercise should have a separate section in the lab-report document. Your lab grade will be based upon 1. the formatting of your source code; 2. the use of meaningful identifiers; 3. the extent of internal documentation; 4. the degree to which an exercises’ specifications are met; and 5. the completeness of your lab report. iLAB STEPS STEP 1: Create a Multifile Project for the Composition Lab 1. Add three classes to the project: a Filter class, a Capacitor class, and a Resistor class. 2. You may use the Resistor class files from the Week 2 lab for this lab. 3. The Capacitor class should be modeled after the Resistor class for class members and operation. STEP 2: Filter-Class Definition The Filter class should have, at a minimum, the following capabilities. 1. a resistor-object data member 2. a capacitor-object data member 3. a cutoff frequency (in Hertz) of the RC filter 4. maximum and minimum cutoff frequencies, based on the maximum and minimum in- tolerance values of the capacitor and the resistor object 5. a filter type, either low pass or high pass
  • 3. 6. allow the user to enter new values for the filter, including 6.1. resistor tolerance and nominal resistance; 6.2. capacitor tolerance and nominal capacitance; and 6.3. filter type 7. provides the ability to write all capacitor, resistor, and filter data members to a formatted text file and allows the user to name the file 8. provides the ability to read all capacitor, resistor, and filter data members from a formatted text file and allows the user to enter the file name and correctly handles a file-not-found error STEP 3: Test-Program Operation 1. All data-input and data-display operations (cin and cout) should be done in the function main() test program. 2. The test program should instantiate at least one object of the class Filter. a. The user should enter values for all the data members of the Filter, Resistor, and Capacitor classes. b. The Filter class should then calculate and display the correct maximum and minimum cutoff frequencies. 3. The test program should then display all Filter, Resistor, and Capacitor data members. CLICK HERE TO GET THE SOLUTION !!!!!!!!!