Find Jobs
Hire Freelancers

class rational numbers

$15-20 USD

ที่ทำเสร็จแล้ว
โพสต์ เกือบ 21 ปีที่ผ่านมา

$15-20 USD

ชำระเงินเมื่อส่งงาน
This must be done in C++ not C. Define a class for rational numbers. A rational number is a number that can be represented as the quotient of two integers. Represent rational numbers as two values of type int, one for the numerator and one for the denominator. Call the class Rational. Include a constructor with two arguments that can be used to set the member variables of an object to any legitimate values. Also include a constructor that has only a single parameter of type int; call this single parameter whole_number and define the constructor so that the object will be initialized to the rational number whole_number/1. Also include a default constructor that initializes an object to 0(that is, to 0/1). Overload the input and output operators >> and <<. Numbers are to be input and output in the form 1/2, 15/32, 300/401, and so forth. Note that the numerator , the denominator, or both may contain a minus sign, so -1/2, 15/-32, and -300/-401 are all possible inputs. Overload all of the following operators so that they correctly apply to the type Rational: ==,<,<=,>,>=,+,-,*, and /. Also write a test program to test your class. Hints: Two rational numbers a/b and c/d are equal if a*d equals c*b. If b and d are positive rational numbers, a/b is less than c/d provided a*d is less than c*d. You should include a function to normalize the values stored so that, after normalization, the denominator is positive and the numerator and denominator are as small as possible. For example, after normalization 4/-8 would be represented the same as -1/2. You should also write a test program to test your class. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. 4) Must be Done in C++ not C ## Platform Must work in windows platform in Microsoft VB.
รหัสโปรเจกต์: 2936866

เกี่ยวกับโปรเจกต์

6 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 21 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
หมอบหมายให้:
รูปอวาตาร์ของผู้ใช้
See private message.
$9 USD ใน 14 วัน
4.9 (170 รีวิว)
5.9
5.9
6 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $12 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
See private message.
$17 USD ใน 14 วัน
4.9 (214 รีวิว)
5.9
5.9
รูปอวาตาร์ของผู้ใช้
See private message.
$17 USD ใน 14 วัน
5.0 (34 รีวิว)
4.6
4.6
รูปอวาตาร์ของผู้ใช้
See private message.
$4.25 USD ใน 14 วัน
4.7 (47 รีวิว)
4.3
4.3
รูปอวาตาร์ของผู้ใช้
See private message.
$12.75 USD ใน 14 วัน
4.0 (5 รีวิว)
3.7
3.7
รูปอวาตาร์ของผู้ใช้
See private message.
$10.63 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ UNITED STATES
United States
5.0
6
เป็นสมาชิกตั้งแต่ เม.ย. 17, 2003

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง