Code an application that asks the customer for a log-in and password.

computer science

Description

Code an application that asks the customer for a log-in and password. The real log-in is "Buffet2011,” and the actual password is "Rank1Bill2008". Allow the customer two (2) attempts to type either. Each time the customer enters an invalid log-in or password issue an error message. If the client fails all two (2) log-in attempts, issue another error message and exit the program. If the log-in is successful, the client can calculate the cost of multiple trades, so there can be a combination of online and broker-assisted trades. Ask the client if it's an online trade if so charge $5.95 for the trade; otherwise, ask if it's a broker assisted trade, if so then charge a 2% brokerage fee. If not then print an error message, and let the customer try again. Keep track of the number of stocks for which trades are being made.


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.