Cone Surface Area (Form Designer)

Grade 12

This is a form-based problem — open it in the Form Designer, not the code judge. Two edit boxes (edtR and edtH) hold a cone's radius and height; a button (btnCalculate) and a label (lblResult) are already on the form. Write btnCalculate's OnClick handler so that it works out the cone's surface area and shows it on lblResult, rounded to two decimal places.

No input/output in the console sense. Grading sets edtR.Text and edtH.Text, clicks btnCalculate once, then checks lblResult.Caption. Formula: . Examples: r = 5, h = 10 -> '254.16' r = 7.9, h = 22.4 -> '785.56'

Cone Surface Area─ ▢ ✕
Radius r:
Height h:
Surface area
lblResult

6 components · drag to move, corner handle to resize, Delete to remove

Object Inspector

Select a component on the form to edit its properties.

Palette

Pick a component, then click the form

Standard

Additional

Data

Non-visual