Question: Crypto Trading on DMITCryptEx NOTE: you do not have to know anything about cryptocurrency or Ethereum to complete this assignment. Cryptocurrency ( crypto ) trading

Crypto Trading on DMITCryptEx
NOTE: you do not have to know anything about cryptocurrency or Ethereum to complete this assignment.
Cryptocurrency (crypto) trading has become more mainstream over the past few years. Ether (ETH) is one of the better-known cryptocurrencies, and provides a lower-risk crypto exposure vehicle for new crypto investors. ETH is backed by a lively community and the technology used to support it can be harnessed to develop decentralized applications using the Ethereum network. However, most folks are simply interested in holding the ETH cryptocurrency as an investment that may appreciate or earn rewards from staking and ETH Investment Strategies: Staking vs. Speculation.
The centralized exchange DMITCryptEx would like to explore the option of providing a CLI application for their clients to execute trades. The initial proof-of-concept will allow a client to execute a trade to purchase ETH and ,optionally, to stake their ETH. DMITCryptEx will charge clients a commission fee (varies depending on the amount of ETH they purchase) on all trades and they offer a staking reward rate of 3.1% on all staked ETH.
Requirements
The program will need to prompt the user for several inputs, namely:
The fractional amount of ETH the user would like to purchase (must be greater than zero)
Whether the user would like to stake their ETH or not
The program will need to simulate the spot price for 1.000000ETH. Generate a random value between $2,600.00 and $2,999.99 to simulate the current ETH price. The simulated price only needs to be generated once during the program's execution. NOTE: For testing purposes, you may set the cost for 1.000000ETH to a fixed amount. Ensure your final submission makes use of the generated value.
The program will apply a commision (charged by the centralized exchange) to the trade using the following table:
\table[[ETH Purchased,Commission Rate],[0.000001-0.999999,1.9%
 Crypto Trading on DMITCryptEx NOTE: you do not have to know

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!