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

正文內(nèi)容

簡易計(jì)算器課程設(shè)計(jì)-在線瀏覽

2024-08-03 01:56本頁面
  

【正文】 (sixteen)。 (eight)。 (text)。 ()。//Back ()。 ce=new JButton(CE)。 (this)。//C ()。 (sixteen)。 (eight)。 (Back)。 (c)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 ()。 (this)。 ()。 (this)。 ()。 (this)。 ()。 (this)。 ()。 (this)。 ()。 (this)。 setJMenuBar(mainMenu)。 JMenu viewMenu = new JMenu(查看 )。 (viewMenu)。 (helpMenu)。 exitItemOfFile = new JMenuItem(粘貼 V Ctrl+V)。 (this)。 (exitItemOfFile)。 s = new JMenuItem( 科學(xué)型 )。 (s)。 (this)。 me = new JMenuItem( 幫助主題 )。 (me)。 (this)。 11 2 、 科學(xué)型 : 3 、 這是“幫助”菜單里的“幫助主題” 菜單項(xiàng) :用了 JtextArea 將內(nèi)容顯示出來 me = new JMenuItem( 幫助主題 )。 scrollHelp = new JScrollPane(help)。 (執(zhí)行簡單計(jì)算 +\n)。 +\n)。 (3. 鍵入計(jì)算的下一個數(shù)字。 (4. 輸入所有剩余的運(yùn)算符和數(shù)字。 (5. 單擊“ =“ )。 計(jì)算功能實(shí)現(xiàn) 1、四則運(yùn)算 if (temp == jia){//加法 qian = (())。 clear = false。 fuhao = 。 } if (temp == cheng){ qian = (())。 clear = false。 fuhao = 247。 } if (temp == quyu){ qian = (())。 clear = false。 ()。 if (fuhao == ) (qian ss + )。 if (fuhao == 247。 if(fuhao==%) (qian%ss + )。//要清空前一 次的數(shù)據(jù) } 2、三角函數(shù)運(yùn)算 if(temp==cos){ ((((())*)))。 } if(temp==tan){ ((((())*)))。 } if(temp==lnX){ ((((xt()))))。 if ((0) == 39。) (負(fù)數(shù)不能開根號 )。 clear = false。039。amp。 else{ boolean isDec = true。 String s = (1 / (()))。 i ()。.39。 for (j = i + 1。 j++) if ((j) != 39。){ isDec = false。 } if (isDec == true){ String stemp = 。 k i。 (stemp)。 } clear = false。 String s = ()。 i ()。039。amp。939。.39。39。 break。39。 for (int i = 1。 i++){ char a = (i)。 } } else (39。 + s)。 } } 7、進(jìn)制轉(zhuǎn)換 class objConversion{ public String decDec(int decNum){ String strDecNum = (decNum)。 i 3。 return invert (strDecNum, 5)。 int currentNum = 0。 decNum /= 16。 decNum = 0。 break。 break。 break。 break。 break。 break。break。 } public String decOct (int decNum){//10 to 8 String strOctNum = 。 decNum /= 8。 decNum = 0。 } public String decBin (int decNum) {//10 to 2 String strBinNum = 。 18 decNum /= 2。 decNum = 0。 } private String invert(String strNum,int minLength){ String answer = 。 if (length minLength){ for (int padding =(minLength length)。padding){ answer += 0。i0。 return answer。 七 、總結(jié) 設(shè)計(jì)給人以創(chuàng)作的沖動,但是也要為這次沖動承擔(dān)一定的痛苦,卻事后會發(fā)現(xiàn),這一切都是值得的。 這次課程設(shè)計(jì)使我感到收獲不小,讓我對 Java 的設(shè)計(jì)過程有了更深的了解,促進(jìn)了對理論知識的消化與吸收,也鞏固和完善了本門課程的知識體系結(jié)構(gòu)。 通過實(shí)踐讓我發(fā)現(xiàn)了我的不足,并加深了自身學(xué)習(xí)能力,提高了綜合能力。以此來完善自己的知識系統(tǒng)。通過這次課程設(shè)計(jì),我基本掌握了以上要求。以前對 Java語言的很多知識認(rèn)識都不深刻,做過這次課程設(shè)計(jì)之后, 我對 Java 語言的開發(fā)有了一個比較系統(tǒng)的了解;比如: 用戶圖形界面設(shè)計(jì) 等的運(yùn)用已經(jīng)比較熟練。 import .*。 import .*。 private objConversion convert = new objConversion()。 JRadioButton sixteen,ten,eight,two。 JButton a,b,cc,dd,ee,ff,jia,jian,cheng,chu, quyu,deng,fu,dian,kai,dao,cos,sin,tan,lgX,lnX。//容器,便于集體操作 JTextField text。 boolean clickable=true,clear=true。 double qian。 int jin=10,first=1。 setSize(400,400)。 text=new JTextField(25)。//從左到右 JPanel cp1=new JPanel()。 JPanel cp3=new JPanel()。 (cp1,North)。 (cp3,South)。 (new GridLayout(2,4))。 sixteen=new JRadioButton(十六進(jìn)制 )。 ten=new JRadioButton(進(jìn)制 ,true)。 eight=new JRadioButton(八進(jìn)制 )。 two=new JRadioButton(二進(jìn)制 )。 a = new JButton(A)。 b = new JButton(B)。 cc = new JButton(C)。 dd = new JButton(D)。 ee = new JButton(E)。 ff = new JButton(F)。 jia = new JButton(+)。 cheng = new JButton()。)。 deng = new JButton(=)。 dian = new JButton(.)。 dao = new JButton(1/x)。 num1=new JButton(1)。 num3=new JButton(3)。 num5=new JButton(5)。 21 num7=new JButton(7)。 cos=new JButton(cos)。 tan=new JButton(tan)。 lnX=new JButton(lnX)。 (this)。 (this)。 ButtonGroup btg=new ButtonGroup()。 (ten)。 (two)。 (false)。 Back=new JButton(Back)。 (this)。//CE ()。 c=new JButton(C)。 (this)。 (ten)。 (two)。 (ce)。 (num7)。 (num8)。 (num9)。 (chu)。 22 (kai)。
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1