Password Generator (Form Designer)

Grade 12

This is a form-based problem — open it in the Form Designer, not the code judge. An edit box (edtName) holds a learner's full name; a button (btnGenerate) and a memo (memOutput) are already on the form. Write btnGenerate's OnClick handler so that it reverses the name and removes every space, shows that on its own line in memOutput, then builds a password from it by replacing every third character with one randomly chosen from '@#$%^&', and shows the password on the next line.

No input/output in the console sense. Grading sets edtName.Text, pins the random sequence to a known seed, clicks btnGenerate once, then checks memOutput.Text. Example: 'Lilly Johnson' reverses (spaces removed) to 'nosnhoJylliL' — the actual password text then depends on which random characters land on positions 3, 6, 9, 12, which is why grading fixes the seed rather than checking one universal expected password.

Password Generator─ ▢ ✕
Name and surname:
Generate
Reversed name, then password:

5 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