Help me c++ masterminds !
this is a project of the end of semester program that i want to make is a quiz program [ with multiple answers to choose from ] provided that it counts the score with each question you take and at the end of the quiz it shows the result .
the algorithm of the problem is: -
1. Creating a class that holds following data members:
a. An array for strings of questions
b. An array for their answers (true/false probably)
c. An array for the answers provided by user
d. A variable to hold score of user.
2. Creating the following functions for this class:
a. Function that opens the disk file, reads all questions and their answers and saves them in respective data member of your class
b. Function that puts a question on screen and gets its response from user.
c. Function that compares actual answer with answer provided by user and increment the score in case of correct answer.
d. Function that prints the result on screen.
3. Calling this class in your main function for the respective functions.
keep in mind that i only can implement advanced c++ logic that i need to add it to like:-
- c-strings, strings, vectors
- point, dynamic arrays
- structures, classes
- friend functions, overloading operators
i hope you can help me out ( it can save lives seriously ;_; )
best regards
electrock~
This open post was written 5 months, 3 weeks ago | V/U/S: 123, 0, 1 | Edit Post | Leave a reply | Report Post
Reciprocity (0)
Since writing this post electrock may have helped people, but has not within the last 4 days. electrock is a verified member, has been around for 7 months, 1 week and has 12 posts and 60 replies to their name.
Invite Others to Help
A logged in and verified Help.com member has the ability to setup a Friends List and invite others to help with posts.