Find Jobs
Hire Freelancers

distance calculator

$30-5000 USD

Suoritettu
Julkaistu yli 19 vuotta sitten

$30-5000 USD

Maksettu toimituksen yhteydessä
I need a C++ program which gives me distance class to represent a distance in American units, with constructors and overloaded I/O functions. We will assume that the number of inches is an integer, hence the number of feet and miles would be integers also. We want to overload the + operator to add two distances together. We also want to overload the * operator to multiply distance by an int. The feet value should never be great than 5279 and the inches value should never be greater than 11. The output should look something like this: 200mi 3500' 7" + 1mi 3000' 7" Sum is 202mi 1221' 2" Another calculation? (y/n/) y 700mi 1000' 8" * 6 Product is 4201mi 724' 0" Another calculation? (y/n/) You must use overloaded operators to do the arithmetic and I/O. The smallest unit of distance measurement is 1 inch, which is equal to about 2.54 cm. The symbol for inches is ". One foot is equal to 12 inches. The symbol for feet is '. One mile is equal to 5280 feet. There is no special symbol for one mile, although mi is often used. One mile, one hundred feet and six inches would therefore be written 1mi 100' 6". Usually spaces are used as shown ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Unix - Solaris
Projektin tunnus (ID): 3422993

Tietoa projektista

15 ehdotukset
Etäprojekti
Aktiivinen 19 vuotta sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
Myönnetty käyttäjälle:
Käyttäjän avatar
See private message.
$10 USD 3 päivässä
4,9 (195 arvostelua)
5,7
5,7
15 freelancerit tarjoavat keskimäärin $13 USD tätä projektia
Käyttäjän avatar
See private message.
$10,20 USD 3 päivässä
4,8 (335 arvostelua)
6,4
6,4
Käyttäjän avatar
See private message.
$17 USD 3 päivässä
5,0 (64 arvostelua)
6,0
6,0
Käyttäjän avatar
See private message.
$12,75 USD 3 päivässä
5,0 (100 arvostelua)
5,6
5,6
Käyttäjän avatar
See private message.
$7,65 USD 3 päivässä
4,9 (104 arvostelua)
4,9
4,9
Käyttäjän avatar
See private message.
$21,25 USD 3 päivässä
5,0 (52 arvostelua)
4,9
4,9
Käyttäjän avatar
See private message.
$15,30 USD 3 päivässä
5,0 (33 arvostelua)
4,6
4,6
Käyttäjän avatar
See private message.
$10,20 USD 3 päivässä
5,0 (15 arvostelua)
4,1
4,1
Käyttäjän avatar
See private message.
$17 USD 3 päivässä
5,0 (14 arvostelua)
2,9
2,9
Käyttäjän avatar
See private message.
$17 USD 3 päivässä
4,8 (29 arvostelua)
2,8
2,8
Käyttäjän avatar
See private message.
$12,75 USD 3 päivässä
4,9 (10 arvostelua)
2,3
2,3
Käyttäjän avatar
See private message.
$21,25 USD 3 päivässä
4,6 (3 arvostelua)
2,3
2,3
Käyttäjän avatar
See private message.
$4,25 USD 3 päivässä
5,0 (6 arvostelua)
2,2
2,2
Käyttäjän avatar
See private message.
$4,25 USD 3 päivässä
4,8 (7 arvostelua)
2,2
2,2
Käyttäjän avatar
See private message.
$21,25 USD 3 päivässä
4,0 (2 arvostelua)
1,5
1,5
Käyttäjän avatar
See private message.
$8,50 USD 3 päivässä
0,0 (1 arvostelu)
0,0
0,0

Tietoja asiakkaasta

Maan UNITED STATES lippu
United States
5,0
2
Liittynyt marrask. 7, 2004

Asiakkaan vahvistus

Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.