Need help with the following problem ASAP.
Problem:
Use netbeans to write a java program that prints the following expressions. Output the result of calculations not the literal value, when displaying the answers. (For instance display 7*5, not 12). Decimals should be displayed as shown.
The sum of 7 and 5 is 12
The product of 6 and 3 is 18
The square of 5 is 25.0
52 divided by 3.0 is 17.333
Problem:
Use netbeans to write a java program that prints the following expressions. Output the result of calculations not the literal value, when displaying the answers. (For instance display 7*5, not 12). Decimals should be displayed as shown.
The sum of 7 and 5 is 12
The product of 6 and 3 is 18
The square of 5 is 25.0
52 divided by 3.0 is 17.333