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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |