this practcie assignment wants me to Write an application that contains an array of 10 multiple-choice quiz questions related to your favorite hobby. Each question contains three answer choices. Also create an array that holds the correct answer to each question—A, B, or C. Display each question and verify that the user enters only A, B, or C as the answer—if not, keep prompting the user until a valid response is entered. If the user responds to a question correctly, display Correct!; otherwise, display The correct answer is and the letter of the correct answer. After the user answers all the questions, display the number of correct and incorrect answers .  how do i create arrays help!! here is my code that i have so far : import java util.Scanner; public class Quiz { public static void main(String[] args) { Scanner input = new Scanner(System.in);

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

this practcie assignment wants me to Write an application that contains an array of 10 multiple-choice quiz questions related to your favorite hobby. Each question contains three answer choices. Also create an array that holds the correct answer to each question—A, B, or C. Display each question and verify that the user enters only A, B, or C as the answer—if not, keep prompting the user until a valid response is entered. If the user responds to a question correctly, display Correct!; otherwise, display The correct answer is and the letter of the correct answer. After the user answers all the questions, display the number of correct and incorrect answers . 

how do i create arrays help!!

here is my code that i have so far :

import java util.Scanner;
public class Quiz {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

System.out.println("What is my favorite hobby?\n" + "(a)hair\n(b)makeup\n(c)both a and b\n");
System.out.println("Who first discovered makeup?\n" +"(a)Egyptians\n(b)haitians\n(c)Africans");
System.out.println("What glue is best to use when laying down a frontal?\n" + "(a)ghostbond\n(b)boldHold\n(c)Got2b\n");
System.out.println("How many layers of glue do you need before applying a wig onto your head?\n" + "(a)3\n(b)4\n(c)1\n");
System.out.println("Always get a shade lighter than your skin when using\n" + "(a)concealer\n(b)contour\n(c)foundation\n");
System.out.println("What type of makeup brush would you use to blend your foundation?\n" + "(a)powder brush\n(b)body brush\n(c)neither\n");
System.out.println("How lond do you suppose to keep a lace front wig installment in your head?\n" + "(a)4 weeks\n(b)2-3 weeks\n(c)5 weeks\n");
System.out.println("What do you use to remove makeup off your face?\n" + "(a)baby wipes\n(b)Neutrogena Cleansing towlettes\n(c)clorox wipes\n");
System.out.println("How do you remove lace glue from your hair?\n" + "(a)alcohol\n(b)shampoo\n(c)water\n");
System.out.println("When did the early Egyptians contrust their first wig?\n" + "(a)2700 B.C.E\n(b)2400 B.C.E\n(c)2500 B.C.E\n");
}
}

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY