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

4. Subtract

5. Multiply

6. Divide

7. Quit

( 4 comentários ) Eighty Four, United States

ID do Projeto: #529219

Concedido a:

fstudio

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

\$35 USD em 0 dias
(55 Comentários)
5.6

27 freelancers estão ofertando em média \$38 para esse trabalho

ancosys

\$40 USD em 1 dia
(52 Comentários)
5.1
rakib062

\$30 USD em 1 dia
(15 Comentários)
4.2
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 Mais

\$30 USD in 7 dias
(2 Comentários)
4.0
kj163

\$30 USD in 3 dias
(2 Comentários)
3.9
astoimenov

\$50 USD em 1 dia
(4 Comentários)
3.3
siamsoft061

sir, i am interested in ur project.

\$40 USD em 1 dia
(4 Comentários)
3.0
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 Mais

\$35 USD em 1 dia
(1 Comentário)
2.6
alm43

\$30 USD em 1 dia
(11 Comentários)
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 3 Mais

\$30 USD em 1 dia
(3 Comentários)
2.4
lalchetian

Hello sir I can do this pretty [login to view URL] refer pmb

\$30 USD in 2 dias
(1 Comentário)
2.0
CommingSoon

i can do it

\$30 USD in 2 dias
(1 Comentário)
2.4
vishumalka

I have 3+ years of c++ exp.

\$30 USD in 0 dias
(5 Comentários)
1.9
ranacseruet

I can do it very well.

\$40 USD in 2 dias
(1 Comentário)
1.7
ppitu

\$30 USD em 1 dia
(1 Comentário)
1.0
pannalal

\$50 USD em 1 dia
(0 Comentários)
0.0
deba4proj

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

\$30 USD em 1 dia
(0 Comentários)
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 dias
(0 Comentários)
0.0
shrenik2006

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

\$30 USD em 1 dia
(0 Comentários)
0.0
lyjbupt

Let's start to save time.

\$50 USD in 5 dias
(0 Comentários)
0.0
QuinnKirwan

Will this program need to be done on a GUI? If so, the only difference would be an additional day needed to complete the project, I will still be able to complete this project with the price specified. If it does not n Mais

\$30 USD in 2 dias
(0 Comentários)
0.0