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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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