0
0
Intro to Computingfundamentals~10 mins

User accounts and permissions in Intro to Computing - Draw & Build Visually

Choose your learning style9 modes available
Draw This - beginner

Draw a flowchart that shows how a computer system checks user login and permissions. Start from the user entering username and password, then verify credentials, and finally check if the user has permission to access a file. Show the possible outcomes: access granted or access denied.

10 minutes
Hint 1
Hint 2
Hint 3
Hint 4
Grading Criteria
Start and End symbols present
Input step for username and password included
Decision symbol for checking credentials present
Decision symbol for checking permissions present
Correct flow for 'Yes' and 'No' branches
Outputs for 'Access granted' and 'Access denied' included
Error message for invalid login included
Solution
  +---------------------+
  | Start               |
  +----------+----------+
             |
             v
  +---------------------+
  | Input username &    |
  | password            |
  +----------+----------+
             |
             v
  +---------------------+
  | Check credentials   |
  +----------+----------+
             |
      +------+------+
      |             |
     Yes           No
      |             |
      v             v
+-------------+  +----------------+
| Check user  |  | Display error: |
| permissions |  | Invalid login  |
+------+------+  +-------+--------+
       |                 |
  +----+----+            |
  |         |            |
 Yes       No            |
  |         |            |
  v         v            v
+-----------+  +----------------+
| Access    |  | Display error: |
| granted   |  | Access denied  |
+-----------+  +----------------+
      |               |
      +-------+-------+
              |
              v
         +----+----+
         |  End    |
         +---------+

This flowchart starts with the user entering their username and password.

First, the system checks if the credentials are correct. If not, it shows an error message 'Invalid login' and ends.

If the credentials are correct, the system then checks if the user has permission to access the requested file.

If the user has permission, access is granted and the process ends.

If the user does not have permission, an 'Access denied' message is shown and the process ends.

Variations - 2 Challenges
[intermediate] Draw a flowchart for a system that allows three login attempts before locking the user out. Include checking credentials and permissions as before.
[advanced] Draw a flowchart for a system that supports three user roles: Admin, Editor, and Viewer. After login, check the role and show different access permissions for each role.