• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Social distancing? Try a better way to work remotely on your online files. Dokkio, a new product from PBworks, can help your team find, organize, and collaborate on your Drive, Gmail, Dropbox, Box, and Slack files. Sign up for free.


Exercise 11 Q4

Page history last edited by Steve Sweeney 11 years, 3 months ago

/* Create a program that checks user name and password.

 Think carefully how you want to handle each of these

 (i.e., you don't want to give an invalid user

 information they could use to hack into the system!).

 Start with a single user.



var username, password : string




    put "User Name: " ..

    get username


    put "Password: " ..

    get password


    put ""              % add an extra line for nice output


    exit when (username = "user") and (password = "pass")


end loop


put "Access granted"


Comments (0)

You don't have permission to comment on this page.