Round Up to a Whole Number (Form Designer)

Grade 12

This is a form-based problem — open it in the Form Designer, not the code judge. A constant NUMBER = 5.23247 is already declared. An edit box (edtOutput) and a button (btnRoundUp) are already on the form. Write btnRoundUp's OnClick handler so that it rounds NUMBER up to the next whole number and displays it in edtOutput.

No input/output in the console sense. Grading clicks btnRoundUp once, then checks edtOutput.Text. Example: NUMBER = 5.23247 → edtOutput.Text = '6'.

Round Up─ ▢ ✕
NUMBER rounded up:
0
Round up

3 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