Write a program that prints a 3-column table showing the circumference and area of ten circles of a specified random radius . See Sample Output. The area and circumference are calculated and printed...


Write a program that prints a 3-column table showing the
circumference
and
area
of
tencircles of a specified
random radius.  See Sample Output. The area and circumference are
calculated and printed by a custom function
that takes a radius as its only argument. The low and high values for the range of random radii are specified by
user inputs
in main. The main function should then use these high and low values and the random module in a loop to generate random integers and execute the custom function with the random integers as radii. In the table, the radius column should be
6 charas. wide with 1 decimal, the circumference column should be
12 charas. wide with 3 decimals, and the area column should be
11 characters. wide with 2 decimals.





Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here