# Project #23302 - could you help me with my homework

Create a program that asks the user how many bitcoins they want to purchase and then accepts payment until they have paid in full (if they overpay give them change).  Bitcoins are currently \$560 each.

Example:

How many bitcoins do you want to purchase?

2

2 bitcoins at 560 per bitcoin will cost you 1120 dollars

How much are you paying?

500

You still owe 620

How much are you paying?

500

You still owe 120

How much are you paying?

150

Your change is 30 dollars

Example 2:

How many bitcoins do you want to purchase?

1

1 bitcoins at 560 per bitcoin will cost you 560 dollars

How much are you paying?

560

-------------------------------------------------------------------------------------------------------------------------------------------

Description:
The purpose of this lab is to give you the opportunity to practice using C++ arithmetic operators, boolean expressions, and control-of-flow statements. You continue to work on the quality of your program output and to work on your program style.

This program is a simple simulation of a convenience store, though with only five (5) products. Your store should simulate for the user the functionality of a real-world convenience store: different products to buy, different prices for different products, a display of the total amount owed, a display of the amount paid (after the player has paid), and a display of the amount to refund (should your customer overpay). Do NOT let your customer "leave" your store until she/he provides adequate payment for the items selected. Upon the completion of a transaction, you should print a "receipt" of the transaction, including all of the details available about the transaction (items purchased and quantities, amount paid, amount in change, etc.).

It is recommended that you work in pennies (for example, make the price of a candy bar 125 pennies, and ask your customer to pay in pennies).

Objectives:

• practice declaring C++ variables with appropriate names and data types
• practice console I/O
• practice using C++ arithmetic operators
• practice using boolean expressions in flow-of-control statements
• practice checking user input for errors and handling them
• learn and practice the strategy of incremental development

Requirements:

• your program source code must be documented correctly (see the starter.cpp example) [5 points]
• your program source code must be neatly and consistently formatted (see the starter.cpp example) [5 points]
• your program must compile and run without errors [10 points]
• display the items available and their prices [5 points]
• display a menu of choices (i.e., "buy a soda", "buy a candy bar", "complete transaction") [5 points]
• your "store" must have a MINIMUM of five (5) different products, each with a different price [5 points]
• display the total owed [10 points]
• display the total paid [10 points]
• do NOT let the user complete a transaction until he/she "pays" enough money for the items selected [10 points]
• at the end of the transaction, display a detailed, formatted summary of the transaction[10 points]
• handwritten pseudocode [25 points]

NOTE: Start small--work on one feature of your convenience store simulator at a time, and get it working before you move on to a new feature. You will receive partial credit for your work, even if you do not complete all of the basic requirements

-----------------------------------------------------------------------------------------------------------------------------------

NOTE: if you have never played a text adventure game, you can find a few examples up top:

Description:

For this project, you will create a simple text adventure game. Your player should be provided with a game "world" that has the following features:

* a minimum of four (4) rooms/areas to explore -- each room/area should provide the player with a brief description
* objects and characters for the player to interact with
* ways of tracking player progress/success -- wealth, health, experience, etc.
* a means for the player to enter commands -- either by menu, or perhaps a command prompt that takes single letter commands (like N,S,E,W for movement)

Do not neglect your game's narrative -- try and draw your player in to the game world with an interesting story.

You are free to use ASCII art from the web (provided you give credit to your sources in your documentation).

Objectives:

* continue to practice using C++ decisions
* continue to practice using C++ loops
* design, implement, and test C++ functions

Requirements:

* your program source code must be documented correctly (see the starter.cpp example) [5 points]
* your program source code must be neatly and consistently formatted (see the starter.cpp example) [5 points]
* your program must compile and run without errors [5 points]
* you must implement a minimum of four (4) functions for your program; your functions must be substantial, i.e., they must contain the important functionality of your game (for example, a function representing a room would be a good idea) [20 points]
* your game must be playable:
o the player must be able to enter commands or select menu options [10 points]
o the player must be able to move to each room, and view at least a brief description of the room when she or he enters [10 points]
o each room must have an object, character, or puzzle for the player to interact with [10 points]
o the player's progress must be measured in at least one (1) way, such as a score, wealth, or health [10 points]

pseudocode [25 points]

 Subject Computer Due By (Pacific Time) 02/26/2014 12:00 am
TutorRating
pallavi

Chat Now!

out of 1971 reviews
amosmm

Chat Now!

out of 766 reviews
PhyzKyd

Chat Now!

out of 1164 reviews
rajdeep77

Chat Now!

out of 721 reviews
sctys

Chat Now!

out of 1600 reviews

Chat Now!

out of 770 reviews
topnotcher

Chat Now!

out of 766 reviews
XXXIAO

Chat Now!

out of 680 reviews