Checkout
checkout
view
Your Cart Your Cart: item(s)
Add to Shopping Cart
$2.19 Instant Download
Computer Science, Software Design and Architecture
Year 4

Java Help 3


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

By OTA:  Xiao Liu, MS

OTA Rating:  4.7/5

Your Price:  $2.19  (original value ~$39.90)

What's included:

  • Plain text response
  • Attachment(s):
    • Quiz.java
    • Stdin.java
$2.19 Download Add to Cart

Add to Shopping Cart
$2.19 Instant Download
Java Help - The Lottery Problem: A lottery requires that you select six different numbers from the integers 1 to 49. Write a Java program that will do this for you and generate five sets of six numbers as a result. For generating random numbers you can use the random() static method of class Math. It returns a double so you will need to cast it as an integer. If you set the range to 49, you ca...
Java Applet - Your team has been hired as a Java programmer by Real Estates Solutions Inc. Your task is to write a Java applet for their web site that would enable customers to figure out their monthly mortgage payments. The applet input will be the loan amount, annual percentage rate or APR, and the number of years to pay out the loan. The output will be: the monthly payment amount, the numbe...
Java Help 4 - Java programmers can use class hierarchies for the purposes of inheritance. For example, given a Tree class, we could define Conifer and Deciduous sub classes that inherit from the parent Tree class as you can see here: See attached file for full problem description.
Java Help - 1. What is the difference between a Java compiler and a Java interpreter? 2. Write a user-defined class called Person. This class should have private instance variables defined as: private int age;private String firstName;private String lastName; In addition, the class should have a constructor defined as: public Person(String _firstName, String _lastName, int _age) that a...
Java Help - Describe some of the methods for allocating memory for an array and describe methods for initializing an array. Please include example code that does this.

Page generated in 0.0486 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy

©2008 SolutionLibrary.com

Search for Solutions About Us Samples