|
1 |
| -Code challenges will reinforce what you've learned and help you gain some confidence before continuing on. |
| 1 | +Code challenges reinforce what you've learned and help you gain some confidence before continuing on. |
2 | 2 |
|
3 | 3 | ## Decision logic challenge
|
4 | 4 |
|
5 |
| -In this challenge, you'll implement decision logic based on a series of business rules. The business rules specify the access that will be granted to users based on their role-based permissions and their career level. Code branches will display a different message to the user depending on their permissions and level. |
| 5 | +In this challenge, you implement decision logic based on a series of business rules. The business rules specify the access that is granted to users based on their role-based permissions and their career level. Code branches display a different message to the user depending on their permissions and level. |
6 | 6 |
|
7 | 7 | ### Initialize permission and level values
|
8 | 8 |
|
@@ -30,12 +30,12 @@ In this challenge, you'll implement decision logic based on a series of business
|
30 | 30 | Your application will be using a combination of `permission` and `level` to apply/evaluate the business rules in this challenge scenario. The full list of conditions for business rules is specified in the next step. Your completed solution must use `permission` and `level`.
|
31 | 31 |
|
32 | 32 | > [!TIP]
|
33 |
| - > To sufficiently test all of the combinations for `permission` and `level` that are described in the business rules below, you will need to assign additional values to these variables and run the application multiple times. |
| 33 | + > To sufficiently test all of the combinations for `permission` and `level` that are described in the business rules below, you'll need to assign additional values to these variables and run the application multiple times. |
34 | 34 |
|
35 | 35 | ### Implement business rules
|
36 | 36 |
|
37 | 37 | > [!IMPORTANT]
|
38 |
| -> You will need to use the `Contains()` helper method to determine whether the value assigned to the `permission` string contains one of the permission values specified by the "business rules". For example, the expression `permission.Contains("Admin")` will return `true` when using the initial data values specified in the code above. |
| 38 | +> You'll need to use the `Contains()` helper method to determine whether the value assigned to the `permission` string contains one of the permission values specified by the "business rules". For example, the expression `permission.Contains("Admin")` will return `true` when using the initial data values specified in the code above. |
39 | 39 |
|
40 | 40 | Here are the **Business Rules** that your solution must satisfy:
|
41 | 41 |
|
@@ -63,7 +63,7 @@ Here are the **Business Rules** that your solution must satisfy:
|
63 | 63 | You do not have sufficient privileges.
|
64 | 64 | ```
|
65 | 65 |
|
66 |
| -- If the user is not an Admin or a Manager, output the message: |
| 66 | +- If the user isn't an Admin or a Manager, output the message: |
67 | 67 |
|
68 | 68 | ```Output
|
69 | 69 | You do not have sufficient privileges.
|
|
0 commit comments