Track of turns within a group of people

Assignment Help Basic Computer Science
Reference no: EM131427320

When you play a board or card game or when you use a shared computing resource, you get a turn and then wait until everyone else has had a turn. Although the number of players in a game remains relatively static, the number of users of a shared computing service fluctuates. Let's assume that this fluctuation will occur.

Design an ADT that keeps track of turns within a group of people. You should be able to add or delete people and determine whose turn occurs now.

Begin with a given group of people; assign these people an initial order. (This order can be random or specified by the user.) The first new person joining the group should get a turn after all others have had an equal number of turns. Each subsequent new person should get a turn after the person who joined the group most recently has had a turn.

Also design an ADT to represent a person. (You can be conservative with the amount of data that this ADT contains.) The data that your first ADT stores is made up of instances of the ADT person.

Implement your ADTs as C++ classes. Write a program that uses-and therefore tests-your ADTs completely. Your program should process several insertion and deletion operations, and demonstrate that people are given turns correctly.

Reference no: EM131427320

Questions Cloud

Identify and discuss the impacts of diversity and ethics : Identify and discuss the impacts of diversity, ethics, and cultural competency on the decision-making process related to your selected problem.
Standards and frameworks with an organization : Discuss the advantages and disadvantages of Standards and Frameworks with an organization.
What would be the fair criminal justice sentence to john : John has a previous history of drunk driving. He had joined the alcoholic anonymous groups to get over alcoholism but that has been of no help. After leaving the group, he again went back to drinking. He has earlier been involved in drunken drivin..
How each dividend would affect royal’s debt/equity ratio : Declare a 10 percent stock dividend. Royal Company would distribute one share of common stock for every 10 shares of common stock currently held. The company's common stock is currently selling for $50 per share.Royal Company is authorized to issu..
Track of turns within a group of people : Design an ADT that keeps track of turns within a group of people. You should be able to add or delete people and determine whose turn occurs now.
Why is it so difficult for mainstream american society : Why is it so difficult for "mainstream" American society to accept the validity and worth of other cultural traditions, especially those of indigenous peoples? Use examples from class or elsewhere to illustrate your points.
Prepare journal entries for each transaction : What is the significance of par value from a financial accounting standpoint? Is par value significant in any economic sense?
Preventing system problems : After the system has been completely installed, a team member states that the systems analysts will now be in charge only of "putting out fires" experienced within the new system. How would you react to this statement?
Write a memo that communicates the budget situation : Write a memo that communicates the budget situation to the rest of the team. Suggest three ways to improve an underperforming team member.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Web 10 technical project sample website project this

technical project sample website project this assignment consists of three 3 sections a narrative a storyboard and a

  Write a paper on service level agreements

Feel free to get ideas for a topic from the discussions from last week's discussions. Pick a topic, do the research, use references, be careful about plagiarism, and have fun. Select a specific topic within SLAs, not a general definition.

  Implementing customer needs into functional design

Quality Function Deployment (QFD) is a means for implementing customer needs into functional design. The mission of ABC Audio LLC is to deliver highperforming, rugged and reliable quality audio products to its customers.

  Big-oh definition for a function

By using the definition of Big-Oh show that if g1(n) is in O(f(n)) and g2(n) is in O(f(n)), then the sum g1(n) + g2(n) is in O(f(n)).

  Design a simple normal not 3d electric wiring diagram for ho

Design a simple normal not 3D, electric wiring diagram for home with 3 bad room 1 master 2 medium  w/basement and garage, 2 bath, kitchen with electric oven and microwave  , laundry and AC with heat.

  What percentage of these movies were comedies

Which of the following can you learn from this table? Give the answer if you can find it from the table. i) The percentage of PG-13 movies that were comedies

  Use adobe dreamweaver to create the website

Upload a zipped project to Moodle before the start of the class. *Use adobe dreamweaver to create the website. For your assignment, you will create a Business-to-Consumer (B2C) web site for any retail business of your choice. This is a group assig..

  Why can qc be considered part of qa

According to the IEEE definition of SQA, quality control (QC) is not equated with quality assurance (QA).

  Examples of successful organizations

List and discuss examples of successful organizations that went through a change process by adopting the steps above. In your opinion, what was the ‘formula' for their success? You can use organizations selected from the academic literature or or..

  Processes a number of purchases for a user

Write a C# Console program that processes a number of purchases for a user. You can use a counter controlled loop (asking the user how many items they have to purchase) or a sentinel controlled loop. It is up to you. The program should ask for the qu..

  Question regarding the collaboration and social media

While planning for a new project, a young developer mentions that she used Facebook as a collaborative group space for developing her senior project. She tells you that it was the ideal solution since it was free and all of her group members were ..

  Identify maintenance issues for the site during operation

Address privacy concerns and determine what policies will be put into place to ensure that a customer's information is used correctly.

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