Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Create a questionnaire designed to elicit information from potential users of

ID: 3705449 • Letter: 1

Question

1. Create a questionnaire designed to elicit information from potential users of your product. It must contain at least

a. 3-5 closed demographic questions (age, gender, location, etc.)

b. 7-10 closed non-demographic questions (interest in your product, look and feel, ideas for features, etc.) - for example, How often in a week do you take a walk? with the possible answers 0 times, 1-2 times, 3-4 times, 5 or more times.

c. 2-3 open-ended interview questions - for example, What is your favorite thing to do while you walk?

2. Your questionaire will be administered to at least 5 potential users. I understand that you may not have the perfect human resources at your disposal, but make an attempt to select reasonable participants

Explanation / Answer

#include<iostream>
#include<string>
#include<stdio.h>
using namespace std;

// class Questionnaire definition
class Questionnaire
{
// Private data member to store data
// Closed demographic questions
string name;
int age;
char gender;
string location;

// Closed non-demographic questions
string product;
char warranty;
string positive;
string negative;
string quality;
char priceSatisfaction;
char needDiscount;

// Open-ended interview questions
string freeTime;
string workFreeTime;
public:
// Prototype of member function
void askQuestions();
void displayFeedbacks();
};// End of class


// Function to accept questions
void Questionnaire::askQuestions()
{
// Closed demographic questions
cout<<" Closed demographic questions ";
cout<<" Please enter your name: ";
cin>>name;
cout<<" Please enter your age: ";
cin>>age;
cout<<" Please enter your gender (M/F): ";
cin>>gender;
cout<<" Please enter your city name: ";
cin>>location;

// Closed non-demographic questions
cout<<" Closed non-demographic questions ";
cout<<" Enter the product name you like: ";
cin>>product;
cout<<" Do you want the warranty of the product "<<product<<" to extend(Y/N): ";
cin>>warranty;
cout<<" Enter the best thing you line in "<<product<<": ";
cin>>positive;
cout<<" Enter the worst thing you found in "<<product<<": ";
cin>>negative;
cout<<" Enter the quality of the product "<<product<<" (Good/Best/Excellent): ";
cin>>quality;
cout<<" Are you satisfied with the price of the product "<<product<<" (Y/N): ";
cin>>priceSatisfaction;
cout<<" Are you satisfied with the discount given on the product "<<product<<" (Y/N): ";
cin>>needDiscount;

// Open-ended interview questions
cout<<" Open-ended interview questions ";
cout<<" What is your free time (Morning/Evening): ";
cin>>freeTime;
fflush(stdin);
cout<<" What you used to do at free time: ";
getline(cin, workFreeTime);
}// End of function

// Function to display customer feedback
void Questionnaire::displayFeedbacks()
{
cout<<" Your Feedback on the product - "<<product;

// Closed demographic questions
cout<<" Closed demographic questions ";
cout<<" Your name: "<<name;
cout<<" Your age: "<<age;
cout<<" Your gender: "<<gender;
cout<<" Your city name: "<<location;

// Closed non-demographic questions
cout<<" Closed non-demographic questions ";
cout<<" Product name you like: "<<product;

// Checks if the warranty is 'Y' or 'y'
if(warranty == 'Y' || warranty == 'y')
cout<<" You want the warranty of the product "<<product<<" to be extend";
// Otherwise 'N' or 'n'
else
cout<<" You want the warranty of the product "<<product<<" not to be extend";

cout<<" The best thing you line in our product "<<product<<": "<<positive;
cout<<" The worst thing you found in our product "<<product<<": "<<negative;
cout<<" The quality of the product "<<product<<" as per your observation: "<<quality;

// Checks if the priceSatisfaction is 'Y' or 'y'
if(priceSatisfaction == 'Y' || priceSatisfaction == 'y')
cout<<" You are satisfied with the price of the product "<<product;
// Otherwise 'N' or 'n'
else
cout<<" You are not satisfied with the price of the product "<<product;

// Checks if the needDiscount is 'Y' or 'y'
if(needDiscount == 'Y' || needDiscount == 'y')
cout<<" You are satisfied with the discount given on the product "<<product;
// Otherwise 'N' or 'n'
else
cout<<" You are not satisfied with the discount given on the product "<<product;

// Open-ended interview questions
cout<<" Open-ended interview questions ";
cout<<" Your free time: "<<freeTime;
cout<<" You used to do "<<workFreeTime<<" at your free time: ";
}// End of function

// main function definition
int main()
{
// Creates an array of objects for 5 customers of class Questionnaire
Questionnaire customer[5];

// Loops 5 times for 5 customers
for(int x = 0; x < 5; x++)
// Calls the function to accept data
customer[x].askQuestions();

// Loops 5 times for 5 customers
for(int x = 0; x < 5; x++)
// Calls the function to displays feed back information
customer[x].displayFeedbacks();
}// End of main function

Sample Output:


Closed demographic questions
Please enter your name: Pyari

Please enter your age: 40

Please enter your gender (M/F): M

Please enter your city name: BAM

Closed non-demographic questions
Enter the product name you like: Mobile

Do you want the warranty of the product Mobile to extend(Y/N): Y

Enter the best thing you line in Mobile: Camera

Enter the worst thing you found in Mobile: Speaker

Enter the quality of the product Mobile (Good/Best/Excellent): Best

Are you satisfied with the price of the product Mobile (Y/N): Y

Are you satisfied with the discount given on the product Mobile (Y/N): Y

Open-ended interview questions
What is your free time (Morning/Evening): Morning

