求职简历网 > 知识 >

5k6b

来源:求职简历网时间:2024-04-13 23:54:16编辑:皮带君

青岛康信环保设备有限公司怎么样?

青岛康信环保设备有限公司是2009-10-27在山东省青岛市崂山区注册成立的有限责任公司(自然人投资或控股),注册地址位于青岛市崂山区合肥路北村新苑7号楼1单元1304室。青岛康信环保设备有限公司的统一社会信用代码/注册号是9137021269379448X2,企业法人陈晓梦,目前企业处于开业状态。青岛康信环保设备有限公司的经营范围是:一般经营项目:批发、零售:防腐设备保温材料、金属制品、非金属复合材料及制品、波纹管、钛合金制品、机械设备、仪器仪表、电线电缆、网络设备、检测仪器、活性炭及碳制品、空气净化设备及配件、除尘仪器、清洁设备及配件、空气净化剂、办公设备,货物进出口、技术进出口(法律行政法规禁止类项目除外,法律行政法规限制类项目待取得许可后经营)。(以上范围需经许可经营的,须凭许可证经营)。本省范围内,当前企业的注册资本属于一般。通过百度企业信用查看青岛康信环保设备有限公司更多信息和资讯。

《穿成大佬的反派小娇妻》txt下载在线阅读全文,求百度网盘云资源

链接:https://pan.baidu.com/s/1bC0yWlqwSU4iXLMO0a0bEw 提取码:5h9a小说名称:穿成大佬的反派小娇妻作者:桔绿类型:穿越重生连载状态:已完结简介:丑到不行的沈从容穿书了。穿成肤白貌美,身娇体软,一心只想给老公戴绿帽子的富家小明星。每天想着要蹭热度,捆绑上位的娱乐圈毒瘤。全娱乐圈都知道沈从容矫揉造作,最爱艹小白花人设直到某个视频上了热搜……众人眼中的小白花徒手干翻五个大汉。网友狂呼:妹妹!你崩人设啦!当晚,瘫在床上的沈从容扶腰抗议:“人家体弱,你就不能心疼心疼?”薄翊挑眉,摸出手机打开视频:“体弱?”沈从容:嘤嘤嘤……她要找拍视频的人单挑!

青岛田园环境土壤检测有限公司怎么样?

青岛田园环境土壤检测有限公司在发展壮大的几年里,始终为客户提供好的产品和环境土壤检测技术支持、健全的售后服务,获得了客户较好的口碑。青岛田园环境土壤检测有限公司的优势具体如下:1、专业检测技术能力较强:青岛田园环境土壤检测有限公司专注于研发及生产污染场地修复材料,核心产品为土壤、地下水、农田修复等系列药剂。公司在北京设有产品研发、生产基地及技术服务中心,拥有完善的实验及检测设备,年产3万吨土壤修复药剂。技术服务领域包括:退役工业场地(棕地)修复、农田修复、河道底泥修复、黑臭水体治理、冶炼废渣、垃圾发电厂飞灰治理等。2、较为特色的经营:青岛田园环境土壤检测有限公司积极探索具有中国特色的智慧科技模式,以建立全生命周期、全流程的健康管理服务体系作为核心竞争力。青岛田园环境土壤检测有限公司整合股东及其他资源,依托互联网、大数据、云计算等先进技术,为客户提供一站式健康服务综合解决方案。管控标准成熟实用,是国内专门从事环境土壤检测的公司。3、较为良好的服务:青岛田园环境土壤检测有限公司在发展的过程中还不断升级服务渠道,进一步提升自身的各项服务指标,给更多消费者提供保险保障服务。青岛田园环境土壤检测有限公司借助独有的万达系统生态圈资源优势,可与全国多家万达广场的渠道关联,为合作伙伴保证了扎实的客户资源。并提供人才管理系统,使员工具备国际化标准服务水准。4、较为全面的服务内容:青岛田园环境土壤检测有限公司根据客户提供的场地污染及水文地质特点等信息,通过小试和中试;为客户确定并优化修复技术,确定药剂及投加比、修复工艺优化;修复设备定型、成本预算、修复工期等,为客户节省经济成本和时间成本,实现经济效益大化。同时可为客户设计优化药剂配方,提供一对一OEM定制生产服务。

