hi

i need help in my project which is .
Create a program that creates a user interface for practicing times tables. the numbers to be multiplied should be randomly generated. the product should be randomly generated. the product should be a number less or equal to 100.

You have to decide if you want it to be graphical or a console application. If you want to have a console app, use Scanner to allow the user to hit the enter key until they specify that he/she wants to quit (ex: by entering "q").

Use "java.util.Random" to generate random numbers < 100. Check if the product < 100. If not, re-generate either the 2nd number or both numbers (do this until the product is < 100). Print out the product. Repeat until the user specifies that he/she wants to quit the program.


Here's something to get you started:

do{
    ....
}while(product > 100);

*Hint: Use more than 1 do-while loop.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.