我有ABC等多个电子产品快递需要快递,有些单独发一个A,有些AB或ABC一起发,这种情况怎么用EXCEL方便计算物流成本

扫二维码下载作业帮
3亿+用户的选择
下载作业帮安装包
扫二维码下载作业帮
3亿+用户的选择
设x的密度 f(x)=ax^2+bx+c (0,1) 0 其他 ,已知Ex=0.5,Dx=0.15,求常数abc 速求,
作业帮用户
扫二维码下载作业帮
3亿+用户的选择
∫(0,1)(ax^2+bx+c)dx=1a/3+b/2+c=1.1E(x)=∫(-无穷,正无穷)xf(x)dx=∫(0,1)xf(x)dx=a/4+b/3+c/2=0.5.2E(x^2)=∫(-无穷,正无穷)x^2f(x)dx=∫(0,1)x^2f(x)dx=a/5+b/4+c/3E(x^2)=D(x)+E^2(x)=0.15+0.5^2=0.4a/5+b/4+c/3=0.4.3联立1,2,3得:(2式*2-1式):a/2-a/3+2b/3-b/2=0 a/6=-b/6 a=-b(3式*3-1式):3a/5-a/3+3b/4-b/2=0.2 4a/15+b/4=0.2 4a/15-a/4=0.2 16a-15a=0.2*60a=12b=-12a/3+b/2+c=1 a/3=4 b/2=-6 c=3你自已算一下,不一定算对了.
为您推荐:
其他类似问题
∫[0,1]f(x)dx=(ax^3/3+bx^2/2+cx)[0,1]=a/3+b/2+c=1
(1)E(X)=∫[0,1]xf(x)dx=(ax^4/4+bx^3/3+cx^2/2)[0,1]=a/4+b/3+c/2=0.5
(2)E(X^2)=∫[0,1]x^2f(x)dx=(ax^5/5+bx^4/4+cx^3/3)[0,1]=a/5+b/4+c/3=E^2(x)+D(x)=0.4
(3)解这个三元一次方程组就可以了
扫描下载二维码Abc.net is up for sale
The abc.net domain name is being offered for sale at . If you would like to make an offer on this domain name, please use the form below.
specializes in short, brandable, pronounceable, catchy domain names, we also offer highly targeted generic keyword domains. If the domain name you're interested in is not listed on our website, You can
and use our brokerage service. We have over 20 years in the domain name business and we can secure your domain at the most reasonable price.
Make an offer on abc.net
Send Message东大18春学期《JAVA语言程序设计》在线作业123标准满分
东大18春学期《JAVA语言程序设计Ⅰ》在线作业1
试卷总分:100 & &得分:100
一、 单选题 (共 20 道试题,共 60 分)
1.如果你试图编译下面的代码会发生什么事? Class MyString extends String{ }
A.代码编译成功
B.代码不能编译,因为没有定义一个main()方法
C.代码不能编译,因为String是abstract类型的
D.代码不能编译,因为String是final类型的
2.下列程序的功能是在监控台上每隔一秒钟显示一个字符串“Hello”,能够填写在程序中下划线位置,使程序完整并能正确运行的语句是
public class Test implements Runnable{ public static void
main(String args[]){ Test t=new Test(); Thread tt=new Thread(t);
tt.start(); } public void run(){ for(;;){ try{
A.sleep(1000) InterruptedException
B.sleep(1000) RuntimeException
C.Thread.sleep(1000) RuntimeException
D.Thread.sleep(1000) InterruptedException
3.已知如下的命令执行 java MyTest a b c 请问哪个语句是正确的?
A.args[0] = "MyTest a b c"
B.args[0] = "MyTest"
C.args[0] = "a"
D.args[1]= 'b'
4.在oneMethod()方法运行正常的情况下,程序段将输出什么? public void test() { try {
oneMethod(); System.out.println("condition 1"); } catch
(ArrayIndexOutOfBoundsException e) { System.out.println("condition
2"); } catch(Exception e) { System.out.println("condition
A.condition 1
B.condition 2
C.condition 3
D.condition 1 finally
5.顺序执行下列程序语句后,则b的值是 String a="Hello"; String
b=a.substring(0,2);
6.下列类头定义中,错误的是( )。
A.class x { .... }
B.public x extends y { .... }
C.public class x extends y { .... }
D.class x extends y implements y1 { .... }
7.下面的哪些程序段可以正确地获得从命令行传递的参数的个数?
A.int count = args.
B.int count = args.length-1;
C.int count=0; while(args[count]!=null) count++;
D.int count=0;while (!(args[count].equals(“”))) count++;
8.已知如下代码: boolean m = if ( m = false )
System.out.println("False"); else System.out.println("True");
执行结果是什么?
C.编译时出错
D.运行时出错
9.给定下面的类:   public class Example{   String str=new
String(“good”);   char ch[]={'a','b','c'};   public static void
main(String args[]){   Example ex=new Example();
  ex.change(ex.str,ex.ch);
  System.out.println(ex.str+”and”+ex.ch);   }   public void
A.good and abc
B.good and gbc
C.test ok and abc
D.test ok and gbc
10.已知表达式int m[] = {0, 1, 2, 3, 4, 5, 6 };
下面哪个表达式的值与数组下标量总数相等?
A.m.length()
B.m.length
C.m.length()+1
D.m.length+1
11.若a的值为3时,下列程序段被执行后,c的值是多少?( ) c = 1; if ( a&0 ) if (
a&3 ) c = 2; else c = 3; else c = 4;
12.Person, Student 和Teacher 都是类名。这些类有以下继承关系。 Person |
-------------------- | | Student Teacher 并且在Java源代码中有如下表达式: Person
p = new Student(); 如下哪个语句是正确的?
A.这条语句是合法的
B.这条语句是不合法的
C.编译时出错
D.编译正确但运行时出错
13.给出下列的代码,哪行在编译时可能会有错误? ① public void modify(){ ② int i, j,
k; ③ i = 100; ④ while ( i & 0 ){ ⑤ j = i * 2; ⑥
System.out.println (" The value of j is " + j ); ⑦ k = k + 1; ⑧ } ⑨
14.设有下面的一个类定义: class AA { static void Show( ){
System.out.println("我喜欢{
System.out.println("我喜欢C++!"); } }
若已经使用AA类创建对象a和BB类创建对象b,则下面哪一个方法调用是正确的:( )
A.a.Show( ) b.Show( )
B.AA.Show( ) BB.Show( )
C.AA.Show( ) b.Show( )
D.a.Show( ) BB.Show( )
15.下面程序的输出结果是什么? class Foo{ static void change(String s){
s=s.replace('j','l'); } public static void main(String args[]){
String s="; } }
C.编译错误
D.运行时出现异常
16.下面的代码段中,执行之后i 和j 的值是什么? int i = 1; j = i++;
17.下列语句序列执行后,k的值是( )。 int j=8, k=15; for( int i=2; i!=j; i++ )
{ j-=2; k++; }
18.给出下面的接口: interface A{ int method1(int i); int method2(int
j); } 下面那个类实现了这个接口,并且不是抽象的?
A.class B implements A{ int method1(){} int method2(){}
B.class B { int method1(int i){} int method2(int j){} }
C.class B implements A{ int method1(int i){} int method2(int
D.class B extends A{ int method1(int i){} int method2(int j){}
19.下列代码的执行结果是 public class Test { public int aMethod() {
static int i=0; i++; System.out.println(i); } public static void
main(String args[]) { Test test = new Test();
A.编译错误
D.运行成功,但不输出
20.若有循环: int x=5,y=20; do{ y-=x; x++;
}while(++x&--y);则循环体将被执行( )。
二、 多选题 (共 10 道试题,共 40 分)
1.你怎样从下面main()的调用中访问单词“kiss”? java lyrics a kiss is but a
2.String s=”Example String”; 下面哪些语句是正确的?
B.int i=s.length();
C.s[3]=”x”;
D.String short_s=s.trim();
E.String t=”root”+s;
3.已知如下代码: public class Test { public static void main(String
arg[]) { int i = 5; do { System.out.println(i); } while (--i&5)
System.out.println("finished"); } } 执行后的输出结果包括什么?
D.finished
E.什么都不输出
4.请选出创建数组的正确语句。
A.float f[][] = new float[6][6];
B.float []f[] = new float[6][6];
C.float f[][] = new float[][6];
D.float [][]f = new float[6][6];
5.下面代码执行后的输出是什么? outer: for(int i=0;i&3; i++) inner:
for(int j=0;j&2;j++) { if(j==1)
System.out.println(j+ “ and “+i); }
6.已知如下定义: String s = "story"; 下面哪些表达式是合法的?
A.s += "books";
B.char c = s[1];
C.int len = s.
D.String t = s.toLowerCase();
7.给出下面的代码段: public class Base{ int w, x, y ,z; public Base(int
a,int b) { x=a; y=b; } public Base(int a, int b, int c, int d) {
//赋值 x=a, y=b w=d; z=c; } } 在代码说明//赋值 x=a, y=b处写入如下哪几行代码是正确的?
A.Base(a,b)
B.x=a,y=b;
C.x=a;y=b;
D.this(a,b);
8.如果有以下代码,哪几个数字能产生输出 "Test2" 的结果? Switch(x){ case 1:
System.out.println("Test1"); case 2: case 3:
System.out.println("Test2");} System.out.println("Test3");
9.已知如下代码: switch (m) { case 0: System.out.println("Condition
0"); case 1: System.out.println("Condition 1"); case 2:
System.out.println("Condition 2"); case 3:
System.out.println("Condition 3"); default:
System.out.println("Other Condition"); } 当m 的
F.以上都不是
10.已知如下类定义: class Base { public Base (){ //... } public Base (
int m ){ //... } protected void fun( int n ){ //... } } public
class Child extends Base{ // member methods } 如下哪句可以正确地加入子类中?
A.private void fun( int n ){ //...}
B.void fun ( int n ){ //... }
C.protected void fun ( int n ) { //... }
D.public void fun ( int n ) { //... }
东大18春学期《JAVA语言程序设计Ⅰ》在线作业2
试卷总分:100 & &得分:100
一、 单选题 (共 20 道试题,共 60 分)
1.设有下面两个类的定义: class Person { // 身份证号 S //
姓名 } class Student extends Person { // 入学总分 int
getScore(){ re
A.包含关系
B.继承关系
C.关联关系
D.无关系,上述类定义有语法错误
2.下面的语句的作用是:( )。 Vector MyVector = new Vector(100,50);
A.创建一个数组类对象MyVector,有100个元素的空间,每个元素的初值为50。
B.创建一个向量类对象MyVector,有100个元素的空间,每个元素的初值为50。
C.创建一个数组类对象MyVector,有100个元素的空间,若空间使用完时,以50个元素空间单位递增。
D.创建一个向量类对象MyVector,有100个元素的空间,若空间使用完时,以50个元素空间单位递增。
3.阅读下列代码后 public class Person{ int arr[]=new int[10]; public
static void main(String args[]){ System.out.println(arr[1]); } }
正确的说法是
A.编译时将产生错误
B.编译时正确,运行时将产生错误
4.下列程序段执行后t5的结果是( )。int t1 = 9, t2 = 11, t3=8;int t4,t5;t4 =
t1 & t2 ? t1 : t2+ t1;t5 = t4 & t3 ? t4 : t3;
5.下列语句序列执行后,a的值是( )。 int a=13; a%=a/5;
6.以下由do-while语句构成的循环执行的次数是( )。 int k = 0; do { ++k; }while ( k
A.一次也不执行
D.有语法错,不能执行
7.下面程序的输出结果是什么? class Foo{ static void change(String s){
s=s.replace('j','l'); } public static void main(String args[]){
String s="; } }
C.编译错误
D.运行时出现异常
8.以下代码的输出结果是什么? class Foo{ public static void main(String
args[]){ int x=4,j=0; switch(x){ case 1:j++; case 2:j++; case
3:j++; case 4:j++; case 5:j++; default:j++; }
System.out.println(j); } }
D.编译错误
9.下面程序的输出结果是什么? class Happy { public static void main(String
args[]) { int i =1; int j = 10; do { if ( i++ & j--) }
while ( i &5 ); System.out.println ( i+" "+j ); } }
10.下面哪一个类可以访问foo包中的所有变量? class a{int c} class
b{private int d} class c{public int e}
11.顺序执行下列程序语句后,则b的值是 String a="Hello"; String
b=a.substring(0,2);
12.请选择以下代码的正确的重载构造器。 class Happy { Happy() { } }
A.public void Happy(){}
B.public Happy(int c){}
C.protected Happy(){}
D.void Happy(){}
13.给出下面的接口: interface A{ int method1(int i); int method2(int
j); } 下面那个类实现了这个接口,并且不是抽象的?
A.class B implements A{ int method1(){} int method2(){}
B.class B { int method1(int i){} int method2(int j){} }
C.class B implements A{ int method1(int i){} int method2(int
D.class B extends A{ int method1(int i){} int method2(int j){}
14.下面程序的输出结果是什么? class C1{ static int j=0; public void
method(int a){ j++; } } class Test extends C1{ public int method(){
return j++; } public void result(){ method(j);
System.out.println(j+method()); } public static void main(String
args[]){ new Te
15.下面的哪些程序段可以正确地获得从命令行传递的参数的个数?
A.int count = args.
B.int count = args.length-1;
C.int count=0; while(args[count]!=null) count++;
D.int count=0;while (!(args[count].equals(“”))) count++;
16.下面的代码段中,执行之后i 和j 的值是什么? int i = 1; j = i++;
17.下面程序的输出结果是什么? public static void main(String args[]) { int
a=10; int b=20; if(a=b) System.out.println("Not Equal"); else
System.out.println("Equal"); }
B.Not Equal
C.编译错误
D.运行时将抛出异常
18.如果你有下面的类定义 abstract class Shape{ abstract void draw(); }
请问,在试图编译下面的类定义时会发生什么情况? class Square extends Shape{ }
A.都可以成功编译
B.Shpe可以编译,而Square不能
C.Square可以编译,而Shape不能
D.Shape和Square都不能编译
19.下列代码中,将引起一个编译错误的行是 1)public class Test{ 2) int m,n; 3)
public Test() {} 4) public Test(int a) {m=a;} 5) public static void
main(String args[]){ 6) Test t1,t2; 7) int j,k; 8) j=0;k=0; 9)
t1=new Test(); 10) t2=new Test(j,k); 11) } 12
20.在oneMethod()方法运行正常的情况下,程序段将输出什么? public void test() { try {
oneMethod(); System.out.println("condition 1"); } catch
(ArrayIndexOutOfBoundsException e) { System.out.println("condition
2"); } catch(Exception e) { System.out.println("condition
A.condition 1
B.condition 2
C.condition 3
D.condition 1 finally
二、 多选题 (共 10 道试题,共 40 分)
1.已知如下定义: String s = "story"; 下面哪些表达式是合法的?
A.s += "books";
B.char c = s[1];
C.int len = s.
D.String t = s.toLowerCase();
2.针对下面的程序,那些表达式的值是true?   Class Aclass{   
  public Aclass(long v){val=v;}   public static void main(String
args[]){   Aclass x=new Aclass(10L);   Aclass y=new Aclass(10L);
  Aclass z=y;   long a=10L;   int b=10;   }   }
E.a==10.0;
3.已知如下类定义: class Base { public Base (){ //... } public Base (
int m ){ //... } protected void fun( int n ){ //... } } public
class Child extends Base{ // member methods } 如下哪句可以正确地加入子类中?
A.private void fun( int n ){ //...}
B.void fun ( int n ){ //... }
C.protected void fun ( int n ) { //... }
D.public void fun ( int n ) { //... }
4.下面的哪些程序片断可能导致错误。
A.String s="Gonewiththewind"; String t="good"; String
B.String s="Gonewiththewind"; S t=s[3]+"one";
C.String s="Gonewiththewind"; String
standard=s.toUpperCase();
D.String s="homedirectory"; String t=s-"directory".
5.已知如下代码: switch (m) { case 0: System.out.println("Condition
0"); case 1: System.out.println("Condition 1"); case 2:
System.out.println("Condition 2"); case 3:
System.out.println("Condition 3"); default:
System.out.println("Other Condition"); } 当m 的
F.以上都不是
6.假定文件名是“Fred.java”,下面哪个是正确的类声明。
A.public class Fred{   public int x = 0;   public Fred (int
x){   this.x=x;   }   }
B.public class fred{   public int x = 0;   public Fred (int
x){   this.x=x;   }   }
C.public class Fred extends MyBaseClass{   public int x = 0;
7.你怎样从下面main()的调用中访问单词“kiss”? java lyrics a kiss is but a
8.String s=”Example String”; 下面哪些语句是正确的?
B.int i=s.length();
C.s[3]=”x”;
D.String short_s=s.trim();
E.String t=”root”+s;
9.选择所有有效的构造函数。 class Happy { } }
A.public void Happy(){}
B.public Happy(int c){}
C.protected Happy(){}
D.public int Happy(){}
E.void Happy(){}
10.已知如下代码: public class Test { public static void main(String
arg[]) { int i = 5; do { System.out.println(i); } while (--i&5)
System.out.println("finished"); } } 执行后的输出结果包括什么?
D.finished
E.什么都不输出
东大18春学期《JAVA语言程序设计Ⅰ》在线作业3
试卷总分:100 & &得分:100
一、 单选题 (共 20 道试题,共 60 分)
1.下列代码的执行结果是 public class Test { public int aMethod() { static
int i=0; i++; System.out.println(i); } public static void
main(String args[]) { Test test = new Test();
A.编译错误
D.运行成功,但不输出
2.下面哪一个类可以访问foo包中的所有变量? class a{int c} class
b{private int d} class c{public int e}
3.下列哪个选项的java源文件代码片段是不正确的?
A. public class Test{ }
B.import java.io.*; public class Test{
C.import java.io.*; class Person{ } public class Test{ }
D.import java.io.*; import java.awt.*; public class Test{
4.下列类头定义中,错误的是( )。
A.class x { .... }
B.public x extends y { .... }
C.public class x extends y { .... }
D.class x extends y implements y1 { .... }
5.设有下面的一个类定义: class AA { static void Show( ){
System.out.println("我喜欢{
System.out.println("我喜欢C++!"); } }
若已经使用AA类创建对象a和BB类创建对象b,则下面哪一个方法调用是正确的:( )
A.a.Show( ) b.Show( )
B.AA.Show( ) BB.Show( )
C.AA.Show( ) b.Show( )
D.a.Show( ) BB.Show( )
6.已知表达式int m[] = {0, 1, 2, 3, 4, 5, 6 };
下面哪个表达式的值与数组下标量总数相等?
A.m.length()
B.m.length
C.m.length()+1
D.m.length+1
7.若有循环: int x=5,y=20; do{ y-=x; x++;
}while(++x&--y);则循环体将被执行( )。
8.下面的语句的作用是:( )。 Vector MyVector = new Vector(100,50);
A.创建一个数组类对象MyVector,有100个元素的空间,每个元素的初值为50。
B.创建一个向量类对象MyVector,有100个元素的空间,每个元素的初值为50。
C.创建一个数组类对象MyVector,有100个元素的空间,若空间使用完时,以50个元素空间单位递增。
D.创建一个向量类对象MyVector,有100个元素的空间,若空间使用完时,以50个元素空间单位递增。
9.下面程序的输出结果是什么? String s= "ABCD"; s.concat("E");
s.replace('C','F'); System.out.println(s);
A.编译错误,字符串是不可改变的
10.给出下列代码,如何使成员变量m 被方法fun()直接访问? class Test {
public static void fun() { ... } }
A.将private int m 改为protected int m
B.将private int m 改为 public int m
C.将private int m 改为 static int m
D.将private int m 改为 int m
11.如果你试图编译下面的代码会发生什么事? Class MyString extends String{ }
A.代码编译成功
B.代码不能编译,因为没有定义一个main()方法
C.代码不能编译,因为String是abstract类型的
D.代码不能编译,因为String是final类型的
12.下列程序段执行后t5的结果是( )。int t1 = 9, t2 = 11, t3=8;int t4,t5;t4 =
t1 & t2 ? t1 : t2+ t1;t5 = t4 & t3 ? t4 : t3;
13.有下面的类:   public class Example{   static int x[]=new
int[15];   public static void main(String args[]){
  System.out.println(x[5]);   }   } 下面的那些说法是正确的。
A.编译时出错
B.运行时出错
D.输出null
14.给定下面的类:   public class Example{   String str=new
String(“good”);   char ch[]={'a','b','c'};   public static void
main(String args[]){   Example ex=new Example();
  ex.change(ex.str,ex.ch);
  System.out.println(ex.str+”and”+ex.ch);   }   public void
A.good and abc
B.good and gbc
C.test ok and abc
D.test ok and gbc
15.下面程序的输出结果是什么? class Foo{ static void change(String s){
s=s.replace('j','l'); } public static void main(String args[]){
String s="; } }
C.编译错误
D.运行时出现异常
16.下面的代码段中,执行之后i 和j 的值是什么? int i = 1; j = i++;
17.65. 已知有下列类的说明,则下列哪个语句是正确的? public class Test { private
float f = 1.0f; int m = 12; static int n=1; public static void
main(String arg[]) { Test t = new Test(); } }
B.this.n;
C.Test.m;
D.Test.f;
18.给出下列代码,则数组初始化中哪项是不正确的? byte[] array1,array2[]; byte
array3[][]; byte [][] array4;
A.array2 = array1
B.array2=array3
C.array2=array4
D.array3=array4
19.下面的哪些程序段可以正确地获得从命令行传递的参数的个数?
A.int count = args.
B.int count = args.length-1;
C.int count=0; while(args[count]!=null) count++;
D.int count=0;while (!(args[count].equals(“”))) count++;
20.以下由do-while语句构成的循环执行的次数是( )。 int k = 0; do { ++k; }while (
A.一次也不执行
D.有语法错,不能执行
二、 多选题 (共 10 道试题,共 40 分)
1.已知如下定义: String s = "story"; 下面哪些表达式是合法的?
A.s += "books";
B.char c = s[1];
C.int len = s.
D.String t = s.toLowerCase();
2.已知如下代码: switch (m) { case 0: System.out.println("Condition
0"); case 1: System.out.println("Condition 1"); case 2:
System.out.println("Condition 2"); case 3:
System.out.println("Condition 3"); default:
System.out.println("Other Condition"); } 当m 的
F.以上都不是
3.请选出创建数组的正确语句。
A.float f[][] = new float[6][6];
B.float []f[] = new float[6][6];
C.float f[][] = new float[][6];
D.float [][]f = new float[6][6];
4.String s=”Example String”; 下面哪些语句是正确的?
B.int i=s.length();
C.s[3]=”x”;
D.String short_s=s.trim();
E.String t=”root”+s;
5.假定文件名是“Fred.java”,下面哪个是正确的类声明。
A.public class Fred{   public int x = 0;   public Fred (int
x){   this.x=x;   }   }
B.public class fred{   public int x = 0;   public Fred (int
x){   this.x=x;   }   }
C.public class Fred extends MyBaseClass{   public int x = 0;
6.在如下源代码文件Test.java中, 哪个是正确的类定义?
A.public class test { public int x = 0; public test(int x) {
this.x = } }
B.public class Test{ public int x=0; public Test(int x) {
this.x = } }
C.public class Test extends T1, T2 { public int x = 0; public
Test (int x) { this.x = } }
D.public class
7.如果有以下代码,哪几个数字能产生输出 "Test2" 的结果? Switch(x){ case 1:
System.out.println("Test1"); case 2: case 3:
System.out.println("Test2");} System.out.println("Test3");
8.下面的哪些程序片断可能导致错误。
A.String s="Gonewiththewind"; String t="good"; String
B.String s="Gonewiththewind"; S t=s[3]+"one";
C.String s="Gonewiththewind"; String
standard=s.toUpperCase();
D.String s="homedirectory"; String t=s-"directory".
9.已知如下类说明: public class Test { private float f = 1.0f; int m =
12; static int n=1; public static void main(String arg[]) { Test t
= new Test(); // 程序代码… } } 如下哪个使用是正确的?
10.已知如下代码: public class Test { public static void main(String
arg[]) { int i = 5; do { System.out.println(i); } while (--i&5)
System.out.println("finished"); } } 执行后的输出结果包括什么?
D.finished
E.什么都不输出
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

我要回帖

更多关于 寄冷冻产品用什么快递 的文章

 

随机推荐