Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed
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

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions