Create a question class to store each question

Assignment Help Computer Engineering
Reference no: EM131523443

Question: Design and implement an application to support a moderated question-and-answer session in which audience members submit questions to a queue. The question at the front of the queue may be answered by the speaker or panel, and a list of answered or unanswered questions may be retrieved at any time. The program should accept the following simple commands: ‘Q' will allow an audience member to submit a question, along with their name; ‘A' will allow the speaker to enter an answer to the question currently at the top of the queue; ‘P' will allow the speaker to pass on a question, moving it from the front of the queue to the end of the queue; ‘R' will allow the speaker to mark a question as rejected, removing it from the queue; ‘LA' will print a numbered list of answered questions, along with the answers; ‘LU' will print a numbered list of unanswered questions; finally, ‘X' will print numbered lists of answered and unanswered questions, then exit the program. You should create a Question class to store each question, its answer, and any other question state information. The answered and unanswered queues should be implemented using the java.util.LinkedList class. You must use only the methods in the class that provide Queue functionality: remove the first element, append an element to the end, retrieve the queue size, and iterate over the list.

Reference no: EM131523443

Questions Cloud

What are the formal methods of constitutional change : What are the formal and informal methods of constitutional change? What were issues in Constitutional Convention? Who were the Federalists and Anti-Federalists?
Write a driver program that reads strings from a file : Design and implement a class named StringTree, a binary tree for storing String objects in alphabetic order.
Identify three sources of governmental insurance plans : Identify three sources of governmental insurance plans. In your opinion, are these sources of health care resourceful? How do you think they can be improved?
What suggestions do you have for the author : What suggestions do you have for the author to improve the argument? Did he/she forget to add any significant information (if so, what)?
Create a question class to store each question : Design and implement an application to support a moderated question-and-answer session in which audience members submit questions to a queue.
Analyze issue being debated about american national security : Identify a current issue being debated about American national security. Make sure, to differentiate among three branches of federal government.
Evaluate a specific business process : In this Assignment, you are going to evaluate a specific business process based on criteria detailed below. If you have already selected a business process
Write a program that reads digits : Write a program that reads digits and composes them into integers. For example, 123 is read as the characters 1, 2, and 3. The program should output 123.
What is the monthly interest rate on this annuity : If the professor’s remaining life expectancy is 15 years, what is the monthly interest rate on this annuity? What is the effective annual rate?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write down a 700- to 1050-word paper by using the

choose one of the project development methodologies to guide your analysis of club it.write a 700- to 1050-word paper

  Why might a user or administrator disable dep

Investigate buffer overflows and DEP. How does DEP prevent malicious attacks via buffer overflows? Is it always effective? Why might a user or administrator disable DEP?

  Give one huge advantage of using javascript

One huge advantage of using JavaScript is you can accept input from the visitors to your site. As a visitor adds information to your form, what would you do to control inappropriately entered values.

  List them out in decimal notation

Using the addresses listed below - Give the following information and Subnet ID - along with all subnets available for use - List them out in decimal notation

  Describe the steps necessary to configuring validation

Describe the steps necessary to configuring validation and revocation so that the validation requests are handled efficiently.

  What are the advantages of using search engines like google

what are the benefits of using search engines such as google yahoo or bing? what are some of the limitations and

  Describe the best approach to integrating domain-specific

q1. write a 200- to 300-word short answer response that addresses the followingwhat is the best approach to integrating

  Linux versus microsoft windows server

Develop an 8- to 10-slide Microsoft PowerPoint presentation for the executive team at your selected Virtual Organization. The presentation must do the following

  Communication diagram and sequence diagram

Why you would generate a communication diagram in place of a sequence diagram? Describe what the arrow which points to an object in the communication diagram implies.

  What is the break-even point for the upgrades

What is the break-even point for the upgrades? That is, what price would be charged for both upgrades to make their cost and performance improvement equal?

  Write a simple text adventure game

For this assignment you will write a simple text adventure game. Within this game the player will travel from room to room choosing which door to traverse through.

  How is this discipline organized or divided

What is the object(s) of study? What is this discipline about?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd