Temperature Converter (Form Designer)

Grade 10

This is a form-based problem — open it in the Form Designer, not the code judge. An edit box (edtCelsius) holds a temperature in degrees Celsius; a button (btnConvert) and a label (lblResult) are already on the form. Write btnConvert's OnClick handler so that it converts the value to Fahrenheit and shows both readings on lblResult, in the exact format below.

No input/output in the console sense. Grading sets edtCelsius.Text to a whole number of degrees, clicks btnConvert once, then checks lblResult.Caption. Formula: . Format: '<C> degrees C = <F> degrees F', with F rounded to one decimal place. Example: C = 20 produces 'lblResult.Caption = 20 degrees C = 68.0 degrees F'.

Temperature Converter─ ▢ ✕
Degrees Celsius:
Convert
lblResult

4 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