Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java program called PowTable that uses nested for loops to print a table of the numbers 1 through 9 raised to the 2
Write a Java program called PowTable that uses nested for loops to print a table of the numbers 1 through 9 raised to the 2nd, 3rd, and 4th power. Review the Math.pow(double, a, double b) method. Review the below output. Use the outer and inner loop counters as the arguments to Math.pow(). Make sure to include the row and column headings. (3 points)
2 3 4
1 1.0 1.0 1.0
2 4.0 8.0 16.0
3 9.0 27.0 81.0
4 16.0 64.0 256.0
5 25.0 125.0 625.0
6 36.0 216.0 1296.0
7 49.0 343.0 2401.0
8 64.0 512.0 4096.0
9 81.0 729.0 6561.0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started