Question: PYTHON Place all source code in a text file followed by the output of you demoing your code This is Python PLEASE INCLUDE THE OUTPUT
PYTHON Place all source code in a text file followed by the output of you demoing your code
This is Python
PLEASE INCLUDE THE OUTPUT (SCREEN CAPTURE OKAY)
Given background information:
We are going to assume that you each have $20,000 to invest.
We assume you are going to be dealing with only one currency: bitcoin (BTC).
we are going to make a baby bitcoin program that lets us keep track of buying and selling bitcoin with a text friendly menu. The program will keep track of how many imaginary bitcoins we have.
a) Make a Class called Wallet
We need a class to store our imaginary coins in. Well, we can declare our own class, called Wallet, to help us get something done for this project. Our wallet class is going to help us store our information on a single cryptocurrency.
For our Wallet class, we need to store a few things
1) We need to store the ticker symbol for the coin 2) We need to store how many coins we currently have 3) We also need a print method in the class that will print the information out. So, this method will print out the ticker symbol (BTC) for the coin and the number of coins currently in the wallet.
b) Make a Class called Ledger
We need a class that is going to turn our transactions into a string and store them for our history.
1) It will store the transaction strings just so we have a record of the buy sell commands 2) It will be able to print out the transaction history if requested
We are going to use Dictionary((Python) for this.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
