A commodities broker requires a program to calculate brokerage commissions. Write a program that asks the user if the transaction was a sale or a purchase and then aska for the amount of the transacton. The program should then ask the user where the transaction was made. The user should enter E for the Commodity Exchange, C for the New York Cotton Exchange, or M for the Mercantile Exchange. If the amount was a sale, and was made at the Commodity Exchange, the commission rate is 5.0% of the amount. If a sale is made at the New York Cotton Exchange, the commission rate is 3.7% of the amount. If the transaction was a purchase at the Commodity Exchange, the rate commission is 6.3% of the amount. If a purchase is mdae at the Cotton Exchange, the commission rate is 4.3% of the amount. If a purchase is made at the Mercantile Exchange, the commission rate is 5.7% of the amount
2006-07-24
09:36:03
·
4 answers
·
asked by
812BOSS
1