Programming Problem:
Write a program that provides
security level where the users can
login to control the flow of a program and handles possible restriction. The
system has 2 user level, USER and ADMIN. Now, design a program that both users can access the system but there’s
a limitation. For example, the USER only allow to login and view the records but they cannot click add, delete, and update button.
And only ADMIN has an authority to access the entire system if they want to
grant privileges to permit the USER to add, delete, or update.
For instance, let’s assume
there are textboxes for First name, Last name, and middle name to be fill up by
the users. For the security of a
program, any anomalies happens in the system will displays error message that
does not automatically point out the errors in the source code, instead it will
display during run time. Furthermore, you may also use buttons (Enabled –
True/False or Visible – True/False) to determine if it is accessible by the users to handles transaction based on
the security being used in the system. Once the users was logged in, it will display which visible commands are
accessible to be process.
In addition, the system also determine how many
attempt you try to access the system, to address the security access, the users only allow to access 3 times
otherwise more than that the system will automatically closed. Use only 2
Forms, Form for Login and Form for Viewing the record which includes user’s buttons and textboxes visibility
for security access. It’s up to you how to manage the design and codes of your program
as long the requirements meets what the given problem is, and at the same time
the logic of your program it should be flexible. It includes also Algorithm/Flowchart to determine the
flow of your program. Good luck!
0 comments:
Post a Comment