Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java code please . Q1. Use the programming techniques and write an application that calculates a) The squares and cubes of the numbers from 0
Java code please
. Q1. Use the programming techniques and write an application that calculates a) The squares and cubes of the numbers from 0 to 10 and b) Prints the resulting values in table format, as shown below or print the resulting values in a good format. 11:34 AM Q2. Write an application that inputs from the user the radius of a circle as an integer and prints the circle's diameter, circumference and area using the double value. Use Java constant in the formula. Use the following formulas (r is the radius): diameter = 2r circumference = 2tr area = Tur2 Do not store the results of each calculation in a variable. Rather, specify each calculation as the value that will be output in a System.out.printf statement. The values produced by the circumference and area calculations are floating-point numbers. 11:34 AMStep 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