Programming

Programming questions? Ask a programmer for answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

This is another lab that i need. i need it done before midnight…

Customer Question
This is another lab that...
This is another lab that i need. i need it done before midnight on sunday. I need it two different .cpp files, so if you can write one .cpp for the first exercise, and another for the second.
First Exercise:
Objective: Create a C++ Class that includes overloaded operators.

Recall from last week's lab that we designed and implemented two resistor classes. We will use our lab work from last week and enhance the base resistor class by overloading several operators. You can use the lab solution from last week as your starting point. There is no need for the fancyResistorClass so you can eliminate all of the code related to this class.

Here is what you need to do:

Create a ResistorClass overloaded assignment (=) operator function which shall do the following:
Overload the assignment operator ( = ) to assign all m_dptrRes data values of an object of class ResistorClass to another object of class ResistorClass. Remember to use deep copying.
Be sure to copy the max and min resistance values.
Copy m_sptrResName using the strcpy_s function (see lab 6 for details on the strcopy_s function).
Print the message "Overloaded Resistor Assignment = Operator Called"

Create a ResistorClass overloaded addition operator function which shall do the following:
Overload the addition operator ( + ) to perform series resistance addition of the nominal values ( m_dptrRes[0]) of two Resistor Class objects. In other words, the nominal values of the two resistor objects will be added together.
Compare the tolerance values ( m_dptrRes[1]) of two Resistor Class objects and set the tolerance equal to the larger of the two tolerance values.
Print the message "Overloaded Resistor Series Resistance Operator Called"

Create a ResistorClass overloaded logical OR operator function which shall do the following:
Overload the logical OR operator ( || ) to calculate the equivalent parallel resistance of the nominal values ( m_dptrRes[0]) of two Resistor Class objects.
The formula for calculating parallel resistance is:
NominalValue1 * NominalValue2 / (NominalValue1 + NominalValue2)
Compare the tolerance values of the two objects and set the tolerance value ( m_dptrRes[1]) equal to the larger of the two tolerance values.
Print the message "Overloaded Resistor Parallel Resistance Operator Called"
Second Exercise:
Objective: Create a program that tests each overloaded operator to ensure it works properly.

Test the ResistorClass overloaded operators by performing the following tasks:

Instantiate four ResistorClass objects: Res1, Res2, ResSeries and ResParallel
Instantiate all ResistorClass objects using the parameterized constructor.
Calculate ResSeries = Res1 + Res2
Calculate ResParallel = Res1 || Res2
Display the values of the ResSeries and ResParallel objects
End program
Submitted: 8 years ago.Category: Programming
Show More
Show Less
Ask Your Own Programming Question
Answered in 8 hours by:
6/13/2010
Programmer: Kevin Bui, Computer Software Engineer replied 8 years ago
Kevin Bui
Kevin Bui, Computer Software Engineer
Category: Programming
Satisfied Customers: 108
Experience: 9+ years of experience and competitions in Assembly, C/C++, C#, and Java.
Verified
Hello and welcome to JustAnswer.com!



Can you please post the assignment file as the formatting makes it really hard to read off the forum (you can use wikisend.com). Also, the assignment mentions "We will use our lab work from last week and enhance the base resistor class by overloading several operators. You can use the lab solution from last week as your starting point." Can you post those files as well?



Thanks!
Ask Your Own Programming Question
Customer reply replied 8 years ago

Here is the last project.

this is the exercise:

http://wikisend.com/download/939418/Exercise 1.doc

 

thanks

Programmer: Kevin Bui, Computer Software Engineer replied 8 years ago
I could not access the project file. The link took me to some Assassin Creed II related video. Can you please re-upload the Resistors.zip file? Thanks!
Ask Your Own Programming Question
Customer reply replied 8 years ago
http://wikisend.com/download/455438/Resistors.zip
Customer reply replied 8 years ago
Hey, i was wondering if you can get this done tonight for me? It was due a couple nights ago, so the sooner the better.

Thanks!
Programmer: Kevin Bui, Computer Software Engineer replied 8 years ago
Hey, sorry about the delay. I didn't get a notification on the new link until today. I have uploaded the entire solution here.


Let me know if have any questions!


Regards,

Kevin
Ask Your Own Programming Question
Programmer: Kevin Bui, Computer Software Engineer replied 8 years ago
Hello, were you able to receive the file okay? Did it work for you?
Ask Your Own Programming Question
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a programmerLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask Kevin Bui Your Own Question
Kevin Bui
Kevin Bui
Kevin Bui, Computer Software Engineer
Category: Programming
Satisfied Customers: 108
108 Satisfied Customers
Experience: 9+ years of experience and competitions in Assembly, C/C++, C#, and Java.

Kevin Bui is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,175 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

848 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I am having trouble with a program and am looking for some
I am having trouble with a program and am looking for some help with this assignment: Objective: Create a C++ console application that will model the characteristics of a resistor. Create a multifile … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,175 satisfied customers
L A B Exercise 1 Resistor Class Operator Overloading
L A B Exercise 1: Resistor Class Operator Overloading (20 points) Objective: Create a C++ Class that includes overloaded operators. Recall from last week's lab that we designed and implemented two res… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,175 satisfied customers
will pay nice bonus Exercise 1 Resistor Class Operator
will pay nice bonus Exercise 1: Resistor Class Operator Overloading (20 points) Objective: Create a C++ Class that includes overloaded operators. Recall from last week's lab that we designed and imple… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,175 satisfied customers
Hi again, I need help with another assignment that I also believe
Hi again, I need help with another assignment that I also believe you worked with. It goes with the lab you created for me last week. Please could you help me and I will make sure bonus is included. T… read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
Here is the program I need help with this week. No hurry, it
Here is the program I need help with this week. No hurry, it is not due till the end of the week. Exercise 1: Resistor Class Operator Overloading (20 points) Objective: Create a C++ Class that include… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,175 satisfied customers
Hi Just wondering if you can help me with a new assignment
Hi Just wondering if you can help me with a new assignment? I will make sure I throw in a bonus. Also I believe you worked on this project once before with another student. I will post everything you … read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
Exercise 1 Resistor Class Constructors (20 points) Back
Exercise 1: Resistor Class Constructors (20 points) Back to top Objective: Create a C++ console application that utilizes the core concepts of designing and creating classes, objects, properties and m… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
Im having some problems implementing operator overloading
I'm having some problems implementing operator overloading to my resistor class assignment. I have my code for the resistor class, can you help me with the overloading assignment?… read more
unvadim
unvadim
Computer Software Engineer
Diplom
1,168 satisfied customers
For LogicPro only Exercise 1 Resistor Class Operator Overloading
For LogicPro only Exercise 1: Resistor Class Operator Overloading (20 points) Objective: Create a C++ Class that includes overloaded operators. Recall from last week's lab that we designed and impleme… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,175 satisfied customers
Exercise 1 Resistor Class and Pointers (20 points) Objective
Exercise 1: Resistor Class and Pointers (20 points) Objective: Create a C++ console application that utilizes the core concepts of inheritance and pointers by creating a class and a program that tests… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,175 satisfied customers
1) Objective Create a C++ console application that utilizes
1) Objective: Create a C++ console application that utilizes the core concepts of designing and creating classes, objects, properties and methods. Overview: Add two constructor functions and a destruc… read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
Exercise 1 Resistor Class Operator Overloading (20 points)
Exercise 1: Resistor Class Operator Overloading Objective: Create a C++ Class that includes overloaded operators. Recall from last week's lab that we designed and implemented two resistor classes. We … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,175 satisfied customers
L A B Exercise 1 Resistor Class Operator Overloading
L A B Exercise 1: Resistor Class Operator Overloading (20 points) Objective: Create a C++ Class that includes overloaded operators. Recall from last week's lab that we designed and implemented two res… read more
Arty
Arty
Senior Administrator
Bachelor\u0027s Degree
469 satisfied customers
Exercise 1 Resistor Class and Pointers (20 points) Object
Exercise 1: Resistor Class and Pointers (20 points) Objective: Create a C++ console application that utilizes the core concepts of inheritance and pointers by creating a class and a program that tests… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,175 satisfied customers
52 days ago you did a program for a gentleman and I need the
52 days ago you did a program for a gentleman and I need the same program and a special test program for it 1)Create a ResistorClass overloaded assignment (=) operator function which shall do the foll… read more
Todd
Todd
Bachelor\u0027s Degree
396 satisfied customers
Objective: Create a C++ console application that utilizes the
Objective: Create a C++ console application that utilizes the core concepts of inheritance and pointers by creating a class and a program that tests important features of that class. Overview: This la… read more
Nilesh
Nilesh
Bachelor\u0027s Degree
649 satisfied customers
Coder4Life, hello from Arizona to Texas.I was skimming
Coder4Life, hello from Arizona to Texas. I was skimming through examples of source code using class and functions and came across a question that someone had asked of you approx 45 days ago. It sounds… read more
Nilesh
Nilesh
Bachelor\u0027s Degree
649 satisfied customers
1)Create a ResistorClass overloaded assignment ( ) operator
1)Create a ResistorClass overloaded assignment (=) operator function which shall do the following: . Overload the assignment operator (=) to assign all m_dptrRes data values of an object class Resisto… read more
Todd
Todd
Bachelor\u0027s Degree
396 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x