Modified logic.php to perform all operations to generate password. Modified index.php to accept the password and display it.