Other Java Programs - (Part 2) Brokerage Commissions - Java

in #programming7 years ago

Other / Requested Java Programs

Brokerage Commissions

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 asks for the amount of the transaction. 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 a sale is made at the Mercantile Exchange, the commission rate is 4.2% 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 made 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.

Other / Requested Java programs

Happy Steeming Everyone! :)

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 64383.21
ETH 3098.60
USDT 1.00
SBD 3.89