Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 AM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

1.who the father of Ayurveda? 2. Who the father of taxonomy?

Answered: 1 week ago

Question

Commen Name with scientific name Tiger - Wolf- Lion- Cat- Dog-

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago