C++ Fractions program

Cerrado Publicado Jun 28, 2002 Pagado a la entrega
Cerrado Pagado a la entrega

Define an ADT for rational numbers. Represent rational numbers as two values of the type int, one for the denominator, one for the nominator. Include a constructor with two arguments to set the member variables to any legitimate values. also include a constructor that has only a single parameter of typ e int. Call the parameter whole_number and define the constructos so that the object will be initialized to the rational number whole_number/1. Aslo include a default cistructor that initializes an object to 0. Overload the input and output opertors >> and <<. Numbers are to be input and output in the form 1/2 15/32 etc. The numerator, the denominator, or both may contain amnus sign, so that -1/2 may also be input. Define the ADT in seperate files, 1 for header, 1 for impletation, and one for application. must also have a test program to test it. You should also include a function to normalize the values stored so that, after normalization, the denominator is postive and the numerator and denominator is as small as possible (reduce to lowest common demoniator).

## Deliverables

Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. All code must be well commented so that I can understand it and learn from it. I am trying to learn here not copy your code, in a nut shell your being my tutor.. If not well commented then your code will not be accepted. In addition the I may be requesting more examples of additional work from the coder. This has to be done by 30 June 02 6PM EST.

## Platform

MS VIsual C++

Odd Jobs

Nº del proyecto: #2857936

Sobre el proyecto

1 propuesta Proyecto remoto Activo Jun 30, 2002

1 freelancer está ofertando el promedio de $43 para este trabajo

leepwo

See private message.

$42.5 USD en 14 días
(0 comentarios)
0.0