一道JAVA作业题,不会做,可明天要交,大神们就帮帮我吧。原题如下:
LastmonthJoepurchasedsomestockinAcmesoftware,Inc.Herearethedetailsofthepurchase:ɧ...
Last month Joe purchased some stock in Acme software, Inc. Here are the details of the purchase:
The number of shares that Joe purchased was 1,000.
When Joe purchased the stock, the paid $32.87 per share.
Joe paid his stockbroker a commission that amounted to 2% of the amount he paid for the stock.
Two weeks later Joe sold the stock. Here are the details of the sale:
The number of shares that Joe sold was 1,000.
He sold the stock for $33.92 per share.
He paid his stockbroker another commission that amounted to 2% of the amount he sold for the stock.
Write a program that displays the following information:
The amount of money Joe paid for the stock.
The amount of commission Joe paid his broker when he bought the stock.
The amount that Joe sold the stock for.
The amount of commission Joe paid his broker when he sold the stock.
Display the amount of profit that Joe made after selling his stock and paying the two commissions to his broker. (If the amount of profit that your program displays is negative number, then Joe lost money on the transaction.)
上个月乔购买了一些股票在Acme软件公司。这里的细节是购买:
乔购买的股份数是1000,。
当时乔购买股票,每股支付32.87美元。
乔支付他的股票经纪人佣金,相当于2%的金额他付了股票。
两个星期后乔卖掉了股票。这里的细节是销售:
乔出售的股票数就是1000。
他卖掉了股票为每股33.92美元。
他付给他的股票经纪人,另一个委员会,达2%的金额他卖股票。
编写一个程序,显示以下信息:
乔支付的股票的钱数
当他买了股票,乔支付他的经纪人佣金数
乔卖掉了股票的金额。
当他卖了股票,乔支付他的经纪人佣金数
显示多少利润,乔后出售他的股票和支付佣金给他的两个代理。(如果数量的利润,你的程序显示是负数,那么乔赔钱的交易)。 展开
The number of shares that Joe purchased was 1,000.
When Joe purchased the stock, the paid $32.87 per share.
Joe paid his stockbroker a commission that amounted to 2% of the amount he paid for the stock.
Two weeks later Joe sold the stock. Here are the details of the sale:
The number of shares that Joe sold was 1,000.
He sold the stock for $33.92 per share.
He paid his stockbroker another commission that amounted to 2% of the amount he sold for the stock.
Write a program that displays the following information:
The amount of money Joe paid for the stock.
The amount of commission Joe paid his broker when he bought the stock.
The amount that Joe sold the stock for.
The amount of commission Joe paid his broker when he sold the stock.
Display the amount of profit that Joe made after selling his stock and paying the two commissions to his broker. (If the amount of profit that your program displays is negative number, then Joe lost money on the transaction.)
上个月乔购买了一些股票在Acme软件公司。这里的细节是购买:
乔购买的股份数是1000,。
当时乔购买股票,每股支付32.87美元。
乔支付他的股票经纪人佣金,相当于2%的金额他付了股票。
两个星期后乔卖掉了股票。这里的细节是销售:
乔出售的股票数就是1000。
他卖掉了股票为每股33.92美元。
他付给他的股票经纪人,另一个委员会,达2%的金额他卖股票。
编写一个程序,显示以下信息:
乔支付的股票的钱数
当他买了股票,乔支付他的经纪人佣金数
乔卖掉了股票的金额。
当他卖了股票,乔支付他的经纪人佣金数
显示多少利润,乔后出售他的股票和支付佣金给他的两个代理。(如果数量的利润,你的程序显示是负数,那么乔赔钱的交易)。 展开
8个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询