Math, asked by sunita926343, 10 months ago

use the method of mean to find three rational number between -2 and -3 .


don't spam .. other wise I know how to report..​

Answers

Answered by deepakapril1981
0

Step-by-step explanation:

I think it is helpful for you

Attachments:
Answered by akansha10111111
1

A rational number is a number that can be represented as the quotient of two integers. For this project you are to write a C++ class that can be used to represent non-negative rational numbers. Although I will only be grading the class that you write, you will probably also want to write a main program to test your class.

Your class should meet the following specifications:

The class should have three constructors:

Rational numbers should be represented by two unsigned ints.

A default constructor that initializes the object to 0;

A constructor that takes two unsigned ints as parameters, representing the numerator and denominator of the rational. This constructor should fail gracefully if the class user attempts to create a rational object with 0 as the denominator.

A constructor that takes a single unsigned int parameter N and initializes the object to the rational number N/1;

Similar questions