project5 - CS 240 Project 5 Summer 2009 Due Date:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 240 Project 5 Summer 2009 Due Date: Wednesday, August 19, 4:00 p.m. Upload to WebCT the zipped file of your complete NetBeans project (named yourLastName_project5). Complete the following program: Write a quiz that asks the user to name state capitals. A sample program run and output file is on the next page of this handout. Specific requirements: You must use the input file provided on WebCT (statecapitals.txt). Do not modify this file. You must store the information from the input file in a two-dimensional array with 50 rows and 2 columns, using column 0 for the state name and column 1 for the capital name. Your program should ask the user 10 state capital questions. The states should be randomly generated. The question will be output to the screen, but results in Q/A format as shown later in this handout must be written to an output file named “quiz_results.txt” Number right, number wrong, and % right must be written to the end of the output file. You must use methods for all major tasks, including reading from the input file into the array,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

project5 - CS 240 Project 5 Summer 2009 Due Date:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online