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

Previous Q& A

  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?

  Measure the impact of human capital on the business

1. Why is it important to measure the impact of human capital on the business?

  What is the present value of the quarterback contract

What is the PV of the receiver's contract? What is the PV of the quarterback's contract?

  The historical beginnings of the juvenile justice system

Summarize the historical beginnings of the juvenile justice system. How have U.S. Supreme Court decisions been especially influential in the juvenile courts?

  Create a wbs for this project

A non-profit organization would like you to lead a Web site development project. The organization has Internet access that includes space on a Web server.

  Understanding of civil and alternative dispute resolution

In light of your understanding of the civil and alternative dispute resolution (ADR) process, The ATV manufacturer claims that the ATV is not defectively design

  Completing the lecture and reading assignments

After completing the lecture and reading assignments, submit a paper about problem solving in the work place.

Reviews

Write a Review

 

Similar Q& A

  Determining dimension of polyhydron

Determine the dimension of P. Find the inequalities which describe each extreme point of P.

  Write down a 2- to 3-page paper which compares and

designing and coding a procedure module or object can be complex and time consuming. once these elements of a computer

  Computing the total tax

In following example, second line of the table signifies that tax due on a salary of $2,000.00 is $225.00 plus 16% of excess salary over $1,500.00 (that is, 16% of $500.00). Compute the total tax.

  Questionyou are a desktop support technician for a law firm

questionyou are a desktop support technician for a law firm with a group of ten legal secretaries who provide

  How to concern about personal privacy, efficiency

How to concern about personal privacy, efficiency

  What is a multi dimensional arrays

Why are there so iterative structures and what is the purpose of each. Think about looping and why different ones exist and why you can't have just one.

  Explain the distinctions between time and arrangements

Explain the distinctions between time and arrangements, fixed-price, and value-added outsourcing contracts. What are the pros and cons of each?

  Define why the above statement is true

Whenever the pointer of a list or a tree is manipulated, the process that performs this operation must be considered to be in a critical section. Please explain why the above statement is true and what the cause of that need is.

  Social bookmarking is one of the new web 20 applications

assignment 1 technology sharing knowledge with social bookmarkingsocial bookmarking is one of the new web 2.0

  Building an adder and multiplier with mips

Design the algorithm for this adder, implement this algorithm as a sub-routine in MIPS and estimate how long your sub-routine will take based on the instructions it must complete

  Task 1you are required in your new role as an enterprise

task 1you are required in your new role as an enterprise architect ea to do a swot analysis of a current ict servicein

  Include a cover page containing the title of the

you have been tasked with building a payroll program for a large organization with offices spread across the united

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