一道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%的金额他卖股票。

编写一个程序,显示以下信息:
乔支付的股票的钱数
当他买了股票,乔支付他的经纪人佣金数
乔卖掉了股票的金额。
当他卖了股票,乔支付他的经纪人佣金数
显示多少利润,乔后出售他的股票和支付佣金给他的两个代理。(如果数量的利润,你的程序显示是负数,那么乔赔钱的交易)。
展开
 我来答
阵前一风
2012-10-08 · 超过12用户采纳过TA的回答
知道答主
回答量:230
采纳率:0%
帮助的人:47.8万
展开全部
请讲国语
追问
抱歉,老师给的题就是这样的,我也有些不懂呀
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
罗比尼文
2012-10-08 · 超过17用户采纳过TA的回答
知道答主
回答量:130
采纳率:0%
帮助的人:32.2万
展开全部
你这啥意思啊
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式