Implement a game of survivor

Assignment Help Other Subject
Reference no: EM131882093

The Assignment -

In this assignment you will be Jeff Probst. Your job, Jeff, is to implement a game of Survivor. Our version of survivor gathers several castaways together in a wilderness. At first, they're split into two tribes. After a brief initial challenge, one tribe will be declared the initial winner.

Then there's a second round, where members of the winning tribe compete against one another. Two people go head-to-head in a fierce competition. The loser of each challenge gets voted off the island, and the other one stays. The season is over when there is one single castaway left in the tribe. That person is then declared the overall winners and gets a big fat cash prize.

You're going to make this all work using trees.  The heart of your code will be a BinarySearchTree class that inherits from the Binary Tree class provided in the starter code. (You'll need to add more to the Binary Tree class as well.)

Requirement for this Project: Before you ask for help in office hours or on Piazza, you must have already written test code for your tree classes. If you think there's a problem with your BT or BST code, write a test function to verify that it works or doesn't work. Do that first, ask for help second.

Make sure you look for common cases and edge cases, like the following:

Can we find an item that isn't in the tree? That is in the tree? Will I seg fault if I try to find an item in an empty tree?

Does remove_item work when removing from an empty tree?

Can we remove a leaf, a two-child node, and a one-child node?

Does the copy constructor work on an empty tree? A full tree? An unbalanced tree?

Does the assignment operator work on an empty tree? A full tree? An unbalanced tree?

You may, but are not required to, submit your own test drivers along with your homework.  There are a couple of bonus points on the line for doing a really good test driver! Provide it along with your other files, and we'll review it for thoroughness and quality of code.

Attachment:- Assignment Files.rar

Reference no: EM131882093

Questions Cloud

Distinguish between liquidity and insolvency : Distinguish between liquidity and insolvency. How does issuing commercial paper enable a financial institution to preserve its liquidity?
Distinguish between asset management-liability management : Distinguish between asset management and liability management.
What skills should managers look in the job : What determines the level of technical risk associated with a project? What determines the level of organizational risk? How can a general manager assist.
How does fiscal expansion affect the current account : How does fiscal expansion affect the current account under a fixed exchange rate? Do you expect the change in current account to be smaller than under floating?
Implement a game of survivor : In this assignment you will be Jeff Probst. Your job, Jeff, is to implement a game of Survivor. Does remove_item work when removing from an empty tree
Firm needs to plow back its earnings to fuel growth : No dividends will be paid on the stock over the next nine years, because the firm needs to plow back its earnings to fuel growth.
How should Lego manage the open source movement : Lego's Mindstorms Robotics Invention System was designed for 12-year-olds. But after more than a decade of development at the MIT Media Lab using the latest.
Why did they so insist on getting a license : What were the main issues/problems they have to negotiate during the the process of reaching a licensing agreement?
Describe the five methods used to categorize retailers : Describe the five methods used to categorize retailers and which one do you think is most closely aligned with supply management.

Reviews

len1882093

2/27/2018 11:50:10 PM

Getting Started - Get the starter code from /comp/15/files/proj1, You’ll need to create your own Makefile for this project. It should compile and link the same .cpp and .h files we listed above. The starter code includes some of the BinaryTree class your BinarySearchTree will inherit from. IMPORTANT -- before asking for help! - Before you ask for help in office hours or on Piazza, you must have already written test code for your tree functionality. If you think there’s a problem with your BT or BST functions, write a test function to verify what works or doesn’t work. Do that first, ask for help second! You may, but are not required to, submit your own test drivers along with your homework. There are a couple of bonus points on the line for doing a really good test driver! Provide it along with your other files, and we’ll review it for thoroughness and quality of code.

Write a Review

Other Subject Questions & Answers

  Documentation in discussion boards and clinical evaluations

These are the phases and steps of actions you must take to complete in order to icomplete your project. Do not make these more complicated than they need to be. Don't get confused these are your objectives not the participants' in your project - S..

  Understanding the facets of an audience

Understanding the facets of an audience and how to meet its needs is critical for technical writers.

  Summarize utilitarianism as a moral theory

In Plato'sRepublic, Glaucon presents a three-part argument meant to show that justice is not natural but rather conventional. Present the first part of that argument - the part which has to do with the origin of justice.

  Identify a visionary leader in the hospitality industry

Identify a visionary leader in the hospitality industry. Describe how they are/were effective, given the material from the chapter on vision

  Basic assumptions regarding motivation

Identify Maslow’s 5 basic assumptions regarding motivation. Discuss each assumption and include what Scripture says about motivation. Describe some of the ways that you stay motivated in your day-to-day life.

  Defense of abortion-explain the type of pregnancy violinist

Explain the type of pregnancy the violinist thought experiment is meant to parallel. What are three ways in which the violinist thought experiment differs from the realities of pregnancy and abortion? Judith Thompson - "Defense of abortion"

  Conducting ethical research on genetic engineering

NIT6130 Introduction to Research Assignment - Research Ethics. Topic - Genetic Engineering, conducting ethical research in science

  Analyse drivers and barriers to financial investments

POG350 Development in Oil & Gas Retail Industries Assignment. This is increasing competition from countries to attract investments from International Oil companies. Critically analyse the drivers and barriers to financial investments in the refinery ..

  Discuss two strands of modernism covered in the poetry unit

What are the aesthetic differences between the two strands of modernism covered in the poetry unit

  Discuss drugs is used for amoebiasis treatment

Which of the following drugs is used for amoebiasis treatment

  What are the ethical-legal and economic implications

What are the ethical, legal and economic implications of such location bidding wars? Who pays for such giveaways? Are local citizens allowed to vote on offers made by their cities, counties, or state? Should there be limits on these incentives?

  Selective advantages of bipedality for these hominins

What structural changes were selected for in early hominins to facilitate bipedality and what were the selective advantages of bipedality for these hominins?

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