Programming tutorials online .NET, Java, C++, Visual Basic, and More

.NET Tutorials
General Programming Tutorials
Site Extras


Java/J2EE Forum

Open forum for discussing anything Java related. J2EE, JSPs, servlets, EJBs, JDBC, its all fair game and can be found in the Java/J2EE forum!

Posted By: Aja01579   5/13/2006 9:51:00 PM
I have a program to complete and figure out before 11:00 PM can anyone help me. It is a Quiz program that I need to create I am sending the information HELP!!!! PLEASE!!!!

Deliverable Length: Java program and comments
Details: A local middle school hired you to write a quiz program that answers questions about Math, Science and the Arts. The program user should be able to select from these topics by entering an option when the program starts. For example, you may use M for Math, S for Science, A for the Arts, and X to exit the program. After the student selects the topic, the program presents a series of questions. The student should answer the question with a one character choice option. The program should provide four options for each question. One option should allow the user to exit from the quiz. Selecting the questions is up to you. If the user responds to a question correctly, the program displays a positive feedback message. If the user responds incorrectly to the question, the program displays the correct answer. The program continues to present questions within the selected topic, for a maximum of five questions, or until the students exits the questions menu. Exiting the questions menu returns the student to the topics menu. At the end of the quiz, the program displays the total number of correct and incorrect answers for each topic. Your code should be well commented.
HINT: This program will require nested loops, the outer loop asking students which category to choose from or selecting to exit the quiz. The inner loop, will cycle through asking the student questions on a particular topic. There are many ways to program these looping structures and terminate the loop when the student enters an "x". A useful feature to terminate a loop early is the break statement.
In addition to the above programming assignment, please also answer the following questions:
Did you use pseudo code to plan your quiz application? If yes, how did it help? If no, what did you use as a plan?
Address the following points about testing your application.
How many test cases did you use to test your application?
Did you perform exhaustive testing on your application? Justify your answer.
How confident are you that your application will not crash if given to a professional test organization to test?
Include your code and the answers to the questions with your assignment.
Please submit your assignment.
Points Possible: 130
Date Due: Saturday, May 13, 2006 11:59:59 PM
Objective: Use loops and decision structures in programs
Design and create programs using control structures
Use arrays, strings, and other common data types

Here are the 10 questions/answers that I have devised:

Outer most layer of skin is called
1. Dermis
2. Epidermis
3. Permis
4. Skeleton
Patella is a type of
1. Muscle
2. Tissue
3. Bone
4. cell
Fill in the missing colors of the rainbow: red, orange, yellow, green, blue, ____, _____
1. purple, gold
2. lime, gray
3. black, white
4. indigo, violet
Planets make up the
1. moom
2. solar system
3. atmosphere
4. stratosphere
_______ discoverd America.
1. Christopher Columbus
2. David Gerald
3. Ryan Columbus
4. Christopher Robbins
Complete the following principle of gravitation: what goes up must
1. bounce in the air
2. stay up
3. come down and go back up
4. come down
2(n) + 27 = _____, where n = 14
1. 54
2. 55
3. 44
4. 104
120 x 4.5/5 =
1. 108
2. 107
3. 128
4. 101
25% x 41.5 =
1. 11
2. 10.375
3. 10.357
4. 10
The capital of South Carolina is ________.
1. Beaufort
2. Florence
3. Columbia
4. Charleston

Sign In
  Forgot my password


Featured Book

Introducing Microsoft .Net, Third Edition ($19.79)
Introducing Microsoft .Net, Third Edition

Featured Software

Microsoft Visual Studio Standard 2005 ($249.99)
Microsoft Visual Studio Standard 2005