Question: why wont my code run? language C++ thanks Problem #1 Open the file test1.cpp and provide the implementation for a simple function named ProcessLogin() that

why wont my code run? language C++
thanks  why wont my code run? language C++ thanks Problem #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

Problem #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. test1.cpp #include "test.h" using namespace std; 2 // ProcessLogin(): 5 6 - void ProcessLogin(string username, string password) { if (username == "admin" && password == "elevated") { cout

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 Databases Questions!