# Rational Numbers

[url removed, login to view] This lab will construct a class for the arithmetic manipulation of common fractions, i.e., rational numbers. A rational number is a number that can be expressed as a fraction whose numerator and denominator are integers. Of course, computers usually work with numbers in floating point form, rather than rational form. One very good reason for this is that some numbers cannot be expressed as rational numbers, for example the well-known constant pi, which is approximately 3.14159265358979. Nevertheless, we sometimes find that we get imprecise results with floating point numbers. For example, 1.0 / 3.0 * 3.0 often doesn’t give us the answer 1.0, but something like .999999. Problem Statement Our client would like to be able to do arithmetic with rational numbers, so we need to develop a program to accommodate that desire ( because the client is ALWAYS right, as long as he/she is the person paying for the job). Develop a class called ‘rational’. Each object of type ‘rational’ should contain at least the following: a. two private integer data members representing the numerator and denominator of a rational number. b. a public member function that will allow any function to retrieve the numerator, using an integer return value. c. a public member function that will allow any function to retrieve the denominator, using an integer return value. d. a constructor that accepts the numerator and denominator values as arguments. ETC. See text file for whole lab.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

## Platform

C++ [url removed, login to view] complier

Taidot: C-ohjelmointi, PHP

Tietoa työnantajasta:
( 0 arvostelua ) United States

Projektin tunnus: #2884814

## 28 freelanceria on tarjonnut keskimäärin 39\$ tähän työhön

softdreamsvw

See private message.

\$12.75 USD 14 päivässä
(55 arvostelua)
7.1
oleg21

See private message.

\$38.25 USD 14 päivässä
(137 arvostelua)
7.0
loobian

See private message.

\$4.25 USD 14 päivässä
(60 arvostelua)
6.1
idleswell

See private message.

\$8.5 USD 14 päivässä
(166 arvostelua)
5.8
sanatanvw

See private message.

\$12.75 USD 14 päivässä
(75 arvostelua)
5.5
pickingapples

See private message.

\$15.3 USD 14 päivässä
(43 arvostelua)
4.8
preyasvw

See private message.

\$6.8 USD 14 päivässä
(44 arvostelua)
4.7
herculesevw

See private message.

\$8.5 USD 14 päivässä
(77 arvostelua)
4.6
vw139994vw

See private message.

\$21.25 USD 14 päivässä
(60 arvostelua)
4.5
ambrosevw

See private message.

\$17 USD 14 päivässä
(27 arvostelua)
4.3
emesevw

See private message.

\$4.25 USD 14 päivässä
(110 arvostelua)
4.4
javabeevw

See private message.

\$17 USD 14 päivässä
(18 arvostelua)
3.9
dvandersluis

See private message.

\$17 USD 14 päivässä
(14 arvostelua)
3.8
vw450309vw

See private message.

\$4.25 USD 14 päivässä
(17 arvostelua)
3.8
ioikmn

See private message.

\$21.25 USD 14 päivässä
(14 arvostelua)
3.7
balaji99

See private message.

\$8.5 USD 14 päivässä
(51 arvostelua)
3.2
sfunds

See private message.

\$11.05 USD 14 päivässä
(5 arvostelua)
2.9
kb0old

See private message.

\$21.25 USD 14 päivässä
(18 arvostelua)
2.4
ninja3k

See private message.

\$12.75 USD 14 päivässä
(6 arvostelua)
1.9
gordonross

See private message.

\$8.5 USD 14 päivässä
(4 arvostelua)
1.8