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

This lab requires you to create a multifile C++ project in order to design and i

ID: 1811944 • Letter: T

Question

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


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.

to the Dropbox for Week 2.


program accomplishes, including its input, key processes, and output.

used to confirm that your program worked properly. If necessary, include a

clearly labeled table with test cases, predicted results, and actual results.

demonstrated and any conclusions drawn from the testing of the lab program.

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




i L A B S T E P S





STEP 1: Create a Multifile

Project



Objective: Create a C++ console application

that will model the characteristics of a resistor.

containing the resistor-class definition.

the class-member functions.

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.

values that are greater than 0 and less than 1,000,000 ohms

E48, or E96 resistance-tolerance values

changed by the user

function. All the test messages should be displayed or not displayed, depending

on the value of a Boolean variable declared in main().





STEP 3: Program

Operations





in-tolerance resistance values of each resistor object from the resistor data

members.

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.



object, including the new min and max in-tolerance resistance

values.

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.

standard resistor value and tolerance information.

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.

nominal-resistance and tolerance values of a resistor object.


invalid nominal-resistance and E-series tolerance combination.


implemented this validation in the class constructor.

Explanation / Answer

answer Programmer: [put your name here] * * Date: [put the current date here] * * Course: COMP 220 * * Assignment: Two-dimensional arrays * * File name: XXX.cpp [put your initials instead of XXX] * * Description: this program analyzes the data from temperature sensors for * each of the seven computers in a room * * Assumptions: all data is type integer * * Input: two-dimensional array * * Output: screen - Displays results of calculations in table format. * ********************************************************************/ #include const int NMBROFCLMNS = 8; const int NMBROFROWS = 24; void processArray(int TR[][NMBROFCLMNS]); double avgerage(int [][NMBROFCLMNS], int, int); int high(int TR[][NMBROFCLMNS], int, int); int low(int [][NMBROFCLMNS], int, int); int tempDifference(int [][NMBROFCLMNS], int , int ); int main ( ){ int tempReadings [][NMBROFCLMNS] = { {96, 94, 95, 100, 115, 97, 92, 65}, {100, 92, 91, 110, 115, 99, 98, 65}, {120, 91, 99, 113, 115, 95, 99, 66}, {97, 99, 100, 114, 115, 100, 100, 66}, {99, 100, 111, 115, 115, 104, 104, 68}, {95, 130, 112, 101, 115, 100, 115, 65}, {94, 90, 95, 100, 105, 97, 120, 64}, {96, 94, 95, 100, 115, 97, 92, 65}, {100, 92, 91, 110, 115, 99, 98, 65}, {120, 91, 99, 113, 115, 95, 99, 66}, {97, 99, 100, 114, 115, 100, 100, 66}, {99, 100, 111, 115, 115, 104, 104, 68}, {95, 130, 112, 101, 115, 100, 115, 65}, {94, 90, 95, 100, 105, 97, 120, 64}, {96, 94, 95, 100, 115, 97, 92, 65}, {100, 92, 91, 110, 115, 99, 98, 65}, {120, 91, 99, 113, 115, 95, 99, 66}, {97, 99, 100, 114, 115, 100, 100, 66}, {99, 100, 111, 115, 115, 104, 104, 68}, {95, 130, 112, 101, 115, 100, 115, 65}, {94, 90, 95, 100, 105, 97, 120, 64}, {99, 100, 111, 115, 115, 104, 104, 68}, {92, 93, 94, 95, 96, 97, 98, 64}, {96, 94, 95, 100, 115, 97, 92, 64} }; processArray(tempReadings); return 0; } //end main void processArray(int temperatures[][NMBROFCLMNS]){ //Create the required tables //print the table heading std::cout
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