In Progress

Fraction Calculator

Your task is to create a fraction calculator, so that a user can enter 2 fractions, and choose an operation (addition, subtraction, multiplication or division), and your program will tell them the answer in reduced form. You are expected to do this as described below:

Create a class named Fraction that has the following data members: numerator, denominator and sign. Numerator should be any number between 0 and 20, denominator should be any number between 1 and 20, and sign should be ‘p’ for positive or ‘n’ for negative. Create the appropriate ‘get’ and ‘set’ functions, as well as a default constructor, a display function and a reduce function.

Next, create a class named Problem that has the following data members: leftop, rightop and answer, where all 3 of these data members are of type Fraction. Note: this is composition (a ‘has a’ relationship) not inheritance (an ‘is a’ relationship). Create the appropriate ‘get’ and ‘set’ functions, as well as a display function and a ‘calculate answer’ function.

Create 4 derived classes (this is inheritance, ‘is a’ relationships) named AddProblem, SubProblem, MultProblem and DivProblem. Override the display and calculate functions to work properly for the different derived classes.

Finally, create a main program where you provide the user with the following menu:

1. Enter Left Fraction

2. Enter Right Fraction

3. Add

4. Subtract

5. Multiply

6. Divide

7. Quit

Skills: C Programming

See more: fraction calculator program, program fraction calculator, fraction calculator, fractions calculator program, positive negative fraction calculator, negative fraction calculator, calculator fraction, program addition fraction, calculator program, work composition, fractions calculator, calculator fractions, program fraction reduced, fraction calculator inheritance, create fraction calculator, form multiplication, create operation, composition, calculate different, calculator data, inheritance calculator, override, multiplication program, data enter menu, program calculator

About the Employer:
( 4 reviews ) Eighty Four, United States

Project ID: #529219

Awarded to:

fstudio

Dear sir, I am very interested in your project, Please see PMB for more details. Thanks. Best Regards.

$35 USD in 0 days
(55 Reviews)
5.6

28 freelancers are bidding on average $38 for this job

ancosys

Hi, Please check pm Thanks

$40 USD in 1 day
(51 Reviews)
5.0
cnut17

I can do this fraction exercise easily. I still remember mathematics formulas about reducing fractions, or adding, dividing them. And I also have a good level in C/C++ : I recently created a class to store number More

$30 USD in 7 days
(2 Reviews)
4.0
kj163

Please see PMB.

$30 USD in 3 days
(2 Reviews)
3.9
rakib062

Hello sir, This is quite a easy job.I can finish it with your complete satisfaction.Looking for your reply. thanks

$30 USD in 1 day
(7 Reviews)
3.8
astoimenov

Easy task.

$50 USD in 1 day
(4 Reviews)
3.3
siamsoft061

sir, i am interested in ur project.

$40 USD in 1 day
(4 Reviews)
3.0
alm43

Please, see PM for details.

$30 USD in 1 day
(11 Reviews)
2.6
itismohit

I am an expert in C/C++ and I have done hundreds of projects of this sort earlier. I will ensure complete satisfaction and assist in understanding, deploying and presenting. Looking for long term relationship with More

$35 USD in 1 day
(1 Review)
2.6
Janjua122

As ur requirments based on Object Oriented principles (OOP) and we are expert in (OOP) in C/C++. i suggest if u r serious with ur project then chose us, we will done it with in 1 day. Some about us as below: • Over More

$30 USD in 1 day
(3 Reviews)
2.4
CommingSoon

i can do it

$30 USD in 2 days
(1 Review)
2.4
lalchetian

Hello sir I can do this pretty cheaply.please refer pmb

$30 USD in 2 days
(1 Review)
2.0
vishumalka

I have 3+ years of c++ exp.

$30 USD in 0 days
(5 Reviews)
1.9
ranacseruet

I can do it very well.

$40 USD in 2 days
(1 Review)
1.7
ppitu

Please check PM

$30 USD in 1 day
(1 Review)
1.0
pannalal

Please check Message Board. Thanks.

$50 USD in 1 day
(0 Reviews)
0.0
deba4proj

Sir, i am a 4th year cse engineering student.....this is what i do.

$30 USD in 1 day
(0 Reviews)
0.0
lsocorro

Hello, this is my bid, I hope you think it is fear enough to land it, a start working right now.

$30 USD in 2 days
(0 Reviews)
0.0
shrenik2006

This is a simple task will be completed within a few hours.

$30 USD in 1 day
(0 Reviews)
0.0
rameshSe7en

Hi, let me do this simple task.

$33 USD in 0 days
(0 Reviews)
0.0
lyjbupt

Let's start to save time.

$50 USD in 5 days
(0 Reviews)
0.0