Click to See Complete Forum and Search --> : I need C# help plz!!!


sweet_joory
05-29-2006, 07:18 PM
Hii! I just started taking GUI programming and I need help!!! :confused:

Write a program that will help a student learn multiplication. Use the Next method from an object of type Random to produce 2 positive one-digit integers. It should display a question in the status bar:

How much is 6 times 7?

The student should then type the answer into a TextBox. Your program should check the student's answer. If it's correct, draw the string "Very Good!" in a read-only TextBox, then ask another multiplication question. If the answer is wrong, draw the string "No. Please try again." in the same read-only TextBox, then let the student try the same question again until the student finally gets it right. A separate method should be used to generate each new question. This method should be called once when the program begins execution and each time the user answers the question correctly.

Thanx guys!!! I'll be hearing from u soon!!!

Joory

nabeelisnabeel
05-30-2006, 02:20 AM
I am just writing some pseudocode here. try yourself to implement it.....

int x, y
void askQuestion()
{
print "How much is" + randomX + "times" + randomY
}
int test()
{
if(x*y == userInput)
print in textbox "You are right"
else
print in textbox "You are wrong"
}