Question: Open the file test 1 . cpp and provide the implementation for a simple function named ProcessLogin ( ) that meets the following criteria: 1

Open the file test1.cpp and provide the implementation for a simple function named
ProcessLogin() that meets the following criteria:
1. Accepts two string arguments named username and password.
2. Returns a Boolean value.
3. If the username equals admin and the password equals elevated, then the
function should output the text Access Level 1 granted to the screen and return
true.
4. If the username equals admin and the password equals normal, then the
function should output the text Access Level 2 granted to the screen and return
true.
5. Otherwise, the function should output the text Access Denied to the screen, and
return false.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!