皮皮学,免费搜题
登录
搜题
【简答题】
请使用 NetBeans打开考生文件夹下的项目Java_3,本题的功能是由用户输入两个浮点数求和。调试运行后.显示编入如下: 输入两个浮点数后,小程序窗口显示结果如: 由于 Java_3.java和Java_3.html文件都不完整,需分别进行修改.请在注释行 ” //******Found****** ” 下一行语句的下划线地方填入正确内容,然后删除下划线,请勿删除注释行或其他己有语句内容。存盘时不得改变原有文件的文件名及存放目录. Applet 程序如下; import java.awt.Graphics; import javax.swing.*; //*********Found********** public class Java_3 extends ____________________ { double sum; //存和的变量 //*********Found********** public void __________________(){ String firstNumber, //输入第1个字符串格式的数 secondNumber; //输入第2个字符串格式的数 double number1, //加数 number2; //被加数 //读入第1个输入的数 firstNumber = JOptionPane.showInputDialog( "Enter first floating-point value" ); //读入第2个输入的数 secondNumber = JOptionPane.showInputDialog( "Enter second floating-point value" ); //将字符串数据转换长类型 number1 = Double.parseDouble( firstNumber ); number2 = Double.parseDouble( secondNumber ); //数据相加 sum = number1 + number2; } public void paint( Graphics g ) { //用g.drawString给结果 g.drawRect( 15, 10, 270, 20 ); g.drawString( "数相加之和为:" + sum, 25, 25 ); } }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】Three categories of risks are ( ), technical risks, business risks
A.
people risks
B.
project risks
C.
tool risks
D.
process risks
【单选题】下列混凝土外加剂中,( )既是减水剂,又是缓凝剂。
A.
木质素磺酸钙
B.
NNO
C.
NaC1
D.
松香
【多选题】There are some risks in multilateral trade. They mainly include economic risks and political risks. The economic risks include(    ).
A.
risk of insolvency of the buyer    
B.
risk of exchange rate
C.
risk of failure of payment by buyer    
D.
risk of non-acceptance
【单选题】The following argument involves acknowledging and refuting other viewpoints. Which part isauthor’s refutation? Choose an appropriate answer.The probing of outer space has proved, and will still prove,...
A.
The probing of outer space has proved, and will still prove, crucial to us.
B.
As for the money spent on space programs, it is indeed enormous.
C.
But if we could stop all the wars on earth, there would be much more money than we could afford for the present and future space programs.
D.
All in all, the probing of outer space is one of the greatest missions man has ever set himself.
【单选题】The following argument involves acknowledging and refuting other viewpoints. Which part is the other viewpoint? Choose an appropriate answer.The probing of outer space has proved, and will still prove...
A.
The probing of outer space has proved, and will still prove, crucial to us.
B.
As for the money spent on space programs, it is indeed enormous.
C.
But if we could stop all the wars on earth, there would be much more money than we could afford for the present and future space programs.
D.
All in all, the probing of outer space is one of the greatest missions man has ever set himself.
【单选题】钢筋混凝土结构是由配置()组成的混凝土结构A.钢筋 B.钢材 C.人造石材 D.组合结构
A.
A
B.
A
C.
A
D.
A
【多选题】Uninsurable risks include
A.
Inherent vice
B.
Improper packing
C.
Ordinary leakage
D.
Unseaworthy vessel
E.
Nuclear war
【单选题】The general additional risks such as rain damage risks and shortage risks are covered under ( )in PICC Ocean Marine Cargo Clauses.
A.
FPA
B.
WPA
C.
All Risks
D.
War clause
【简答题】轴线规则中的“轴线”指的是什么?
【简答题】The risk of cancellation,War risks,( )are the main risks that political risks may include.
相关题目: