Question: 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)

 Q1. Use the programming techniques and write an application that calculates

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. 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 floating-point value. Use Java constant in the formula. Use the following formulas (r is the radius): diameter = 21 circumference = 2tr area = 7tr2 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. Note: show the output of the programs as well. noon

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!