Question: A+ Computer Science MULTIPLICATION TABLE Lab Goal : This lab was designed to teach you how to use for loops. Lab Description : Generate the
|
Lab Goal : This lab was designed to teach you how to use for loops.
Lab Description : Generate the multiplication table for any number up to ten. Ask the user for the two numbers. Make sure your runner will run 3 times. Do not create more than 1 MultTable object in your runner.
|
Sample Data :
5 5
3 7
Sample Output :
Generate multiplication table for :: 5
How many entries would you like? :: 5
multiplication table for 5
1 x 5 = 5
2 x 5 = 10
3 x 5 = 15
4 x 5 = 20
5 x 5 = 25
Generate multiplication table for :: 3
How many entries would you like? :: 7
multiplication table for 3
1 x 3 = 3
2 x 3 = 6
3 x 3 = 9
4 x 3 = 12
5 x 3 = 15
6 x 3 = 18
7 x 3 = 21
public class MultTable
{
private int number;
private int stop;
public MultTable()
{
}
public MultTable(int num, int end)
{
}
public void setTable(int num, int end)
{
}
public void printTable( )
{
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
