QuizTime - "white" q.add(new Question"How...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // QuizTime.java Author: Lewis/Loftus // // Solution to Programming Project 6.10 // //******************************************************************** / public class QuizTime { public static void main(String[] args) { Quiz q = new Quiz(); q.add(new Question ("What is the wind speed flight velocity of a swallow?", "African or European?")); q.add(new Question ("What color was George Washington's white horse?",
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "white")); q.add(new Question ("How much wood could a woodchuck chuck?", "Wouldn't know")); q.add(new Question ("What's my favorite programming language?", "Java")); q.add(new Question ("What is the capital of Bolivia?", "La Paz")); q.add(new Question ("How many moons does the planet Venus have?", "zero")); q.giveQuiz(); System.out.print("\nResults:\n\tCorrect: " + q.getNumCorrect()); System.out.println("\tIncorrect: " + q.getNumIncorrect()); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online