Find Jobs
Hire Freelancers

C++ using classes

$30-5000 USD

Завершено
Опублікований over 21 years ago

$30-5000 USD

Оплачується при отриманні
design, implement and test a Rational number class that represents a rational number as a pair of integers instead of a single floating point number. The rational objects must be stored in their reduced form. A private member function reduce should be provided to reduce the Rational object. The rational clas should have two class constructors. The first one lets the client specify an initial numerator and denominator. The other default constructor creates the Rational number 0, represented as a numerator of 0 and a denominator of 1. The Rational class should have arthmetic operations that add, subtract, multiply and divide two Rational objects. These should be implemented as value-returning functions, each returning a Rational object. The Rational class should has a Bolean operation that compares two Rational objects for equality. The Rational class should have an input operation that reads a rational number from a designated input stream in the form numerator/denominator. The Rational class should have an output operation that writes a rational number out to a designated output stream in the form of numerator/denominator. Deploy "seperate compliation" development. Do not rename the files. rational.h contains the definition of the Rational class. You can only add member funtions to the class and that is all. [login to view URL] is the implementation file and must contain the implementation of Rational class member functions and any other supporting functions add the remaining Rational class member functions use gcd and reduce functions. [login to view URL] is the client file and contains function main and other supporting functions. Add the client code that uses Rational class to allow the user full testing capability only fillign the areas marked. Error checking should check for a denominator of zero and abort using the assert function if zero or a zero is formed. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete c++ source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform DOS console app ## Deadline information must be in C++
ID проекту: 2885970

Про проект

1 пропозиця
Дистанційний проект
Активність 21 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
See private message.
$7 USD за 14 дні(-в)
5,0 (6 відгуки(-ів))
2,0
2,0

Про клієнта

Прапор UNITED STATES
United States
5,0
1
На сайті з лист. 1, 2002

Верифікація клієнта

Інші роботи від цього клієнта

Array & sorrting
$30-5000 USD
Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.