We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge 1 - TextWindow login
#1
Write a TextWindow login program.

It should have options to:
  • create and account and set a password
  • login using existing account and password (checking the password)

To extend the program you could:
  • have a reset password option
  • save the passwords so that the program can be rerun
  • consider how to 'encrypt' the passwords
  • write a GraphicsWindow version
Reply
#2
Here is a starting answer, import TSSN477.000

This should be imported into Small Basic using the code above.  It contains File commands that are automatically commented out for security reasons.  You should check you are happy they don't do anything bad by looking at the code, then when happy uncomment them.  I recommend saving the program somewhere before running it, since it saves passwords to a settings file in the same folder as the program is saved (hence the File commands).

Run the program, check out how it works, what isn't so good and make it better!
[-] The following 1 user Likes litdev's post:
  • z-s
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)