江西省源宇实业有限公司怎么样?

江西省源宇实业有限公司是2011-04-20在江西省南昌市青山湖区注册成立的有限责任公司(自然人独资),注册地址位于江西省南昌市青山湖区罗家镇观田村。江西省源宇实业有限公司的统一社会信用代码/注册号是913601115711985756,企业法人胡槐平,目前企业处于开业状态。江西省源宇实业有限公司的经营范围是:针织服装加工;布匹织造;国内贸易(涉及凭许可证、资质证或其他批准文件经营的项目除外)。(以上项目国家有专项规定的除外)**。在江西省,相近经营范围的公司总注册资本为48065万元,主要资本集中在 100-1000万 规模的企业中,共195家。本省范围内,当前企业的注册资本属于优秀。通过百度企业信用查看江西省源宇实业有限公司更多信息和资讯。

江西省一凯实业有限公司怎么样?

江西省一凯实业有限公司是2011-03-07在江西省上饶市弋阳县注册成立的有限责任公司(自然人投资或控股),注册地址位于江西省上饶市弋阳县连胜工业园。江西省一凯实业有限公司的统一社会信用代码/注册号是913611265686880710,企业法人朱建国,目前企业处于开业状态。江西省一凯实业有限公司的经营范围是:化工产品(有机硅烷偶联剂与改性尖晶石型锰酸锂锂离子二次动力电池正极材料)生产、销售(危险品除外)(以上项目国家有专项规定的凭许可证或资质证经营)。本省范围内,当前企业的注册资本属于一般。通过百度企业信用查看江西省一凯实业有限公司更多信息和资讯。

java中,用布局器实现计算器界面 并实现加减乘除等功能,怎样编程

java写的,可行

package ex1;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;

import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.JTextField;

