A rational number is the form of a/b, where a and b are integers with b != 0. Develop and test a class for processing rational numbers. The class should have a numerator data member and a denominator data member. It should read an display all rational numbers in the format a/b; for output, just display a if the denominator is 1.

To develop a class for processing rational numbers, you can define a `RationalNumber` class with numerator and denominator data members. Here's an example implementation in Python:

```python
class RationalNumber:
def __init__(self, numerator, denominator):
self.numerator = numerator
self.denominator = denominator

def __str__(self):
if self.denominator == 1:
return str(self.numerator)
return f"{self.numerator}/{self.denominator}"
```

In the `__init__` method, the class initializes the numerator and denominator with the values passed as arguments.

The `__str__` method is used to convert the object to a string representation. If the denominator is equal to 1, it returns the string representation of the numerator. Otherwise, it returns the string representation of the rational number in the format "numerator/denominator".

Now, you can create an instance of the `RationalNumber` class and print it to see the output:

```python
rational_number = RationalNumber(3, 4)
print(rational_number) # Output: 3/4

rational_number = RationalNumber(5, 1)
print(rational_number) # Output: 5
```

The code will output the rational numbers in the required format, as described in the problem statement.

Note: This is a basic implementation of the RationalNumber class. You can expand it by adding methods for arithmetic operations and error handling for division by zero, simplification, etc., depending on your requirements.