Write a JAVA or C++ program that prompts the user for three numbers, then prints
You are required to implement a class
public class Trio
{
/**
Constructs a trio.
@param aFirst the first value of the trio
@param aSecond the second value of the trio
@param aThird the third value of the trio
*/
public Trio(int aFirst, int aSecond, int aThird)
{
...
}
/**
Computes the sum of the valies of this trio.
@return the sum of the first, second and third values
*/
public double getSum()
{
...
}
...
}
Then implement s class TrioTester
that constructs a Trio object,
invokes its methods, and prints the results.