Find Jobs
Hire Freelancers

Assignment 4

$30-5000 USD

Closed
Posted over 20 years ago

$30-5000 USD

Paid on delivery
Write a C/C++ program that will enable a user to enter two rational numbers and an operator. The program is designed to handle four operators: + , - , * and / ( plus, minus, multiplication and division). You must design the interface that is easy to use and has some error checks. The results should be displayed in such a manner that the original input and the computed output are easily readable. The output must be in displayed in a reduced form. Sample input: 3/7 + 1/14 Output: 1/2 This algorithm will include the computation of the gcd. Once the gcd is determined the output can be reduced. The following expressions shows the computation for each operation: n1/d1 + n2/d2 = (n1*d2 + n2*d1)/(d1*d2) n1/d1 - n2/d2 = (n1*d2 - n2*d1)/(d1*d2) (n1/d1)*(n2/d2) = (n1*n2)/(d1*d2) (n1/d1)/(n2/d2) = (n1*d2)/(d1*n2) Submit output that demonstrates the use and correctness of your algorithm. Test your program with the following input. 14/3 + 5/2 33/4 - 6/8 4/9 * 18/24 2/16 / 8/64 ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased. ## Platform Windows XP, MS Visual C++
Project ID: 2976321

About the project

39 proposals
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
39 freelancers are bidding on average $17 USD for this job
User Avatar
See private message.
$4.25 USD in 4 days
5.0 (96 reviews)
6.6
6.6
User Avatar
See private message.
$8.50 USD in 4 days
4.8 (117 reviews)
6.6
6.6
User Avatar
See private message.
$8.49 USD in 4 days
5.0 (160 reviews)
6.0
6.0
User Avatar
See private message.
$14.45 USD in 4 days
4.9 (175 reviews)
5.9
5.9
User Avatar
See private message.
$17 USD in 4 days
4.9 (62 reviews)
5.4
5.4
User Avatar
See private message.
$25.50 USD in 4 days
4.4 (72 reviews)
5.5
5.5
User Avatar
See private message.
$12.75 USD in 4 days
4.9 (101 reviews)
5.1
5.1
User Avatar
See private message.
$17 USD in 4 days
5.0 (39 reviews)
5.0
5.0
User Avatar
See private message.
$38.25 USD in 4 days
4.7 (41 reviews)
4.7
4.7
User Avatar
See private message.
$8.50 USD in 4 days
4.8 (61 reviews)
4.5
4.5
User Avatar
See private message.
$4.25 USD in 4 days
5.0 (55 reviews)
4.4
4.4
User Avatar
See private message.
$8.50 USD in 4 days
4.9 (94 reviews)
4.3
4.3
User Avatar
See private message.
$4.25 USD in 4 days
5.0 (16 reviews)
4.0
4.0
User Avatar
See private message.
$21.25 USD in 4 days
4.9 (18 reviews)
3.9
3.9
User Avatar
See private message.
$5.95 USD in 4 days
4.9 (36 reviews)
3.8
3.8
User Avatar
See private message.
$51 USD in 4 days
4.7 (15 reviews)
3.8
3.8
User Avatar
See private message.
$8.50 USD in 4 days
5.0 (18 reviews)
3.5
3.5
User Avatar
See private message.
$20.40 USD in 4 days
5.0 (19 reviews)
3.2
3.2
User Avatar
See private message.
$8.50 USD in 4 days
4.9 (5 reviews)
3.2
3.2
User Avatar
See private message.
$3.40 USD in 4 days
4.6 (28 reviews)
2.6
2.6

About the client

Flag of KOREA, REPUBLIC OF
Korea, Republic of
5.0
7
Member since Sep 17, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.