![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 29.01.2021 03:40 marbuigues4675
Write a java program that prompts the user for the diameter of a circle and an x-increment "dx" (both in centimeters), then calculates and displays the area of the circle in square centimeters using a Riemann Sum.
To find the area of the circle using a Riemann sum, first, find the area of one quadrant by dividing the quadrant into rectangles, each of width "dx" (as in "delta-x", which means "change in x"), and then use the Pythagorean Theorem to find the "y" value at each "x" value.
y = sqrt(r^2 - x^2)
Multiply "dx" by "y" to get the area of the rectangle at that "x" value (see attached diagram). Add the areas of the rectangles together, and you have the area of the quadrant. To obtain the area of the entire circle, multiply the quadrant's area by four.
The program should use a for loop to do the calculations.
All variables should be of type double.
It should also use at least 2 methods.
![ansver](/tpl/images/cats/User.png)
Answers: 1
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 14:30
Complete the sentence based on your knowledge of the professional difficulties faced by music artists. digital technology allows audiences to see free live telecasts of music or dance performances through
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 01:30
The study of how to design software, solve problems such as computer security threats, or come up with better ways of handling data storage
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 05:40
How to make a negative number positive in excel
Answers: 3
You know the right answer?
Write a java program that prompts the user for the diameter of a circle and an x-increment "dx" (bot...
Questions
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/istoriya.png)
History, 05.10.2021 03:20
![question](/tpl/images/cats/mat.png)
Mathematics, 05.10.2021 03:20
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
English, 05.10.2021 03:20
![question](/tpl/images/cats/mat.png)
Mathematics, 05.10.2021 03:20
![question](/tpl/images/cats/mat.png)
Mathematics, 05.10.2021 03:20
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/User.png)
SAT, 05.10.2021 03:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 05.10.2021 03:20