This is a form-based problem — open it in the Form Designer, not the code judge. A list box (lstDays) contains the seven days of the week, Sunday to Saturday. A label (lblResult), an edit box (edtResult) and a button (btnRandomDay) are already on the form. Write btnRandomDay's OnClick handler so that it randomly picks one day (1 to 7), selects it in lstDays, shows the number on lblResult, and shows whether that day is a Weekday or a Weekend in edtResult.
No input/output in the console sense. Grading clicks btnRandomDay once with the random sequence pinned to a known seed, then checks lblResult.Caption, edtResult.Text and lstDays.ItemIndex. Format: lblResult.Caption = 'Day: <n>'. Sunday (1) and Saturday (7) are 'Weekend'; every other day is 'Weekday'. Example: number 3 generated -> 'Day: 3', edtResult.Text = 'Weekday', lstDays.ItemIndex = 2 (Tuesday).
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