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.
Get Free Quote!
441 Experts Online