: Geometry Calculator
Geometry calculator calculates the area or perimeter of a square, rectangle, or the area or perimeter of a circle according to the table below:
The program should:
Ask the user to select a geometry figure using radiobutton widgets. By default, the radiobutton is set to Circle
Ask the user the type of calculation, area or perimeter/circumference, using dropdown menu widget.
If a user doesn’t select a calculation, the program will show an error message asking to select a calculation
Use a button widget to SUBMIT all entry.
Use entry widgets to collect the height and the width if a rectangle shape is selected, a height if a square shape is selected, or a radius if a circle shape is selected.
Use a CALCULATE button widget to calculate and print information
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |