题目内容

Sentences arrangement.1.Wecanonlysupposethatoneofourpackersconfusedtwoorders.2.Wewereverysorrytohearthatyoureceivedadesktopinsteadoflaptopthatyouhadordered.3.Thankyouforyourletter.4.Pleasesendthedesktopbacktous.5.Wesentyouthelaptopbyexpressmailthismorning.6.Wehopethisarrangementissatisfactory.

查看答案
更多问题

Sentences arrangement.1.TheCollarsarenoticeablyunevenonsomeblouses;andthereareopenseamsonmanyofsleeves.2.Thelastshipmentof150dozenblouses,orderedonJune13,isunsatisfactoryandwecannotacceptit.3.Wearesurethiswasjustcarelessnessinchecking,andthatyouwillsendanothershipmentofblousespromptlytoreplacethisfaultyone.4.Wearesorrytohavetocomplainaboutyourusuallyveryfinemerchandise.

Given the following code, what will be the value of finalAmount when it is displayed? 给定以下代码,finalAmount在显示时的值是多少?public class Order{private int orderNum;private double orderAmount;private double orderDiscount;public Order(int orderNumber, double orderAmt,double orderDisc){orderNum = orderNumber;orderAmount = orderAmt;orderDiscount = orderDisc;}public int getOrderAmount(){return orderAmount;}public int getOrderDisc(){return orderDisc;}}public class CustomerOrder{public static void main(String[] args){int ordNum = 1234;double ordAmount = 580.00;double discountPer = .1;Order order;double finalAmount = order.getOrderAmount() –order.getOrderAmount() * order.getOrderDisc();System.out.println("Final order amount = $" +finalAmount);}}

A. 528.00
B. 580.00
C. There is no value because the constructor has an error. 没有值,因为构造函数有错误。
D. There is no value because the object order has not been created. 没有值,因为没有创建对象顺序。

Given the following code, what will be the value of finalAmount when it is displayed?给定以下代码,finalAmount在显示时的值是多少?public class Order{private int orderNum;private double orderAmount;private double orderDiscount;public Order(int orderNumber, double orderAmt,double orderDisc){orderNum = orderNumber;orderAmount = orderAmt;orderDiscount = orderDisc;}public double finalOrderTotal(){return orderAmount - orderAmount *orderDiscount;}}public class CustomerOrder{public static void main(String[] args){Order order;int orderNumber = 1234;double orderAmt = 580.00;double orderDisc = .1;order = new Order(orderNumber, orderAmt, orderDisc);double finalAmount = order.finalOrderTotal();System.out.println("Final order amount = $" +finalAmount);}}

A. 528.00
B. 580.00
C. 522.00
D. There is no value because the object order has not been created.没有值,因为没有创建对象顺序

The following package is automatically imported into all Java programs.

A. 的哪个包被自动导入到所有Java程序中。
B. java.java
C. java.default
D. java.util
E. java.lang

答案查题题库