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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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