Most of the code is already there. I do not expect to pay too much as this will be an easy job for you. I will be providing all the files and instructions very easy for you.
Your main task is to complete the code of the Fraction class by defining the operator functions as member functions.
Part of overall job:
Write the definitions and prototypes of following functions in [login to view URL] and Fraction.h respectively (They are indicated in the files by //TODO tag):
Define isEmpty function as a member function, which returns true if the object is in safe empty state (an object is in the safe empty state if denominator (denom) equals -1).
Define display function, which sends a Fraction number to the output stream (with the “Numerator/denominator” format). This function just prints "Invalid Fraction Object!" in the screen if the object is in the safe empty state. In case that object denominator equals 1, it just print the numerator.
Define the operator functions for the following operators:
“+=”, “+”, “*”
The overload of the above operators should make the following code possible:
The member operator+ : Adds two Fraction numbers and returns a Fraction number as the result. This function returns an object with the safe empty state if either of Fraction numbers (operands) is in safe empty state. It makes following code possible:
A+B ( where A and B are Fraction objects)
The member operator+= : Adds two Fraction numbers and assigns the result to the left operand, then returns a reference to the left operand. If either of Fraction numbers (operands) is in safe empty state, it initializes the left operand to the safe empty state, then returns a reference to the left operand. It makes following code possible:
A+=B ( where A and B are Fraction objects)
The member operator* : Multiplies two Fraction numbers and returns a Fraction number as the result. This function returns an object with the safe empty state if either of Fraction numbers (operands) is in safe empty state. It makes following code possible:
A*B ( where A and B are Fraction objects)
i'm an experienced C++/VC++ developer with solid background of OOP,Data structures and STL. you'll get your job done perfectly. have a look at my profile and reviews :)
$40 CAD in 0 day
5.0 (20 reviews)
4.6
4.6
14 freelancers are bidding on average $32 CAD for this job
************************ Solution within 2 Hours *******************************************************
HI
Contact me for an efficient, perfect, well documented
development of your project according to 100% accuracy
and requirements, with dedicated support.
Thanks
Farah Saif
Hello, I am expert in java/c/c++/python/C# and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first check your work then release the payments.
Pm me for further details. Thank You!
Hello, read your description and want you to know that I've been working into c++ for almost 3 years with numerous projects in portfolio. I have worked on numerous small and big projects. Your tasks are simple one and I'm 110% sure to provide you complete solution. Your satisfaction by the quality of work is guaranteed. We can discuss further details in pm.
Thanks
kind regards,
Faizan Ahmed
Dear Sir,
em a programmer and java/c++ developer, have recently worked on 5 assignment and completed before allocated time. You may please review the comments on my profile to know about my previous work.. I have been working n an IT company on similar projects for 6 years. I am new here and having very less project on my profile but i do have offline work that i may show you for your satisfaction to hire me and get ur application done in given time and less cost. I do believe in long term business relationship. Please approve my bid so that i may start working on your application.
Hello,
I am interested in this project. I will do operator loading for you. I did a project before you as well and i hope you liked that as well.
Thank You
Hello sir,
i am c++ programmer with 2 year experience ! i am new here !
i can make this task in one day .and i agree with your payment conditions.
looking forward to hear from you!