Must use a .txt file using fstream, and use the following in C++ program(s): iostream, fstream, vectors, iomanip, condit
Posted: Fri May 20, 2022 12:07 pm
Must use a .txt file using fstream, and use the following in C++
program(s): iostream, fstream, vectors, iomanip, conditional
statements(switch, if), loops(for, while), arrays.
Reference: https://bit.ly/3NkbD0R (CAN NOT make the
code identical to the sample code, it should be unique and MUST
contain all the above features of C++, use the file for
reference).
Part 1: Write a program that will
quiz the user on at least 5 "C++"
questions. The questions are to be presented in
multiple-choice form. Remember:
a. to ask the user to enter his/her name
(may be either first name or full name)
b. to use either number responses (1) or
alpha responses (a)
c. to keep your questions, appropriate for
school!
d. that the number of users is
unknown.
e. to develop a way to terminate the
questionnaire.
f. to store the users' responses in a
sequential file.
Part 2: Create a program that will use the
answer file you created from running your quiz questionnaire (this
answer file will store the answers for the quiz questionnaire).
Part 3: Write a program that will access your
"data" file created in Part 1, and "score" the users' responses
against the "answer" file. Remember:
a. that the number of users is considered
unknown.
b. to print out a display showing each
user's name and score.
Take as much time as you need, it's a big project but all
the parts are of a single question (which is to
make a quiz program with fstream
file management (must be) included). Its due
in 24 hours so don't worry about making it fast, take your time and
include all the C++ features mentioned on
top. HAVE FUN!
Unit Project Create a Quiz Files You are assigned a unit project please follow the following guidelines if you have any questions ask me before you start. Part 1: Write a program that will quiz the user on at least 5 "C++" questions. The questions are to be presented in multiple choice form. Remember: a. to ask the user to enter his/her name (may be either first name or full name) b. to use either number responses (1) or alpha responses (a) c. to keep your questions, appropriate for school! d. that the number of users in unknown. e. to develop a way to terminate the questionnaire. f. to store the users' responses in a sequential file. Part 2: Create a program that will use the answer file you created from running your quiz questionnaire (this answer file will store the answers for the quiz questionnaire). Part 3: Write a program that will access your "data" file created in Part 1, and "score" the users' responses against the "answer" file. Remember: a. that the number of users is considered unknown. b. to print out a display showing each user's name and score. Day-1: Quiz Questionnaire: You can create a quiz questionnaire from C++ concepts that you have learned in this course such as Function, Arrays, Control Structures and Decision statements. Day-2 and Day-3(if needed): Prepare to write a code for the above part-1 to part-3 Day-4: be ready to present to the class, and answer questions if the class have any.
program(s): iostream, fstream, vectors, iomanip, conditional
statements(switch, if), loops(for, while), arrays.
Reference: https://bit.ly/3NkbD0R (CAN NOT make the
code identical to the sample code, it should be unique and MUST
contain all the above features of C++, use the file for
reference).
Part 1: Write a program that will
quiz the user on at least 5 "C++"
questions. The questions are to be presented in
multiple-choice form. Remember:
a. to ask the user to enter his/her name
(may be either first name or full name)
b. to use either number responses (1) or
alpha responses (a)
c. to keep your questions, appropriate for
school!
d. that the number of users is
unknown.
e. to develop a way to terminate the
questionnaire.
f. to store the users' responses in a
sequential file.
Part 2: Create a program that will use the
answer file you created from running your quiz questionnaire (this
answer file will store the answers for the quiz questionnaire).
Part 3: Write a program that will access your
"data" file created in Part 1, and "score" the users' responses
against the "answer" file. Remember:
a. that the number of users is considered
unknown.
b. to print out a display showing each
user's name and score.
Take as much time as you need, it's a big project but all
the parts are of a single question (which is to
make a quiz program with fstream
file management (must be) included). Its due
in 24 hours so don't worry about making it fast, take your time and
include all the C++ features mentioned on
top. HAVE FUN!
Unit Project Create a Quiz Files You are assigned a unit project please follow the following guidelines if you have any questions ask me before you start. Part 1: Write a program that will quiz the user on at least 5 "C++" questions. The questions are to be presented in multiple choice form. Remember: a. to ask the user to enter his/her name (may be either first name or full name) b. to use either number responses (1) or alpha responses (a) c. to keep your questions, appropriate for school! d. that the number of users in unknown. e. to develop a way to terminate the questionnaire. f. to store the users' responses in a sequential file. Part 2: Create a program that will use the answer file you created from running your quiz questionnaire (this answer file will store the answers for the quiz questionnaire). Part 3: Write a program that will access your "data" file created in Part 1, and "score" the users' responses against the "answer" file. Remember: a. that the number of users is considered unknown. b. to print out a display showing each user's name and score. Day-1: Quiz Questionnaire: You can create a quiz questionnaire from C++ concepts that you have learned in this course such as Function, Arrays, Control Structures and Decision statements. Day-2 and Day-3(if needed): Prepare to write a code for the above part-1 to part-3 Day-4: be ready to present to the class, and answer questions if the class have any.