Question: C++ You may not use the string class instead use arrays of characters . You are allowed to use other commands from cstring library but
C++
You may not use the string class instead use arrays of characters. You are allowed to use other commands from cstring library but not strings class.
Your job for program is to build a program using structs to hold information about a practice question. Your program will need to create four different arrays of structs for each of the four types of questions we are creating (for example, Conditionals, Loops, Functions, and Structures). Each array of structures should hold up to 10 questions at most in memory. Your program will need to read information from the four data files and store the information in these arrays to get started.*** You are not expected in this assignment to handle more than 10 questions per topic. After this, your program should provide a simple text based menu to the user to ask them what they want to do. Their choices should be to display the information about a particular type of question (conditional, loop, function or structure), display just a particular level of question (just easy ones today), or add a new question to the list. The menu should allow the user to quit as well. The functions you will need to have for this assignment, at a minimum, are:
Display a Menu of Choices function Load questions from a file function
Display all questions (up to 10 questions) function
Display all of a given level (up to 10 questions) function
Add a new question function
Save a new question to the end of a file function
With these functions, think about what arguments you will need. Remember whenever the code is the same except for the variable you are working with, functions can be used with arguments to control this. This means to load from a file, you only need to write the code once and pass information to that function to control (a) what file is being read from and (b) what array you need to fill and receive back from the function the number of items read in.
The external data file sample will hold this kind of content.
e.g.
function.txt
function: easy: a question about function
function: hard: another question about function
Same is true for other files
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
