write a method which loops through the following questions and answers. Have three…
- User
write a method which loops through the following questions and answers. Have three alternative answers also questions: Where did pumpkin carving originate? Correct answer: Ireland
In what century was halloween first introduced? Correct answer: 19th century
Who brought Halloween to the United States? Correct answer: The Irish
When will the next full moon be on halloween? Correct answer: 2039
Which state produces the most amount of pumpkins? Correct answer: Illinois
Who wrote the horror book Frankenstein? Correct answer: Mary shelley
What colors make up Freddy Krueger’s shirt in A nightmare on elms street? Correct answer: Red and green
What is the least favorite Halloween candy? Correct answer: Candy corn
How many pounds of candy corn are produced every year? Correct answer: 35 million pounds
How many pounds of chocolate are sold during halloween week? Correct answer: 90 million pounds
- Assistant
- User
convert to java
- Assistant
- User
- Assistant
- User
rewrite
- Assistant
Certainly! Here's the code with a few updates to simplify the logic and fix some errors:
java