Find Jobs
Hire Freelancers

C++ Homeqork problem

$20-25 USD

Closed
Posted almost 17 years ago

$20-25 USD

Paid on delivery
Hello, I just need a quick program for a beginning C++ class; so I'm hoping someone out there could whip this out rather quickly and cheaply. I don't know what the exact flavor of C++ we use, so please make sure that your code utilizes only the most standard headers & libraries. I need a C++ program that does all of the following: Design class Complex for working with complex numbers of the form a + bi, where i is the square root of -1. Your class must have two overloaded operators for adding and subtracting the complex numbers. The sum and the difference of two complex numbers a + bi and c + di is defined as (a+c) + (b+d)i (respectively, (a-c) + (b-d)i). The operators must throw exceptions in places where an integer overflow might occur. To check for an integer overflow, compare one of the numbers to add or subtract with the maximum (resp. minimum) integer representable in 4 bytes BEFORE the corresponding operation. Also, write a main method that demonstrates handling of the exceptions by printing warnings to the user. Name the source file **[login to view URL]** ## Deliverables 1) Complete and fully-functional working program in C++ (.cpp extension); that includes the complete source code. ## Platform this should be made for C++ running on a Linux server. However, as long its in standard C++, I can compile it for our setup later.
Project ID: 2969419

About the project

42 proposals
Remote project
Active 17 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
42 freelancers are bidding on average $15 USD for this job
User Avatar
See private message.
$7.65 USD in 1 day
4.9 (188 reviews)
6.7
6.7
User Avatar
See private message.
$17 USD in 1 day
5.0 (171 reviews)
6.3
6.3
User Avatar
See private message.
$21.25 USD in 1 day
4.9 (121 reviews)
6.3
6.3
User Avatar
See private message.
$12.75 USD in 1 day
5.0 (145 reviews)
6.2
6.2
User Avatar
See private message.
$17 USD in 1 day
5.0 (121 reviews)
5.6
5.6
User Avatar
See private message.
$21.25 USD in 1 day
5.0 (20 reviews)
5.0
5.0
User Avatar
See private message.
$4.25 USD in 1 day
4.8 (41 reviews)
4.8
4.8
User Avatar
See private message.
$12.75 USD in 1 day
5.0 (22 reviews)
4.7
4.7
User Avatar
See private message.
$21.25 USD in 1 day
4.6 (26 reviews)
4.2
4.2
User Avatar
See private message.
$6.80 USD in 1 day
5.0 (34 reviews)
4.0
4.0
User Avatar
See private message.
$17 USD in 1 day
4.8 (17 reviews)
3.9
3.9
User Avatar
See private message.
$21.25 USD in 1 day
4.9 (17 reviews)
3.7
3.7
User Avatar
See private message.
$17 USD in 1 day
4.7 (8 reviews)
3.4
3.4
User Avatar
See private message.
$19.55 USD in 1 day
4.7 (8 reviews)
2.8
2.8
User Avatar
See private message.
$17 USD in 1 day
5.0 (6 reviews)
2.6
2.6
User Avatar
See private message.
$12.75 USD in 1 day
5.0 (6 reviews)
2.3
2.3
User Avatar
See private message.
$17 USD in 1 day
4.9 (9 reviews)
2.1
2.1
User Avatar
See private message.
$12.75 USD in 1 day
4.9 (10 reviews)
1.9
1.9
User Avatar
See private message.
$4.25 USD in 1 day
4.5 (1 review)
1.8
1.8
User Avatar
See private message.
$12.75 USD in 1 day
5.0 (2 reviews)
1.4
1.4

About the client

Flag of UNITED STATES
United States
0.0
0
Member since May 16, 2007

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.