Create a C program that has two users with two different rol
Create a C++ program that has two users with two different role: student, instructor.
1. Instructor should be able to create a quiz and student should be able to take the quiz.
2. Both users should have to register, login and logoff,
3. Both users should have to view the exam result (how many student got wrong/correct answers, exam grade).
4. Additionally, the program shall have a vector for loading quiz questions from the question bank file. The instructor shall provide the number of questions for the exam (about 15 random questions) and the program shall randomly select that number from the bank questions and create a new exam file – Quiz-03.
5. The users (instructor/student) will be accessing the exam program at a different time, meaning we will be running the program twice first as a instructor and then as a student.
6. Overall, the program shall have operations with at least these files:
Profile/users
Question bank (provided with this project)
Exam Quiz-03
Results Quiz-03
Below is the data for Question test bank.
Since I cannot upload a txt.file here... I copy and pasted the data from the text file.
The if, while and for statements control only one statement. Answer: True
 A break statement is used in loops only. Answer: False
 A variable declared outside of main function is said to be a local variable. Answer: False
 A variable declared outside of main function is said to be a global variable. Answer: True
 When a local variable is defined, it is not initialized by the system, you must initialize it yourself. Answer: True
 When a global variable is defined, it is not initialized by the system, you must initialize it yourself. Answer: False
 The job of the CPU is to fetch instructions, carry out the operations commanded by the instructions, and produce some outcome or resultant information. Answer: True
 The rules that must be followed when constructing a program are called common sense. Answer: False
 In distinguishing an expression as true or false, C++ sees 1, true and any non-zero value as true. Answer: True
 Before a variable in C++ is used, it must be initialized. Answer: False
 Each pass through a loop is called an iteration. Answer: False
 Array: variable that can store multiple values of the same type. Answer: True
 Array values are stored in consecutive memory locations. Answer: True
 There are no checks in C++ that an array subscript is in range. Answer: True
 An invalid array subscript can cause program to overwrite other memory. Answer: True
 Array can copy into another array with an assignment statement. Answer: False
 Parallel arrays are two or more arrays that contain related data. Answer: True
 The vector can automatically increase its size. Answer: True
 The vector can report the number of elements they contain. Answer: True
 The last element of the vector can be removed with pop_back function. Answer: True
 The vector elements can be deleted with clear function. Answer: True
 The array size must be an integer constant greater than zero and the array data type can be any valid C++ data type. Answer: True
 We can initialize C++ array elements either one by one or using a single statement. Answer: True
 The array has 0 as the index of their first element which is called base index. Answer: True
Solution
#include \"stdafx.h\" #include

