C++ Rational Class Project (header, cpp definition, cpp driver)

进行中 已发布的 7 年前 货到付款
进行中 货到付款

Need a simple C++ project completed.

Details below:

Create a class called Rational for performing arithmetic with fractions. Write a program to test your class.

((use operator overloading for arithmetic))

Use integer variables to represent the private date of the class (the numerator and denominator). Provide a constructor that enables an object of this class to be initialized when it's declared. The constructor should contain default values in case no initializers are provided and should store the fraction in reduced form. For example:

2/4 would be stored in the object as 1 in the numerator and 2 in the denominator. Provide public member functions that perform each of the following tasks:

((results should be in reduced form))

a) adding two Rational numbers.

b) subtracting two Rational numbers.

c) multiplying two Rational numbers.

d) dividing two Rational numbers.

e) Printing Rational numbers in the form a/b, where a is the numerator and b is the denominator.

f) Printing Rational numbers in floating point format.

Looking to have project completed within the next couple of hours, tops.

C++编程

项目ID: #11263628

关于项目

8个方案 远程项目 活跃的7 年前

有8名威客正在参与此工作的竞标,均价$21/小时

LiangXiaoJin

Dear client, how are you? I am a C++ programmer and mathematician. No problem. Lets do. Can provide you with perfect code within 2 hours. Please check my "Profile & Work List" and consider hiring me if my skill is 更多

$20 USD 在0天内
(70条评论)
7.3
ig149

Hi , c++ Expert here , well your task will be done in very short time .................................................

$20USD 在1天里
(42条评论)
5.3
HafizShahan

I can do it within your time specified and budget hopefully you will find me best freelancer . hope to see you in chat

$20USD 在1天里
(39条评论)
4.8
prolinkerx

Dear sir, I've read your requirements twice carefully. As an MS in Math/Computer Science, this work is very easy to me. I'll complete it within an hour or two with 100% accuracy. Kind regards, Francis T.

$24 USD 在0天内
(3条评论)
2.4
ithaider

Dear I am professional expert in Web development and designing. I will provide you good and highest quality work under your requirements and deadline. I have done many projects in website development. thanks

$25 USD 在2天内
(0条评论)
0.0
aamirshahzad84

I have hand on experience with c++. I can do this job for you with lowest cost. I am looking forward to hear from you.

$15USD 在1天里
(0条评论)
0.0
ShinsetsuDesuka

This is pretty simple, and is very similar to class projects for Intro to programming C++. I can complete it over night and send you the code however your prefer.

$25 USD 在2天内
(0条评论)
0.0