There is no elevator to success. You have to take the stairs. Take your first steps with SSWT!

CS201-Introduction to Programming | Assignment no 2 Solution | Spring 2018 | Due date: 28 may,2018

CS201-Introduction to Programming 
Assignment no 2 Solution
Due Date: 28 may,2018
Total marks: 20
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:

1-      Beginner level
2-      Intermediate level
3-      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 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:
1.      A Character Array

2.      For Loop

3.      Switch Statement

4.      Function (Call by reference – receive array by using pointers)

5.      If else (only allowed in function)

      Otherwise your marks will be deducted accordingly.


Anam Afzal

Anam Afzal

Hi, I'm a Pakistani freelancer with a passion for helping businesses achieve their online goals through no-code solutions. I specialize in WordPress customization and ManyChat automation, and I'm always on the lookout for new ways to use technology to make businesses more efficient and successful. I'm also a big believer in the power of no-code tools to democratize technology and make it accessible to everyone. I'm passionate about sharing my knowledge and helping others learn how to use no-code tools to create their own websites, automate their workflows, and grow their businesses. If you're looking for a reliable and experienced no-code developer, I'm here to help. Please feel free to contact me to discuss your project requirements.