Create a text adventure game that uses pointers

Assignment Help C/C++ Programming
Reference no: EM13209192

You are to create a text adventure game that uses pointers. You have a rich, eccentric Uncle Billy who is soon to be deceased. He has left you a fortune in gold in a saftey deposit box, but knows that you like riddles and challenges. On your journey you will run into 3 people who will give you clues indicating the safety deposit box you will need to open if you are to receive your inheritance. They will each ask you a riddle, and if your response is correct, they will give you a few of the characters in the saftey box number. If you answer incorrectly, the will probably give you false information. Once you have met each of the 3 "riddlers", you will head off to the bank and test your code. Will you be victorious or will you be meeting face to face with your deceased Uncle Billy? You are to write a program that uses a pointer to a poiner to a string object.

The memory location of the pointers are to be used as the codes/safety deposit box numbers. This program should be broken down into functions, at least one for each clue. Be aware of the scope of your variables when creating this assignment.

To get full credit for this program, you will need to use a pointer to a pointer to a string object, and utilize at least one constant pointer. You must use the pointers in if statements to decide if you win or lose the gold, and you must use functions.

Try to make an interesting story. You can find riddles on the internet to use if you don't have any of your own.

Reference no: EM13209192

Questions Cloud

What is the equilibrium price and quantity : Given the following Demand and Supply functions answer questions a thru d. Qd=120-2P+5I Qs=-10+4P-3W where P=$3 is the price of the good. I=$100 per capital consumer income W= $50 wage rate a. Derive the demand and supply curves (qd and qs).
Calculate output and price at revenue maximizing activity : Had to ask again as other answer didn't make sense...Commercial Recording, Inc., is a manufacturer and distributor of reel-to-reel recording decks for commercial recording studios. Revenue and cost relations are: TR = $3,000Q - $0.5Q2.
Cabinet departments and regulatory agencies : Cabinet departments and regulatory agencies...
Describe conflict from you text or your personal experience : Describe a conflict from you text or your personal experience that occurred in the health care field. How did diversity contribute to this conflic
Create a text adventure game that uses pointers : To get full credit for this program, you will need to use a pointer to a pointer to a string object, and utilize at least one constant pointer. You must use the pointers in if statements to decide if you win or lose the gold, and you must use func..
Which country produces two goods-textiles and computers : Indiadesh is a country that produces two goods, textiles and computers. Last year, Indiadesh produced 500 textiles and 1300 computers. This year it produced 450 textiles and 1100 computers. Given no further information.
Exhibit advertisement : You are in charge of marketing and advertisement at your local art museum. Next month, the museum will be hosting an exhibition on the social role of the arts in early Chinese and Japanese civilizations.
Why price does not affected quantity demanded : Qt = 2.5 - 0.3 x Pt + 12 x Mt Where Qt represents the quantity of widgets sold per period t, Pt represents the price of widgets during period t, and Mt represents average household income of customers during period t.
What role does advertising have in pure competition : 2. If you were to own a firm within a purely competitive industry, what kind of profit margins would you expect to enjoy 3. What role does advertising have in pure competition

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Design and write a c++11/fltk game program

The project is to design and write a C++11/FLTK game program with a graphical user interface. The game is based on "pancake sorting," which actually has some mathematical significance.

  Braces for blocks of code

C-- should have braces for blocks of code, an if statement, while statement, and a double, int, and character. Each statement ends with a semi-colon and you must have a main routine

  Goto statements to explicitly

Rewrite the following program fragment using goto statements to explicitly show the flow control through the loop.

  Write a program that accepts as input, without prompts

Write a program that accepts as input, without prompts, a series of short values, terminated by end of file. The program outputs one line:

  Create a structure that has one variable called value

"Create a structure that has one variable called value and one pointer to the list (making it a linked list). Prompt for 5 values from the keyboard as input and store them in the linked list. Print out the current contents of the list.

  Write a switch-case programming for calculation

How to use C++ to write a switch-case programming for calculation? Test the program for a wide range of possible inputs including division by zero and square root of negative values.

  Create a program that draws a two-dimensional house

Create a program that draws a two-dimensional house seen from the front, the way a child would see it: with a door, two windows, and a roof with a chimney

  Write a function sum3darray

Write a function sum3DArray. This function will take a three dimensional array of ints and add all the entries in the three dimensional array. Assume columns and rank are two constants already defined.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implement the vector class using inheritance

Is it better to implement the Vector class using inheritance (is-a relationship) or composition (has-a relationship). In other word, which one of the following gives a better implementation?

  Design for storing the maze layout

Design and implement a C++ program for maze layout

  Grocery store program

This program draws upon several concepts that were covered in CptS 121 and should serve as a good refresher for CptS 122. Our store, Cougar Mart, maintains its inventory in a text file. Not being very tech savvy, the owner of Cougar Mart needs you to..

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