public class Calcutor extends JFrame {
private JTextField tf;
private JPanel panel1, panel2, panel3, panel4;
private JMenuBar myBar;
private JMenu menu1, menu2, menu3;
private JMenuItem editItem1, editItem2, help1, help2, help3;
private JRadioButtonMenuItem seeItem1, seeItem2;//单选框
private JCheckBoxMenuItem seeItem3;//复选框
private ButtonGroup bgb;
private String back;
private boolean IfResult = true, flag = false;
private String oper = "=";
private double result = 0;
private Num numActionListener;
private DecimalFormat df;

public Calcutor(){
super("科学计算器");//设置标题栏

df = new DecimalFormat("#.####");//保留四位小数

this.setLayout(new BorderLayout(10, 5));
panel1 = new JPanel(new GridLayout(1, 3, 10, 10));
panel2 = new JPanel(new GridLayout(5, 6, 5, 5));//5行6列
panel3 = new JPanel(new GridLayout(5, 1, 5, 5));
panel4 = new JPanel(new BorderLayout(5, 5));

/**
* 菜单栏
*/
myBar = new JMenuBar();
menu1 = new JMenu("编辑(E)");
menu2 = new JMenu("查看(V)");
menu3 = new JMenu("帮助(H)");

menu1.setFont(new Font("宋体", Font.PLAIN, 12));
menu2.setFont(new Font("宋体", Font.PLAIN, 12));
menu3.setFont(new Font("宋体", Font.PLAIN, 12));

/**
* 编辑栏
*/
editItem1 = new JMenuItem("复制(C) Ctrl+C");
editItem2 = new JMenuItem("粘贴(P) Ctrl+V");

editItem1.setFont(new Font("宋体",Font.PLAIN,12));
editItem2.setFont(new Font("宋体",Font.PLAIN,12));

/**
* 查看栏
*/
seeItem1 = new JRadioButtonMenuItem("科学型(T)");
seeItem2 = new JRadioButtonMenuItem("标准型(S)");
seeItem3 = new JCheckBoxMenuItem("数字分组(I)");

seeItem1.setFont(new Font("宋体",Font.PLAIN,12));
seeItem2.setFont(new Font("宋体",Font.PLAIN,12));
seeItem3.setFont(new Font("宋体",Font.PLAIN,12));

/**
* 帮助栏
*/
help1 = new JMenuItem("帮助主题(H)");
help2 = new JMenuItem("关于计算器(A)");

help1.setFont(new Font("宋体",Font.PLAIN,12));
help2.setFont(new Font("宋体",Font.PLAIN,12));

bgb = new ButtonGroup();//选项组

menu1.add(editItem1);
menu1.add(editItem2);

menu2.add(seeItem1);
menu2.add(seeItem2);
menu2.addSeparator();//添加一条分割线
menu2.add(seeItem3);

menu3.add(help1);
menu3.addSeparator();//添加一条分割线
menu3.add(help2);

myBar.add(menu1);
myBar.add(menu2);
myBar.add(menu3);

this.setJMenuBar(myBar);

numActionListener = new Num();//实现数字监听

/**
* 文本域,即为计算器的屏幕显示区域
*/
tf = new JTextField();
tf.setEditable(false);//文本区域不可编辑
tf.setBackground(Color.white);//文本区域的背景色
tf.setHorizontalAlignment(JTextField.RIGHT);//文字右对齐
tf.setText("0");
tf.setBorder(BorderFactory.createLoweredBevelBorder());
init();//对计算器进行初始化

}
/**
* 初始化操作
* 添加按钮
*/
private void init(){
addButton(panel1, "Backspace", new Clear(), Color.red);
addButton(panel1, "CE", new Clear(), Color.red);
addButton(panel1, "C", new Clear(), Color.red);

addButton(panel2, "1/x", new Signs(), Color.magenta);
addButton(panel2, "log", new Signs(), Color.magenta);
addButton(panel2, "7", numActionListener, Color.blue);
addButton(panel2, "8", numActionListener, Color.blue);
addButton(panel2, "9", numActionListener, Color.blue);
addButton(panel2, "÷", new Signs(), Color.red);

addButton(panel2, "n!", new Signs(), Color.magenta);
addButton(panel2, "sqrt", new Signs(), Color.magenta);
addButton(panel2, "4", numActionListener, Color.blue);
addButton(panel2, "5", numActionListener, Color.blue);
addButton(panel2, "6", numActionListener, Color.blue);
addButton(panel2, "×", new Signs(), Color.red);

addButton(panel2, "sin", new Signs(), Color.magenta);
addButton(panel2, "x^2", new Signs(), Color.magenta);
addButton(panel2, "1", numActionListener, Color.blue);
addButton(panel2, "2", numActionListener, Color.blue);
addButton(panel2, "3", numActionListener, Color.blue);
addButton(panel2, "-", new Signs(), Color.red);

addButton(panel2, "cos", new Signs(), Color.magenta);
addButton(panel2, "x^3", new Signs(), Color.magenta);
addButton(panel2, "0", numActionListener, Color.blue);
addButton(panel2, "-/+", new Clear(), Color.blue);
addButton(panel2, ".", new Dot(), Color.blue);
addButton(panel2, "+", new Signs(), Color.red);

addButton(panel2, "tan", new Signs(), Color.magenta);
addButton(panel2, "%", new Signs(), Color.magenta);
addButton(panel2, "π", numActionListener, Color.orange);
addButton(panel2, "e", numActionListener, Color.orange);
addButton(panel2, "′″", new Signs(), Color.orange);
addButton(panel2, "=", new Signs(), Color.red);

JButton btns = new JButton("计算器");
btns.setBorder(BorderFactory.createLoweredBevelBorder());
btns.setEnabled(false);//按钮不可操作
btns.setPreferredSize(new Dimension(20, 20));

panel3.add(btns);//加入按钮
addButton(panel3, "MC", null, Color.red);
addButton(panel3, "MR", null, Color.red);
addButton(panel3, "MS", null, Color.red);
addButton(panel3, "M+", null, Color.red);

panel4.add(panel1, BorderLayout.NORTH);
panel4.add(panel2, BorderLayout.CENTER);
this.add(tf, BorderLayout.NORTH);
this.add(panel3, BorderLayout.WEST);
this.add(panel4);

pack();
this.setResizable(false);//窗口不可改变大小
this.setLocation(300, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
/**
* 统一设置按钮的的使用方式
* @param panel
* @param name
* @param action
* @param color
*/
private void addButton(JPanel panel, String name, ActionListener action, Color color){
JButton bt = new JButton(name);
panel.add(bt);//在面板上增加按钮
bt.setForeground(color);//设置前景(字体)颜色
bt.addActionListener(action);//增加监听事件
}
/**
* 计算器的基础操作(+ - × ÷)
* @param x
*/
private void getResult (double x){
if(oper == "+"){result += x;}
else if(oper == "-"){result -= x;}
else if(oper == "×"){result *= x;}
else if(oper == "÷"){result /= x;}
else if(oper == "="){result = x;}
tf.setText(df.format(result));
}
/**
* 运算符号的事件监听
*/
class Signs implements ActionListener{
public void actionPerformed(ActionEvent e) {
/*
* 用ActionEvent对象的getActionCommand()方法
* 取得与引发事件对象相关的字符串
*/
String str = e.getActionCommand();

/* sqrt求平方根 */
if(str.equals("sqrt")){
double i = Double.parseDouble(tf.getText());
if(i>=0){
/*
* String.valueOf() 转换为字符串
* df.format() 按要求保留四位小数
* Math.sqrt() 求算数平方根
*/
tf.setText(String.valueOf(df.format(Math.sqrt(i))));
}
else{
tf.setText("负数不能开平方根");
}
}

/* log求常用对数 */
else if(str.equals("log")){
double i = Double.parseDouble(tf.getText());
if(i>0){
tf.setText(String.valueOf(df.format(Math.log(i))));
}else{
tf.setText("负数不能求对数");
}
}

/* %求百分比 */
else if(str.equals("%")){
tf.setText(df.format(Double.parseDouble(tf.getText()) / 100));
}

/* 1/x求倒数 */
else if(str.equals("1/x")){
if(Double.parseDouble(tf.getText()) == 0){
tf.setText("除数不能为零");
}else{
tf.setText(df.format(1 / Double.parseDouble(tf.getText())));
}
}

/* sin求正弦函数 */
else if(str.equals("sin")){
double i = Double.parseDouble(tf.getText());
tf.setText(String.valueOf(df.format(Math.sin(i))));
}

/* cos求余弦函数 */
else if(str.equals("cos")){
double i = Double.parseDouble(tf.getText());
tf.setText(String.valueOf(df.format(Math.cos(i))));
}

/* tan求正切函数 */
else if(str.equals("tan")){
double i = Double.parseDouble(tf.getText());
tf.setText(String.valueOf(df.format(Math.tan(i))));
}

/* n!求阶乘 */
else if(str.equals("n!")){
double i = Double.parseDouble(tf.getText());
if((i%2==0)||(i%2==1))//判断为整数放进行阶乘操作
{
int j = (int)i;//强制类型转换
int result=1;
for(int k=1;k<=j;k++)
result *= k;
tf.setText(String.valueOf(result));
}
else
{
tf.setText("无法进行阶乘");
}
}

/* x^2求平方 */
else if(str.equals("x^2")){
double i = Double.parseDouble(tf.getText());
tf.setText(String.valueOf(df.format(i*i)));
}

/* x^3求立方 */
else if(str.equals("x^3")){
double i = Double.parseDouble(tf.getText());
tf.setText(String.valueOf(df.format(i*i*i)));
}

/* ′″角度转换 */
/**
* 将角度值转换成弧度值,方便三角函数的计算
*/
else if(str.equals("′″")){
double i = Double.parseDouble(tf.getText());
tf.setText(String.valueOf(i/180*Math.PI));
}

else{
if(flag){
IfResult = false;
}
if(IfResult){
oper = str;
}else{
getResult(Double.parseDouble(tf.getText()));
oper = str;
IfResult = true;
}
}
}
}
/**
* 清除按钮的事件监听
*/
class Clear implements ActionListener{
public void actionPerformed(ActionEvent e) {
/*
* 用ActionEvent对象的getActionCommand()方法
* 取得与引发事件对象相关的字符串
*/
String str = e.getActionCommand();
if(str == "C"){
tf.setText("0");
IfResult = true;
result = 0;
}else if(str == "-/+"){
double i = 0 - Double.parseDouble(tf.getText().trim());
tf.setText(df.format(i));
}else if(str == "Backspace"){
if(Double.parseDouble(tf.getText()) > 0){
if(tf.getText().length() > 1){
tf.setText(tf.getText().substring(0, tf.getText().length() - 1));
//使用退格删除最后一位字符
}else{
tf.setText("0");
IfResult = true;
}
}else{
if(tf.getText().length() > 2){
tf.setText(tf.getText().substring(0, tf.getText().length() - 1));
}else{
tf.setText("0");
IfResult = true;
}
}
}else if(str == "CE"){
tf.setText("0");
IfResult = true;
}
}
}
/**
* 数字输入的事件监听
*/
class Num implements ActionListener{
public void actionPerformed(ActionEvent e) {
String str = e.getActionCommand();
if(IfResult){
tf.setText("");
IfResult = false;
}
if(str=="π")
{
tf.setText(String.valueOf(Math.PI));
}
else if(str=="e")
{
tf.setText(String.valueOf(Math.E));
}
else{
tf.setText(tf.getText().trim() + str);
if(tf.getText().equals("0")){
tf.setText("0");
IfResult = true;
flag = true;
}
}
}
}
/**
* 小数点的事件监听
*/
class Dot implements ActionListener{
public void actionPerformed(ActionEvent e) {
IfResult = false;
if(tf.getText().trim().indexOf(".") == -1){
tf.setText(tf.getText() + ".");
}
}
}
/**
* main方法
*/
public static void main(String[] args) {
new Calcutor().setVisible(true);
}
}


用Java编写一个加减法计算器要有界面

下面简单的写了一个,也可以简化一下的,你自己看看是否合适:
import java.awt.*;
import java.awt.event.*;
public class count extends WindowAdapter implements ActionListener{
Frame f;
TextField txt1;
TextField txt2;
TextField txt3;
Label lbl1;
Label lbl2;
Label lbl3;
Button btn1;
Button btn2;
Button btn3;
Button btn4;
void init(){
f=new Frame("计算器");
lbl1=new Label("x");
lbl2=new Label("y");
lbl3=new Label("结果");
txt1=new TextField(10);
txt2=new TextField(10);
txt3=new TextField(10);
btn1=new Button(" 求 和 ");
btn2=new Button(" 求 差 ");
btn3=new Button(" 清 除 ");
btn4=new Button(" 退 出 ");

f.setLayout(new FlowLayout());
f.add(lbl1); f.add(txt1);
f.add(lbl2); f.add(txt2);
f.add(lbl3); f.add(txt3);
f.add(btn1);f.add(btn2);f.add(btn3);f.add(btn4);
f.setVisible(true);
f.pack();

btn1.addActionListener(this);
btn2.addActionListener(this);
btn3.addActionListener(this);
btn4.addActionListener(this);
f.addWindowListener(this);
}
public void windowClosing(WindowEvent e){
System.exit(0);
}
public void actionPerformed(ActionEvent e){
if(e.getSource()==btn1){
String s1=txt1.getText();
String s2=txt2.getText();
double d1=Double.parseDouble(s1);
double d2=Double.parseDouble(s2);
double d3=d1+d2;
String s3=Double.toString(d3);
txt3.setText(s3);
}
if(e.getSource()==btn2){
String s1=txt1.getText();
String s2=txt2.getText();
double d1=Double.parseDouble(s1);
double d2=Double.parseDouble(s2);
double d3=d1-d2;
String s3=Double.toString(d3);
txt3.setText(s3);
}
if(e.getSource()==btn3){
String s="";
txt1.setText(s);
txt2.setText(s);
txt3.setText(s);
}
if(e.getSource()==btn4){
System.exit(0);
}
}
public static void main(String[]args){
new count().init();
}
}


上一篇:粤港合作框架协议

下一篇:70kxw

相关推荐

热门头条