Write a program in C++ that will ask some programming related questions () from user and rank user according his / her answers in one of following categories:
- Beginner level
- Intermediate level
- Advanced level
For this purpose, your program will ask three questions from the user (as given in the screenshots below), record their response in the form of true and false (as T or F) and store it in a character array using for loop.
You have to create a function named computeUserLevel () and pass that array to this function and receive the array as pointer within the function declaration. The function will determine and print the result that whether you are a beginner, intermediate or advance level user. If a user is not able to correctly answer any of the questions then user level will be set as beginner.
Note: Only use the following programming constructs in your program:
- A Character Array
- For Loop
- Switch Statement
- Function (Call by reference – receive array by using pointers)
- If else (only allowed in function
DOWNLOAD SOLUTION HERE