class orderedPair
{
public :
void setX ( double a );
void setY ( double b );
double getX ();
double getY ();
void print (); // Prints the ordered pair (x, y)
private :
double x;
double y;
};
int main ()
{
orderedPair * pairPtr ;
pairPtr = new orderedPair ;
// line a
// line b
// line c
}
a. Write the missing code i line a to assign 5 to the x-coordinate of the ordered
pair.
b. Write the missing code in line b to assign 7 to the y-coordinate of the ordered
pair.
c. Write the missing code in line c to print out the ordered pair