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 testcpp and provide the implementation for a simple function named
ProcessLogin that meets the following criteria:
Accepts two string arguments named username and password.
Returns a Boolean value.
If the username equals admin and the password equals elevated then the
function should output the text Access Level granted to the screen and return
true.
If the username equals admin and the password equals normal then the
function should output the text Access Level granted to the screen and return
true.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
