Em Andamento

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

Habilidades: Programação C

Ver mais: fraction calculator program, program fraction calculator, fraction calculator, fractions calculator program, positive negative fraction calculator, negative fraction calculator, class fraction calculator, calculator fraction, program addition fraction, calculator program, work composition, fractions calculator, fraction calculator positive negative program, calculator fractions, create class add fractions, program fraction reduced, fraction calculator inheritance, fraction class program, create fraction calculator, fraction fraction addition program, form multiplication, create an operation, composition, calculator c++, c++ calculator

Acerca do Empregador:
( 4 comentários ) Eighty Four, United States

ID do Projeto: #529219

Premiar 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 Avaliações)
5.6

28 freelancers are bidding on average $38 for this job

ancosys

Hi, Please check pm Thanks

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

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

Please see PMB.

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

Hello sir, This is quite a easy job.I can finish it with your complete [url removed, login to view] for your reply. thanks

$30 USD em 1 dia
(7 Comentários)
3.8
astoimenov

Easy task.

$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
alm43

Please, see PM for details.

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

$35 USD em 1 dia
(1 Comentário)
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 Mais

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

i can do it

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

Hello sir I can do this pretty [url removed, login to view] refer pmb

$30 USD in 2 dias
(1 Comentário)
2.0
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

Please check PM

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

Please check Message Board. Thanks.

$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
rameshSe7en

Hi, let me do this simple task.

$33 USD in 0 dias
(0 Comentários)
0.0
lyjbupt

Let's start to save time.

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