freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java課程設(shè)計(jì)---科學(xué)計(jì)算器-java(參考版)

2025-01-23 06:31本頁面
  

【正文】 濟(jì)南大學(xué)課程設(shè)計(jì) 25 。 針對(duì)這次課程設(shè)計(jì)結(jié)果來看, 在程序的編寫過程中我發(fā)現(xiàn)自己有很多的知識(shí)漏洞和缺陷,需要進(jìn)一步努力學(xué)習(xí)來完善自己。 雖然系統(tǒng)的基本功能都已實(shí)現(xiàn),但還是存在系統(tǒng)不穩(wěn)定等多個(gè)問題尚待解決。這次獨(dú)立實(shí)踐的機(jī)會(huì)將理論和實(shí)踐相結(jié)合,提高我們的分析、解決實(shí)際問題的能力,并且讓我認(rèn)識(shí)到了要從要從實(shí)際、實(shí)踐出發(fā)提高自己的編程水平。 } } } /** * main方法 */ public static void main(String[] args) { new CalculatorSimple().setVisible(true)。 } } } } /** * 小數(shù)點(diǎn)的事件監(jiān)聽 */ class Dot implements ActionListener{ 濟(jì)南大學(xué)課程設(shè)計(jì) 23 public void actionPerformed(ActionEvent e) { IfResult = false。 IfResult = true。 } else{ (().trim() + str)。 } if(str==π) { (())。 if(IfResult){ ()。 IfResult = true。 IfResult = true。 } }else{ if(().length() 2){ (().substring(0, 濟(jì)南大學(xué)課程設(shè)計(jì) 22 ().length() 1))。 //使用退格刪除最后一位字符 }else{ (0)。 ((i))。 result = 0。 if(str == C){ (0)。 IfResult = true。 }else{ getResult((()))。 } 濟(jì)南大學(xué)課程設(shè)計(jì) 21 else{ if(flag){ IfResult = false。 } /* ′″角度轉(zhuǎn)換 */ /** * 將角度值轉(zhuǎn)換成弧度值,方便三角函數(shù)的計(jì)算 */ else if((′″)){ double i = (())。 } /* x^3求立方 */ else if((x^3)){ double i = (())。 } } /* x^2求平方 */ else if((x^2)){ double i = (())。 ((result))。k=j。//強(qiáng)制類型轉(zhuǎn)換 int result=1。 } /* n!求階乘 */ else if((n!)){ double i = (())。 } 濟(jì)南大學(xué)課程設(shè)計(jì) 20 /* tan求正切函數(shù) */ else if((tan)){ double i = (())。 } /* cos求余弦函數(shù) */ else if((cos)){ double i = (())。 } } /* sin求正弦函數(shù) */ else if((sin)){ double i = (())。 } /* 1/x求倒數(shù) */ else if((1/x)){ if((()) == 0){ (除數(shù)不能為零 )。 }else{ (負(fù)數(shù)不能求對(duì)數(shù) )。 } } /* log求常用對(duì)數(shù) */ else if((log)){ double i = (())。 if(i=0){ /* * () 轉(zhuǎn)換為字符串 * () 按要求保留四位小數(shù) * () 求算數(shù)平方根 */ ((((i))))。 } /** * 運(yùn)算符號(hào)的事件監(jiān)聽 */ class Signs implements ActionListener{ public void actionPerformed(ActionEvent e) { /* * 用 ActionEvent對(duì)象的 getActionCommand()方法 * 取得與引發(fā)事件對(duì)象相關(guān)的字符串 */ String str = ()。} else if(oper == =){result = x。194。){result *= x。} else if(oper == 161。) * param x */ private void getResult (double x){ if(oper == +){result += x。 161。//增加監(jiān)聽事件 } /** * 計(jì)算器的基礎(chǔ)操作( + 161。//在面板上增加按鈕 (color)。 } /** * 統(tǒng)一設(shè)置按鈕的的使用方式 * param panel 濟(jì)南大學(xué)課程設(shè)計(jì) 18 * param name * param action * param color */ private void addButton(JPanel panel, String name, ActionListener action, Color color){ JButton bt = new JButton(name)。//窗口不可改變大小 (500, 200)。 pack()。 (panel3, )。 (panel2, )。 addButton(panel3, M+, null, )。 addButton(panel3, MR, null, )。 (btns)。 (false)。 JButton btns = new JButton(計(jì)算器 )。 addButton(panel2, +, new Signs(), )。 addButton(panel2, +/, new Clear(), )。 addButton(panel2, 1/x, new Signs(), )。 addButton(panel2, 3, numActionListener, )。 addButton(panel2, 1, numActionListener, )。, new Signs(), )。 addButton(panel2, 161。 濟(jì)南大學(xué)課程設(shè)計(jì) 17 addButton(panel2, 5, numActionListener, )。 addButton(panel2, sqrt, new Signs(), )。194。 addButton(panel2, 9, numActionListener, )。 addButton(panel2, 7, numActionListener, )。 // addButton(panel2, 1/x, new Signs(), )。 addButton(panel1, CE, new Clear(), )。 init()。//文字右對(duì)齊 (0)。//文本區(qū)域不可編輯 ()。//實(shí)現(xiàn)數(shù)字監(jiān)聽 /** * 文本域,即為計(jì)算器的屏幕顯示區(qū)域 */ tf = new JTextField()。 (myBar)。 (menu2)。//添加一條分割線 (help2)。 濟(jì)南大學(xué)課程設(shè)計(jì) 16 (help1)。 ()。 (seeItem1)。//選項(xiàng)組 (editItem1)。 (new Font(宋體 ,12))。 help2 = new JMenuItem(關(guān)于計(jì)算器 (A))。 (new Font(宋體 ,12))。 (new Font(宋體 ,12))。 new Calculator().setVisible(true)。 (seeItem2)。 (true)。 (this)。 seeItem1 = new JRadioButtonMenuItem(科學(xué)型 )。 (new Font(宋體 ,12))。 editItem2 = new JMen
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1