Question: i need to build this program in C++ i need to develop cryptocurrency trading application. * The program implements and shows how to use following

i need to build this program in C++

i need to develop cryptocurrency trading application.

 * The program implements and shows how to use following functions * Sell coins: let us say that somebody else has provided you with a C function: * bool sell(double qty); * Buy coin: The function available to you is bool buy(double qty); * Check Price: double checkPrice() Will return the current market price of the currency. (bitcoin cost = 9000) 

it must include:

must use a global struct as shown below:

[ typedef struct { double balance; //US $ amount remaining in your account.

double coins; //Number of coins you own. (usually a fraction). } Account; ]

Functions you must implement:

int getUserOptions();

double getInitialDepositFromUser();

void process(); //top level function called by main();

void initialize(Account* account, double deposit);

//deposit is in US dollars

bool buyMore(Account* account, double coins);

bool sellSome(Account* account, double coins);

Void print(Account* account); //balance, number of coins owned, and total worth.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!