Y= AX + B

Write a program for the calculator which:
• Generates and displays suitable integer values of A and B:

• Requests the student to input the coefficient of Y and the constant term in the re arranged formula;

• Checks the students answers;

• Outputs a relevant comment to help the student improve, or congratulates them on a correct answer.

The program should be at least 10 to 30 lines long.

Has any1 got an graphical calculator and knows how to work this out on it.. can you help me please.. im really stuck ..

Sure, I can help you with that. Here's a program that meets your requirements:

```python
import random

# Generate suitable values for A and B
A = random.randint(1, 10)
B = random.randint(1, 10)

# Print the values of A and B
print("Values of A and B are:", A, B)

# Ask the student to input the coefficients
student_A = int(input("Enter the coefficient of Y: "))
student_B = int(input("Enter the constant term: "))

# Check the student's answers
if student_A == A and student_B == B:
print("Congratulations! Your answers are correct.")
else:
print("Sorry, your answers are incorrect.")

# Provide feedback to help the student improve
if student_A != A:
print("The coefficient of Y should be", A)
if student_B != B:
print("The constant term should be", B)
```

Here's how the program works:

1. It imports the `random` module to generate random values for A and B.
2. It generates random integer values for A and B between 1 and 10.
3. It prints the values of A and B.
4. It asks the student to input the coefficient of Y and the constant term.
5. It checks the student's answers against the generated values of A and B.
6. If the answers are correct, it prints a congratulatory message.
7. If the answers are incorrect, it prints a message and provides feedback to help the student improve.

You can run this program on any Python environment (e.g., Python interpreter, online Python compiler) to test it out.