Create a quiz answer sheet checker. That does the following: 1. Posts questions – at least 5- then let the user input answers per question , it can be a multiple choice question, or solving question which will have a number for an answer. 2. After the user inputs their answer, let the program check the answer and display the score of the user.
Your task is to make a class and perform the following functions
1)void PrinList()
2)int search_Element(int X),
3)void Insert_Element(int X),
void
4)Insert_Element_at(int X, int pos), 5)bool Delete_Element(int X),
6)bool is_Empty(),
7) int
Length(),
8)void Print_Reverse_List(),
9) void Empty_List(),
10)void Copy_List(…)
Note:
1)No global declarations
2)Make copy constructor
3)Make default constructor
4)Make constructor with arguments
5)Test the functions inside main
In a library a librarian is stacking the books using their numeric ids. He may push or pop a book from top and want to know which book ids are currently in the stack. Make a class based menu driven program to take size of stack in 1st line and then either of options – pop, push or stop. If pop or stop option is given no numeric value follows but if push is given a numeric value to be pushed is given.
Sample Input:
5 push 3 push 1 push 9 push 11 pop push 4 push 7 pop stop
Output:
Welcome to stacks!
Give one of options: pop, push, stop
Give one of options: pop, push, stop
Give one of options: pop, push, stop
Give one of options: pop, push, stop
Give one of options: pop, push, stop
Element popped: 11
Give one of options: pop, push, stop
Give one of options: pop, push, stop
Give one of options: pop, push, stop
Element popped: 7
Give one of options: pop, push, stop
Stack elements are:
|4|
---
|9|
---
|1|
---
|3|
---