Em Andamento

Fraction Calc.

Your task is to improve program 2 (which will be provided upon selecting you to complete this project) and make it bigger and better in the following ways. First, a fraction will now have a sign, a whole part, a numerator and a denominator. You must use polymorphism to eliminate redundant code in main, and all appropriate operators should be overloaded for the Fraction and Problem classes. A valid sign will be ‘+’ or ‘-‘, a valid whole part or numerator will be any non-negative integer value, and a valid denominator will be any positive integer value. All parts of the fraction (sign, whole, numerator, and denominator) must be entered on the SAME line. You are not able to ask for the numerator and the denominator, etc, separately

The main program should have the following options:

1. Enter Left Fraction

2. Enter Right Fraction

3. Add

4. Subtract

5. Multiply

6. Divide

7. Show all Relationships (between left and right: ==, >, <, !=, >=, <=)

8. Quit

Habilidades: Programação C

Ver mais: fraction calc, value options, project calc, Calc, eliminate, improve code, parts program, task sign , quit, project fraction, polymorphism eliminate redundant code, multiply, Fraction, classes program, complete program classes

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

ID do Projeto: #553837

Premiar a:

padang

as agreed upon :)

$38 USD em 2 dias
(3 Avaliações)
3.0