SlideShare une entreprise Scribd logo
1  sur  3
HELPIDO.COM
CLICK HERE TO GET THE SOLUTION !!!!!!!!



COMP/220 iLab 2 of 7 - SQL Course



iLAB OVERVIEW

Scenario and Summary



This lab requires you to create a multifile C++ project in order to design and implement an object-
oriented program using a class to model the characteristics and function of a resistor.

Deliverables



1.       Submit a single Notepad file containing the source code for Exercise 1 to the Dropbox for
Week 2. 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; see the following example:
YourLastName_Lab1.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 2.

o         Include your name and the 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: Include a summary of what the lab demonstrated and any
conclusions drawn from the testing of the lab program.

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

Summary: Write a statement summarizing your predicted and actual output. Identify and explain
any differences.
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.

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

Objective: Create a C++ console application that will model the characteristics of a resistor.

1.         Create a multifile project. Create and add to the project an h file containing the resistor-
class definition.

2.       Create and add to the project a cpp file containing the implementation of the class-
member functions.

3.         Create and add to the project a ccp file containing the main() function, which will
instantiate a resistor object and test its member functions.

STEP 2: Required Class Members

The resistor class will, at minimum, have members that do the following.

1.        store the nominal resistance value of a resistor

2.        store the tolerance of a resistor

3.        initialize any and all nominal-resistance values to correct, EIA, nonzero values that are
greater than 0 and less than 1,000,000 ohms

4.        initialize any and all resistance-tolerance values to correct, E12, E24, E48, or E96
resistance-tolerance values

5.       allow the nominal-resistance and tolerance values of a resistor object to be changed by
the user

6.         All member functions should have a test message stating the name of the function. All the
test messages should be displayed or not displayed, depending on the value of a Boolean variable
declared in main().
a.        If the Boolean value = true, display the message.

b.        If the Boolean value = false, do not display the message.

STEP 3: Program Operations

1.        Function main() should instatiate two objects of class resistor.

2.        Function main() should display the current values of all resistor objects.

a.         Function main() should also calculate and display the minimum and maximum in-tolerance
resistance values of each resistor object from the resistor data members.

3.         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.

a.        The user should be given the following data-entry choices:

1.        accept current EIA values for resistance and tolerance;

4.         The function main() should display the new, modified values of the resistor object,
including the new min and max in-tolerance resistance values.

5.        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.

1.         List the complete reference-source information for where you found the EIA standard
resistor value and tolerance information.

2.        How was this reference discovered and where?

3.        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.

4.         In the lab, you were required to provide mutator functions to change the nominal-
resistance and tolerance values of a resistor object.

a.         Describe how this was accomplished so that the user could not enter an invalid nominal-
resistance and E-series tolerance combination.

5.         Describe how this process was different and/or similar to how you implemented this
validation in the class constructor.


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

Contenu connexe

Plus de helpido6

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
 

Plus de helpido6 (6)

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
 

Dernier

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 

Dernier (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 

Comp 220 ilab 2 of 7

  • 1. HELPIDO.COM CLICK HERE TO GET THE SOLUTION !!!!!!!! COMP/220 iLab 2 of 7 - SQL Course iLAB OVERVIEW Scenario and Summary This lab requires you to create a multifile C++ project in order to design and implement an object- oriented program using a class to model the characteristics and function of a resistor. Deliverables 1. Submit a single Notepad file containing the source code for Exercise 1 to the Dropbox for Week 2. 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; see the following example: YourLastName_Lab1.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 2. o Include your name and the 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: Include a summary of what the lab demonstrated and any conclusions drawn from the testing of the lab program. o Answers to Lab Questions: Answer any and all lab questions included in the lab steps. Summary: Write a statement summarizing your predicted and actual output. Identify and explain any differences.
  • 2. 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. 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 Objective: Create a C++ console application that will model the characteristics of a resistor. 1. Create a multifile project. Create and add to the project an h file containing the resistor- class definition. 2. Create and add to the project a cpp file containing the implementation of the class- member functions. 3. Create and add to the project a ccp file containing the main() function, which will instantiate a resistor object and test its member functions. STEP 2: Required Class Members The resistor class will, at minimum, have members that do the following. 1. store the nominal resistance value of a resistor 2. store the tolerance of a resistor 3. initialize any and all nominal-resistance values to correct, EIA, nonzero values that are greater than 0 and less than 1,000,000 ohms 4. initialize any and all resistance-tolerance values to correct, E12, E24, E48, or E96 resistance-tolerance values 5. allow the nominal-resistance and tolerance values of a resistor object to be changed by the user 6. All member functions should have a test message stating the name of the function. All the test messages should be displayed or not displayed, depending on the value of a Boolean variable declared in main().
  • 3. a. If the Boolean value = true, display the message. b. If the Boolean value = false, do not display the message. STEP 3: Program Operations 1. Function main() should instatiate two objects of class resistor. 2. Function main() should display the current values of all resistor objects. a. Function main() should also calculate and display the minimum and maximum in-tolerance resistance values of each resistor object from the resistor data members. 3. 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. a. The user should be given the following data-entry choices: 1. accept current EIA values for resistance and tolerance; 4. The function main() should display the new, modified values of the resistor object, including the new min and max in-tolerance resistance values. 5. 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. 1. List the complete reference-source information for where you found the EIA standard resistor value and tolerance information. 2. How was this reference discovered and where? 3. 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. 4. In the lab, you were required to provide mutator functions to change the nominal- resistance and tolerance values of a resistor object. a. Describe how this was accomplished so that the user could not enter an invalid nominal- resistance and E-series tolerance combination. 5. Describe how this process was different and/or similar to how you implemented this validation in the class constructor. CLICK HERE TO GET THE SOLUTION !!!!!!!!