This is for C++ programming. I have posted this question more then once and ever
ID: 3551572 • Letter: T
Question
This is for C++ programming. I have posted this question more then once and everyone seems to want to give me a program in Java. So I am going to repeat this I DO NOT need a java program! I NEED this to be a C++ program thanks.
Write an application that creates a quiz, which contains at least 5 questions about a hobby, popular music, astronomy, or any other personal interest. Each question can be multiple choice(a,b,c,d should be user accepted response), or true or false(t or f should be response). If the user respondes to a question with an invalid character, display an error message and prompt the user again. If the user answers the question with a valid and correct response, display an appropriate message. If the user responds to a question with a valid but incorrect response, display an approriate message as well as the correct answer. At the end of the quiz display the number of correct and incorrect answers.
This is for C++ programming please only use code that would have been learned in the first 4 chapters do not use code that would not have been learned. This should be simple please dont make more work for yourself then is needed but please make sure it is code that has been covered. Points as always will be awarded promptly.
Explanation / Answer
public class Quiz { public static void main(String[] args) { System.out.println("Photography quiz. "); int correctAnswersNumber = 0; int incorrectAnswersNumber = 0; // Initialize the questions; each question will contain the answer list Question questions[] = initializeQuestions(); Scanner userInput; int option; for (int i = 0; i 0) { for (int i = 0; iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.