What you used to do at free time: Listening music

Closed demographic questions
Please enter your name: Sasmita

Please enter your age: 32

Please enter your gender (M/F): F

Please enter your city name: BBSR

Closed non-demographic questions
Enter the product name you like: Induction

Do you want the warranty of the product Induction to extend(Y/N): N

Enter the best thing you line in Induction: Auto

Enter the worst thing you found in Induction: Heat

Enter the quality of the product Induction (Good/Best/Excellent): Good

Are you satisfied with the price of the product Induction (Y/N): N

Are you satisfied with the discount given on the product Induction (Y/N): N

Open-ended interview questions
What is your free time (Morning/Evening): Evening

What you used to do at free time: Watching TV

Closed demographic questions
Please enter your name: Ram

Please enter your age: 44

Please enter your gender (M/F): M

Please enter your city name: RKL

Closed non-demographic questions
Enter the product name you like: Laptop

Do you want the warranty of the product Laptop to extend(Y/N): Y

Enter the best thing you line in Laptop: Speed

Enter the worst thing you found in Laptop: Screen

Enter the quality of the product Laptop (Good/Best/Excellent): Excelent

Are you satisfied with the price of the product Laptop (Y/N): Y

Are you satisfied with the discount given on the product Laptop (Y/N): Y

Open-ended interview questions
What is your free time (Morning/Evening): Morning

What you used to do at free time: Reading News paper

Closed demographic questions
Please enter your name: Syam

Please enter your age: 36

Please enter your gender (M/F): M

Please enter your city name: BBSR

Closed non-demographic questions
Enter the product name you like: Mobile

Do you want the warranty of the product Mobile to extend(Y/N): Y

Enter the best thing you line in Mobile: Sound

Enter the worst thing you found in Mobile: Screen

Enter the quality of the product Mobile (Good/Best/Excellent): Best

Are you satisfied with the price of the product Mobile (Y/N): Y

Are you satisfied with the discount given on the product Mobile (Y/N): N

Open-ended interview questions
What is your free time (Morning/Evening): Morning

What you used to do at free time: Walking

Closed demographic questions
Please enter your name: Amita

Please enter your age: 30

Please enter your gender (M/F): F

Please enter your city name: BBSR

Closed non-demographic questions
Enter the product name you like: LCD

Do you want the warranty of the product LCD to extend(Y/N): N

Enter the best thing you line in LCD: Sound

Enter the worst thing you found in LCD: Screen

Enter the quality of the product LCD (Good/Best/Excellent): Best

Are you satisfied with the price of the product LCD (Y/N): Y

Are you satisfied with the discount given on the product LCD (Y/N): Y

Open-ended interview questions
What is your free time (Morning/Evening): Evening

What you used to do at free time: Watching TV
Your Feedback on the product - Mobile
Closed demographic questions
Your name: Pyari
Your age: 40
Your gender: M
Your city name: BAM
Closed non-demographic questions
Product name you like: Mobile
You want the warranty of the product Mobile to be extend
The best thing you line in our product Mobile: Camera
The worst thing you found in our product Mobile: Speaker
The quality of the product Mobile as per your observation: Best
You are satisfied with the price of the product Mobile
You are satisfied with the discount given on the product Mobile
Open-ended interview questions
Your free time: Morning
You used to do Listening music at your free time:

Your Feedback on the product - Induction
Closed demographic questions
Your name: Sasmita
Your age: 32
Your gender: F
Your city name: BBSR
Closed non-demographic questions
Product name you like: Induction
You want the warranty of the product Induction not to be extend
The best thing you line in our product Induction: Auto
The worst thing you found in our product Induction: Heat
The quality of the product Induction as per your observation: Good
You are not satisfied with the price of the product Induction
You are not satisfied with the discount given on the product Induction
Open-ended interview questions
Your free time: Evening
You used to do Watching TV at your free time:

Your Feedback on the product - Laptop
Closed demographic questions
Your name: Ram
Your age: 44
Your gender: M
Your city name: RKL
Closed non-demographic questions
Product name you like: Laptop
You want the warranty of the product Laptop to be extend
The best thing you line in our product Laptop: Speed
The worst thing you found in our product Laptop: Screen
The quality of the product Laptop as per your observation: Excelent
You are satisfied with the price of the product Laptop
You are satisfied with the discount given on the product Laptop
Open-ended interview questions
Your free time: Morning
You used to do Reading News paper at your free time:

Your Feedback on the product - Mobile
Closed demographic questions
Your name: Syam
Your age: 36
Your gender: M
Your city name: BBSR
Closed non-demographic questions
Product name you like: Mobile
You want the warranty of the product Mobile to be extend
The best thing you line in our product Mobile: Sound
The worst thing you found in our product Mobile: Screen
The quality of the product Mobile as per your observation: Best
You are satisfied with the price of the product Mobile
You are not satisfied with the discount given on the product Mobile
Open-ended interview questions
Your free time: Morning
You used to do Walking at your free time:

Your Feedback on the product - LCD
Closed demographic questions
Your name: Amita
Your age: 30
Your gender: F
Your city name: BBSR
Closed non-demographic questions
Product name you like: LCD
You want the warranty of the product LCD not to be extend
The best thing you line in our product LCD: Sound
The worst thing you found in our product LCD: Screen
The quality of the product LCD as per your observation: Best
You are satisfied with the price of the product LCD
You are satisfied with the discount given on the product LCD
Open-ended interview questions
Your free time: Evening
You used to do Watching TV at your free time: