C++ Fractions program

Κλειστό Αναρτήθηκε Jun 28, 2002 Πληρώθηκε κατά την παράδοση
Κλειστό Πληρώθηκε κατά την παράδοση

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

Ταυτότητα Εργασίας: #2857936

Σχετικά με την εργασία

1 πρόταση Απομακρυσμένη εργασία Ενεργό Jun 30, 2002

1 freelancer κάνει προσφορά κατά μέσο όρο $43 για αυτή τη δουλειά

leepwo

See private message.

$42.5 USD σε 14 μέρες
(0 Αξιολογήσεις)
0.0